/* assets/site.css */
:root{
  --bg:#0b0b0b;
  --panel:#111;
  --text:#f2f2f2;
  --muted:#bababa;

  --btc:#f3812c;           /* your orange */
  --ring: rgba(243,129,44,.45);
  --glow: 0 0 18px rgba(243,129,44,.55);

  --r:14px;

  --s-1:8px;
  --s-2:12px;
  --s-3:16px;
  --s-4:24px;
  --s-5:32px;

  --max:1100px;
}

/* Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.page{
  max-width:var(--max);
  margin:0 auto;
  padding: var(--s-4) var(--s-3);
}

/* Header */
.site-header{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-3);
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

/* 3-part header layout */
.header-left{ justify-self:start; }

.header-middle{
  justify-self:stretch;
  display:flex;
  justify-content:flex-end;

  /* Adjust this to move the bolt left/right within the middle column */
  padding-right: 12px;
}

.header-right{ justify-self:end; }

.brand-link{
  display:flex;
  align-items:center;
  gap: var(--s-2);
}

.logo{
  width:60px;
  height:60px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  background: rgba(243,129,44,.12);
  border:1px solid rgba(243,129,44,.35);
  box-shadow: var(--glow);
  font-weight:900;
  font-size:24px;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.brand-title{ font-weight:800; letter-spacing:.5px; }
.brand-tagline{ color:var(--muted); font-size:13px; margin-top:3px; }

.site-nav{
  display:flex;
  align-items:center;
  gap: var(--s-2);
}

.nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font: inherit;
}

.nav-link:hover{
  border-color: rgba(243,129,44,.35);
  box-shadow: 0 0 0 2px var(--ring);
  text-decoration:none;
}

.button-link{
  cursor:pointer;
}

/* Force button to look identical to links (kills iOS blue + weird sizing) */
.site-nav button.nav-link{
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font: inherit;
  color: var(--text);
}

/* Bolt */
.bolt{
  width:44px;
  height:44px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background: rgba(243,129,44,.08);
  border:1px solid rgba(243,129,44,.35);
  box-shadow: var(--glow);
  font-size:16px;
  line-height:1;
  color: var(--btc);
  text-decoration:none;
  cursor:pointer;
}
.bolt:hover{ box-shadow: 0 0 26px rgba(243,129,44,.75); }
.bolt:visited,
.bolt:active{ color: var(--btc); text-decoration:none; }

.bolt-icon{
  width:22px;
  height:22px;
  fill:#ffcc00;   /* clean yellow */
}

.bolt--footer{
  position:static;
  transform:none;
}

/* Footer */
.site-footer{
  margin-top: var(--s-5);
  border-top:1px solid rgba(255,255,255,.08);
  padding-top: var(--s-4);
  text-align:center;
}

.footer-top{
  margin-bottom: 10px;
}

.footer-links{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content:center;
}

.footer-links a{
  color: var(--muted);
  text-decoration:none;
}

.footer-links a:hover{
  text-decoration:underline;
}


.footer-copy{
  color: var(--muted);
}

.footer-bolt-inline .bolt{
  width:40px;
  height:40px;
}


/* Modal */

/* Zap modal extras */
.zap-qr-wrap{
  margin-bottom: var(--s-3);
  background: #fff;
  border-radius: calc(var(--r) + 6px);
  border: 1px solid rgba(255,255,255,.18);
  padding: 18px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.04);
}

.zap-qr{
  display:block;
  width: min(420px, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
}

.zap-row{
  margin-top: var(--s-2);
}

.zap-hint{
  margin: 10px 0 6px;
  font-size: 13px;
  color: var(--muted);
  text-align:center;
  line-height:1.4;
}


.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index: 50;
}
.modal.open{ display:block; }

.modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.65);
}

.modal-panel{
  position: relative;
  width: min(460px, calc(100% - 28px));
  margin: 0;

  background: var(--panel);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r);
  box-shadow: 0 0 0 2px rgba(255,255,255,.04);
  padding: var(--s-3);

  max-height: calc(100vh - 28px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal.open{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: 14px;
  overflow:auto;
}

.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--s-2);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.modal-body{ padding-top: var(--s-3); }

.icon-btn{
  width:40px;
  height:40px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor:pointer;
}

.muted{ color: var(--muted); }

.copy-row{
  display:flex;
  align-items:center;
  gap: var(--s-2);
  margin-top: var(--s-2);
}

code{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  word-break: break-all;
  flex:1;
}

.btn{
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(243,129,44,.35);
  background: rgba(243,129,44,.12);
  color: var(--text);
  cursor:pointer;
  white-space:nowrap;
}
.btn:hover{ box-shadow: 0 0 0 2px var(--ring); }

