/* ==========================================================================
   miner.css — Miner Recollections section
   Scoped to #miner-index and #miner-story so selectors stay clean.
   No classes inside story pages except .miner-header and nav links.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Index page — #miner-index
   --------------------------------------------------------------------------- */

#miner-index {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

#miner-index header {
  border-left: 4px solid #2C6D51;
  padding: 0.75rem 0 0.75rem 1.25rem;
  margin-bottom: 2rem;
}
#miner-index header h1 { margin: 0 0 0.25rem; }
#miner-index header p {
  font-size: 0.95rem;
  color: #555;
  font-style: italic;
  margin: 0;
}

#miner-index .intro {
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 680px;
}

#miner-index h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2C6D51;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.3rem;
}

#miner-index .miner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.25rem 1.5rem;
}
#miner-index .miner-grid a {
  display: block;
  padding: 0.4rem 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #2C6D51;
  font-size: 0.92rem;
  line-height: 1.35;
}
#miner-index .miner-grid a:hover { color: #1a4a35; text-decoration: underline; }

/* ---------------------------------------------------------------------------
   Story pages — #miner-story
   All styling scoped here. HTML inside needs no classes.
   --------------------------------------------------------------------------- */

#miner-story {
  max-width: 740px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font-size: 1rem;
  line-height: 1.75;
}

/* Back link */
#miner-story > p:first-child {
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}
#miner-story > p:first-child a,
#miner-story > p:last-child a {
  color: #2C6D51;
  text-decoration: none;
}
#miner-story > p:first-child a:hover,
#miner-story > p:last-child a:hover { text-decoration: underline; }

/* Page header block */
#miner-story header {
  border-left: 4px solid #2C6D51;
  padding: 0.75rem 0 0.75rem 1.25rem;
  margin-bottom: 1.75rem;
}
#miner-story header p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2C6D51;
  font-weight: 700;
  margin: 0 0 0.35rem;
}
#miner-story header h1 {
  margin: 0 0 0.3rem;
  font-size: 1.6rem;
}
#miner-story header small {
  font-size: 0.88rem;
  color: #666;
  font-style: italic;
}

/* Body content */
#miner-story p { margin: 0 0 1rem; }

#miner-story h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2C6D51;
  margin: 1.5rem 0 0.5rem;
  border-bottom: 1px solid #e0ede8;
  padding-bottom: 0.25rem;
}

/* Images */
#miner-story figure {
  float: right;
  margin: 0 0 1.25rem 1.5rem;
  max-width: 280px;
  clear: right;
}
#miner-story figure.float-left {
  float: left;
  margin: 0 1.5rem 1.25rem 0;
  clear: left;
}
#miner-story figure.full-width {
  float: none;
  margin: 0 0 1.25rem;
  max-width: 100%;
  clear: both;
}
@media (max-width: 560px) {
  #miner-story figure {
    float: none;
    margin: 0 0 1.25rem;
    max-width: 100%;
  }
}
#miner-story figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ddd;
}
#miner-story figcaption {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.35rem;
  line-height: 1.4;
  font-style: italic;
}
@media (max-width: 560px) {
  #miner-story figure {
    float: none;
    margin: 0 0 1.25rem;
    max-width: 100%;
  }
}

/* Blockquotes — verse, epigraphs, Bible quotes, song lyrics */
#miner-story blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1.25rem;
  border-left: 3px solid #a08050;
  border-top: 1px solid #ddd0b0;
  border-bottom: 1px solid #ddd0b0;
  background: #faf7f0;
  font-style: italic;
  line-height: 1.85;
  color: #4a4440;
}
#miner-story blockquote p { margin: 0; }
#miner-story blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-style: normal;
  color: #8a7050;
}

/* Acknowledgement / source note at end of article */
#miner-story footer {
  font-size: 0.88rem;
  color: #555;
  font-style: italic;
  border-top: 1px solid #eee;
  padding-top: 0.75rem;
  margin-top: 1.5rem;
}

/* Nav link at bottom */
#miner-story > p:last-child {
  margin-top: 2rem;
  font-size: 0.88rem;
}

/* ---------------------------------------------------------------------------
   Shared — boilerplate footer injected by myscript.js
   --------------------------------------------------------------------------- */

#miner-footer {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: #f7f7f5;
  border-left: 3px solid #2C6D51;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #555;
}
#miner-footer p { margin: 0 0 0.4rem; }
#miner-footer p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   Those Who Died — data table
   --------------------------------------------------------------------------- */

#miner-story .table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}
#miner-story table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
}
#miner-story th {
  background: #2C6D51;
  color: #fff;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
#miner-story td {
  padding: 0.35rem 0.75rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
#miner-story tr:nth-child(even) td { background: #f9f9f7; }
#miner-story tr:hover td { background: #f0f7f4; }

/* ---------------------------------------------------------------------------
   Image-only scanned article pages
   --------------------------------------------------------------------------- */

#miner-story .article-scan {
  float: none;
  max-width: 100%;
  margin: 0 0 1.5rem;
}
#miner-story .article-scan img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
  display: block;
}
