/* ==========================================================================
   TINA'S TRUST — DESIGN SYSTEM  v2
   Registered Scottish charity SC054353
   Grants for people caring for someone with early onset FTD at home in the UK

   v2 direction changes:
   - Sans-serif only. No serif faces anywhere.
   - Zero border radius. Squared buttons, cards, inputs, media, portraits.
   - Layout and rhythm aligned to maggies.org: big uppercase display headings,
     overlapping action cards under the hero, arrow links, rule-separated
     contact lists, oversized statistic figures.
   - Logo always transparent; cream variant on dark grounds; flower alone
     when the lockup would render too small to read.

   COLOUR RULES (unchanged — derived from measured contrast)
   1. Petal yellow is DECORATIVE ONLY. #ECD15C on cream = 1.44:1, which fails
      even the 3:1 non-text threshold. Never use it for text, buttons that
      matter, focus rings or meaningful icons.
   2. Olive carries ALL functional meaning. #4E5A23 = 7.11:1 on cream.
      Hover #3C4619. The single exception is the reserved donate colour.
   ========================================================================== */

:root {
  /* --- Brand, sampled from the logo vector ------------------------------ */
  --tt-petal-pale:  #F9EFB7;
  --tt-petal-light: #F3DF6E;
  --tt-petal:       #ECD15C;
  --tt-petal-deep:  #D3CC48;
  --tt-lime:        #BDBE35;
  --tt-olive:       #6D7C31;

  /* --- Extended, for functional contrast -------------------------------- */
  --tt-olive-deep:   #4E5A23;
  --tt-olive-darker: #3C4619;
  --tt-ink:          #2B2A26;
  --tt-ink-soft:     #55534B;
  --tt-cream:        #FBF9F5;
  --tt-sand:         #F2EDE2;
  --tt-line:         #E2DCCE;
  --tt-line-strong:  #CFC7B4;

  /* --- Reserved: donate actions only ------------------------------------ */
  --tt-donate:      #B8481F;
  --tt-donate-deep: #96380F;

  /* --- Type: sans only -------------------------------------------------- */
  --tt-font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tt-font-head: "Archivo", "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --tt-fs-hero:  clamp(2.75rem, 5.2vw + 1rem, 5.25rem);
  --tt-fs-h1:    clamp(2.25rem, 3.4vw + 1.25rem, 3.75rem);
  --tt-fs-h2:    clamp(1.75rem, 1.8vw + 1.1rem, 2.625rem);
  --tt-fs-h3:    clamp(1.25rem, .7vw + 1.05rem, 1.625rem);
  --tt-fs-h4:    1.125rem;
  --tt-fs-lead:  clamp(1.125rem, .55vw + 1rem, 1.4375rem);
  --tt-fs-base:  1.0625rem;
  --tt-fs-sm:    .9375rem;
  --tt-fs-xs:    .8125rem;
  --tt-fs-stat:  clamp(2.75rem, 4.2vw + 1.25rem, 4.75rem);

  --tt-lh-tight: 1.08;
  --tt-lh-head:  1.16;
  --tt-lh-body:  1.65;

  /* --- Spacing ---------------------------------------------------------- */
  --tt-s-1: .25rem;  --tt-s-2: .5rem;   --tt-s-3: .75rem;
  --tt-s-4: 1rem;    --tt-s-5: 1.5rem;  --tt-s-6: 2rem;
  --tt-s-7: 3rem;    --tt-s-8: 4rem;    --tt-s-9: 6rem;
  --tt-section-y: clamp(3.5rem, 7vw, 7rem);
  --tt-gutter:    clamp(1.25rem, 4vw, 2.5rem);

  /* --- Structure -------------------------------------------------------- */
  --tt-max:        1200px;
  --tt-max-wide:   1360px;
  --tt-max-narrow: 780px;
  --tt-measure:    68ch;

  /* --- SQUARED: no curves anywhere -------------------------------------- */
  --tt-r-sm: 0; --tt-r: 0; --tt-r-lg: 0; --tt-r-xl: 0; --tt-r-pill: 0;

  --tt-shadow:    0 2px 14px rgba(43, 42, 38, .07);
  --tt-shadow-lg: 0 12px 40px rgba(43, 42, 38, .13);
  --tt-dur: .22s;
  --tt-ease: cubic-bezier(.4, 0, .2, 1);
}

/* ==========================================================================
   RESET
   ========================================================================== */

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

