/* ============================================================
   TPIA — Main Stylesheet  |  v2.0
   Fonts: Libre Franklin (UI/headings) + Source Serif 4 (accents)
   Icons: Phosphor Icons (ph-*)
   ============================================================ */

@import url('fonts.css');   /* self-hosted Libre Franklin + Source Serif 4 */

/* ── VARIABLES ─────────────────────────────────────────────────
   Institutional palette: warm paper ground, forest ink, bronze accent.
   Structure is carried by hairlines, not shadows; corners are squared.
   Token NAMES are unchanged so inline var(--c-*) usages cascade. */
:root {
  --c-deep:     #1A3C34;   /* forest — primary ink / dark bands */
  --c-green:    #234E44;   /* lifted forest — hovers */
  --c-mid:      #3E6B5E;   /* muted forest — links, accents */
  --c-light:    #8FB3A5;   /* sage — muted text on dark */
  --c-pale:     #E9E4D5;   /* warm neutral — tags / chips */
  --c-cream:    #EFEDE3;   /* warm panel background */
  --c-gold:     #A97C2E;   /* bronze accent — surfaces / large glyphs */
  --c-gold-lt:  #C79A46;   /* lighter bronze — accents on dark */
  --c-gold-dk:  #8A6425;   /* darker bronze — small text on paper (AA) */
  --c-white:    #FFFFFF;
  --c-text:     #17211C;   /* warm ink — body */
  --c-muted:    #5A6B62;   /* secondary text */
  --c-border:   #DEDACB;   /* warm hairline */
  --c-bg:       #F7F5EF;   /* warm paper — page ground */
  --font-sans:  'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --radius-sm:  2px;
  --radius:     3px;
  --radius-lg:  4px;
  --shadow-sm:  none;
  --shadow:     0 1px 0 rgba(23,33,28,.04);
  --shadow-lg:  0 16px 44px -28px rgba(23,33,28,.34);
  --trans:      .18s ease;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
.h-display { font-family: var(--font-sans); line-height: 1.06; color: var(--c-deep); font-weight: 800; letter-spacing: -.02em; }
h1,h2,h3,h4 { font-family: var(--font-sans); color: var(--c-deep); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem,4.8vw,3.6rem); letter-spacing: -.03em; line-height: 1.04; }
h2 { font-size: clamp(1.6rem,3vw,2.3rem); }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-weight: 700; }
p  { color: var(--c-muted); line-height: 1.7; }
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: 0; }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.section  { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.section-white  { background: var(--c-white); }
.section-cream  { background: var(--c-cream); }
.section-deep   { background: var(--c-deep);  }
.section-green  { background: var(--c-deep); }
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3  { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4  { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── Carousel thumbnail strip ───────────────────────────── */
.carousel-thumb:hover          { opacity: .85; }
.carousel-thumb.is-active      { opacity: 1 !important; border-color: var(--c-deep) !important; transform: translateY(-1px); }
#carousel-thumbs::-webkit-scrollbar             { height: 6px; }
#carousel-thumbs::-webkit-scrollbar-track       { background: transparent; }
#carousel-thumbs::-webkit-scrollbar-thumb       { background: var(--c-border); border-radius: 3px; }
#carousel-thumbs::-webkit-scrollbar-thumb:hover { background: var(--c-mid, #40916C); }

/* About-split: on narrow screens, stack (text above, carousel below) */
@media (max-width: 860px) {
  .about-split { grid-template-columns: 1fr !important; }
}

/* ── Interactive cards (hairline emphasis on hover) ─────── */
.card-hover { transition: border-color var(--trans); }
.card-hover:hover { border-color: var(--c-deep) !important; }
.card-hover:hover .card-icon { transform: none; }

/* ── SECTION LABELS ─────────────────────────────────────────── */
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-gold-dk); margin-bottom: 14px;
}
.eyebrow-gold { color: var(--c-gold-lt); }
.eyebrow-light { color: var(--c-light); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 600; letter-spacing: .01em;
  transition: background var(--trans), border-color var(--trans), color var(--trans);
  border: 1.5px solid transparent;
}
.btn-sm { padding: 8px 15px; font-size: .82rem; }
.btn-primary  { background: var(--c-deep); color: #fff; border-color: var(--c-deep); }
.btn-primary:hover { background: var(--c-green); border-color: var(--c-green); }
.btn-dark     { background: var(--c-deep); color: #fff; border-color: var(--c-deep); }
.btn-dark:hover { background: var(--c-green); border-color: var(--c-green); }
.btn-outline   { background: transparent; color: var(--c-deep); border-color: var(--c-border); }
.btn-outline:hover { border-color: var(--c-deep); color: var(--c-deep); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-gold { background: var(--c-gold); color: #fff; border-color: var(--c-gold); font-weight: 700; }
.btn-gold:hover { background: var(--c-gold-dk); border-color: var(--c-gold-dk); }
/* Primary buttons on dark bands render as bronze for contrast */
.section-green .btn-primary, .section-deep .btn-primary, footer .btn-primary { background: var(--c-gold); color: #fff; border-color: var(--c-gold); }
.section-green .btn-primary:hover, .section-deep .btn-primary:hover, footer .btn-primary:hover { background: var(--c-gold-dk); border-color: var(--c-gold-dk); }

/* ── UTILITY BAR ─────────────────────────────────────────── */
#util { background: var(--c-deep); color: rgba(255,255,255,.72); font-size: .78rem; }
#util .container { display: flex; align-items: center; justify-content: flex-end; height: 38px; }
#util a { color: rgba(255,255,255,.72); }
#util a:hover { color: #fff; }
#util .util-r { display: flex; gap: 18px; align-items: center; }
#util .util-sep { color: rgba(255,255,255,.25); }
#util .util-login { color: var(--c-gold-lt); font-weight: 600; }

/* ── MASTHEAD / NAV ──────────────────────────────────────── */
#nav {
  position: sticky; top: 0; z-index: 300;
  height: 76px; background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--trans);
}
#nav.scrolled { box-shadow: 0 10px 30px -22px rgba(23,33,28,.5); }
#nav .container {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
/* Logo image — shown when tpia-logo.png exists */
.nav-logo img {
  height: 54px; width: auto; border-radius: 0;
}
/* Fallback text mark — shown when no image */
.nav-logo-mark {
  width: 44px; height: 44px; border-radius: 0;
  background: transparent; border: 1.5px solid var(--c-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 1rem; color: var(--c-deep); font-weight: 800;
  flex-shrink: 0;
}
.nav-logo-text strong {
  display: block; color: var(--c-deep);
  font-size: 1.05rem; font-weight: 800; letter-spacing: .01em;
}
.nav-logo-text span {
  color: var(--c-muted);
  font-size: .7rem; letter-spacing: .05em; text-transform: uppercase;
}
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu a {
  color: var(--c-text); font-size: .94rem; font-weight: 500;
  padding: 4px 0; position: relative; white-space: nowrap;
  transition: color var(--trans);
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px;
  background: var(--c-deep); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav-menu a:hover { color: var(--c-deep); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a.active { color: var(--c-deep); }
.nav-cta {
  background: var(--c-deep); color: #fff;
  padding: 10px 18px; border-radius: var(--radius);
  font-size: .88rem; font-weight: 600; margin-left: 6px;
  transition: background var(--trans);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--c-green); color: #fff; }
.nav-burger {
  display: none; background: none; border: none; padding: 4px;
  flex-direction: column; gap: 5px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--c-deep); border-radius: 2px; transition: var(--trans); }
#mobile-menu {
  display: none; position: fixed; top: 76px; left: 0; right: 0; z-index: 299;
  background: var(--c-bg); border-bottom: 1px solid var(--c-border);
  padding: 12px 24px 18px; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow-lg);
}
#mobile-menu.open { display: flex; }
#mobile-menu a { color: var(--c-text); font-size: 1rem; padding: 11px 0; border-bottom: 1px solid var(--c-border); }
#mobile-menu a:last-child { border-bottom: none; }

/* ── PAGE HEADER ────────────────────────────────────────────── */
.page-header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  padding: 48px 0 34px; text-align: left;
}
.page-header h1 { color: var(--c-deep); }
.breadcrumb { color: var(--c-muted); font-size: .85rem; margin-top: 10px; }
.breadcrumb a { color: var(--c-mid); }
.breadcrumb a:hover { color: var(--c-deep); }

/* ── HERO ───────────────────────────────────────────────────── */
#hero {
  position: relative;
  overflow: hidden;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  padding: 76px 0 64px;
}
/* A real <img> anchored to the right of the hero, sitting behind the text */
.hero-photo {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 58%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
  /* Gently muted so the photo reads as part of the warm-paper palette
     without washing out its bright highlights. */
  filter: saturate(.92) contrast(1.02);
}
/* Paper wash over the photo: solid on the left (headline stays crisp,
   top-left as before), fading to reveal the photo toward the right */
#hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    var(--c-bg) 0%, var(--c-bg) 42%,
    rgba(247,245,239,.5) 66%, rgba(247,245,239,.04) 100%);
}
#hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 600px; }
/* Phones: hide the photo so the headline stays crisp on paper */
@media (max-width: 700px) {
  .hero-photo, #hero::before { display: none; }
  #hero { padding: 60px 0 52px; }
  .hero-inner { max-width: 820px; }
}
#hero h1 { color: var(--c-deep); margin-bottom: 22px; font-size: clamp(2.4rem,5vw,4rem); letter-spacing: -.03em; line-height: 1.03; }
#hero h1 em { font-family: var(--font-serif); color: var(--c-deep); font-style: normal; font-weight: 400; }
#hero p  { color: var(--c-muted); font-size: clamp(1.08rem,1.5vw,1.28rem); line-height: 1.55; margin-bottom: 30px; max-width: 62ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ── STATS / CREDENTIALS ────────────────────────────────────── */
.stats-strip { background: var(--c-bg); padding: 0; border-bottom: 1px solid var(--c-border); }
.stats-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat-item {
  text-align: left; padding: 30px 28px;
  border-right: 1px solid var(--c-border);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-sans); font-weight: 800; font-size: 2.4rem; color: var(--c-deep); line-height: 1; letter-spacing: -.03em; }
