/* -----------------------------------------------
    HIST 501D Demo Site
    Minimal stylesheet — clarity over novelty
----------------------------------------------- */

body {
  font-family: Georgia, serif;
  line-height: 1.7;
  margin: 0;
  color: #1f1f1f;
  background: #f7f4ed;
}

header, main, footer {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

header {
  border-bottom: 1px solid #ccc;
  margin-bottom: 1rem;
}

header h1 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

nav {
  font-family: sans-serif;
  font-size: 0.95rem;
}

nav a {
  margin-right: 1.25rem;
  color: #2a4a7f;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

figure {
  margin: 1.5rem 0;
}

figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  display: block;
}

figcaption {
  font-family: sans-serif;
  font-size: 0.88rem;
  color: #555;
  margin-top: 0.4rem;
}

.sketch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

footer {
  border-top: 1px solid #ccc;
  margin-top: 2rem;
  font-family: sans-serif;
  font-size: 0.85rem;
  color: #666;
}

footer a {
  color: #2a4a7f;
}

/* -----------------------------------------------
    Responsive layout — narrow screens
    The viewport meta tag in each HTML page activates
    this. No framework or CDN required.
----------------------------------------------- */

@media (max-width: 600px) {
  header h1 {
     font-size: 1.25rem;
  }

  nav {
     display: flex;
     flex-wrap: wrap;
     gap: 0.5rem;
  }

  nav a {
     margin-right: 0;
  }

  .sketch-grid {
     grid-template-columns: 1fr;
  }

  header, main, footer {
     padding: 1rem 0.85rem;
  }
}
/* General page style */
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background-color: #f7f4ee;
  color: #2f2a24;
  line-height: 1.7;
}

/* Navigation */
nav {
  background-color: #6f4e37;
  padding: 1rem 2rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

nav a {
  color: #fffaf2;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  font-size: 1rem;
}

nav a:hover {
  text-decoration: underline;
}

/* Main content area */
main {
  max-width: 900px;
  margin: 3rem auto;
  background-color: #fffdf9;
  padding: 2.5rem 3rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Headings */
h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #4a3728;
}

h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #5c4332;
}

h3 {
  margin-top: 0;
  color: #4f392b;
  font-size: 1.3rem;
}

p {
  font-size: 1.05rem;
}

/* Intro paragraph */
.timeline-intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 2.5rem auto;
  color: #4b433c;
}

/* Timeline container */
.timeline {
  position: relative;
  margin-top: 2rem;
  padding-left: 2rem;
  border-left: 4px solid #b08968;
}

/* Each timeline item */
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

/* Dot on timeline */
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.75rem;
  top: 0.4rem;
  width: 16px;
  height: 16px;
  background-color: #7f5539;
  border: 3px solid #f7f4ee;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #b08968;
}

/* Year */
.timeline-year {
  font-weight: bold;
  font-size: 1.1rem;
  color: #7f5539;
  margin-bottom: 0.5rem;
}