/* The [hidden] attribute must always win. Components below set an explicit
   `display` (flex/grid), which would otherwise override the browser default
   of `[hidden] { display: none }` and leave filtered-out cards on screen. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--tt-font-body);
  font-size: var(--tt-fs-base);
  line-height: var(--tt-lh-body);
  color: var(--tt-ink);
  background: var(--tt-cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tt-font-head);
  line-height: var(--tt-lh-head);
  color: var(--tt-olive-darker);
  margin: 0 0 var(--tt-s-4);
  letter-spacing: -.015em;
  font-weight: 700;
}

h1 { font-size: var(--tt-fs-h1); line-height: var(--tt-lh-tight); }
h2 { font-size: var(--tt-fs-h2); }
h3 { font-size: var(--tt-fs-h3); }
h4 { font-size: var(--tt-fs-h4); font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 var(--tt-s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--tt-olive-deep); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--tt-olive-darker); }

ul, ol { margin: 0 0 var(--tt-s-4); padding-left: 1.35rem; }
li { margin-bottom: .35rem; }

strong, b { font-weight: 700; }

hr { border: 0; border-top: 1px solid var(--tt-line); margin: var(--tt-s-6) 0; }

/* Focus: always visible, always olive, never yellow */
:focus-visible {
  outline: 3px solid var(--tt-olive-deep);
  outline-offset: 3px;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.tt-sr {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.tt-skip {
  position: absolute; top: -100%; left: var(--tt-s-4); z-index: 999;
  background: var(--tt-olive-deep); color: #fff;
  padding: var(--tt-s-3) var(--tt-s-5);
  text-decoration: none; font-weight: 600;
}
.tt-skip:focus { top: var(--tt-s-4); color: #fff; }

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

.tt-measure { max-width: var(--tt-measure); }
.tt-center  { text-align: center; }
.tt-center .tt-measure { margin-inline: auto; }

.tt-lead {
  font-size: var(--tt-fs-lead);
  line-height: 1.5;
  color: var(--tt-ink-soft);
}

.tt-eyebrow {
  display: block;
  font-size: var(--tt-fs-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tt-olive-deep);
  margin-bottom: var(--tt-s-3);
}

.tt-stack > * + * { margin-top: var(--tt-s-4); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.tt-section { padding-block: var(--tt-section-y); }
.tt-section--tight { padding-block: clamp(2.25rem, 4vw, 3.5rem); }
.tt-section--sand  { background: var(--tt-sand); }
.tt-section--pale  { background: var(--tt-petal-pale); }

.tt-section--ink,
.tt-section--olive { color: #fff; }
.tt-section--ink   { background: var(--tt-ink); }
.tt-section--olive { background: var(--tt-olive-deep); }

.tt-section--ink h1, .tt-section--ink h2, .tt-section--ink h3, .tt-section--ink h4,
.tt-section--olive h1, .tt-section--olive h2, .tt-section--olive h3, .tt-section--olive h4 { color: #fff; }
.tt-section--ink .tt-lead, .tt-section--olive .tt-lead { color: rgba(255,255,255,.86); }
.tt-section--ink .tt-eyebrow, .tt-section--olive .tt-eyebrow { color: var(--tt-petal); }
.tt-section--ink a, .tt-section--olive a { color: #fff; }

.tt-section__head { margin-bottom: var(--tt-s-7); }
.tt-section__head--split {
  display: flex; flex-wrap: wrap; gap: var(--tt-s-4);
  align-items: baseline; justify-content: space-between;
}
.tt-section__head p { margin-bottom: 0; }

/* Squared divider rule, Maggie's-style section separation */
.tt-divider { border-top: 2px solid var(--tt-ink); margin: 0; }

/* ==========================================================================
   BUTTONS — squared, min 48px touch target
   ========================================================================== */

.tt-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--tt-s-2);
  min-height: 48px;
  padding: .8rem 1.6rem;
  font-family: var(--tt-font-body);
  font-size: var(--tt-fs-base);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background var(--tt-dur) var(--tt-ease),
              color var(--tt-dur) var(--tt-ease),
              border-color var(--tt-dur) var(--tt-ease);
}

.tt-btn--primary {
  background: var(--tt-olive-deep); color: #fff; border-color: var(--tt-olive-deep);
}
.tt-btn--primary:hover {
  background: var(--tt-olive-darker); border-color: var(--tt-olive-darker); color: #fff;
}

.tt-btn--secondary {
  background: transparent; color: var(--tt-olive-deep); border-color: var(--tt-olive-deep);
}
.tt-btn--secondary:hover {
  background: var(--tt-olive-deep); color: #fff;
}

.tt-btn--donate {
  background: var(--tt-donate); color: #fff; border-color: var(--tt-donate);
}
.tt-btn--donate:hover {
  background: var(--tt-donate-deep); border-color: var(--tt-donate-deep); color: #fff;
}

.tt-btn--light {
  background: #fff; color: var(--tt-olive-darker); border-color: #fff;
}
.tt-btn--light:hover { background: var(--tt-petal-pale); border-color: var(--tt-petal-pale); color: var(--tt-olive-darker); }

.tt-btn--ghost-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.7);
}
.tt-btn--ghost-light:hover { background: #fff; color: var(--tt-olive-darker); border-color: #fff; }

.tt-btn--lg { padding: 1.05rem 2.1rem; font-size: var(--tt-fs-lead); min-height: 56px; }
.tt-btn--sm { padding: .6rem 1.1rem; font-size: var(--tt-fs-sm); min-height: 44px; }
.tt-btn--block { display: flex; width: 100%; }

.tt-btns { display: flex; flex-wrap: wrap; gap: var(--tt-s-3); }

/* Arrow link — the dominant link pattern on maggies.org */
.tt-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; text-decoration: none;
  color: var(--tt-olive-deep);
  min-height: 44px;
}
.tt-arrow::after {
  content: ""; flex: none;
  width: 1.5rem; height: 1.5rem;
  background: currentColor;
  transition: transform var(--tt-dur) var(--tt-ease);
  -webkit-mask: var(--tt-arrow-mask) no-repeat center / contain;
          mask: var(--tt-arrow-mask) no-repeat center / contain;
}
:root {
  --tt-arrow-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 11h13.2l-5.1-5.1L13.5 4.5 21 12l-7.5 7.5-1.4-1.4 5.1-5.1H4z'/%3E%3C/svg%3E");
}
.tt-arrow:hover { text-decoration: underline; }
.tt-arrow:hover::after { transform: translateX(4px); }
.tt-arrow--light { color: #fff; }

/* ==========================================================================
   HEADER + NAV
   ========================================================================== */

.tt-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--tt-cream);
  border-bottom: 2px solid var(--tt-ink);
}

.tt-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--tt-s-5);
  min-height: 88px;
  padding-block: var(--tt-s-3);
}