.stat-lbl { color: var(--c-muted); font-size: .82rem; font-weight: 500; letter-spacing: .01em; margin-top: 9px; }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color var(--trans);
}
.card:hover { border-color: var(--c-deep); }
/* Icon: a bare accent glyph, not a filled chip.
   fit-content + auto side margins centre it while keeping it hugging the
   glyph, so a stray inline background can never stretch into a full-width bar. */
.card-icon {
  width: fit-content; height: auto; border-radius: 0;
  background: none; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  color: var(--c-gold); font-size: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p  { font-size: .9rem; }
/* Dark card variant */
.card-dark { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.card-dark h3 { color: #fff; }
.card-dark p  { color: rgba(255,255,255,.7); }

/* ── FEATURE CARD (mission/vision, membership) ──────────────── */
.card-glow {
  padding: 32px;
  transition: border-color var(--trans);
  position: relative;
}
.card-glow h3 { font-size: 1.3rem; margin-bottom: 12px; }
.card-glow p  { font-size: .95rem; line-height: 1.6; }
.card-glow .card-icon {
  width: fit-content; height: auto; font-size: 28px; margin: 0 auto 18px;
}
.card-glow:hover { transform: none; box-shadow: none; }

/* ── WORK HUB CARDS (our-work.php) ──────────────────────────── */
.work-hub-card .work-hub-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-weight: 700; font-size: .875rem;
  color: var(--c-deep); letter-spacing: .02em;
}
.work-hub-card .work-hub-link i { transition: transform .3s ease; }
.work-hub-card:hover .work-hub-link i { transform: translateX(5px); }

/* ── NEWS CARDS ─────────────────────────────────────────────── */
.news-card {
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color var(--trans);
  display: flex; flex-direction: column;
}
.news-card:hover { border-color: var(--c-deep); }
.news-card-img { width: 100%; height: 190px; object-fit: cover; flex-shrink: 0; }
.news-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-cat {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--c-mid);
  margin-bottom: 8px;
}
.news-card h3 { font-size: 1rem; margin-bottom: 8px; }
.news-card p  { font-size: .875rem; margin-bottom: 12px; flex: 1; }
.news-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.news-date  { font-size: .78rem; color: var(--c-light); }
.news-link  { color: var(--c-mid); font-size: .82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.news-link:hover { color: var(--c-deep); }

/* Featured news highlight (homepage) — subtle bronze edge only */
.news-card { position: relative; }
.news-card.is-featured { border-color: var(--c-gold); background: var(--c-white); }
.news-card.is-featured:hover { border-color: var(--c-gold); }
.news-card.is-featured .news-cat { color: var(--c-gold); }

/* ── TEAM CARDS ─────────────────────────────────────────────── */
.team-card {
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 28px 24px; text-align: center;
  transition: border-color var(--trans);
}
.team-card:hover { border-color: var(--c-deep); }
.team-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--c-pale); margin: 0 auto 16px;
  overflow: hidden; border: 3px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar-icon { font-size: 2.4rem; color: var(--c-mid); }
.team-card h4 { font-size: 1rem; margin-bottom: 3px; }
.team-card .team-title  { font-size: .82rem; color: var(--c-mid); font-weight: 600; }
.team-card .team-comm   { font-size: .78rem; color: var(--c-muted); margin-top: 3px; }
.team-card .team-bio    { font-size: .84rem; color: var(--c-muted); margin-top: 12px; line-height: 1.6; border-top: 1px solid var(--c-border); padding-top: 12px; text-align: left; }
.team-links { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.team-link-btn {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--c-border); display: flex; align-items: center; justify-content: center;
  color: var(--c-muted); font-size: 15px; transition: border-color var(--trans), color var(--trans);
}
.team-link-btn:hover { border-color: var(--c-mid); color: var(--c-mid); }

/* ── DOCUMENTS ──────────────────────────────────────────────── */
.doc-row {
  display: flex; align-items: center; gap: 18px;
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 10px;
  transition: box-shadow var(--trans);
}
.doc-row:hover { box-shadow: var(--shadow); }
.doc-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--c-pale); display: flex; align-items: center; justify-content: center;
  color: var(--c-deep); font-size: 20px; flex-shrink: 0;
}
.doc-info { flex: 1; min-width: 0; }
.doc-info h4 { font-size: .95rem; margin-bottom: 3px; line-height: 1.3; overflow-wrap: break-word; word-break: break-word; }
.doc-info p  { font-size: .8rem; color: var(--c-muted); }
.doc-meta    { font-size: .75rem; color: var(--c-light); margin-top: 3px; }
.doc-actions { display: flex; gap: 8px; flex-shrink: 0; }
.doc-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: .8rem; font-weight: 600;
  background: var(--c-pale); color: var(--c-deep); border: 1px solid var(--c-border);
  transition: background var(--trans);
}
.doc-btn:hover { background: var(--c-pale); color: var(--c-mid); }
.doc-btn-na { opacity: .45; cursor: default; }

