/* ============================================================
   Shared shell for the craps site pages
   (faq.html, about.html, version.html, contact.html)
   The tracker itself is self-contained and does NOT use this.
   ============================================================ */

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: radial-gradient(ellipse at top, #146b38 0%, #0c4a26 35%, #063018 65%, #021a0d 100%);
  background-attachment: fixed;
  color: #f2f2f2;
  margin: 0;
  padding: 76px 20px 60px 20px;
  min-height: 100vh;
  line-height: 1.6;
}


/* ===== Floating nav ===== */

.floating-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9500;
  background: rgba(6,32,15,0.94);
  border-bottom: 1px solid #2a8850;
  backdrop-filter: blur(4px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.45);
}

.floating-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid #2a8850;
  color: #e8c877;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-family: Arial, sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease, color 0.18s ease;
}

.nav-pill:hover {
  background: #d4af37;
  color: #06200f;
  border-color: #d4af37;
  transform: translateY(-1px);
}

.nav-pill.primary {
  background: #d4af37;
  color: #06200f;
  border-color: #ffdc73;
  font-weight: bold;
}

.nav-pill.primary:hover {
  background: #ffdc73;
}

.menu-wrapper {
  position: relative;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  background: #06200f;
  border: 1px solid #2a8850;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.55);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.menu-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f2e6c8;
  font-size: 13px;
  padding: 9px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.12s ease;
}

.menu-item:hover {
  background: rgba(212,175,55,0.15);
}

.menu-item.current {
  background: rgba(212,175,55,0.22);
  color: #ffdc73;
}

.menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
  color: #fff;
}


/* ===== Page shell ===== */

.page {
  max-width: 820px;
  margin: 0 auto;
}

.page-title {
  color: #f2e6c8;
  font-size: 27px;
  margin: 10px 0 6px 0;
  letter-spacing: 0.3px;
}

.page-intro {
  color: #b9d9c4;
  font-size: 15px;
  margin: 0 0 26px 0;
}

.card {
  background: #06200f;
  border: 1px solid #2a8850;
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

.card h2 {
  color: #ffdc73;
  font-size: 17px;
  margin: 0 0 14px 0;
  letter-spacing: 0.3px;
}

.card h3 {
  color: #f2e6c8;
  font-size: 15px;
  margin: 20px 0 6px 0;
}

.card p {
  color: #cfe8d8;
  font-size: 14px;
  margin: 0 0 12px 0;
}

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

.card ul {
  color: #cfe8d8;
  font-size: 14px;
  padding-left: 20px;
  margin: 0 0 12px 0;
}

.card li {
  margin-bottom: 7px;
}

.card a {
  color: #ffdc73;
}

.muted {
  color: #8fbfa0;
  font-size: 13px;
}

.callout {
  background: rgba(212,175,55,0.08);
  border: 1px dashed #d4af37;
  border-radius: 8px;
  padding: 14px 18px;
  color: #f2e6c8;
  font-size: 13.5px;
  margin: 22px 0;
}

.callout strong {
  color: #ffdc73;
}

.formula {
  display: inline-block;
  background: #041708;
  border: 1px solid #1d7a45;
  border-radius: 5px;
  padding: 2px 8px;
  color: #6fe08a;
  font-family: "Courier New", monospace;
  font-size: 13px;
}


/* ===== FAQ entries ===== */

.faq {
  background: #041708;
  border: 1px solid #1d7a45;
  border-left: 4px solid #2a8850;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq[open] {
  border-left-color: #d4af37;
}

.faq summary {
  cursor: pointer;
  padding: 13px 16px;
  color: #f2e6c8;
  font-size: 14.5px;
  font-weight: bold;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "▸";
  color: #6f9c82;
  margin-left: auto;
  transition: transform 0.15s ease;
}

.faq[open] summary::after {
  transform: rotate(90deg);
}

.faq-body {
  padding: 0 16px 16px 16px;
  color: #cfe8d8;
  font-size: 14px;
  border-top: 1px solid #12331f;
  padding-top: 12px;
}

.faq-body p { margin: 0 0 10px 0; }
.faq-body p:last-child { margin-bottom: 0; }

.chart-tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(212,175,55,0.16);
  color: #e8c877;
  margin-bottom: 8px;
}


