/* ============================================================
   ZAMPA — Design System
   Palette A: Peach & Coral + Mint
   Peach base · Coral brand · Mint counterpoint · Warm brown text
   Type: Fraunces (display) · DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,700;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Base surfaces */
  --peach-pale:    #FFF3EB;
  --peach-mid:     #FFE0CC;
  --peach-warm:    #FFCBA8;

  /* Brand / CTA */
  --coral:         #F4845F;
  --coral-deep:    #D9623C;
  --coral-light:   #FCDDD4;

  /* Counterpoint */
  --mint:          #57C4A0;
  --mint-pale:     #D4F2E7;
  --mint-deep:     #2E8C6E;

  /* Text */
  --ink:           #3D1F00;
  --ink-mid:       #7A4020;
  --ink-light:     #B87050;
  --ink-faint:     #E8C5AF;

  /* Neutrals */
  --white:         #FFFFFF;
  --gray-100:      #FDF8F4;
  --gray-200:      #F2E8DF;
  --gray-400:      #C8A890;
  --gray-600:      #9A7060;

  /* Post type accents */
  --walk-color:    #F4845F;
  --sit-color:     #57C4A0;
  --offer-color:   #F5C842;

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --radius-pill:   999px;

  --shadow-sm:   0 1px 4px rgba(61,31,0,0.06);
  --shadow-md:   0 4px 16px rgba(61,31,0,0.09);
  --shadow-lg:   0 8px 32px rgba(61,31,0,0.13);
  --shadow-card: 0 2px 12px rgba(61,31,0,0.07), 0 0 0 1px rgba(244,132,95,0.15);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--peach-pale);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

.display-italic { font-style: italic; font-weight: 300; }
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
}

/* ── Layout ─────────────────────────────────────────────── */
.container       { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 740px; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 243, 235, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--peach-mid);
  padding: 0 24px;
}
.navbar__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 40px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-mid);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--ink);
  background: var(--peach-mid);
}
.navbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
}
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--mint);
  color: var(--white);
}
.btn-secondary:hover { background: var(--mint-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink-faint);
}
.btn-outline:hover { border-color: var(--coral); color: var(--coral); background: var(--coral-light); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--peach-mid); }