/* ── EVENTS CALENDAR ────────────────────────────────────────── */
.cal-grid {
  display: grid; grid-template-columns: repeat(7,1fr); gap: 3px;
  margin-top: 12px;
}
.cal-header-cell {
  text-align: center; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-muted); padding: 8px 0;
}
.cal-cell {
  min-height: 76px; background: var(--c-white);
  border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  padding: 6px; position: relative;
}
.cal-cell.empty { background: var(--c-cream); border-color: transparent; }
.cal-cell.today .cal-day { background: var(--c-deep); color: white; border-radius: 50%; }
.cal-day { font-size: .82rem; font-weight: 600; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.cal-event-dot {
  display: block; font-size: .66rem; background: var(--c-mid); color: white;
  border-radius: 3px; padding: 2px 5px; margin-bottom: 2px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  cursor: pointer;
}
.event-row {
  display: flex; gap: 16px; background: var(--c-white);
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 12px; align-items: flex-start;
  transition: box-shadow var(--trans);
}
.event-row:hover { box-shadow: var(--shadow); }
.event-date-box {
  width: 56px; min-width: 56px; height: 56px;
  background: var(--c-deep); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: white; text-align: center;
}
.event-date-box .e-day   { font-size: 1.3rem; font-weight: 700; line-height: 1; }
.event-date-box .e-month { font-size: .65rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.event-info h4  { font-size: .95rem; margin-bottom: 5px; }
.event-info p   { font-size: .84rem; color: var(--c-muted); }
.event-meta     { font-size: .78rem; color: var(--c-muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 12px; }
.event-meta-item { display: flex; align-items: center; gap: 5px; }

/* ── SPONSOR CAMPAIGNS ──────────────────────────────────────── */
.ad-slot {
  text-align: center;
  margin: 0 auto 20px;
  max-width: 100%;
}
.ad-slot img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-white);
}
.ad-label {
  display: block;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 6px;
  text-align: center;
}
.ad-leaderboard {
  max-width: 728px;
  padding: 18px 0 4px;
}
.ad-rectangle { max-width: 300px; }
.ad-large_rectangle { max-width: 336px; }
.ad-half_page { max-width: 300px; }
.ad-mobile_banner { max-width: 320px; }
.ad-sponsor_card { max-width: 336px; }
.ad-booking {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 22px;
  border: 1.5px dashed var(--c-mid);
  border-radius: var(--radius);
  background: var(--c-pale);
  color: var(--c-deep);
  text-decoration: none;
}
.ad-booking strong {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ad-booking span {
  max-width: 240px;
  margin-top: 5px;
  color: var(--c-muted);
  font-size: .78rem;
  line-height: 1.4;
}
footer .ad-slot {
  margin-top: 24px;
}
footer .ad-booking {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.2);
  color: var(--c-gold-lt);
}
footer .ad-booking span,
footer .ad-label {
  color: rgba(255,255,255,.55);
}

/* ── FORMS ──────────────────────────────────────────────────── */
.form-box {
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 36px;
  box-shadow: none;
}
.form-box h3 { font-size: 1.3rem; margin-bottom: 22px; }
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 6px; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--c-border); border-radius: var(--radius);
  font-family: var(--font-sans); font-size: .93rem; color: var(--c-text);
  background: var(--c-cream); transition: border-color var(--trans);
}
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: var(--c-mid); background: white; }
.fg textarea { resize: vertical; min-height: 110px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit {
  width: 100%; background: var(--c-deep); color: white;
  padding: 13px; border: none; border-radius: var(--radius);
  font-size: .95rem; font-weight: 700; cursor: pointer; margin-top: 6px;
  transition: background var(--trans), transform var(--trans);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.form-submit:hover { background: var(--c-green); transform: translateY(-1px); }
.form-note { font-size: .77rem; color: var(--c-muted); text-align: center; margin-top: 10px; }
.alert { padding: 13px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .9rem; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: #d8f3dc; border: 1px solid var(--c-mid); color: var(--c-deep); }
.alert-error   { background: #ffe4e4; border: 1px solid #c0392b; color: #7a0000; }

/* ── ARTICLE (news single) ──────────────────────────────────── */
.article-hero { width: 100%; aspect-ratio: 16/6; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 36px; }
.article-body h2,h3 { margin: 28px 0 10px; color: var(--c-deep); }
.article-body p  { margin-bottom: 16px; color: var(--c-text); line-height: 1.75; }
.article-body ul { margin: 10px 0 16px 20px; list-style: disc; }
.article-body ul li { color: var(--c-muted); margin-bottom: 6px; font-size: .95rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--c-border); }
.article-meta-item { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--c-muted); }
.article-sidebar { position: sticky; top: 84px; }

/* ── CONTACT INFO ────────────────────────────────────────────── */
.contact-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-icon-box {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--c-pale); display: flex; align-items: center; justify-content: center;
  color: var(--c-deep); font-size: 20px; flex-shrink: 0;
}
.contact-row h5 { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 3px; font-family: var(--font-sans); }
.contact-row p  { font-size: .93rem; color: var(--c-text); line-height: 1.5; }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--c-text); color: rgba(255,255,255,.6);
  padding: 60px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-about p { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.48); margin-top: 14px; max-width: 280px; }