/* Card */
.timeline-content {
  background-color: #fcf8f2;
  border: 1px solid #e2d6c8;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

/* Optional section spacing */
.timeline-section {
  margin-top: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  main {
    margin: 1.5rem;
    padding: 1.5rem;
  }

  nav {
    padding: 1rem;
  }

  nav a {
    display: inline-block;
    margin: 0.4rem 0.6rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-item::before {
    left: -2.2rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}
.home-hero-image {
  margin: 2rem auto;
  text-align: center;
}

.home-hero-image img {
  width: 100%;
  max-width: 520px;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid #d8c7b5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.home-hero-image figcaption {
  max-width: 520px;
  margin: 0.7rem auto 0 auto;
  font-size: 0.95rem;
  color: #6a625c;
  font-style: italic;
  line-height: 1.5;
}
.timeline-figure {
  margin: 2rem 0 2.5rem 0;
  text-align: center;
}

.timeline-figure img {
  width: 100%;
  max-width: 620px;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid #d8c7b5;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
}

.timeline-figure figcaption {
  max-width: 620px;
  margin: 0.7rem auto 0 auto;
  font-size: 0.95rem;
  color: #6a625c;
  font-style: italic;
  line-height: 1.5;
}
.survey-overview {
  margin: 3rem 0;
}

.survey-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.survey-card {
  background-color: #fffaf3;
  border: 1px solid #decdbb;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.survey-card h3 {
  margin-top: 0.8rem;
  color: #4f392b;
}

.survey-card p {
  line-height: 1.65;
}

.survey-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #8a5a44;
  color: #fffaf3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: bold;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.55rem 0.9rem;
  background-color: #8a5a44;
  color: #fffaf3;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

.card-link:hover {
  background-color: #6f4e37;
}

@media (max-width: 768px) {
  .survey-grid {
    grid-template-columns: 1fr;
  }
}
.survey-map {
  margin: 2rem auto;
  text-align: center;
}

.survey-map img {
  width: 100%;
  max-width: 760px;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid #d8c7b5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.survey-map figcaption {
  max-width: 760px;
  margin: 0.7rem auto 0 auto;
  font-size: 0.95rem;
  color: #6a625c;
  font-style: italic;
  line-height: 1.5;
}
.district-materials {
  margin: 3rem 0;
}

.district-details {
  background-color: #fffaf3;
  border: 1px solid #decdbb;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.district-details summary {
  cursor: pointer;
  font-weight: bold;
  color: #4a3728;
}

.district-details p {
  margin-top: 1rem;
  line-height: 1.7;
}
.county-summary {
  margin: 3rem 0;
}

.county-summary h2 {
  text-align: center;
  font-size: 2rem;
  color: #5c3b2e;
  margin-bottom: 1.5rem;
}

.county-summary h3 {
  font-size: 1.4rem;
  color: #5c3b2e;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.county-summary p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0 2rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fffaf4;
}

th,
td {
  border: 1px solid #d8c3b0;
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #8b5a44;
  color: white;
  font-weight: 700;
}

tbody tr:nth-child(even) {
  background: #f7efe7;
}

.total-row {
  background: #ead8c8;
  font-weight: 700;
}
.county-summary strong {
  color: #8b5a44;
  font-weight: 800;
}
.calculation-hero,
.calculation-flow,
.calculation-step {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fffaf4;
  border: 1px solid #e2cdbb;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(92, 59, 46, 0.08);
}

.calculation-hero h1 {
  text-align: center;
  font-size: 2.1rem;
  color: #5c3b2e;
  margin-bottom: 1.2rem;
}

.calculation-hero p,
.calculation-step p,
.calculation-flow p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.calculation-step h2,
.calculation-flow h2 {
  color: #5c3b2e;
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}

.calculation-step h3 {
  color: #5c3b2e;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.step-label {
  display: inline-block;
  background: #8b5a44;
  color: white;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.flow-chart {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  margin-top: 1.5rem;
}

.flow-step {
  width: 100%;
  max-width: 650px;
  background: #f8f1ea;
  border: 1px solid #e2cdbb;
  border-left: 6px solid #8b5a44;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: #5c3b2e;
  text-align: center;
}

.flow-arrow {
  font-size: 1.5rem;
  color: #8b5a44;
  font-weight: 800;
}

blockquote {
  background: #f8f1ea;
  border-left: 6px solid #8b5a44;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: #4b3a32;
  line-height: 1.7;
  font-style: italic;
}

.regional-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin: 1.5rem 0 2rem 0;
}

.regional-card {
  background: #f8f1ea;
  border: 1px solid #e2cdbb;
  border-radius: 14px;
  padding: 1.2rem;
}

.regional-card h3 {
  margin-top: 0;
  color: #5c3b2e;
}

.regional-card ul {
  padding-left: 1.2rem;
  line-height: 1.7;
}

.formula-box {
  background: #f3e5d8;
  border: 1px solid #d8c3b0;
  border-radius: 14px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.formula {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #5c3b2e;
}

@media (max-width: 800px) {
  .regional-cards {
    grid-template-columns: 1fr;
  }

  .calculation-hero,
  .calculation-flow,
  .calculation-step {
    padding: 1.3rem;
  }

  .calculation-hero h1 {
    font-size: 1.6rem;
  }
}
.response-section {
  max-width: 980px;
  margin: 4rem auto;
  padding: 2rem;
  background: #fffaf4;
  border-radius: 18px;
}

.response-section h2 {
  text-align: center;
  color: #4b3328;
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 2rem auto;
  text-align: center;
  line-height: 1.7;
}

.response-section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 2rem;
  background: #fffaf4;
  border-radius: 18px;
}

.response-section h2 {
  text-align: center;
  color: #4b3328;
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 2rem auto;
  text-align: center;
  line-height: 1.7;
}

.print-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.print-images,
.print-text {
  min-width: 0;
}

.print-images {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.print-images figure {
  margin: 0;
}

.main-source-image img,
.supporting-images img {
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid #dccbbb;
  box-shadow: 0 6px 18px rgba(80, 50, 30, 0.12);
}

.main-source-image img {
  max-height: 480px;
  object-fit: contain;
  background: #fffdf9;
}

.main-source-image figcaption,
.supporting-images figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: #7a6a5c;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

.supporting-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.print-text h3 {
  color: #5a3a2e;
  margin-top: 0;
  margin-bottom: 1rem;
}

.source-quote {
  margin-bottom: 1.5rem;
}

.source-quote h4 {
  color: #6b3f25;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.print-text blockquote {
  margin: 0 0 1rem 0;
  padding: 1rem 1.2rem;
  background: #fffdf9;
  border-left: 4px solid #9a6a47;
  font-style: italic;
  line-height: 1.8;
  color: #4b3328;
  border-radius: 8px;
}

.print-text p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.source-note {
  font-size: 0.95rem;
  color: #7a6a5c;
  margin-bottom: 1rem;
  font-style: italic;
}

.conflict-table-section {
  margin-top: 2.5rem;
}

.conflict-table-section h3 {
  color: #5a3a2e;
  margin-bottom: 0.8rem;
}

.conflict-table-section p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.table-container {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.conflict-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fffdf9;
}

.conflict-table th {
  background: #8d958f;
  color: #2d2926;
  text-align: left;
  padding: 0.9rem;
  border: 3px solid #ffffff;
}

.conflict-table td {
  padding: 0.9rem;
  border: 3px solid #ffffff;
  vertical-align: top;
  background: #eef0eb;
  line-height: 1.5;
}

.conflict-table td:first-child {
  font-weight: bold;
}

@media (max-width: 900px) {
  .print-feature {
    grid-template-columns: 1fr;
  }

  .supporting-images {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .supporting-images {
    grid-template-columns: 1fr;
  }

  .conflict-table {
    font-size: 0.85rem;
  }

  .conflict-table th,
  .conflict-table td {
    padding: 0.7rem;
  }
}
.primary-source-note {
  max-width: 850px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fffaf4;
  border: 1px solid #e2cdbb;
  border-left: 6px solid #8b5a44;
  border-radius: 14px;
}

.primary-source-note h2 {
  color: #5c3b2e;
  margin-top: 0;
}

.source-link {
  display: inline-block;
  background: #8b5a44;
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: 8px;
}

.source-link:hover {
  background: #6f4534;
}