

@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@400;500;700&display=swap');

.font-zen-old-mincho {
  font-family: 'Zen Old Mincho', serif;
}
/* GLOBAL & PAGE STRUCTURE */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Zen Old Mincho', serif;
  color: #222;
  background: #e7e7eb;
  scroll-behavior: smooth;
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */
.page-header {
  max-width: 800px;
  margin: 4rem auto 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.page-header .dek {
  color: #555;
  font-size: 1rem;
}

/* SCROLLY SECTION */
.scrolly {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: start;
  position: relative;
  margin: 0 auto;
  overflow: visible;
}

/* Left side (graphic) */
.scrolly .graphic {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#viz {
  width: 100%;
  height: 100%;
  display: block;
}

/* MAKE SURE TO OVERLAY SVG */
.overlay-period,
.legend {
  position: absolute;
  left: 20px;
  background: #f3f3f2;
  border-radius: 8px;
  border: 2px solid #6f6f96;
  /* box-shadow: 0 1px 4px rgba(0,0,0,0.1); */
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.3;
}

.overlay-period {
  top: 20px;
  font-weight: 600;
}

.legend {
  bottom: 20px;
}

/* STEPS (Right Column Narrative) */
.sections {
  /* page drives scroll NOT text sidebar */
  overflow: visible; 
}

.step {
  min-height: 75vh;
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: #333;
}

.step p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

.step a {
  color: #007acc;
  text-decoration: none;
  display: inline;
}
.nowrap { white-space: nowrap; }

.step a:hover {
  text-decoration: underline;
}

.step:first-child { margin-top: 20vh; }
.step:last-child { margin-bottom: 40vh; }

/* TOOLTIP */
.tooltip {
  position: absolute;
  background: rgba(255,255,255,0.95);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: opacity 0.15s ease;
  opacity: 0;
}

/* SHELTER GRID SECTION */
.shelter-grid-section {
  margin-top: 6rem;
}

.grid-header {
  text-align: center;
  margin-bottom: 2rem;
}

.grid-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.grid-header p {
  color: #555;
  font-size: 0.95rem;
}

.shelter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
}

.shelter-card {
  text-align: center;
  background: #fafafa;
  border-radius: 10px;
  padding: 0.8rem 0.4rem 1.2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.shelter-card svg {
  width: 100%;
  height: auto;
}

.shelter-name {
  font-size: 0.9rem;
  color: #333;
  margin-top: 0.5rem;
}

footer {
  background-color: #e7e7eb;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
  color: #383886;
  /* border-top: 1px solid #ddd; */
}
/* RESPONSIVE */
@media (max-width: 900px) {
  .scrolly {
    grid-template-columns: 1fr;
  }

  .scrolly .graphic {
    height: 60vh;
    position: relative;
  }

  .sections {
    margin-top: 1rem;
  }

  .step {
    min-height: auto;
    padding: 1.5rem 0;
  }
}