footer h5 { font-family: var(--font-sans); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-light); margin-bottom: 14px; }
.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a { font-size: .875rem; color: rgba(255,255,255,.55); transition: color var(--trans); }
.footer-nav a:hover { color: var(--c-gold-lt); }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.social-icon {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); font-size: 14px;
  transition: border-color var(--trans), color var(--trans);
}
.social-icon:hover { border-color: var(--c-gold); color: var(--c-gold-lt); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: rgba(255,255,255,.28); }

/* ── UTILS ──────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-white  { color: white !important; }
.text-gold   { color: var(--c-gold-lt) !important; }
.text-light-c{ color: var(--c-light) !important; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.gap-y-20 > * + * { margin-top: 20px; }

/* ── REVEAL — motion retired in the institutional system ────── */
.reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
.reveal-delay-1, .reveal-delay-2, .reveal-delay-3 { transition-delay: 0s; }

/* ══ MEMBERS AREA — scoped under .mbr ══════════════════════════
   All members-area styles are namespaced under .mbr to avoid
   any collision with global styles. Markup lives in members/index.php
   ─────────────────────────────────────────────────────────────── */

/* Hero band */
.mbr-hero {
  background: var(--c-deep);
  color: #fff;
  padding: clamp(72px, 9vw, 110px) 0 clamp(28px, 4vw, 44px);
  position: relative; overflow: hidden;
}
.mbr-hero::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><path d='M0 39.5h40M39.5 0v40' stroke='rgba(255,255,255,.04)' stroke-width='1' fill='none'/></svg>");
  pointer-events: none;
}
.mbr-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.mbr-hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--c-gold-lt);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px; margin-bottom: 14px;
}
.mbr-hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 1rem + 2.4vw, 2.4rem);
  line-height: 1.15; margin-bottom: 8px;
}
.mbr-hero p { color: rgba(255,255,255,.78); font-size: .95rem; max-width: 560px; }
.mbr-hero p a { color: var(--c-gold-lt); text-decoration: underline; }

