/* =============================================================
   INLINE INFO — shared components for ⓘ and ⓐ markers
   Load this CSS on any page that uses the markers.
   Requires site's CSS variables: --ink, --paper, --cream, --red,
   --blueprint, --mustard, --font-body, --font-display, --font-heading.
   ============================================================= */

/* -------------------------------------------------------------
   ⓘ — information button
   Self-contained definition. Click → modal.
   ------------------------------------------------------------- */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  margin: 0 0 0 6px;
  padding: 0;
  vertical-align: middle;
  background: var(--blueprint, #2c5d8a);
  color: #fff5d6;
  border: 2px solid var(--ink, #1a1a1a);
  border-radius: 50%;
  font-family: var(--font-heading, 'Archivo Black', sans-serif);
  font-size: 11px;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s, background 0.12s;
}
.info-btn::before {
  content: 'i';
  font-weight: 700;
  transform: translateY(-0.5px);
}
.info-btn:hover,
.info-btn:focus-visible {
  background: var(--red, #d6372e);
  transform: scale(1.15);
  outline: none;
}

/* -------------------------------------------------------------
   ⓐ — additional-info (expand/collapse) button
   Click → reveals a collapsible section inline.
   ------------------------------------------------------------- */
.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 0 6px;
  padding: 3px 10px 3px 8px;
  vertical-align: middle;
  background: var(--red, #d6372e);
  color: var(--cream, #fff5d6);
  border: 2px solid var(--ink, #1a1a1a);
  border-radius: 100px;
  font-family: var(--font-heading, 'Archivo Black', sans-serif);
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.12s, background 0.12s;
}
.more-btn::before {
  content: 'more';
}
.more-btn::after {
  content: '▾';
  font-size: 9px;
  transition: transform 0.18s;
}
.more-btn[aria-expanded="true"]::after {
  transform: rotate(180deg);
}
.more-btn:hover,
.more-btn:focus-visible {
  background: var(--ink, #1a1a1a);
  transform: translateY(-1px);
  outline: none;
}

/* The collapsible target */
.more-content {
  display: none;
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--cream, #fff5d6);
  border: 2px solid var(--ink, #1a1a1a);
  border-left: 6px solid var(--red, #d6372e);
  font-size: 14px;
  line-height: 1.6;
  animation: more-slide-in 0.24s ease-out;
}
.more-content.open {
  display: block;
}
.more-content > *:first-child { margin-top: 0; }
.more-content > *:last-child { margin-bottom: 0; }
@keyframes more-slide-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------
   MODAL (for ⓘ information, and reused by tip-the-makers modal)
   ------------------------------------------------------------- */
.jtt-modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(26, 26, 26, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: jtt-fade-in 0.18s ease-out;
}
.jtt-modal-backdrop.open {
  display: flex;
}
@keyframes jtt-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.jtt-modal {
  position: relative;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem 2rem 1.75rem;
  background: var(--cream, #fff5d6);
  border: 4px solid var(--ink, #1a1a1a);
  box-shadow: 10px 10px 0 var(--ink, #1a1a1a);
  font-family: var(--font-body, 'Space Mono', monospace);
  color: var(--ink, #1a1a1a);
  animation: jtt-modal-in 0.22s ease-out;
}
@keyframes jtt-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.jtt-modal--wide { max-width: 720px; }

.jtt-modal h3 {
  font-family: var(--font-display, 'Bungee', sans-serif);
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: var(--ink, #1a1a1a);
  line-height: 1.15;
}
.jtt-modal h3 .subtitle {
  display: block;
  font-family: var(--font-hand, 'Caveat', cursive);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--red, #d6372e);
  letter-spacing: 0;
  margin-top: 2px;
}
.jtt-modal p {
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.jtt-modal p:last-child { margin-bottom: 0; }
.jtt-modal code {
  background: var(--paper-dark, #e8d9b0);
  padding: 0.1rem 0.4rem;
  font-size: 0.88em;
  border: 1px solid var(--ink, #1a1a1a);
}
.jtt-modal a {
  color: var(--red, #d6372e);
  text-decoration: underline;
}
.jtt-modal ul, .jtt-modal ol {
  margin: 0 0 0.9rem 1.5rem;
  font-size: 0.92rem;
}
.jtt-modal li { margin-bottom: 0.3rem; }

.jtt-modal-close {
  position: absolute;
  top: 0.5rem; right: 0.5rem;
  width: 32px; height: 32px;
  padding: 0;
  background: var(--paper, #f4ead5);
  color: var(--ink, #1a1a1a);
  border: 2px solid var(--ink, #1a1a1a);
  font-family: var(--font-heading, 'Archivo Black', sans-serif);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s;
}
.jtt-modal-close:hover {
  background: var(--red, #d6372e);
  color: var(--cream, #fff5d6);
}

/* -------------------------------------------------------------
   TIP THE MAKERS modal — four chain cards
   ------------------------------------------------------------- */
.ttm-lead {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  color: var(--ink, #1a1a1a);
}
.ttm-lead .hand {
  font-family: var(--font-hand, 'Caveat', cursive);
  color: var(--red, #d6372e);
  font-size: 1.15rem;
}
.ttm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
@media (max-width: 520px) {
  .ttm-grid { grid-template-columns: 1fr; }
}
.ttm-card {
  padding: 0.85rem 0.95rem;
  background: var(--paper, #f4ead5);
  border: 3px solid var(--ink, #1a1a1a);
  box-shadow: 3px 3px 0 var(--ink, #1a1a1a);
}
.ttm-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.ttm-card-chain {
  font-family: var(--font-display, 'Bungee', sans-serif);
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--ink, #1a1a1a);
}
.ttm-card-asset {
  font-family: var(--font-body, 'Space Mono', monospace);
  font-size: 0.7rem;
  color: var(--mud, #3f6b4e);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.ttm-card-addr {
  font-family: var(--font-body, 'Space Mono', monospace);
  font-size: 0.78rem;
  color: #4a4238;
  margin-bottom: 0.55rem;
  word-break: break-all;
  min-height: 1.2em;
}
.ttm-card-addr.unset {
  color: #8a7f6e;
  font-style: italic;
}
.ttm-card-actions {
  display: flex;
  gap: 0.4rem;
}
.ttm-card-btn {
  flex: 1;
  padding: 0.35rem 0.6rem;
  background: var(--cream, #fff5d6);
  color: var(--ink, #1a1a1a);
  border: 2px solid var(--ink, #1a1a1a);
  font-family: var(--font-heading, 'Archivo Black', sans-serif);
  font-size: 0.7rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.ttm-card-btn:hover:not([disabled]) {
  background: var(--mustard, #e8b62c);
}
.ttm-card-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.ttm-card-btn.copied {
  background: var(--mud, #3f6b4e);
  color: var(--cream, #fff5d6);
}
.ttm-card-qr {
  display: none;
  margin-top: 0.7rem;
  padding: 0.5rem;
  background: #fff;
  border: 2px solid var(--ink, #1a1a1a);
  text-align: center;
}
.ttm-card-qr.shown { display: block; }
.ttm-card-qr img, .ttm-card-qr canvas {
  max-width: 140px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.ttm-footnote {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px dashed var(--ink, #1a1a1a);
  font-size: 0.78rem;
  color: #4a4238;
  line-height: 1.5;
}