.btn-sm  { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg  { padding: 14px 32px; font-size: 1rem; }
.btn-danger { background: #FFE0E0; color: #C0392B; }
.btn-danger:hover { background: #FFCCCC; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 80px 24px 60px;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--peach-mid);
  border: 1px solid var(--peach-warm);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: 24px;
}
.hero__title { margin-bottom: 20px; }
.hero__title em { font-style: italic; color: var(--coral-deep); }
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--ink-mid);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__visual {
  background: var(--peach-mid);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 24px;
  width: 100%;
}
.hero__visual-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero__visual-card .vc-emoji { font-size: 1.5rem; }
.hero__visual-card .vc-name { font-family: 'Fraunces', serif; font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.hero__visual-card .vc-sub  { font-size: 0.72rem; color: var(--ink-mid); }
.hero__visual-card .vc-tag  {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--coral-light);
  color: var(--coral-deep);
  margin-top: 4px;
}

/* ── How it works ────────────────────────────────────────── */
.how-section {
  background: var(--coral);
  color: var(--white);
  padding: 80px 24px;
  margin: 60px 0;
}
.how-section .eyebrow { color: rgba(255,255,255,0.75); }
.how-section h2 { color: var(--white); margin: 12px 0 48px; }
.how-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.how-card {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  padding: 28px;
}
.how-card__icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.how-card h3 { color: var(--white); margin-bottom: 8px; }
.how-card p  { color: rgba(255,255,255,0.8); font-size: 0.9rem; line-height: 1.65; }

/* ── Neighbourhood strip ──────────────────────────────────── */
.neighborhoods {
  padding: 48px 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.hood-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.hood-scroll::-webkit-scrollbar { display: none; }
.hood-chip {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink-faint);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  color: var(--ink);
}
.hood-chip:hover, .hood-chip.active {
  background: var(--coral-light);
  border-color: var(--coral);
  color: var(--coral-deep);
}
.hood-chip a { color: inherit; display: block; }

/* ── Page header ─────────────────────────────────────────── */
.page-header {
  padding: 48px 24px 32px;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.page-header h1 { margin-bottom: 6px; }
.page-header p  { color: var(--ink-mid); font-size: 0.95rem; }

/* ── Board layout ────────────────────────────────────────── */
.board-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
.filter-sidebar {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  position: sticky;
  top: 84px;
}
.filter-sidebar h4 { margin-bottom: 16px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-light); }
.filter-group  { margin-bottom: 20px; }
.filter-label  { font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; display: block; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ── Post card ───────────────────────────────────────────── */
.post-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.post-card__accent { height: 5px; background: var(--walk-color); border-radius: 0; }
.post-card[data-type="sit"]   .post-card__accent { background: var(--sit-color); }
.post-card[data-type="offer"] .post-card__accent { background: var(--offer-color); }

.post-card__body { padding: 18px 20px; flex: 1; }
.post-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.post-type-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--coral-light);
  color: var(--coral-deep);
}
.post-type-badge--sit   { background: var(--mint-pale); color: var(--mint-deep); }
.post-type-badge--offer { background: #FFF6CC; color: #8A6500; }

.post-card__title {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--ink);
}
.post-card__desc {
  font-size: 0.875rem;
  color: var(--ink-mid);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card__footer {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.post-card__author { display: flex; align-items: center; gap: 8px; }
.post-card__author-name { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.post-card__hood { font-size: 0.75rem; color: var(--ink-light); display: flex; align-items: center; gap: 3px; }

/* ── Avatar ──────────────────────────────────────────────── */
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--coral-light);
  border: 2px solid var(--coral);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--coral-deep);
  flex-shrink: 0;
}
.avatar--lg { width: 56px; height: 56px; font-size: 1.2rem; }
.avatar--xl { width: 80px; height: 80px; font-size: 1.8rem; }

/* ── New post section ────────────────────────────────────── */
.new-post-section {
  background: var(--peach-mid);
  border: 1.5px solid var(--peach-warm);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 32px;
}
.new-post-section h3 { margin-bottom: 20px; color: var(--ink); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group  { margin-bottom: 20px; }
.form-label  { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--ink-faint);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(244,132,95,0.2);
}
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control   { cursor: pointer; }
.form-hint  { font-size: 0.78rem; color: var(--gray-600); margin-top: 4px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error {
  background: #FFF0F0;
  border: 1px solid #FFCCCC;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.875rem;
  color: #C0392B;
  margin-bottom: 20px;
}

/* ── Auth ────────────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 24px;
  background: var(--peach-pale);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.auth-card__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}
.auth-card h2 { margin-bottom: 6px; }
.auth-card__sub { color: var(--ink-mid); font-size: 0.9rem; margin-bottom: 32px; }
.auth-card__footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 24px;
}
.auth-card__footer a { color: var(--coral-deep); font-weight: 600; text-decoration: underline; }
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.section-divider::before { content: ''; height: 1px; width: 28px; background: var(--ink-faint); }
.section-divider::after  { content: ''; flex: 1; height: 1px; background: var(--ink-faint); }

/* ── Profile ─────────────────────────────────────────────── */
.profile-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}
.profile-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-200);
  text-align: center;
  position: sticky;
  top: 84px;
}
.profile-card__avatar { margin: 0 auto 16px; }
.profile-card__name   { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.profile-card__hood   { font-size: 0.85rem; color: var(--ink-mid); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.profile-card__dog {
  background: var(--peach-pale);
  border: 1px solid var(--peach-mid);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: left;
  margin-top: 16px;
}
.profile-card__dog .dog-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-light); margin-bottom: 8px; }
.profile-card__dog .dog-name  { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 700; color: var(--ink); }
.profile-card__dog .dog-info  { font-size: 0.8rem; color: var(--ink-mid); }
.profile-tokens {
  background: var(--coral);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.profile-tokens .token-amount { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 700; }
.profile-tokens .token-label  { font-size: 0.75rem; color: rgba(255,255,255,0.75); }
.profile-tokens .token-icon   { font-size: 1.3rem; }
.profile-main {}
.profile-section { margin-bottom: 36px; }
.profile-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.profile-section__header h3 { font-size: 1rem; }

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
  background: var(--white);
  border: 1.5px dashed var(--ink-faint);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  color: var(--ink-light);
}
.empty-state__icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; margin-bottom: 16px; color: var(--ink-mid); }