.tt-logo { display: block; flex: none; text-decoration: none; }
.tt-logo img { height: 66px; width: auto; }

.tt-nav { display: flex; align-items: center; gap: var(--tt-s-5); }

.tt-nav__list {
  display: flex; align-items: center; gap: var(--tt-s-5);
  list-style: none; margin: 0; padding: 0;
}
.tt-nav__list li { margin: 0; }

.tt-nav__link {
  display: inline-flex; align-items: center;
  min-height: 48px;
  font-weight: 600;
  color: var(--tt-ink);
  text-decoration: none;
  border-bottom: 4px solid transparent;
  padding-top: 4px;
}
.tt-nav__link:hover { color: var(--tt-olive-deep); border-bottom-color: var(--tt-petal); }
/* Active state pairs a petal underline WITH olive text + aria-current,
   because petal alone fails contrast and cannot carry meaning */
.tt-nav__link[aria-current="page"] {
  color: var(--tt-olive-deep);
  border-bottom-color: var(--tt-petal);
}

.tt-burger {
  display: none; align-items: center; gap: var(--tt-s-2);
  background: transparent; border: 2px solid var(--tt-ink);
  border-radius: 0;
  padding: .6rem 1rem; min-height: 48px;
  font-family: inherit; font-size: var(--tt-fs-sm); font-weight: 700;
  color: var(--tt-ink); cursor: pointer;
}
.tt-burger__icon { position: relative; width: 20px; height: 14px; display: block; }
.tt-burger__icon span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--tt-ink); transition: var(--tt-dur);
}
.tt-burger__icon span:nth-child(1) { top: 0; }
.tt-burger__icon span:nth-child(2) { top: 6px; }
.tt-burger__icon span:nth-child(3) { top: 12px; }
.tt-burger[aria-expanded="true"] .tt-burger__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tt-burger[aria-expanded="true"] .tt-burger__icon span:nth-child(2) { opacity: 0; }
.tt-burger[aria-expanded="true"] .tt-burger__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.tt-drawer {
  display: none;
  border-top: 2px solid var(--tt-ink);
  background: var(--tt-cream);
  padding-block: var(--tt-s-5);
}
.tt-drawer.is-open { display: block; }
.tt-drawer__list { list-style: none; margin: 0 0 var(--tt-s-5); padding: 0; }
.tt-drawer__list li { margin: 0; border-bottom: 1px solid var(--tt-line); }
.tt-drawer__list a {
  display: block; padding: var(--tt-s-4) 0;
  font-size: var(--tt-fs-lead); font-weight: 600;
  color: var(--tt-ink); text-decoration: none;
}
.tt-drawer__list a:hover { color: var(--tt-olive-deep); }