/* Welcome strip */
.mbr-bar {
  background: var(--c-pale); border-bottom: 1px solid var(--c-border);
  padding: 12px 0;
}
.mbr-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.mbr-bar-msg {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .88rem; color: var(--c-deep); margin: 0;
}
.mbr-bar-msg i { color: var(--c-mid); font-size: 1rem; }
.mbr-bar-logout {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; color: var(--c-muted);
  padding: 4px 10px; border-radius: 6px; transition: .15s;
}
.mbr-bar-logout:hover { background: rgba(255,255,255,.5); color: var(--c-deep); }

/* Section heading */
.mbr-section { margin-bottom: 56px; }
.mbr-section:last-child { margin-bottom: 0; }
.mbr-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border);
}
.mbr-section-head h2 {
  font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem);
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0; color: var(--c-deep);
}
.mbr-section-head h2 i { color: var(--c-mid); font-size: 1.1em; }
.mbr-pill {
  background: var(--c-pale); color: var(--c-deep);
  font-size: .75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 2px;
  white-space: nowrap;
}

/* Callout (yellow notice) */
.mbr-callout {
  background: var(--c-cream); border: 1px solid var(--c-border); border-left: 3px solid var(--c-gold);
  border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 18px;
  font-size: .85rem; color: var(--c-text);
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.5;
}
.mbr-callout i { flex-shrink: 0; margin-top: 2px; font-size: 1rem; }

