/* =========================================================
   TRAPEZIUM COMMUNITY — Housing Cooperative & International
   Forum on Social Housing + Environmental Health
   Typography: Outfit (throughout)
   Direction: quiet-luxury editorial · warm bone paper ·
   forest green · antique gold · film grain · real photography
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800&display=swap');

:root {
  /* Surfaces — warm bone / parchment */
  --paper:     #F5F1E8;
  --paper-2:   #EEE8DA;
  --paper-3:   #E7E0CF;
  --surface:   #FCFBF6;
  --sand:      #ECE5D5;

  /* Ink */
  --ink:       #16221C;
  --ink-soft:  #36453D;
  --muted:     #5C6A60;
  --muted-2:   #8B948A;

  /* Forest (deep green bands) */
  --forest:    #0E2B20;
  --forest-2:  #0A2018;
  --forest-3:  #12352A;

  /* Lines */
  --line:      rgba(22,34,28,0.13);
  --line-soft: rgba(22,34,28,0.08);
  --hair:      rgba(168,121,46,0.30);   /* gold hairline */
  --line-dk:   rgba(255,255,255,0.14);

  /* Accent — emerald primary + antique gold */
  --green:      #1C6E4F;
  --green-deep: #134B36;
  --green-dk:   #228563;
  --green-soft: rgba(28,110,79,0.09);

  --gold:       #A8792E;
  --gold-2:     #BE9244;
  --gold-soft:  #D2B070;
  --gold-bg:    rgba(168,121,46,0.13);

  --shadow-sm: 0 2px 6px rgba(20,40,30,0.05), 0 14px 40px rgba(20,40,30,0.07);
  --shadow-md: 0 30px 70px rgba(16,40,30,0.14);
  --shadow-lg: 0 50px 120px rgba(12,35,25,0.22);
  --shadow-green: 0 18px 44px rgba(15,55,40,0.30);

  --maxw: 1280px;
  --r:    14px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Photographic blocks — forest wash unifies all imagery into one palette */
  --wash: linear-gradient(155deg, rgba(14,43,32,0.30), rgba(10,32,24,0.62));
  --wash-deep: linear-gradient(155deg, rgba(14,43,32,0.55), rgba(10,32,24,0.80));
  --u: 'q=80&w=1500&auto=format&fit=crop';
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.1px;
  overflow-x: hidden;
}

/* Film-grain overlay — tactile luxury texture across the whole site */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 30px; }

/* ---------- Typography — editorial, light-weight display ---------- */
h1, h2, h3, h4 { color: var(--ink); }
h1 {
  font-size: clamp(2.7rem, 6.6vw, 5.2rem);
  font-weight: 300; line-height: 1.02; letter-spacing: -0.035em;
}
h1 em { font-style: normal; font-weight: 500; color: var(--green); }
h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 300; line-height: 1.06; letter-spacing: -0.03em;
}
h2 em { font-style: normal; font-weight: 500; color: var(--green); }
h3 { font-size: 1.32rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
h3 em { font-style: normal; color: var(--green); }
strong { font-weight: 600; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: ""; width: 30px; height: 1px;
  background: var(--gold); display: inline-block; opacity: 0.7;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 30px; height: 1px; background: var(--gold); display: inline-block; opacity: 0.7; }
.eyebrow.on-dark { color: var(--gold-soft); }
.eyebrow.on-dark::before, .eyebrow.on-dark::after { background: var(--gold-soft); opacity: 0.8; }

.lead { font-size: 1.18rem; color: var(--muted); font-weight: 400; line-height: 1.8; }
.accent { color: var(--green); }
.ink-accent { position: relative; white-space: nowrap; font-weight: 500; color: var(--green); }
.ink-accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.04em; height: 1px;
  background: var(--gold); opacity: 0.6;
}
.serif-i { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: inherit; font-weight: 500; font-size: 0.96rem;
  padding: 16px 30px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s, border-color .3s;
  letter-spacing: 0.2px;
}
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-green); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 24px 54px rgba(15,55,40,0.4); background: var(--green-deep); }

.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 18px 44px rgba(168,121,46,0.32); }
.btn-gold:hover { transform: translateY(-3px); background: #946a26; box-shadow: 0 24px 54px rgba(168,121,46,0.4); }

.btn-dark { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.45); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-3px); }

.btn-lg { padding: 19px 38px; font-size: 1rem; }