@media (max-width: 900px) {
  .tt-nav__list { display: none; }
  .tt-burger { display: inline-flex; }
  .tt-logo img { height: 54px; }
  .tt-header__bar { min-height: 72px; }
}

/* ==========================================================================
   HERO — maggies.org pattern: photo, scrim, big uppercase display line
   ========================================================================== */

.tt-hero {
  position: relative;
  background: var(--tt-ink);
  color: #fff;
  min-height: clamp(30rem, 62vh, 44rem);
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.tt-hero__media {
  position: absolute; inset: 0;
}
.tt-hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
/* Fixed scrim guarantees AA on the text whatever photo is swapped in */
.tt-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(31,36,21,.90) 0%,
    rgba(31,36,21,.72) 34%,
    rgba(31,36,21,.42) 62%,
    rgba(31,36,21,.28) 100%);
}
.tt-hero__inner {
  position: relative; z-index: 1;
  width: 100%;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.tt-hero__title {
  font-size: var(--tt-fs-hero);
  line-height: var(--tt-lh-tight);
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 var(--tt-s-3);
  font-weight: 800;
}
.tt-hero__sub {
  font-size: var(--tt-fs-lead);
  line-height: 1.4;
  color: #fff;
  max-width: 34ch;
  margin: 0 0 var(--tt-s-6);
  font-weight: 500;
}
.tt-hero .tt-eyebrow { color: var(--tt-petal); }

/* Page hero for inner pages */
.tt-pagehero {
  background: var(--tt-sand);
  border-bottom: 2px solid var(--tt-ink);
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
  position: relative; overflow: hidden;
}
.tt-pagehero h1 { margin-bottom: var(--tt-s-4); }
.tt-pagehero .tt-lead { max-width: 60ch; margin-bottom: 0; }

.tt-pagehero--photo {
  background: var(--tt-ink); color: #fff; border-bottom: 0;
  min-height: clamp(20rem, 38vh, 28rem);
  display: flex; align-items: flex-end;
}
.tt-pagehero--photo h1 { color: #fff; }
.tt-pagehero--photo .tt-lead { color: rgba(255,255,255,.9); }
.tt-pagehero--photo .tt-eyebrow { color: var(--tt-petal); }
.tt-pagehero__media { position: absolute; inset: 0; }
.tt-pagehero__media img { width: 100%; height: 100%; object-fit: cover; }
.tt-pagehero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31,36,21,.90) 0%, rgba(31,36,21,.55) 60%, rgba(31,36,21,.35) 100%);
}
.tt-pagehero__inner { position: relative; z-index: 1; width: 100%; }

/* ==========================================================================
   ACTION CARDS — the two prominent routes, overlapping the hero
   ========================================================================== */

.tt-actions {
  display: grid; gap: 2px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--tt-ink);
  border: 2px solid var(--tt-ink);
}
.tt-actions--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tt-actions--overlap {
  position: relative;
  margin-top: clamp(-5rem, -6vw, -2.5rem);
  z-index: 2;
}

.tt-action {
  background: var(--tt-cream);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; gap: var(--tt-s-3);
  text-decoration: none; color: var(--tt-ink);
  transition: background var(--tt-dur) var(--tt-ease);
}
.tt-action:hover { background: var(--tt-petal-pale); color: var(--tt-ink); }
.tt-action h3 { margin: 0; }
.tt-action p { margin: 0; color: var(--tt-ink-soft); flex: 1; }
.tt-action .tt-arrow { margin-top: var(--tt-s-2); }
.tt-action--accent { background: var(--tt-petal-pale); }
.tt-action--accent:hover { background: var(--tt-petal-light); }

@media (max-width: 760px) {
  .tt-actions, .tt-actions--3 { grid-template-columns: 1fr; }
  .tt-actions--overlap { margin-top: 0; }
}