/* ===== Version timeline ===== */

.release {
  position: relative;
  padding-left: 26px;
  margin-bottom: 6px;
}

.release::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 26px;
  bottom: -12px;
  width: 2px;
  background: #1d7a45;
}

.release:last-child::before { display: none; }

.release-dot {
  position: absolute;
  left: 0;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #06200f;
  border: 3px solid #2a8850;
}

.release.current .release-dot {
  border-color: #d4af37;
  box-shadow: 0 0 10px rgba(212,175,55,0.55);
}

.release-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.release-version {
  font-size: 20px;
  font-weight: bold;
  color: #f2e6c8;
}

.release.current .release-version { color: #ffdc73; }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #2a8850;
  color: #8fbfa0;
}

.tag.current {
  background: #d4af37;
  border-color: #d4af37;
  color: #06200f;
}

.release-date {
  color: #6f9c82;
  font-size: 12px;
}

.change-list { margin: 10px 0 0 0; padding: 0; list-style: none; }

.change-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #cfe8d8;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 7px 0;
}

.change-kind {
  flex-shrink: 0;
  width: 54px;
  font-size: 9.5px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-align: center;
  padding: 3px 0;
  border-radius: 4px;
  margin-top: 2px;
}

.kind-new { background: rgba(111,224,138,0.18); color: #6fe08a; }
.kind-fix { background: rgba(255,106,61,0.18); color: #ff9a6b; }
.kind-change { background: rgba(77,184,255,0.18); color: #4db8ff; }
.kind-removed { background: rgba(168,58,58,0.22); color: #ff9d9d; }


/* ===== Contact ===== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.contact-tile {
  background: #041708;
  border: 1px solid #1d7a45;
  border-radius: 8px;
  padding: 16px 18px;
}

.contact-tile h3 {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: #ffdc73;
}

.contact-tile p {
  margin: 0;
  font-size: 13px;
  color: #cfe8d8;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #8fbfa0;
  margin-bottom: 5px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: #041708;
  border: 1px solid #2a8850;
  border-radius: 6px;
  color: #f2e6c8;
  font-family: Arial, sans-serif;
  font-size: 14px;
  padding: 10px 12px;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.2);
}

.submit-btn {
  background: #d4af37;
  border: 1px solid #ffdc73;
  color: #06200f;
  font-weight: bold;
  font-size: 14px;
  font-family: Arial, sans-serif;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.submit-btn:hover {
  background: #ffdc73;
}


/* ===== Back to the tracker ===== */

.back-row {
  max-width: 820px;
  margin: 30px auto 0 auto;
  display: flex;
  justify-content: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #06200f;
  border: 1px solid #2a8850;
  color: #e8c877;
  font-size: 14px;
  font-weight: bold;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.45);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.back-btn:hover {
  background: #d4af37;
  color: #06200f;
  border-color: #ffdc73;
  transform: translateY(-1px);
}

.back-btn:active {
  transform: translateY(0);
}


/* ===== Footer ===== */

.page-footer {
  max-width: 820px;
  margin: 34px auto 0 auto;
  padding-top: 18px;
  border-top: 1px solid #1d7a45;
  text-align: center;
  color: #6f9c82;
  font-size: 12px;
  line-height: 1.9;
}

.page-footer a {
  color: #8fbfa0;
  text-decoration: none;
  margin: 0 2px;
}

.page-footer a:hover {
  color: #ffdc73;
}


@media (max-width: 600px) {

  body {
    padding: 62px 12px 40px 12px;
  }

  .page-title { font-size: 22px; }

  .card { padding: 16px 15px; }

  .nav-pill {
    padding: 7px 11px;
    font-size: 12px;
  }

  .change-kind { width: 48px; }
}