.copy-msg{
  margin-top: var(--s-2);
  color: var(--muted);
  min-height: 18px;
}

/* =========================
   Desktop/base footer layout
   ========================= */

.footer-support{
  display:flex;
  flex-direction: column;   /* text then bolt */
  align-items:center;
  gap:20px;
  margin-top: 8px;
}

.footer-support-text{
  font-size: 14px;
  opacity: 0.85;
}

.footer-bottom{
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:18px;
}

.footer-copy{
  margin: 0;
}

/* =========================
   why? toggle (base)
   ========================= */
.info-toggle{
  margin-left: 8px;
  background: none;
  border: none;
  color: #f7931a;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 680px){

  /* =========================
     Header (keep current working layout)
     ========================= */
  .site-header{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "left middle"
      "right right";
    gap: 14px;
  }

  .header-left{ grid-area:left; }

  .header-middle{
    grid-area:middle;
    padding-right: 15px;     /* keep your “sweet spot” */
    display:flex;
    justify-content:flex-end;
    align-items:center;
  }

  .header-right{
    grid-area:right;
    margin-top: 12px;
    width: 100%;
    justify-self: stretch;
    display:flex;
    justify-content:center;
  }

  .site-nav{
    display:flex;
    gap: 12px;
    width: 100%;
  }

  .site-nav .nav-link{
    flex: 1 1 0;
    min-width: 0;
    text-align:center;
    white-space: normal;   /* allow wrap */
  }

  /* =========================
     Live table mobile tweaks
     ========================= */
  .live-head{
    flex-direction: column;
    align-items: stretch;
  }

  .live-controls{
    justify-content: space-between;
  }

  /* =========================
     Footer (REAL classes)
     Goal:
     - Made with... centered
     - smaller gap above ©
     - bolt under © with a bit of space below it
     ========================= */
  .footer-links{
    width:100%;
    display:flex;
    justify-content:center;
    text-align:center;
    flex-wrap: wrap;          /* stops ugly overflow on narrow screens */
    gap: 10px;
  }

  .footer-sep{
    opacity:.7;
  }

  .footer-top{
    margin-bottom: 6px;       /* shrink gap between Made-with line and © row */
  }

  .footer-bottom{
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap: 25px;                /* space between © and bolt */
  }

  .footer-copy{
    margin: 0;                /* kill any weird default margins */
    padding-top: 0;
    width:100%;
    display:flex;
    justify-content:center;
    text-align:center;
  }

  .footer-bolt-inline{
    margin: 0;
    padding-bottom: 14px;     /* space under bolt (what you asked) */
    width:100%;
    display:flex;
    justify-content:center;
  }

  /* Mobile: text left, bolt right */
.footer-support{
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:14px;
  margin-top: 14px;
}

  .footer-bolt-inline{
    margin-top: 0;
  }

  /* =========================
     why? toggle alignment on mobile
     (it WILL drop to next line on tight screens — but aligned nicely)
     ========================= */
  td.live-val .info-toggle{
    display: block;
    margin: 6px 0 0 0;
    text-align: left;
  }
}

/* =========================
   Tiny screens: keep nav labels on one line and same height
   ========================= */
@media (max-width: 420px){
  .site-nav{
    gap: 10px;
  }

  .site-nav .nav-link{
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
    font-size: 15px;          /* was 16 -> stops "Live Table" wrapping */
    white-space: nowrap;      /* keep single-line */
    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;  /* consistent vertical centering */
    min-height: 48px;         /* makes all 3 same height */
  }
}



/* Desktop: more space under bolt */
.footer-support{
  padding-bottom: 30px;   /* increase if you want more */
}


/* Contact modal button layout */
.modal-btn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  width:100%;
  padding:14px 16px;

  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);

  text-decoration:none;
  color: var(--text);
  cursor:pointer;
}

.modal-btn:hover{
  border-color: rgba(243,129,44,.35);
  box-shadow: 0 0 0 2px var(--ring);
}

.modal-label{
  font-weight:700;
}

.modal-sub{
  font-size:14px;
  color: var(--muted);
}

.modal-copy{
  margin-top: 10px;
  font-size:14px;
  color: var(--muted);
}

/* =========================
   Live Table (Option B)
   Scoped + maintainable
   ========================= */

/* =========================
   Reusable Card Component
   ========================= */
.card{
  border:1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.04),
    rgba(255,255,255,.02)
  );
  overflow:hidden;
}


.live{
  margin-top: var(--s-4);
}