/* ==========================================================================
   QUICK LINK GRID — "Find information and support that's right for you"
   ========================================================================== */

.tt-quicklinks {
  display: grid; gap: 2px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--tt-line-strong);
  border: 2px solid var(--tt-ink);
  list-style: none; margin: 0; padding: 0;
}
.tt-quicklinks li { margin: 0; }
.tt-quicklink {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--tt-s-3);
  background: #fff;
  padding: var(--tt-s-5);
  min-height: 88px;
  font-weight: 700; font-size: var(--tt-fs-base);
  color: var(--tt-ink); text-decoration: none;
  height: 100%;
  transition: background var(--tt-dur) var(--tt-ease);
}
.tt-quicklink:hover { background: var(--tt-petal-pale); color: var(--tt-olive-darker); }
.tt-quicklink::after {
  content: ""; flex: none; width: 1.35rem; height: 1.35rem;
  background: var(--tt-olive-deep);
  -webkit-mask: var(--tt-arrow-mask) no-repeat center / contain;
          mask: var(--tt-arrow-mask) no-repeat center / contain;
}

@media (max-width: 860px) { .tt-quicklinks { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .tt-quicklinks { grid-template-columns: 1fr; } }

/* ==========================================================================
   GRIDS
   ========================================================================== */

.tt-grid { display: grid; gap: var(--tt-s-6); }
.tt-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tt-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) { .tt-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 860px) { .tt-grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 700px) {
  .tt-grid--2, .tt-grid--3, .tt-grid--4 { grid-template-columns: 1fr; }
}

.tt-split {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}
.tt-split--media-right { direction: ltr; }
@media (max-width: 860px) { .tt-split { grid-template-columns: 1fr; } }

/* ==========================================================================
   CARDS — squared, hard-edged
   ========================================================================== */

.tt-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 2px solid var(--tt-ink);
  text-decoration: none; color: var(--tt-ink);
  height: 100%;
  transition: transform var(--tt-dur) var(--tt-ease);
}
a.tt-card:hover { transform: translateY(-3px); color: var(--tt-ink); }

.tt-card__media { position: relative; aspect-ratio: 3/2; overflow: hidden; border-bottom: 2px solid var(--tt-ink); }
.tt-card__media img { width: 100%; height: 100%; object-fit: cover; }
.tt-card__body { padding: var(--tt-s-5); display: flex; flex-direction: column; gap: var(--tt-s-3); flex: 1; }
.tt-card__body h3 { margin: 0; }
.tt-card__body p { margin: 0; color: var(--tt-ink-soft); flex: 1; }
.tt-card__meta { font-size: var(--tt-fs-sm); color: var(--tt-ink-soft); }

.tt-tag {
  display: inline-block; align-self: flex-start;
  padding: .3rem .7rem;
  background: var(--tt-petal-pale);
  border: 1px solid var(--tt-petal-deep);
  font-size: var(--tt-fs-xs); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--tt-olive-darker);
}

/* ==========================================================================
   STATISTICS — oversized figures, maggies.org style
   ========================================================================== */

.tt-stats {
  display: grid; gap: var(--tt-s-7);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 980px) { .tt-stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .tt-stats { grid-template-columns: 1fr; } }

/* Each statistic sits on a hairline rule above it, the way maggies.org
   separates its "Thanks to you" figures. The rule is dropped on the first
   item of each row by the grid, so we use a top border on every cell and
   let the section padding absorb the first one. */
.tt-stat {
  padding-top: var(--tt-s-5);
  border-top: 2px solid rgba(255,255,255,.28);
}
.tt-section--sand .tt-stat,
.tt-section--pale .tt-stat,
.tt-section--cream .tt-stat { border-top-color: var(--tt-line-strong); }

.tt-stat__figure {
  display: block;
  font-family: var(--tt-font-head);
  font-size: var(--tt-fs-stat);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--tt-petal);
  margin-bottom: var(--tt-s-3);
}
.tt-stat__label {
  display: block;
  font-size: var(--tt-fs-base);
  line-height: 1.45;
  color: rgba(255,255,255,.9);
  max-width: 24ch;
}
.tt-section--sand .tt-stat__figure,
.tt-section--pale .tt-stat__figure { color: var(--tt-olive-deep); }
.tt-section--sand .tt-stat__label,
.tt-section--pale .tt-stat__label { color: var(--tt-ink-soft); }

