/* ============================================================
   Tech4Good South West members area styles
   ============================================================
   Component styles built from the main site's v5 "Warm
   editorial" system (t4gsw-site, src/styles/v5.css). Same
   typography, buttons, cards, nav treatment and footer; only
   the members-specific layout pieces are new. */

/* ─────────────────────────────────────────
   BASE
   ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--linen);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ─────────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────────── */
.h-display {
  font-family: var(--display);
  font-size: clamp(40px, 6.5vw, 76px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.h-section {
  font-family: var(--display);
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 20px;
}

.h-section em,
.h-display em {
  font-style: italic;
  color: var(--green);
}

.h-card {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ink-mute);
}

.lede {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 36px;
}

/* ─────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}

section {
  padding: clamp(48px, 7vw, 88px) 0;
  position: relative;
}

section.section--tight {
  padding: clamp(18px, 2.5vw, 32px) 0;
}

.section--paper {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* ─────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 122, 68, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn--link {
  background: transparent;
  color: var(--ink);
  padding: 14px 4px;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  gap: 6px;
}

.btn--link:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green-dark);
}

.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ─────────────────────────────────────────
   MEMBER NAV
   ───────────────────────────────────────── */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 230, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(26, 29, 27, 0.06);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: block;
  flex-shrink: 0;
}

.logo-link img {
  height: 52px;
  width: auto;
}

.nav-area-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-tint);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-cta .btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* Second row: the member section tabs. Styled as explicit pills so
   they unmistakably read as clickable tabs (Paul's feedback). */
.member-nav {
  border-top: 1px solid rgba(26, 29, 27, 0.06);
}

.member-nav ul {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--gutter) 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.member-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.member-nav a:hover {
  color: var(--green-deep);
  background: var(--green-wash);
  border-color: var(--green);
  box-shadow: 0 2px 8px rgba(0, 122, 68, 0.12);
}

.member-nav a[aria-current='page'] {
  color: var(--cream);
  background: var(--green-deep);
  border-color: var(--green-deep);
  font-weight: 600;
}

/* ─────────────────────────────────────────
   PAGE HERO (with fireflies canvas behind)
   ───────────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5vw, 64px) 0 clamp(20px, 3vw, 36px);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.fireflies-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─────────────────────────────────────────
   CARDS
   ───────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.card:hover,
.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
  border-color: var(--green);
}

.card__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card__kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.card__kicker--coral::before {
  background: var(--coral);
}

.card__kicker--amber::before {
  background: var(--amber);
}

.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ─────────────────────────────────────────
   PHOTOS
   ───────────────────────────────────────── */
.photo-figure {
  margin: clamp(20px, 3vw, 28px) auto 0;
  max-width: 900px;
}

.photo-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--rule);
}

@media (max-width: 640px) {
  .photo-figure img {
    aspect-ratio: 3 / 2;
  }
}

.photo-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-mute);
}

/* ─────────────────────────────────────────
   EMBEDS AND PLACEHOLDERS
   ───────────────────────────────────────── */
.embed-frame {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}

.embed-frame iframe {
  display: block;
  width: 100%;
  border: none;
  height: clamp(480px, 70vh, 760px);
}

/* Long-form copy blocks (Tech Together, desk pages) */
.prose {
  max-width: 62ch;
}

.prose p {
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 16px;
}

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

.prose a {
  color: var(--green-dark);
  border-bottom: 1px solid currentColor;
  transition: color 0.18s ease;
}

.prose a:hover {
  color: var(--green-deep);
}

.prose .tick-list {
  border-top: none;
  padding-top: 0;
  margin-bottom: 16px;
}

.prose + .card-grid,
.card-grid + .prose {
  margin-top: 28px;
}

.section-cta {
  margin-top: 24px;
}

.fine-print {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
  max-width: 62ch;
  margin-top: 24px;
}

.placeholder {
  border: 1.5px dashed var(--ink-whisper);
  border-radius: 4px;
  background: var(--paper);
  padding: 40px 28px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.6;
}

.placeholder strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

/* Coming soon pages */
.coming-soon {
  text-align: center;
  padding: clamp(64px, 10vw, 120px) 0;
}

.coming-soon .h-display {
  margin-bottom: 20px;
}

.coming-soon .lede {
  margin: 0 auto 36px;
}

/* ─────────────────────────────────────────
   LOGIN
   ───────────────────────────────────────── */
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
}

.login-card {
  position: relative;
  z-index: 1;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  padding: clamp(32px, 5vw, 56px);
  max-width: 480px;
  width: 100%;
}

.login-card .h-section {
  font-size: clamp(30px, 4vw, 40px);
}

.login-card > p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field-input {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 4px;
  padding: 13px 16px;
  margin-bottom: 20px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
}

.login-card .btn {
  width: 100%;
  justify-content: center;
}

.notice {
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 22px;
}

.notice--ok {
  background: var(--green-wash);
  border: 1px solid var(--green);
  color: var(--green-deep);
}

.notice--warn {
  background: #faf1e8;
  border: 1px solid var(--amber);
  color: #8a5e1c;
}

.notice[hidden] {
  display: none;
}

.login-foot-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
}

.login-foot-note a {
  border-bottom: 1px solid var(--ink-whisper);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.login-foot-note a:hover {
  color: var(--green-dark);
  border-color: var(--green-dark);
}

/* ─────────────────────────────────────────
   LINK LISTS (footer of cards, resources)
   ───────────────────────────────────────── */
.tick-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.tick-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}

.tick-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.tick-list--cross li::before {
  content: '\00d7';
  color: var(--coral);
}

/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
footer.site-foot {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 48px 0 28px;
  position: relative;
  overflow: hidden;
}

footer.site-foot .container {
  position: relative;
  z-index: 1;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.foot-lead img {
  max-width: 140px;
  height: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.foot-tag {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-width: 280px;
}

.foot-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.18s ease;
}

.foot-links a:hover {
  color: #4dd4a0;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 960px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .logo-link img {
    height: 42px;
  }

  .nav-area-label {
    display: none;
  }

  .card-grid,
  .card-grid--two {
    grid-template-columns: 1fr;
  }

  .foot-inner {
    flex-direction: column;
  }
}