.live-card{
  /* Live-specific layout rules only */
}

.live-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--s-3);
  padding: var(--s-3);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.live-title{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight:800;
  letter-spacing:.5px;
}

.live-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background: var(--btc);
  box-shadow: 0 0 0 6px rgba(243,129,44,.14);
}

.live-controls{
  display:flex;
  align-items:center;
  gap: 10px;
}

.live-label{
  color: var(--muted);
  font-size: 13px;
}

.live-select{
  font: inherit;
  color: var(--text);
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 10px 12px;
  outline:none;
  cursor:pointer;
}
.live-select:hover{
  border-color: rgba(243,129,44,.35);
  box-shadow: 0 0 0 2px var(--ring);
}

.live-body{
  padding: 0;
}

.live-table{
  width:100%;
  border-collapse: collapse;
}

.live-section td{
  padding: 26px var(--s-3) 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  font-weight:900;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 12px;
}

.live-section:first-of-type td{
  padding-top: 10px;   /* Don’t over-space the very first section */
}


.live-section td:first-child{
  color: var(--btc);
}
.live-section td:last-child{
  color: rgba(255,255,255,.55);
  text-transform:none;
  letter-spacing:0;
  font-weight:600;
  text-align:right;
}

.live-row td{
  padding: 12px var(--s-3);
  border-top: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
}

/* Floating reminder callout row */
.live-reminder td{
  padding: 18px var(--s-3);
  border-top: 1px solid rgba(255,255,255,.06); /* separates from Strike row */
  border-bottom: 1px solid rgba(255,255,255,.06); /* optional: makes it feel deliberate */
  text-align: center;
}

.live-reminder-cell{
  display: inline-block;
  max-width: calc(100% - (var(--s-3) * 2));
  padding: 12px 26px;
  text-align: center;
  font-weight: 800;
  color: var(--btc);

  background: rgba(243,129,44,.06);
  border: 1px solid rgba(243,129,44,.35);
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(243,129,44,.10);
}


.live-key{
  color: rgba(255,255,255,.78);
}

.live-val{
  text-align:right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: rgba(255,255,255,.78);
}

.live-key a,
.live-val a{
  color: inherit;
  text-decoration: none;
}

.live-key a:hover,
.live-val a:hover{
  color: var(--btc);
  text-decoration: underline;
}

/* =========================================
   Subsections (USA / AUSTRALIA / GLOBAL)
   ========================================= */

.live-subsection td{
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;

  padding: 14px var(--s-3);

  /* subtle band effect */
  background: rgba(255,255,255,.02);

  /* clean horizontal separators only */
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);

  /* remove any column divider */
  border-left: none;
  border-right: none;

  color: rgba(255,255,255,.75);

  /* soft top + bottom inner definition (no vertical line) */
  box-shadow:
    inset 0 1px 0 rgba(0,0,0,.35),
    inset 0 -1px 0 rgba(0,0,0,.35);
}


/* Left label (USA / AUSTRALIA / GLOBAL) */
.live-subsection td:first-child{
  color: rgba(255,255,255,.85);
}


/* Right descriptor (USD / AUD / Multi-region) */
.live-subsection td:last-child{
  text-align: right;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: none;
  color: rgba(255,255,255,.45);
}


/* Indent rows under subsection */
.live-subsection ~ .live-row td:first-child{
  padding-left: calc(var(--s-3) + 18px);
}

/* Resources page: allow descriptions to wrap (prevents horizontal overflow) */
main.live[aria-label="Resources"] .live-val{
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}



.live-loading{
  color: var(--muted);
}

.live-sub{
  display:block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  white-space: normal;
}

.live-updated{
  padding: 12px var(--s-3) 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 12px;
  text-align:right;
}

/* --- Existing stuff above --- */

.is-hidden {
  display: none;
}

.live-note {
  font-size: 14px;
  color: #9a9a9a;      /* lighter grey */
  line-height: 1.5;
  padding-top: 6px;
  padding-bottom: 14px;
}

.info-toggle {
  margin-left: 6px;
  background: none;
  border: none;
  color: #f7931a;
  cursor: pointer;
  font-size: 14px;
  display: inline;
  padding: 0;
}

.live-note a{
  color: #f7931a;
  text-decoration: underline;
}

.live-note a:hover{
  opacity: .8;
}
.info-toggle .chev{
  display: inline-block;
  margin-left: 6px;
  font-size: 18px;          /* bigger arrow */
  line-height: 1;
  transition: transform 160ms ease;
}

.info-toggle[aria-expanded="true"] .chev{
  transform: rotate(180deg);
}