/* Text link with gold underline reveal */
.tlink { font-weight: 500; color: var(--green); display: inline-flex; align-items: center; gap: 8px; position: relative; }
.tlink .arr { transition: transform .35s var(--ease); }
.tlink:hover .arr { transform: translateX(5px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s, padding .4s var(--ease);
  padding: 22px 0;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(245,241,232,0.85);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 8px 40px rgba(20,40,30,0.07);
  padding: 14px 0;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
/* Wordmark logotype — the business name set as the logo, no graphic */
.brand { display: inline-flex; align-items: baseline; gap: 9px; color: var(--ink); }
.brand-name { display: inline-flex; align-items: baseline; gap: 9px; line-height: 1; }
.brand-name b {
  font-weight: 600; font-size: 1.42rem; letter-spacing: -0.035em; color: var(--ink);
}
.brand-name b::after {
  content: "."; color: var(--gold); font-weight: 600;
}
.brand-name span {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); align-self: center; padding-left: 11px; border-left: 1px solid var(--hair);
}
.nav.scrolled .brand-name b { font-size: 1.34rem; }

.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav-links > a { padding: 9px 12px; border-radius: 100px; font-weight: 400; font-size: 0.92rem; color: var(--ink-soft); transition: color .25s, background .25s; white-space: nowrap; }
.nav-links > a:hover { color: var(--green); }
.nav-links > a.active { color: var(--green); font-weight: 500; }
.nav-cta { margin-left: 8px; background: var(--ink); color: #fff !important; padding: 11px 18px !important; border-radius: 100px; font-weight: 500 !important; font-size: 0.9rem; transition: background .3s, transform .3s !important; white-space: nowrap; }
.nav-cta:hover { background: var(--green) !important; transform: translateY(-2px); }

.menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-btn span { width: 24px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: .3s; }

.mobile-panel {
  position: fixed; inset: 0; z-index: 200;
  background: var(--forest);
  background-image: linear-gradient(160deg, rgba(10,32,24,0.92), rgba(14,43,32,0.96)),
                    url('/assets/img/multicultural-team.jpg');
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: flex-start;
  gap: 0; padding: 84px 28px 32px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateX(100%); transition: transform .5s var(--ease); visibility: hidden;
}
.mobile-panel.open { transform: translateX(0); visibility: visible; }
.mobile-panel a {
  color: #fff; font-size: 1.18rem; font-weight: 400;
  letter-spacing: -0.005em;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  display: block;
}
.mobile-panel a:last-child {
  border: none; margin-top: 22px;
  background: var(--gold); text-align: center; border-radius: 100px;
  padding: 16px; font-size: 1rem; font-weight: 500;
  box-shadow: 0 14px 34px rgba(168,121,46,0.32);
}
.mobile-panel .close {
  position: absolute; top: 22px; right: 22px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background .25s;
}
.mobile-panel .close:hover { background: rgba(255,255,255,0.16); }

/* Brand wordmark inside the open mobile panel */
.mobile-panel .mobile-brand {
  position: absolute; top: 26px; left: 26px;
  display: inline-flex !important; align-items: baseline;
  padding: 0 !important; margin: 0 !important; border: none !important;
  font-size: inherit;
  background: none !important;
}
.mobile-panel .mobile-brand .brand-name {
  display: inline-flex; align-items: baseline; gap: 10px; line-height: 1;
}
.mobile-panel .mobile-brand .brand-name b {
  color: #ffffff !important;
  font-size: 1.22rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
}
.mobile-panel .mobile-brand .brand-name b::after {
  content: ".";
  color: var(--gold-soft) !important;
  font-weight: 600;
}
.mobile-panel .mobile-brand .brand-name span {
  color: var(--gold-soft) !important;
  font-size: 0.58rem !important;
  letter-spacing: 0.26em !important;
  text-transform: uppercase;
  padding-left: 10px !important;
  border-left: 1px solid rgba(210,176,112,0.42) !important;
  white-space: nowrap;
  align-self: center;
}

/* ---------- Hero — editorial split ---------- */
.hero { position: relative; padding: 180px 0 100px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -15%; right: 30%; width: 50%; height: 70%;
  background: radial-gradient(circle at 60% 40%, var(--green-soft), transparent 68%); z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 64px; align-items: center; }
.hero-copy { max-width: 640px; }
.hero h1 { margin: 26px 0 26px; }
.hero .lead { max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 38px 0 0; }

.hero-stats { display: flex; gap: 0; margin-top: 48px; border-top: 1px solid var(--line); padding-top: 26px; }
.hero-stats .t { flex: 1; padding-right: 20px; position: relative; }
.hero-stats .t + .t { padding-left: 26px; border-left: 1px solid var(--line); }
.hero-stats .t b { font-size: 2rem; font-weight: 300; letter-spacing: -0.04em; color: var(--ink); display: block; white-space: nowrap; }
.hero-stats .t b .gold { color: var(--gold); font-weight: 400; }
.hero-stats .t > span { font-size: 0.8rem; color: var(--muted); margin-top: 4px; display: block; letter-spacing: 0.01em; }

/* Hero visual — framed photograph + floating card */
.hero-visual { position: relative; }
.hero-frame { position: relative; padding: 14px; }
.hero-frame::before {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--hair); border-radius: calc(var(--r-lg) + 12px);
  pointer-events: none;
}
.hero-card { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/4.7; }
.hero-photo {
  width: 100%; height: 100%;
  background-image: var(--wash), url('/assets/img/community-discussion.jpg');
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 32px;
  transition: transform 1.4s var(--ease);
}
.hero-card:hover .hero-photo { transform: scale(1.05); }
.hero-photo .pc { color: #fff; }
.hero-photo .pc .eyebrow { color: var(--gold-soft); }
.hero-photo .pc .eyebrow::before { background: var(--gold-soft); }
.hero-photo .pc h3 { color: #fff; font-size: 1.6rem; font-weight: 400; margin-top: 14px; letter-spacing: -0.02em; }
.hero-photo .pc p { color: rgba(255,255,255,0.85); font-size: 0.96rem; margin-top: 8px; }

.chip {
  position: absolute; display: flex; align-items: center; gap: 13px;
  background: rgba(252,251,246,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-soft); border-radius: 16px;
  padding: 14px 18px; box-shadow: var(--shadow-md);
}
.chip.tl { top: 36px; left: -22px; }
.chip.br { bottom: 44px; right: -20px; }
.chip .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--green-soft); display: grid; place-items: center; flex: none; }
.chip .ic svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 1.6; }
.chip b { display: block; font-size: 0.94rem; font-weight: 600; }
.chip span { display: block; font-size: 0.76rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { position: relative; padding: 110px 0; }
.section.tight { padding: 76px 0; }
.bg-surface { background: var(--surface); }
.bg-paper-2 { background: var(--paper-2); }
.bg-sand { background: var(--sand); }
.bg-forest { background: var(--forest); color: #fff; position: relative; }
.bg-forest::before {
  content: ""; position: absolute; inset: 0; opacity: 0.10; pointer-events: none;
  background-image: var(--wash-deep), url('/assets/img/community-discussion.jpg');
  background-size: cover; background-position: center;
}
.bg-forest > * { position: relative; z-index: 1; }
.bg-forest h1, .bg-forest h2, .bg-forest h3 { color: #fff; }
.bg-forest .lead { color: rgba(255,255,255,0.8); }

.section-head { max-width: 740px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 20px 0 20px; }
.section-head .lead { margin: 0; }

/* Oversized editorial section index numeral */
.sec-index { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }

/* ---------- Pillars (Glocal) ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pillar {
  position: relative; border-radius: var(--r-lg); padding: 44px 40px;
  background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.pillar.dark { background: linear-gradient(160deg, var(--forest-3), var(--forest-2)); border-color: transparent; }
.pillar.dark::before {
  content: ""; position: absolute; inset: 0; opacity: 0.14; pointer-events: none;
  background-image: var(--wash-deep), url('/assets/img/family-celebration.jpg');
  background-size: cover; background-position: center;
}
.pillar.dark > * { position: relative; z-index: 1; }
.pillar.dark h3, .pillar.dark .p-lead { color: #fff; }
.pillar.dark p { color: rgba(255,255,255,0.78); }
.pillar.dark .p-ic { background: rgba(255,255,255,0.10); border-color: rgba(210,176,112,0.4); }
.pillar.dark .p-ic svg { stroke: var(--gold-soft); }
.pillar .p-tag { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); }
.pillar.dark .p-tag { color: var(--gold-soft); }
.pillar .p-ic { width: 58px; height: 58px; border-radius: 15px; background: var(--green-soft); border: 1px solid var(--hair); display: grid; place-items: center; margin: 20px 0 22px; }
.pillar .p-ic svg { width: 28px; height: 28px; stroke: var(--green); fill: none; stroke-width: 1.5; }
.pillar h3 { font-size: 1.7rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 14px; }
.pillar p { color: var(--muted); }
.pillar .p-list { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.pillar .p-list li { display: flex; gap: 12px; font-size: 0.96rem; color: var(--ink-soft); align-items: flex-start; }
.pillar.dark .p-list li { color: rgba(255,255,255,0.85); }
.pillar .p-list svg { width: 16px; height: 16px; flex: none; stroke: var(--gold); fill: none; stroke-width: 2.4; margin-top: 4px; }
.pillar.dark .p-list svg { stroke: var(--gold-soft); }

/* ---------- Cards grid ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.feature-card {
  position: relative; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 38px 32px; box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
  overflow: hidden;
}
.feature-card::after {
  content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease); opacity: 0.6;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--line); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-card .num { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; color: var(--gold); }
.feature-card .ic-wrap { width: 56px; height: 56px; border-radius: 15px; background: var(--green-soft); border: 1px solid var(--hair); display: grid; place-items: center; margin: 16px 0 20px; }
.feature-card .ic-wrap svg { width: 27px; height: 27px; stroke: var(--green); fill: none; stroke-width: 1.5; }
.feature-card h3 { margin-bottom: 11px; font-weight: 600; }
.feature-card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { text-align: center; padding: 14px 24px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 14%; height: 72%; width: 1px; background: rgba(255,255,255,0.14); }
.stat b { display: block; font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 200; letter-spacing: -0.04em; color: #fff; white-space: nowrap; }
.stat.light b { color: var(--ink); }
.stat > span { display: block; font-size: 0.86rem; color: rgba(255,255,255,0.66); margin-top: 8px; letter-spacing: 0.04em; }
.stat.light span { color: var(--muted); }
.stat .gold { color: var(--gold-soft); }
.stat.light .gold { color: var(--gold); }

/* ---------- Membership tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.tier {
  position: relative; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 44px 36px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tier:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.tier.featured { background: linear-gradient(168deg, var(--forest-3), var(--forest-2)); border-color: transparent; box-shadow: var(--shadow-lg); }
.tier.featured::before { content: ""; position: absolute; inset: 0; border: 1px solid rgba(210,176,112,0.3); border-radius: var(--r-lg); pointer-events: none; }
.tier.featured h3, .tier.featured .price-amt { color: #fff; }
.tier.featured p, .tier.featured .tier-sub { color: rgba(255,255,255,0.76); }
.tier.featured .tier-list li { color: rgba(255,255,255,0.86); }
.tier.featured .tier-list svg { stroke: var(--gold-soft); }
.tier.featured .price-per { color: rgba(255,255,255,0.6); }
.tier .badge { position: absolute; top: 26px; right: 26px; background: var(--gold); color: #fff; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 7px 14px; border-radius: 100px; }
.tier h3 { font-size: 1.4rem; font-weight: 500; }
.tier .tier-sub { font-size: 0.94rem; color: var(--muted); margin-top: 8px; }
.tier .price { margin: 26px 0 4px; display: flex; align-items: baseline; gap: 7px; }
.tier .price-amt { font-size: 3rem; font-weight: 200; letter-spacing: -0.04em; color: var(--ink); }
.tier .price-per { font-size: 0.95rem; color: var(--muted); }
.tier .tier-list { list-style: none; margin: 28px 0 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.tier-list { list-style: none; }
.tier-list li { display: flex; gap: 12px; font-size: 0.95rem; color: var(--ink-soft); align-items: flex-start; }
.tier-list svg { width: 17px; height: 17px; flex: none; stroke: var(--green); fill: none; stroke-width: 2.4; margin-top: 3px; }
.tier .btn { width: 100%; justify-content: center; }

/* ---------- Forum / article cards ---------- */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.article-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.article-card .thumb { height: 210px; position: relative; overflow: hidden; }
.article-card .thumb-g { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 1.2s var(--ease); }
.article-card:hover .thumb-g { transform: scale(1.06); }
.tg1 { background-image: var(--wash), url('/assets/img/board-meeting.jpg'); }
.tg2 { background-image: var(--wash), url('/assets/img/retrofit-worker.jpg'); }
.tg3 { background-image: var(--wash), url('/assets/img/elder-care.jpg'); }
.tg4 { background-image: var(--wash), url('/assets/img/allotment-mentor.jpg'); }
.tg5 { background-image: var(--wash), url('/assets/img/multicultural-team.jpg'); }
.tg6 { background-image: var(--wash), url('/assets/img/resident-home.jpg'); }
.article-card .thumb .tag { position: absolute; top: 18px; left: 18px; background: rgba(252,251,246,0.94); color: var(--forest); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 13px; border-radius: 100px; }
.article-card .a-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.article-card .a-meta { font-size: 0.78rem; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.article-card h3 { font-size: 1.2rem; font-weight: 500; margin: 12px 0 10px; line-height: 1.3; }
.article-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.article-card .a-link { margin-top: 20px; font-weight: 500; color: var(--green); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 7px; }
.article-card .a-link .arr { transition: transform .35s var(--ease); }
.article-card:hover .a-link .arr { transform: translateX(5px); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-visual { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5/4.2; }
.split-visual::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,0.22); border-radius: calc(var(--r-lg) - 8px); z-index: 2; pointer-events: none; }
.split-photo { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 34px; background-size: cover; background-position: center; transition: transform 1.4s var(--ease); }
.split-visual:hover .split-photo { transform: scale(1.05); }
.sp1 { background-image: var(--wash), url('/assets/img/family-celebration.jpg'); }
.sp2 { background-image: var(--wash), url('/assets/img/community-kitchen.jpg'); }
.split-photo .pc { color: #fff; position: relative; z-index: 3; }
.split-photo .pc b { display: block; font-size: 1.4rem; font-weight: 400; letter-spacing: -0.02em; }
.split-photo .pc span { color: rgba(255,255,255,0.82); font-size: 0.92rem; }
.split-list { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.split-list li { display: flex; gap: 16px; align-items: flex-start; }
.split-list .li-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); border: 1px solid var(--hair); display: grid; place-items: center; flex: none; }
.split-list .li-ic svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 1.7; }
.split-list b { display: block; font-size: 1.05rem; font-weight: 600; }
.split-list span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Donation band ---------- */
.donate-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.donate-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.amt-btn {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); color: #fff;
  border-radius: 13px; padding: 18px 10px; font-family: inherit; font-weight: 500; font-size: 1.25rem;
  cursor: pointer; transition: .3s; text-align: center;
}
.amt-btn:hover, .amt-btn.active { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.amt-btn small { display: block; font-size: 0.68rem; font-weight: 400; opacity: 0.72; margin-top: 5px; letter-spacing: 0.02em; }
.donate-card { background: var(--surface); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.donate-card h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 8px; }
.progress { height: 10px; border-radius: 100px; background: var(--paper-2); overflow: hidden; margin: 20px 0 12px; }
.progress > i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--green), var(--gold)); }
.progress-meta { display: flex; justify-content: space-between; font-size: 0.9rem; }
.progress-meta b { color: var(--ink); font-weight: 600; }
.progress-meta span { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--forest-3), var(--forest-2));
  padding: 90px 56px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: 0.16; pointer-events: none;
  background-image: var(--wash-deep), url('/assets/img/community-kitchen.jpg');
  background-size: cover; background-position: center;
}
.cta::after { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(210,176,112,0.26); border-radius: calc(var(--r-lg) - 6px); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; max-width: 760px; margin: 18px auto 20px; }
.cta .lead { color: rgba(255,255,255,0.82); max-width: 600px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Values strip ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.value { text-align: left; padding-top: 28px; border-top: 1px solid var(--line); }
.value .v-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft); border: 1px solid var(--hair); display: grid; place-items: center; margin-bottom: 18px; }
.value .v-ic svg { width: 25px; height: 25px; stroke: var(--green); fill: none; stroke-width: 1.6; }
.value h3 { font-size: 1.14rem; font-weight: 600; margin-bottom: 9px; }
.value p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step { position: relative; padding-top: 24px; border-top: 1px solid var(--line); }
.step .s-num { font-size: 2.8rem; font-weight: 200; letter-spacing: -0.04em; color: var(--gold); line-height: 1; opacity: 0.85; }
.step h3 { font-size: 1.12rem; font-weight: 600; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Quote / testimonial ---------- */
.quote-wrap { max-width: 900px; margin: 0 auto; text-align: center; }
.quote-mark { font-size: 4rem; line-height: 0.5; color: var(--gold-soft); font-weight: 300; display: block; margin-bottom: 10px; }
.quote { font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.42; color: #fff; }
.quote em { font-style: normal; color: var(--gold-soft); font-weight: 400; }
.quote-by { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.quote-av { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(145deg, var(--gold-2), var(--gold)); display: grid; place-items: center; color: #fff; font-weight: 500; }
.quote-by b { display: block; color: #fff; font-weight: 500; }
.quote-by span { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.65); }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 44px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 9px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 11px;
  padding: 15px 17px; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: var(--surface); box-shadow: 0 0 0 4px var(--green-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }

/* ---------- Contact info ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 24px; margin-top: 34px; }
.info-list li { display: flex; gap: 18px; align-items: flex-start; }
.info-list .i-ic { width: 50px; height: 50px; border-radius: 14px; background: var(--green-soft); border: 1px solid var(--hair); display: grid; place-items: center; flex: none; }
.info-list .i-ic svg { width: 23px; height: 23px; stroke: var(--green); fill: none; stroke-width: 1.7; }
.info-list b { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.info-list span, .info-list a { color: var(--muted); font-size: 0.96rem; }
.info-list a:hover { color: var(--green); }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 1.12rem; font-weight: 500; color: var(--ink); padding: 26px 44px 26px 0; position: relative; transition: color .25s; }
.faq-q:hover { color: var(--green); }
.faq-q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 300; color: var(--gold); transition: transform .35s; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq-a p { color: var(--muted); padding-bottom: 26px; line-height: 1.75; }

/* ---------- Page header ---------- */
.page-head { padding: 178px 0 70px; position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; top: -20%; right: 0; width: 46%; height: 120%;
  background: radial-gradient(circle at 70% 30%, var(--green-soft), transparent 66%); z-index: 0;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { max-width: 880px; margin: 22px 0 22px; }
.page-head .lead { max-width: 640px; }
.crumb { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.crumb a:hover { color: var(--green); }

/* ---------- Footer ---------- */
.footer { background: var(--forest-2); color: rgba(255,255,255,0.66); padding: 88px 0 32px; position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; inset: 0; opacity: 0.08; pointer-events: none;
  background-image: var(--wash-deep), url('/assets/img/allotment-mentor.jpg');
  background-size: cover; background-position: center;
}
.footer .wrap { position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 54px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer .brand { color: #fff; margin-bottom: 18px; }
.footer .brand-name b { color: #fff; }
.footer .brand-name b::after { color: var(--gold-soft); }
.footer .brand-name span { color: var(--gold-soft); border-left-color: rgba(210,176,112,0.4); }
.footer-about { font-size: 0.94rem; line-height: 1.75; max-width: 320px; }
.footer h4 { color: #fff; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,0.66); font-size: 0.95rem; margin-bottom: 13px; transition: color .25s; }
.footer-col a:hover { color: var(--gold-soft); }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); display: grid; place-items: center; transition: .3s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 0.84rem; color: rgba(255,255,255,0.48); flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ---------- Reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 480px; }
  .pillars, .grid-2, .split, .donate-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .articles, .tiers { grid-template-columns: 1fr 1fr; }
  .grid-4, .values, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .stat:nth-child(3)::before { display: none; }
  .split { gap: 44px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 760px) {
  .hero { padding: 130px 0 70px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .grid-3, .articles, .tiers, .grid-4, .values, .steps { grid-template-columns: 1fr; }
  .chip.tl { left: 8px; top: 18px; padding: 10px 13px; }
  .chip.br { right: 8px; bottom: 24px; padding: 10px 13px; }
  .chip .ic { width: 34px; height: 34px; }
  .chip .ic svg { width: 17px; height: 17px; }
  .chip b { font-size: 0.86rem; }
  .chip span { font-size: 0.7rem; }
  .cta { padding: 60px 26px; }
  .cta::after { inset: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .form-card { padding: 30px 24px; }
  .tier.featured { order: -1; }
  .wrap { padding: 0 22px; }
  .hero-stats { padding-top: 22px; margin-top: 36px; }
  .hero-stats .t b { font-size: 1.7rem; }
  .pillar { padding: 36px 28px; }
  /* New sections */
  .cycle-side { padding: 38px 26px; }
  .cycle-side h3 { font-size: 1.25rem; }
  .taglines li { font-size: 0.98rem; padding: 12px 0; }
}
@media (max-width: 460px) {
  .hero { padding: 120px 0 56px; }
  .section { padding: 60px 0; }
  .hero-stats { flex-wrap: wrap; gap: 20px 0; }
  .hero-stats .t { flex: 0 0 50%; }
  .hero-stats .t + .t { border-left: none; padding-left: 0; }
  .hero-stats .t:nth-child(2) { padding-left: 26px; border-left: 1px solid var(--line); }
  .donate-amounts { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; gap: 26px; }
  .stat::before { display: none !important; }
}

/* =========================================================
   TRAPEZIUM FUND — additions for cycle diagram, taglines,
   sec-index eyebrow, premium section icons
   ========================================================= */

/* sec-index sits inside an .eyebrow span and inherits its track */
.eyebrow .sec-index {
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  font-weight: inherit;
}

/* ---------- The Cycle of Support diagram ---------- */
.cycle { display: block; }
.cycle-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.cycle-card::before {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid var(--hair); border-radius: calc(var(--r-lg) - 8px);
  pointer-events: none; opacity: 0.55;
}

.cycle-side {
  position: relative;
  padding: 56px 48px;
  display: flex; flex-direction: column;
  z-index: 1;
}
.cycle-side.alt {
  background: linear-gradient(160deg, var(--forest-3), var(--forest-2));
  color: #fff;
}
.cycle-side.alt::before {
  content: ""; position: absolute; inset: 0; opacity: 0.12; pointer-events: none;
  background-image: var(--wash-deep), url('/assets/img/board-meeting.jpg');
  background-size: cover; background-position: center;
}
.cycle-side.alt > * { position: relative; z-index: 1; }
.cycle-side .p-tag {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold);
}
.cycle-side.alt .p-tag { color: var(--gold-soft); }
.cycle-side .cycle-ic {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--green-soft); border: 1px solid var(--hair);
  display: grid; place-items: center;
  margin: 22px 0 24px;
}
.cycle-side .cycle-ic svg { width: 32px; height: 32px; stroke: var(--green); fill: none; }
.cycle-side.alt .cycle-ic { background: rgba(255,255,255,0.08); border-color: rgba(210,176,112,0.35); }
.cycle-side.alt .cycle-ic svg { stroke: var(--gold-soft); }
.cycle-side h3 {
  font-size: 1.45rem; font-weight: 500; letter-spacing: -0.018em;
  line-height: 1.25; margin-bottom: 14px;
}
.cycle-side.alt h3 { color: #fff; }
.cycle-side p { color: var(--muted); font-size: 0.98rem; line-height: 1.7; }
.cycle-side.alt p { color: rgba(255,255,255,0.78); }

.cycle-bridge {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  padding: 0 18px;
  background:
    linear-gradient(var(--line-soft), var(--line-soft)) center/1px 80% no-repeat;
}
.cycle-bridge svg { width: 28px; height: 80px; }
.cycle-bridge svg .ar-down { stroke: var(--green); }
.cycle-bridge svg .ar-up { stroke: var(--gold); }

/* ---------- Taglines band ---------- */
.taglines {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 36px;
  max-width: 980px;
  margin: 0 auto;
}
.taglines li {
  display: flex; align-items: baseline; gap: 14px;
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem; font-weight: 300; letter-spacing: -0.005em;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.taglines li .t-mark {
  color: var(--gold-soft); font-weight: 400; flex: none;
  letter-spacing: 0;
}

@media (max-width: 1000px) {
  .cycle-card { grid-template-columns: 1fr; }
  .cycle-side { padding: 44px 32px; }
  .cycle-bridge {
    flex-direction: row; padding: 22px 0;
    background: linear-gradient(var(--line-soft), var(--line-soft)) center/80% 1px no-repeat;
  }
  .cycle-bridge svg { width: 36px; height: 36px; transform: rotate(-90deg); }
  .taglines { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .taglines { grid-template-columns: 1fr; }
}

/* =========================================================
   Mobile safety net — overflow control, brand wordmark sizing,
   page-head padding, fluid type guards
   ========================================================= */
html, body { overflow-x: clip; max-width: 100%; }

@media (max-width: 760px) {
  /* Brand wordmark — "Community Fund" subtag wraps unpleasantly at small widths */
  .brand-name { gap: 7px; }
  .brand-name b { font-size: 1.2rem; }
  .brand-name span {
    font-size: 0.56rem; letter-spacing: 0.24em;
    padding-left: 8px;
  }
  .nav { padding: 14px 0; }
  .nav.scrolled { padding: 11px 0; }

  /* Page heading padding for inner pages */
  .page-head { padding: 132px 0 56px; }
  .page-head h1 { margin: 18px 0 18px; }

  /* Section heads tighten on mobile */
  .section-head h2 { margin: 14px 0 16px; }

  /* Buttons — keep tappable but not oversized */
  .btn-lg { padding: 16px 28px; font-size: 0.96rem; }
  .hero-actions { gap: 10px; }

  /* CTA block padding */
  .cta h2 { font-size: clamp(1.6rem, 6.4vw, 2.2rem); }
}

@media (max-width: 460px) {
  /* Force the brand subtag onto one line — never wrap "Community Fund" */
  .brand-name span { white-space: nowrap; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .pillar { padding: 30px 22px; }
  .pillar h3 { font-size: 1.4rem; }
  .feature-card { padding: 30px 24px; }
  .article-card .a-body { padding: 22px 22px 24px; }
  .article-card .thumb { height: 180px; }
  .cycle-side { padding: 34px 22px; }
  .cycle-side h3 { font-size: 1.2rem; }
  .cycle-side .cycle-ic { width: 54px; height: 54px; }
  .cycle-side .cycle-ic svg { width: 26px; height: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   IMPORTANT INFORMATION / RISK DISCLAIMER BAND
   ============================================================ */
.disclaimer-band {
  background: #FAF7EE; border-top: 1px solid #E8DEC0; border-bottom: 1px solid #E8DEC0;
  padding: 22px 0; color: #4a3f24;
}
.disclaimer-band .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.disclaimer-band .ic-warn {
  width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px;
  background: #F0E2B6; color: #7a5a2a;
  display: flex; align-items: center; justify-content: center;
}
.disclaimer-band .ic-warn svg { width: 20px; height: 20px; }
.disclaimer-band p { margin: 0; font-size: .86rem; line-height: 1.55; color: #4a3f24; }
.disclaimer-band p b { color: #2a2210; }
.disclaimer-band .read-more {
  white-space: nowrap; font-size: .82rem; font-weight: 700; color: #7a5a2a;
  text-decoration: none; border: 1px solid #C49A55; padding: 8px 14px; border-radius: 999px;
}
.disclaimer-band .read-more:hover { background: #C49A55; color: #fff; }
@media (max-width: 760px) {
  .disclaimer-band .wrap { grid-template-columns: 1fr; gap: 12px; text-align: left; }
  .disclaimer-band .read-more { width: max-content; }
}

/* ============================================================
   LEGAL PAGE
   ============================================================ */
.legal-shell { max-width: 820px; margin: 0 auto; }
.legal-shell h2 { margin: 40px 0 14px; font-size: 1.45rem; color: var(--ink); }
.legal-shell h2:first-of-type { margin-top: 8px; }
.legal-shell h3 { margin: 24px 0 8px; font-size: 1.08rem; color: var(--ink); }
.legal-shell p, .legal-shell li { color: #3a4452; line-height: 1.65; font-size: .98rem; }
.legal-shell ul { padding-left: 22px; margin: 8px 0 14px; }
.legal-shell .updated { font-size: .82rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.legal-shell .callout {
  background: #FAF7EE; border-left: 4px solid #C49A55; border-radius: 10px;
  padding: 16px 18px; margin: 18px 0 24px; color: #4a3f24;
}
.legal-shell .callout b { color: #2a2210; }
.legal-shell .toc {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 18px 22px; margin: 0 0 30px;
}
.legal-shell .toc h3 { margin: 0 0 10px; font-size: .98rem; }
.legal-shell .toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 24px; }
.legal-shell .toc a { color: var(--ink); text-decoration: none; }
.legal-shell .toc a:hover { color: var(--green); }
@media (max-width: 640px) { .legal-shell .toc ol { columns: 1; } }

/* Inline risk-notice card (used on membership/donate/marketplace) */
.risk-notice {
  background: #FFF8E6; border: 1px solid #E8C875; border-radius: 14px;
  padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; margin: 22px 0;
}
.risk-notice .ic { flex: 0 0 auto; width: 28px; height: 28px; color: #7a5a2a; }
.risk-notice p { margin: 0; color: #4a3f24; font-size: .92rem; line-height: 1.55; }
.risk-notice p b { color: #2a2210; }
.risk-notice a { color: #7a5a2a; font-weight: 700; }

/* ============================================================
   GLOBAL MOBILE OPTIMISATION
   ============================================================ */
@media (max-width: 760px) {
  /* Wrap padding tighter so cards aren't cramped against the edge but use the width */
  .wrap { padding: 0 18px; }

  /* Inner-page H1s: clamp consistently so they never overshoot small screens */
  .page-head h1 { font-size: clamp(2.05rem, 8.4vw, 2.6rem); line-height: 1.12; }
  .page-head .lead { font-size: 1.02rem; }

  /* Section heading sizes */
  .section-head h2 { font-size: clamp(1.55rem, 6.6vw, 2rem); line-height: 1.18; }
  .section { padding: 48px 0; }

  /* Make every primary tappable surface meet the 44×44 target */
  .menu-btn { width: 44px; height: 44px; padding: 10px 8px; }
  .btn { min-height: 44px; }
  .pillbtn, .chip, .filter, .partner-card .pill { min-height: 36px; padding-top: 9px; padding-bottom: 9px; }

  /* Prevent iOS zoom on focus by keeping inputs at >=16px */
  input, textarea, select { font-size: 16px !important; }

  /* Hero stat row → 3-up grid, tidy */
  .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
  .hero-stats .t { padding: 12px 8px; }
  .hero-stats .t b { font-size: 1.4rem; }
  .hero-stats .t span { font-size: .72rem; }

  /* Hero chips overlap less awkwardly on mobile */
  .chip.tl, .chip.br { position: static; margin: 8px 0 0; max-width: 100%; }

  /* Tier cards a little tighter */
  .tier { padding: 26px 22px; }
  .price-amt { font-size: 2.4rem; }

  /* Inline-styled sections (membership/forum/marketplace) — reduce heavy padding.
     !important is needed because the page-level <style> blocks come after styles.css
     in source order and have equal specificity. */
  .balance-wrap { padding: 28px 16px 22px !important; border-radius: 18px !important; }
  .fund-panel { padding: 22px 18px !important; border-radius: 18px !important; gap: 22px !important; }
  .fund-target .amt { font-size: 2.2rem !important; }
  .members-banner { padding: 12px 14px !important; gap: 10px !important; flex-wrap: wrap !important; }
  .members-banner a { margin-left: 0 !important; width: 100%; }
  .mk-stats { padding: 16px 12px !important; gap: 10px !important; }
  .mk-stat b { font-size: 1.3rem !important; }
  .mk-stat span { font-size: .7rem !important; }
  .composer, .post, .side-card { padding: 16px !important; border-radius: 16px !important; }
  .composer-foot { padding-left: 0 !important; }
  .post-body { font-size: .94rem !important; }
  .post-actions { gap: 14px !important; font-size: .8rem !important; flex-wrap: wrap !important; }
  .skill-card { padding: 16px !important; grid-template-columns: auto 1fr !important; }
  .skill-card .pillbtn { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .trade { padding: 14px !important; }
  .listing-body { padding: 14px !important; }

  /* Filter / chip rows scroll horizontally instead of wrapping to many rows */
  .filters, .mk-toolbar {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 4px; margin-right: -18px;
  }
  .filters::-webkit-scrollbar, .mk-toolbar::-webkit-scrollbar { display: none; }
  .filters .filter, .mk-toolbar .pillbtn { flex: 0 0 auto; }
  .mk-toolbar .search { min-width: 220px; }

  /* Trades-directory icon column doesn't squeeze the title */
  .trade .t-ic { width: 40px; height: 40px; }

  /* Footer columns: stack on phone for breathing room */
  .footer-top { display: grid; grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { gap: 4px; }

  /* Smooth-scroll anchors don't slide under sticky nav */
  html { scroll-padding-top: 80px; }

  /* Prevent any rogue overflow from inline styles / SVGs */
  body { overflow-x: hidden; }
  img, svg, video, iframe { max-width: 100%; height: auto; }

  /* CTA action stack: full-width buttons feel native */
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { width: 100%; }
}

@media (max-width: 460px) {
  .page-head h1 { font-size: clamp(1.9rem, 8.8vw, 2.3rem); }
  .hero-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hero-stats .t b { font-size: 1.2rem; }
  .tiers.tiers-4 { gap: 14px; }
  .fund-panel { padding: 20px 16px !important; }
  .balance-wrap { padding: 22px 14px 18px !important; }
  .balance-side h4 { font-size: 1rem; }
  .balance-side li { font-size: .88rem; padding: 9px 12px; }
  .cats { gap: 10px; }
  .cat { padding: 14px 10px 12px; }
  .cat b { font-size: .85rem; }
  .members-banner svg { display: none; }
}

