/* ===============================
   css/style.css — Phamly.net
   =============================== */

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

:root {
  --accent:      #2563eb;
  --accent-dark: #1d4ed8;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --bg:          #ffffff;
  --bg-subtle:   #f8fafc;
  --border:      #e2e8f0;
  --nav-bg:      #1e293b;
  --nav-text:    #cbd5e1;
  --nav-active:  #ffffff;
  --max-width:   860px;
}

/* ——————————————
   Base
   —————————————— */

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ——————————————
   Navigation
   —————————————— */

nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

nav a {
  color: var(--nav-text);
  text-decoration: none;
  padding: 0.9rem 0.95rem;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

nav a:hover {
  color: var(--nav-active);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

nav a.active {
  color: var(--nav-active);
  border-bottom-color: var(--accent);
}

nav .site-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--nav-active);
  padding-right: 1.25rem;
  margin-right: 0.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-color: transparent !important;
}

nav .site-name:hover {
  border-bottom-color: transparent !important;
  color: var(--nav-active);
}

/* ——————————————
   Site Header (root page only)
   —————————————— */

.site-header {
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.site-header a {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.site-header a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ——————————————
   Hero (default — light background)
   —————————————— */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.25rem;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.hero .subtitle {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.hero .intro {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
}

/* ——————————————
   Headshot (nate homepage)
   —————————————— */

.headshot {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  display: block;
  margin-bottom: 1.25rem;
}

/* ——————————————
   Container
   —————————————— */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 2.5rem;
}

/* ——————————————
   Sections
   —————————————— */

section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

section h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

section p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 0.6rem;
}

section p:last-child {
  margin-bottom: 0;
}

/* ——————————————
   Cards (generic)
   —————————————— */

.card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1.1rem 1.35rem;
  margin-bottom: 0.85rem;
}

.card:last-child {
  margin-bottom: 0;
}

.card h3 {
  margin-bottom: 0.15rem;
}

.card .meta {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.94rem;
  margin-bottom: 0.5rem;
}

.card a.link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.card a.link:hover {
  text-decoration: underline;
}

/* ——————————————
   Quick links (nate home page)
   —————————————— */

.quick-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}

.quick-links a:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.07);
  color: var(--accent);
  text-decoration: none;
}

.quick-links .arrow {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ——————————————
   Profile list (root page)
   —————————————— */

.profile-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 480px;
}

.profile-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.profile-list a:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.07);
  text-decoration: none;
}

.profile-list .profile-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.profile-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  display: block;
}

.profile-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-top: 0.1rem;
}

/* ——————————————
   Resume
   —————————————— */

.resume-embed {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--bg-subtle);
}

.resume-embed p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

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

/* ——————————————
   Buttons
   —————————————— */

/* Primary — filled blue */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
  color: #fff;
}

/* Ghost — white border for dark hero backgrounds */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.58rem 1.3rem;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.88);
  border-radius: 5px;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

/* Outline — accent border for light backgrounds */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.2rem;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 5px;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ——————————————
   Code
   —————————————— */

code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.875rem;
  background: var(--border);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: var(--text);
}

/* ——————————————
   Footer
   —————————————— */

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.83rem;
  background: var(--bg-subtle);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

/* ================================================================
   WORK SECTION — Hub and Subpages
   ================================================================ */

/* ——————————————
   Work Hub Hero (dark gradient)
   —————————————— */

.work-hero {
  background: linear-gradient(150deg, #0f172a 0%, #1a3050 45%, #1e293b 100%);
  padding: 4rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow accents */
.work-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 18% 55%, rgba(37, 99, 235, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 15%, rgba(56, 189, 248, 0.1) 0%, transparent 45%);
  pointer-events: none;
}

.work-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.work-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.work-hero .work-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.68);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2rem;
  font-weight: 400;
}

.quick-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ——————————————
   Highlight Strip
   —————————————— */

.highlight-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 0;
}

.highlight-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1rem 1rem;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.highlight-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.06);
}

.highlight-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.55rem;
  line-height: 1;
}

.highlight-card h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.highlight-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ——————————————
   Role Cards (Work Hub)
   —————————————— */

.role-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 0.85rem;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
  text-decoration: none;
}

.role-card:last-child {
  margin-bottom: 0;
}

.role-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

/* Logo container */
.role-logo-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s;
}

.role-card:hover .role-logo-wrap {
  border-color: rgba(37, 99, 235, 0.3);
}

/* Logo image — grayscale by default, full color on card hover */
.role-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.22s;
}

.role-card:hover .role-logo {
  filter: grayscale(0%) opacity(1);
}

/* Text content inside a role card */
.role-info {
  flex: 1;
  min-width: 0;
}

.role-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.role-meta {
  font-size: 0.81rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.role-meta .company {
  font-weight: 600;
  color: var(--accent);
}

.role-meta .sep {
  color: var(--border);
}

.role-info p {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
  line-height: 1.65;
}

.role-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.role-link:hover {
  text-decoration: underline;
}

/* ——————————————
   Tag Pills (Skills)
   —————————————— */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
}

.tag-pill {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(37, 99, 235, 0.07);
  color: var(--accent);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ——————————————
   Explore Next (hub page bottom)
   —————————————— */

.explore-next {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
}

.explore-next-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.explore-next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  list-style: none;
  padding: 0;
}

