/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* BASE */
body {
  font-family: Georgia, "Times New Roman", serif;
  background: #f4f4f2;
  color: #222;
  line-height: 1.6;
}

a {
  color: #0b4f6c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* LAYOUT */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* HEADER */
.site-header {
  background: #2c2c2c;
  color: #fff;
  border-bottom: 4px solid #b89b5e;
}

.site-header h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 1rem;
}

.coin-label {
  font-weight: bold;
}

/* NAVIGATION */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-nav a {
  color: #fff;
  font-weight: bold;
}

.main-nav a:hover {
  color: #b89b5e;
}

/* MONARCH */
.monarch {
  background: #fff;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 6px solid #b89b5e;
}

.monarch h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.monarch p {
  margin-bottom: 1.5rem;
}

/* BUTTON */
.button {
  display: inline-block;
  background: #0b4f6c;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: bold;
}

.button:hover {
  background: #093c52;
  text-decoration: none;
}

/* SECTIONS */
section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.3rem;
}

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.card {
  background: #fff;
  padding: 1rem;
  border: 1px solid #ddd;
  text-align: center;
  font-weight: bold;
}

.card:hover {
  border-color: #b89b5e;
  background: #faf9f7;
}

/* LIST */
.link-list {
  list-style: none;
}

.link-list li {
  margin-bottom: 0.2rem;
}

/* FOOTER */
.site-footer {
  background: #2c2c2c;
  color: #ccc;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* MOBILE TWEAKS */
@media (max-width: 600px) {
  .site-header h1 {
    font-size: 1.6rem;
  }

  .hero {
    padding: 1.5rem;
  }
}

/* IMAGE GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.coin {
  background: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: center;
}

.coin img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  background: #fafafa;
}

.coin figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #333;
}

.coin .type {
  font-weight: bold;
}

.coin .details {
  font-size: 0.85rem;
  color: #555;
}

/* OPTIONAL: OBVERSE / REVERSE PAIR */
.coin-pair {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.coin-pair img {
  width: 48%;
}

/* LIGHTBOX (NO JAVASCRIPT) */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.lightbox:target {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: 5% auto;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border: 4px solid #fff;
  background: #fff;
}

.lightbox-caption {
  margin-top: 1rem;
  color: #ddd;
  font-size: 0.95rem;
}

/* CLOSE BUTTON */
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  background: #000;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.lightbox-close:hover {
  background: #444;
}

/* CLICKABLE THUMBNAILS */
.coin a img {
  cursor: zoom-in;
}

/* INTERACTIVE MINT MAP */
.mint-map-container {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
}

.mint-map-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mint pins */
.mint-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #c00;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  transition: transform 0.2s;
}

.mint-pin:hover {
  transform: translate(-50%, -50%) scale(1.5);
}

/* Tooltip */
.mint-pin .tooltip {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}

.mint-pin:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* MINT POPUP */
.mint-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.mint-popup:target {
  opacity: 1;
  pointer-events: auto;
}

.mint-popup-content {
  background: #fff;
  max-width: 500px;
  margin: 10% auto;
  padding: 1.5rem;
  border-left: 6px solid #b89b5e;
  position: relative;
}

.mint-popup h3 {
  margin-bottom: 0.75rem;
}

.mint-popup ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.mint-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

/* BREADCRUMBS */
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.breadcrumb li::after {
  content: "›";
  margin-left: 0.4rem;
  color: #777;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: #0b4f6c;
}

.breadcrumb li[aria-current="page"] {
  color: #444;
  font-weight: bold;
}

/* FOOTNOTES */
.footnotes {
  font-size: 0.9rem;
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.footnotes li {
  margin-bottom: 0.75rem;
}

.footnotes a {
  text-decoration: none;
}

.footnote-back {
  margin-left: 0.4rem;
  font-size: 0.85rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-image {
  margin: 2rem 0;
}

details {
  margin-top: 1rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

summary::marker {
  font-size: 0.9em;
}

details[open] summary {
  margin-bottom: 0.75rem;
}

ul {
  list-style-type: none;
}

.coin-list li {
  margin-bottom: 0.6em;
}

.bibliography p {
  padding-left: 1.5em;
  text-indent: -1.5em;
  margin-bottom: 0.8rem;
}

dl {
  margin-bottom: 0.5rem;
}

/* ---------- PRINT RESET ---------- */
@media print {

  html, body {
    background: white !important;
    color: black !important;
    font-family: "Times New Roman", Times, serif;
    font-size: 11pt;
    line-height: 1.35;
  }

  /* Remove navigation & UI clutter */
  header,
  nav,
  .breadcrumb,
  .main-nav,
  .external,
  .sr-only {
    display: none !important;
  }

  /* Page setup */
  @page {
    margin: 25mm 20mm 25mm 20mm;
  }

  /* Avoid page breaks inside figures */
  figure {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  section {
    page-break-inside: avoid;
  }

  /* Headings */
  h1, h2 {
    page-break-after: avoid;
  }

  h2 {
    font-size: 13pt;
    text-align: center;
    margin-bottom: 18pt;
  }

  /* ---------- BIBLIOGRAPHY ---------- */

  .bibliography {
    max-width: none;
  }

.bib-list {
  list-style: none;
  padding-left: 0;
  }

.bib-list li {
  margin-bottom: 0.8em;     /* spacing between entries */
  padding-left: 2em;        /* space for indent */
  text-indent: -2em;        /* pulls first line back */
}

  /* Italics behave correctly in print */
  em, i {
    font-style: italic;
  }

  /* URLs suppressed (Chicago prefers not printing them) */
  a[href]:after {
    content: "";
  }
}

/* ---------- SOCIAL MEDIA SHARING --------- */

.share-bar{
position:fixed;
top:40%;
left:10px;
display:flex;
flex-direction:column;
gap:10px;
z-index:1000;
}

.share-bar a{
width:40px;
height:40px;
display:flex;
align-items:center;
justify-content:center;
background:#333;
border-radius:6px;
transition:transform .2s, background .2s;
}

.share-bar a:hover{
background:#555;
transform:scale(1.1);
}

.share-bar svg{
width:20px;
height:20px;
fill:white;
}