/* ==========================================================================
   PANELS
   ========================================================================== */

.tt-panel {
  background: #fff;
  border: 2px solid var(--tt-ink);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.tt-panel--pale  { background: var(--tt-petal-pale); }
.tt-panel--sand  { background: var(--tt-sand); }
.tt-panel--quiet { background: transparent; border: 1px solid var(--tt-line-strong); }
.tt-panel h2, .tt-panel h3 { margin-top: 0; }

.tt-notice {
  border-left: 6px solid var(--tt-olive-deep);
  background: var(--tt-sand);
  padding: var(--tt-s-5);
}
.tt-notice--donate { border-left-color: var(--tt-donate); background: #FDF4EE; }
.tt-notice h3, .tt-notice h4 { margin-top: 0; }

/* ==========================================================================
   CONTACT LIST — rule-separated, as on maggies.org
   ========================================================================== */

.tt-contact-list { list-style: none; margin: 0; padding: 0; }
.tt-contact-list li {
  margin: 0;
  padding-block: var(--tt-s-5);
  border-top: 1px solid var(--tt-line);
}
.tt-contact-list li:first-child { border-top: 0; padding-top: 0; }
.tt-contact-list li:last-child { padding-bottom: 0; }
.tt-contact-list strong { display: block; font-size: var(--tt-fs-h4); margin-bottom: .35rem; }
.tt-section--olive .tt-contact-list li { border-top-color: rgba(255,255,255,.3); }

/* ==========================================================================
   STEPS
   ========================================================================== */

.tt-steps { counter-reset: step; display: grid; gap: var(--tt-s-6); }
.tt-step {
  counter-increment: step;
  position: relative;
  padding-left: 5rem;
}
.tt-step::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 3.5rem; height: 3.5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--tt-petal);
  font-family: var(--tt-font-head);
  font-size: 1.5rem; font-weight: 800;
  color: var(--tt-ink);
}
.tt-step h3 { margin-bottom: var(--tt-s-2); }
@media (max-width: 560px) {
  .tt-step { padding-left: 0; padding-top: 4.25rem; }
}

/* ==========================================================================
   QUOTES
   ========================================================================== */

.tt-quote {
  background: var(--tt-petal-pale);
  border-left: 6px solid var(--tt-olive-deep);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  margin: 0;
}
.tt-quote blockquote {
  margin: 0 0 var(--tt-s-4);
  font-size: var(--tt-fs-lead);
  line-height: 1.5;
  font-weight: 500;
  color: var(--tt-ink);
}
.tt-quote figcaption { font-size: var(--tt-fs-sm); font-weight: 700; color: var(--tt-olive-darker); }

/* ==========================================================================
   FORMS — squared
   ========================================================================== */

.tt-form { display: grid; gap: var(--tt-s-5); }
.tt-field { display: grid; gap: var(--tt-s-2); }
.tt-label { font-weight: 700; font-size: var(--tt-fs-sm); }
.tt-hint { font-size: var(--tt-fs-sm); color: var(--tt-ink-soft); }

.tt-input,
select.tt-input,
textarea.tt-input {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  font-family: inherit; font-size: var(--tt-fs-base); color: var(--tt-ink);
  background: #fff;
  border: 2px solid var(--tt-line-strong);
  border-radius: 0;
}
textarea.tt-input { min-height: 8rem; resize: vertical; }
.tt-input:focus { border-color: var(--tt-olive-deep); outline: 3px solid var(--tt-olive-deep); outline-offset: 1px; }

.tt-check { display: flex; gap: var(--tt-s-3); align-items: flex-start; }
.tt-check input { margin-top: .3rem; width: 20px; height: 20px; flex: none; accent-color: var(--tt-olive-deep); }