.explore-next-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.explore-next-grid a:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.06);
  text-decoration: none;
}

.explore-next-grid .arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ——————————————
   Work Subpage Hero (dark gradient)
   —————————————— */

.subpage-hero {
  background: linear-gradient(150deg, #0f172a 0%, #1a3050 45%, #1e293b 100%);
  padding: 2.75rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 60%, rgba(37, 99, 235, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

.subpage-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Back / action buttons row at top of subpage hero */
.back-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

/* Logo in subpage hero */
.subpage-logo-wrap {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.subpage-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.subpage-hero-inner h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.3rem;
}

.role-subtitle-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.62);
  display: block;
  margin-bottom: 0.2rem;
}

.role-dates-text {
  font-size: 0.9rem;
  color: #93c5fd;
  font-weight: 500;
  display: block;
}

/* ——————————————
   Responsibilities bullet list
   —————————————— */

.bullet-list {
  list-style: none;
  padding: 0;
}

.bullet-list li {
  display: flex;
  gap: 0.7rem;
  padding: 0.55rem 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  border-bottom: 1px solid var(--bg-subtle);
}

.bullet-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bullet-list li::before {
  content: '▸';
  color: var(--accent);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.45rem;
}

/* ——————————————
   Responsive
   —————————————— */

@media (max-width: 700px) {
  .highlight-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .explore-next-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2.25rem 1.25rem 1.75rem;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .container {
    padding: 0 1.25rem 2.5rem;
  }

  nav a {
    padding: 0.85rem 0.7rem;
    font-size: 0.82rem;
  }

  nav .site-name {
    font-size: 0.875rem;
  }

  .work-hero {
    padding: 2.75rem 1.25rem 2.5rem;
  }

  .work-hero h1 {
    font-size: 1.875rem;
  }

  .subpage-hero {
    padding: 2rem 1.25rem 2.25rem;
  }

  .subpage-hero-inner h1 {
    font-size: 1.625rem;
  }

  .role-card {
    gap: 1rem;
    padding: 1.1rem 1.15rem;
  }
}

@media (max-width: 440px) {
  .role-card {
    flex-direction: column;
    gap: 0.85rem;
  }

  .role-logo-wrap {
    width: 52px;
    height: 52px;
  }
}


/* =============================================================================
   DARK MODE — OS preference + manual override via html[data-theme]
   ============================================================================= */

@media (prefers-color-scheme: dark) {
  :root {
    --accent:      #3b82f6;
    --accent-dark: #2563eb;
    --text:        #f1f5f9;
    --text-muted:  #94a3b8;
    --bg:          #0f172a;
    --bg-subtle:   #1e293b;
    --border:      #334155;
    --nav-bg:      #020617;
    --nav-text:    #94a3b8;
    --nav-active:  #f1f5f9;
  }
}

html[data-theme="dark"] {
  --accent:      #3b82f6;
  --accent-dark: #2563eb;
  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --bg:          #0f172a;
  --bg-subtle:   #1e293b;
  --border:      #334155;
  --nav-bg:      #020617;
  --nav-text:    #94a3b8;
  --nav-active:  #f1f5f9;
}

html[data-theme="light"] {
  --accent:      #2563eb;
  --accent-dark: #1d4ed8;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --bg:          #ffffff;
  --bg-subtle:   #f8fafc;
  --border:      #e2e8f0;
  --nav-bg:      #0f172a;
  --nav-text:    #94a3b8;
  --nav-active:  #f8fafc;
}

/* ── Theme toggle button ─────────────────────────────────────────────────── */

.theme-toggle {
  background: var(--nav-bg);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.65rem 0.75rem;
  color: var(--nav-text);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: sticky;
  right: 0;
  transition: color 0.15s, background 0.15s;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1;
}

.theme-toggle:hover {
  color: var(--nav-active);
}

/* Toggle in site-header (root / family placeholder pages) */
.site-header .theme-toggle {
  position: static;
  background: transparent;
  border-left: none;
  margin-left: auto;
  color: var(--text-muted);
  padding: 0.4rem 0.5rem;
}

.site-header .theme-toggle:hover {
  color: var(--text);
}

/* ── Family hub ──────────────────────────────────────────────────────────── */

.family-photo {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2rem;
  border-radius: 10px;
  object-fit: cover;
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.family-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.35rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
}

.family-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.family-card-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  flex: 1;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.family-card-link {
  display: inline-flex;
  padding: 0.45rem 0.9rem;
  background: var(--accent);
  color: #fff;
  border-radius: 5px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
}

.family-card-link:visited {
  color: #fff;
}

.family-card-link:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* ── Progress bar ────────────────────────────────────────────────────────── */

.progress-wrap {
  background: var(--border);
  border-radius: 100px;
  height: 8px;
  width: 100%;
  overflow: hidden;
  margin: 0.5rem 0 0.35rem;
}

.progress-bar {
  height: 100%;
  border-radius: 100px;
  background: var(--accent);
}

/* ── Leaflet map ─────────────────────────────────────────────────────────── */

#map {
  height: 520px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  #map { height: 420px; }
  .family-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