/* ── Users grid ──────────────────────────────────────────── */
.users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.user-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.user-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.user-card__avatar { margin: 0 auto 12px; }
.user-card__name   { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 700; margin-bottom: 2px; color: var(--ink); }
.user-card__hood   { font-size: 0.78rem; color: var(--ink-mid); margin-bottom: 10px; }
.user-card__dog    { font-size: 0.8rem; color: var(--gray-600); }

/* ── Search ──────────────────────────────────────────────── */
.search-bar {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  padding: 24px;
  margin-bottom: 32px;
}
.search-bar form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.search-bar .form-group { margin-bottom: 0; flex: 1; min-width: 160px; }

/* ── About ───────────────────────────────────────────────── */
.about-hero {
  padding: 80px 24px 48px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.about-content { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; }
.about-section { margin-bottom: 48px; }
.about-section h2 { margin-bottom: 16px; }
.about-section p  { color: var(--ink-mid); line-height: 1.75; margin-bottom: 12px; }

/* ── Paw divider ─────────────────────────────────────────── */
.paw-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0;
  color: var(--gray-400);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.paw-divider::before, .paw-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

/* ── Flash messages ──────────────────────────────────────── */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin: 16px 0; font-size: 0.875rem; }
.flash--success { background: var(--mint-pale); color: var(--mint-deep); border: 1px solid var(--mint); }
.flash--error   { background: #FFF0F0; color: #C0392B; border: 1px solid #FFCCCC; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 48px 24px 28px;
  font-size: 0.85rem;
}
.site-footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-brand .brand-name {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand p { line-height: 1.65; max-width: 260px; }
.footer-col h5  { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--coral); margin-bottom: 12px; }
.footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a   { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero                  { grid-template-columns: 1fr; }
  .hero__visual          { display: none; }
  .board-layout          { grid-template-columns: 1fr; }
  .filter-sidebar        { position: static; }
  .profile-layout        { grid-template-columns: 1fr; }
  .profile-card          { position: static; }
  .how-grid              { grid-template-columns: 1fr; }
  .site-footer__inner    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .navbar__nav           { display: none; }
  .form-row              { grid-template-columns: 1fr; }
  .auth-card             { padding: 28px 20px; }
  .page-header           { flex-direction: column; align-items: flex-start; }
  .site-footer__inner    { grid-template-columns: 1fr; }
}

/* ── Utilities ───────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-muted   { color: var(--gray-600); }
.text-coral   { color: var(--coral); }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.flex  { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Photo avatars ───────────────────────────────────────────────────────────
   img.avatar inherits all the same size/border/radius rules as div.avatar.
   object-fit:cover is set inline by the macro; these rules handle shape+border.
   ──────────────────────────────────────────────────────────────────────────── */
img.avatar {
  border-radius: 50%;
  border: 2px solid var(--coral);
  display: block;
  flex-shrink: 0;
  background: var(--coral-light);
}
img.avatar--sm  { width: 24px;  height: 24px;  }
img.avatar--md  { width: 36px;  height: 36px;  }
img.avatar--lg  { width: 56px;  height: 56px;  }
img.avatar--xl  { width: 80px;  height: 80px;  border-width: 3px; }

/* Upload input styling */
.upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border: 1.5px dashed var(--ink-faint);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
  background: var(--white);
}
.upload-label:hover {
  border-color: var(--coral);
  background: var(--coral-light);
}
.upload-label input[type="file"] { display: none; }
.upload-label .upload-icon { font-size: 1.8rem; }
.upload-label .upload-text  { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.upload-label .upload-hint  { font-size: 0.75rem; color: var(--ink-light); }
.upload-preview {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--coral);
  display: none;
  margin: 0 auto;
}