/* Donation amounts — fixed 4-col, never auto-fit (auto-fit wrapped 3+1) */
.tt-amounts {
  display: grid; gap: var(--tt-s-4);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 780px) { .tt-amounts { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.tt-amount { position: relative; }
.tt-amount input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tt-amount label {
  display: flex; flex-direction: column; gap: var(--tt-s-2);
  height: 100%;
  padding: var(--tt-s-5);
  background: #fff;
  border: 2px solid var(--tt-line-strong);
  cursor: pointer;
  transition: border-color var(--tt-dur) var(--tt-ease), background var(--tt-dur) var(--tt-ease);
}
.tt-amount label:hover { border-color: var(--tt-olive-deep); }
.tt-amount__sum { font-family: var(--tt-font-head); font-size: 1.75rem; font-weight: 800; color: var(--tt-olive-darker); }
.tt-amount__what { font-size: var(--tt-fs-sm); color: var(--tt-ink-soft); }
.tt-amount input:checked + label { border-color: var(--tt-olive-deep); background: var(--tt-petal-pale); border-width: 3px; }
.tt-amount input:focus-visible + label { outline: 3px solid var(--tt-olive-deep); outline-offset: 2px; }

.tt-toggle {
  display: inline-flex; border: 2px solid var(--tt-ink); background: #fff;
}
.tt-toggle button {
  padding: .8rem 1.5rem; min-height: 48px;
  font-family: inherit; font-size: var(--tt-fs-base); font-weight: 700;
  background: transparent; border: 0; cursor: pointer; color: var(--tt-ink);
}
.tt-toggle button[aria-pressed="true"] { background: var(--tt-olive-deep); color: #fff; }

/* Filter buttons */
.tt-filters { display: flex; flex-wrap: wrap; gap: var(--tt-s-3); }
.tt-filter {
  padding: .6rem 1.1rem; min-height: 44px;
  font-family: inherit; font-size: var(--tt-fs-sm); font-weight: 700;
  background: #fff; color: var(--tt-ink);
  border: 2px solid var(--tt-line-strong);
  cursor: pointer;
}
.tt-filter:hover { border-color: var(--tt-olive-deep); }
.tt-filter[aria-pressed="true"] { background: var(--tt-olive-deep); border-color: var(--tt-olive-deep); color: #fff; }

/* ==========================================================================
   ACCORDION
   ========================================================================== */

.tt-accordion { border-top: 2px solid var(--tt-ink); }
.tt-accordion__item { border-bottom: 1px solid var(--tt-line); }
.tt-accordion__btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--tt-s-4);
  width: 100%; padding: var(--tt-s-5) 0;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--tt-font-head); font-size: var(--tt-fs-h4); font-weight: 700;
  color: var(--tt-olive-darker); text-align: left;
}
.tt-accordion__btn::after {
  content: ""; flex: none; width: 1.25rem; height: 1.25rem;
  background: var(--tt-olive-deep);
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 4h2v16h-2z'/%3E%3Cpath d='M4 11h16v2H4z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 4h2v16h-2z'/%3E%3Cpath d='M4 11h16v2H4z'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform var(--tt-dur) var(--tt-ease);
}
.tt-accordion__btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.tt-accordion__panel { padding-bottom: var(--tt-s-5); max-width: var(--tt-measure); }
.tt-accordion__panel[hidden] { display: none; }

/* ==========================================================================
   VIDEO
   ========================================================================== */

.tt-video {
  position: relative; aspect-ratio: 16/9;
  background: var(--tt-ink);
  border: 2px solid var(--tt-ink);
  overflow: hidden;
}
.tt-video img { width: 100%; height: 100%; object-fit: cover; }
.tt-video__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(31,36,21,.3); border: 0; cursor: pointer;
}
.tt-video__play span {
  display: flex; align-items: center; gap: var(--tt-s-3);
  background: var(--tt-cream); color: var(--tt-olive-darker);
  padding: .9rem 1.5rem; font-weight: 700; font-size: var(--tt-fs-base);
}
.tt-video__play:hover span { background: var(--tt-petal); }

/* ==========================================================================
   TIMELINE
   ========================================================================== */

.tt-timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--tt-petal); }
.tt-timeline li { margin: 0; padding: 0 0 var(--tt-s-6) var(--tt-s-6); position: relative; }
.tt-timeline li::before {
  content: ""; position: absolute; left: -11px; top: .4rem;
  width: 19px; height: 19px; background: var(--tt-olive-deep);
}
.tt-timeline li:last-child { padding-bottom: 0; }
.tt-timeline__date { display: block; font-size: var(--tt-fs-sm); font-weight: 700; color: var(--tt-olive-deep); margin-bottom: .25rem; }
.tt-timeline h3 { margin-bottom: var(--tt-s-2); }

/* ==========================================================================
   PEOPLE — squared portraits
   ========================================================================== */

.tt-person { display: flex; flex-direction: column; gap: var(--tt-s-3); }
.tt-person__photo {
  aspect-ratio: 1;
  border: 2px solid var(--tt-ink);
  background: var(--tt-sand);
  overflow: hidden;
}
.tt-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.tt-person h3 { margin: 0; }
.tt-person__role { font-size: var(--tt-fs-sm); font-weight: 700; color: var(--tt-olive-deep); }
.tt-person p { margin: 0; color: var(--tt-ink-soft); font-size: var(--tt-fs-sm); }