/* Quick links grid — clean tile cards */
.mbr-quick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
  gap: 14px;
}
.mbr-quick-tile {
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 18px 16px; text-decoration: none; color: inherit;
  transition: border-color var(--trans);
  position: relative; overflow: hidden;
}
.mbr-quick-tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--c-mid); transform: scaleY(0); transform-origin: bottom;
  transition: transform .25s ease;
}
.mbr-quick-tile:hover {
  border-color: var(--c-deep);
}
.mbr-quick-tile:hover::before { transform: scaleY(1); transform-origin: top; }
.mbr-quick-icon {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--c-pale); color: var(--c-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.mbr-quick-tile strong { font-size: .92rem; color: var(--c-deep); line-height: 1.25; }
.mbr-quick-tile span   { font-size: .78rem; color: var(--c-muted); line-height: 1.4; }

/* Document row */
.mbr-doc {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  padding: 14px 18px; margin-bottom: 10px;
  transition: border-color var(--trans);
}
.mbr-doc:hover {
  border-color: var(--c-deep);
}
.mbr-doc-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--c-pale);
  color: var(--c-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.mbr-doc-body { min-width: 0; }
.mbr-doc-title {
  font-size: .95rem; font-weight: 700; color: var(--c-deep);
  margin: 0 0 3px; line-height: 1.3;
}
.mbr-doc-desc {
  font-size: .82rem; color: var(--c-muted);
  margin: 0 0 6px; line-height: 1.45;
}
.mbr-doc-meta {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  font-size: .73rem; color: var(--c-muted);
  align-items: center;
}
.mbr-doc-meta i { font-size: .85rem; }
.mbr-doc-tag {
  background: var(--c-pale); color: var(--c-deep);
  padding: 2px 9px; border-radius: 2px;
  font-size: .7rem; font-weight: 700; letter-spacing: .03em;
  display: inline-flex; align-items: center; gap: 4px;
}
.mbr-doc-actions {
  display: flex; gap: 6px; flex-shrink: 0;
}
.mbr-doc-actions a, .mbr-doc-actions span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius);
  font-size: .8rem; font-weight: 600; text-decoration: none;
  white-space: nowrap; transition: opacity .15s ease;
}
.mbr-doc-actions a:hover { opacity: .85; }
.mbr-doc-actions .b-dl   { background: var(--c-deep); color: #fff; }
.mbr-doc-actions .b-view { background: var(--c-pale); color: var(--c-deep); border: 1px solid var(--c-border); }
.mbr-doc-actions .b-soon { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }
.mbr-doc-actions .b-html {
  background: var(--c-gold); color: #fff;
  position: relative;
}
.mbr-doc-actions .b-html::after {
  content: "NEW"; position: absolute; top: -6px; right: -8px;
  background: var(--c-deep); color: var(--c-gold-lt);
  font-size: 8px; font-weight: 700; letter-spacing: .08em;
  padding: 2px 6px; border-radius: 2px;
  pointer-events: none;
}

/* Compact variant (Other Members-Only Resources) */
.mbr-doc.compact { grid-template-columns: 40px 1fr auto; padding: 12px 16px; gap: 14px; }
.mbr-doc.compact .mbr-doc-icon { width: 40px; height: 40px; font-size: 18px; }
.mbr-doc.compact .mbr-doc-title { font-size: .88rem; }

/* Empty state */
.mbr-empty {
  text-align: center; padding: 40px 20px;
  background: #fff; border: 1px dashed var(--c-border); border-radius: var(--radius-lg);
  color: var(--c-muted);
}
.mbr-empty i { font-size: 2.6rem; display: block; margin-bottom: 10px; color: #c7c3b5; }
.mbr-empty p { font-size: .9rem; margin: 0; }

/* ── MEMBERS AREA RESPONSIVE ────────────────────────────────── */
@media (max-width: 768px) {
  .mbr-doc { grid-template-columns: 44px 1fr; gap: 12px; }
  .mbr-doc-actions {
    grid-column: 1 / -1;
    width: 100%; justify-content: stretch;
  }
  .mbr-doc-actions a, .mbr-doc-actions span { flex: 1; justify-content: center; }
}
@media (max-width: 480px) {
  .mbr-quick { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
  .mbr-quick-tile { padding: 14px 12px; }
  .mbr-doc { padding: 12px 14px; }
  .mbr-doc-icon { width: 40px; height: 40px; font-size: 18px; }
  .mbr-doc-title { font-size: .9rem; }
  .mbr-doc-desc  { font-size: .78rem; }
  .mbr-callout   { font-size: .8rem; padding: 10px 12px; }
  .mbr-section   { margin-bottom: 40px; }
}
@media (max-width: 360px) {
  .mbr-quick { grid-template-columns: 1fr; }
  .mbr-doc { grid-template-columns: 1fr; text-align: left; }
  .mbr-doc-icon { width: 38px; height: 38px; font-size: 16px; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4     { grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-inner{ grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .container, .container-sm { padding: 0 20px; }
  .page-header { padding: 84px 0 32px; }
}
@media (max-width: 768px) {
  #util { display: none; }
  .nav-menu, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .section { padding: 42px 0; }
  .section-sm { padding: 28px 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-grid  { grid-template-columns: 1fr; gap: 28px; }
  .stats-inner  { grid-template-columns: repeat(2,1fr); }
  .footer-bottom{ flex-direction: column; text-align: center; }
  .doc-row      { flex-direction: column; align-items: flex-start; }
  .doc-actions  { width: 100%; }
  .cal-grid     { grid-template-columns: repeat(7,1fr); }
  .cal-cell     { min-height: 48px; padding: 3px; }
  .cal-event-dot{ display: none; }
  .page-header  { padding: 76px 0 28px; }
  .page-header h1 { font-size: clamp(1.5rem, 4vw + 1rem, 2rem); }
}
@media (max-width: 600px) {
  #hero { min-height: auto; padding: 70px 0 50px; }
  #hero h1 { font-size: clamp(1.6rem, 5vw + 1rem, 2.2rem); }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions { width: 100%; }
  .work-grid { grid-template-columns: 1fr; }
  .work-album { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .stat-item   { padding: 0 10px; }
  .stat-num    { font-size: 1.8rem; }
  .container, .container-sm { padding: 0 16px; }
  .section { padding: 32px 0; }
  .page-header { padding: 70px 0 24px; }
}
@media (max-width: 360px) {
  /* Foldables (Galaxy Z Flip closed cover, narrow phones) */
  .container, .container-sm { padding: 0 12px; }
  #hero h1 { font-size: 1.5rem; }
  #hero p { font-size: .92rem; }
  .work-album { grid-template-columns: 1fr; }
}

/* ══ HOMEPAGE: member & partner cards (moved out of index.php) ══ */
.member-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .18s ease;
  text-align: center;
}
.member-card:hover { border-color: var(--c-deep); }
.member-card.is-hidden { display: none !important; }
.member-card-logo {
  height: 110px;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: var(--c-cream);
  border-bottom: 1px solid var(--c-border);
}
.member-card-logo img { max-width: 100%; max-height: 80px; object-fit: contain; }
.member-card-initials {
  width: 64px; height: 64px;
  background: var(--c-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700;
  color: var(--c-deep);
  font-family: var(--font-serif);
}
.member-card-caption { padding: 12px 10px; }
.member-card-name {
  display: block;
  font-size: .82rem; font-weight: 700;
  color: var(--c-deep); line-height: 1.3; margin-bottom: 3px;
}
.member-card-type { display: block; font-size: .72rem; color: var(--c-muted); }
.member-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.member-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  min-height: 42px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-cream);
}
.member-search i {
  color: var(--c-muted);
  flex-shrink: 0;
}
.member-search input,
.member-tools select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-cream);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: .9rem;
}
.member-search input {
  min-height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
}
.member-tools select {
  padding: 0 12px;
}
.member-results-summary {
  min-height: 22px;
  margin-bottom: 18px;
  color: var(--c-muted);
  font-size: .86rem;
}

/* ── Partner cards ──────────────────────────────────── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.partners-grid.single { max-width: 340px; margin: 0 auto; }
.partner-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: border-color .18s ease;
  display: flex; flex-direction: column; height: 100%;
}
.partner-card:hover, .partner-card:focus { border-color: var(--c-deep); }
.partner-card-logo {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  background: var(--c-cream);
  border-bottom: 1px solid var(--c-border);
}
.partner-card-logo img { max-width: 100%; max-height: 96px; object-fit: contain; }
.partner-card-initials {
  width: 82px; height: 82px;
  background: var(--c-pale);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 700;
  color: var(--c-deep);
  font-family: var(--font-serif);
}
.partner-card-body {
  padding: 16px 20px 18px;
  background: var(--c-deep);
  color: white;
  flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-start;
}
.partner-card-badge {
  align-self: flex-start;
  display: inline-flex; width: auto;
  background: var(--c-gold); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 2px; margin-bottom: 8px;
}
.partner-card-name { color: white; font-size: 1rem; margin-bottom: 4px; font-family: var(--font-serif); }
.partner-card-tag {
  color: var(--c-gold-lt); font-size: .78rem;
  display: flex; align-items: center; gap: 6px; margin: 0;
}
.partner-card-tag i { transition: transform .25s ease; }
.partner-card:hover .partner-card-tag i,
.partner-card:focus .partner-card-tag i { transform: translateX(4px); }

/* ══ RESPONSIVE SIDEBAR LAYOUT ═══════════════════════════════════
   Main content + right sidebar that stacks on tablets/phones.
   Used by home news, news, news-article and events (replaces inline
   1fr/300px grids that never collapsed and crushed the content). */
.split-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .split-sidebar { grid-template-columns: 1fr; gap: 32px; } }

/* ══ MOBILE REFINEMENT — calmer rhythm, compact tiles ════════════ */
@media (max-width: 768px) {
  .section { padding: 40px 0; }
  .card { padding: 22px; }
  .card-glow { padding: 24px 22px; }
  .card-glow h3 { font-size: 1.2rem; }
  .grid-2, .grid-3, .grid-4 { gap: 16px; }
  .stat-item { padding: 22px 16px; }
}
/* Phones: compact 2-up directory tiles instead of one long single-column stack */
@media (max-width: 600px) {
  #hero h1 { font-size: 2rem; }
  .member-tools { grid-template-columns: 1fr; }
  #members-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .member-card-logo { height: 92px; padding: 12px; }
  .member-card-logo img { max-height: 64px; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partner-card-logo { height: 104px; padding: 16px; }
  .partner-card-logo img { max-height: 72px; }
  .partner-card-body { padding: 14px 14px 16px; }
  .partner-card-name { font-size: .92rem; }
  .stat-num { font-size: 1.9rem; }
}
@media (max-width: 400px) {
  #hero h1 { font-size: 1.8rem; }
  .card { padding: 18px; }
  #members-grid, .partners-grid { gap: 10px !important; }
  .partner-card-name { font-size: .85rem; }
  .stat-num { font-size: 1.7rem; }
}