/* ==========================================================================
   FLOWER MOTIF — decorative only
   ========================================================================== */

.tt-flower-bullets { list-style: none; padding-left: 0; }
.tt-flower-bullets li {
  position: relative; padding-left: 2.25rem; margin-bottom: var(--tt-s-4);
}
.tt-flower-bullets li::before {
  content: ""; position: absolute; left: 0; top: .15em;
  width: 1.4rem; height: 1.4rem;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23ECD15C' stroke='%23D3CC48' stroke-width='.5'%3E%3Cellipse cx='12' cy='5.5' rx='3.6' ry='4.4'/%3E%3Cellipse cx='18.5' cy='10.5' rx='4.4' ry='3.6'/%3E%3Cellipse cx='16' cy='18' rx='3.9' ry='4.1'/%3E%3Cellipse cx='8' cy='18' rx='3.9' ry='4.1'/%3E%3Cellipse cx='5.5' cy='10.5' rx='4.4' ry='3.6'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='3.1' fill='%23BDBE35'/%3E%3C/svg%3E") no-repeat center / contain;
}

.tt-watermark {
  position: absolute; pointer-events: none; user-select: none;
  opacity: .06; z-index: 0;
}
.tt-watermark img { width: 100%; height: auto; }
.tt-watermark--right {
  right: clamp(-4rem, -3vw, -1rem); top: 50%; transform: translateY(-50%);
  width: clamp(14rem, 26vw, 26rem); aspect-ratio: 212/462;
}

/* ==========================================================================
   DONATE BAND
   ========================================================================== */

.tt-donate-band { background: var(--tt-olive-deep); color: #fff; }
.tt-donate-band__inner {
  display: flex; flex-wrap: wrap; gap: var(--tt-s-6);
  align-items: center; justify-content: space-between;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.tt-donate-band h2 { color: #fff; margin-bottom: var(--tt-s-3); }
.tt-donate-band p { color: rgba(255,255,255,.9); margin: 0; max-width: 52ch; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.tt-footer {
  background: var(--tt-ink); color: rgba(255,255,255,.82);
  padding-block: var(--tt-s-8) var(--tt-s-6);
  font-size: var(--tt-fs-sm);
}
.tt-footer__grid {
  display: grid; gap: var(--tt-s-6);
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  padding-bottom: var(--tt-s-7);
}
@media (max-width: 980px) { .tt-footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .tt-footer__grid { grid-template-columns: 1fr; } }

.tt-footer h2, .tt-footer h3 { color: #fff; font-size: var(--tt-fs-h4); margin-bottom: var(--tt-s-4); }
.tt-footer a { color: #fff; text-decoration: none; }
.tt-footer a:hover { color: var(--tt-petal); text-decoration: underline; }
.tt-footer ul { list-style: none; margin: 0; padding: 0; }
.tt-footer li { margin-bottom: var(--tt-s-3); }
.tt-footer__logo img { height: 84px; width: auto; margin-bottom: var(--tt-s-4); }

.tt-footer__social { display: flex; gap: var(--tt-s-3); }
.tt-footer__social a {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,.5);
}
.tt-footer__social a:hover { background: #fff; border-color: #fff; }
.tt-footer__social svg { width: 20px; height: 20px; fill: currentColor; }
.tt-footer__social a:hover svg { fill: var(--tt-ink); }

.tt-footer__legal {
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: var(--tt-s-5);
  display: flex; flex-wrap: wrap; gap: var(--tt-s-4) var(--tt-s-6);
  justify-content: space-between;
  font-size: var(--tt-fs-xs);
  color: rgba(255,255,255,.7);
}
.tt-footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--tt-s-4); }
.tt-footer__legal li { margin: 0; }

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .tt-header, .tt-drawer, .tt-burger, .tt-donate-band, .tt-skip, .tt-watermark { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .tt-section { padding-block: 1.5rem; }
  .tt-hero, .tt-pagehero--photo { background: #fff; color: #000; min-height: auto; }
  .tt-hero__media, .tt-pagehero__media { display: none; }
  .tt-hero__title, .tt-hero__sub, .tt-pagehero--photo h1 { color: #000; }
  a { text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .tt-card, .tt-panel { break-inside: avoid; }
}
