/* FPRates shell: colours, fonts, header and footer — shared by every page */
:root {
  --bg: #0b0e13;
  --card: #11151c;
  --inset: #0d1117;
  --line: #1e2530;
  --line-2: #2a3240;
  --line-3: #3a4352;
  --text: #e8edf3;
  --soft: #c4ccd6;
  --muted: #a8b1bd;
  --accent: #3ddc84;
  /* FreePhase band colours: fills, and lifted shades for text */
  --green: #00a336;  --green-t: #5ee08f;
  --amber: #e08a00;  --amber-t: #ffb547;
  --red:   #e01e1e;  --red-t:   #ff7a7a;
  --free:  #3ddc84;  --free-t:  #3ddc84;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Space Grotesk', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); }
a { color: var(--accent); }
a:hover { color: var(--text); }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 20px 20px 48px; }

/* ---------- header ---------- */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand-mark { display: flex; flex-direction: column; gap: 3px; }
.brand-mark i { display: block; width: 30px; height: 7px; border-radius: 2px; }
.brand-mark .g { background: var(--green); } .brand-mark .a { background: var(--amber); } .brand-mark .r { background: var(--red); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.brand-tag { font-size: 13px; color: var(--muted); }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; font-size: 15px; }
.site-nav > a, .menu > summary { color: var(--soft); text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; cursor: pointer; }
.site-nav > a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.site-nav > a:hover, .menu > summary:hover { color: var(--text); }
.menu { position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.7; }
.menu[open] > summary { color: var(--text); }
.menu-panel { position: absolute; top: calc(100% + 6px); left: -12px; z-index: 20; min-width: 230px; display: flex; flex-direction: column; padding: 8px; border-radius: 12px; background: #141922; border: 1px solid var(--line-2); box-shadow: 0 12px 30px rgba(0,0,0,0.45); }
.menu-panel.menu-right { left: auto; right: -12px; }
.menu-panel a { color: var(--soft); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.menu-panel a:hover { background: #1c2330; color: var(--text); }
.menu-panel hr { border: none; border-top: 1px solid var(--line-2); margin: 6px 4px; }
.menu > summary:focus-visible, .site-nav > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.region-pick { display: flex; align-items: center; gap: 10px; }
.region-pick label { font-size: 13px; color: var(--muted); }
.region-pick select, .field select { min-height: 44px; background: var(--card); color: var(--text); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; font-family: inherit; font-size: 14px; }

/* footer */
.site-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.footer-text { max-width: 640px; line-height: 1.55; }
.footer-text a { color: var(--soft); }
.footer-text a.link-48 { color: #4cc2ff; font-family: var(--mono); font-weight: 600; }
.footer-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--soft); }
.icon-btn:hover { color: var(--text); border-color: var(--line-3); }

@media (max-width: 700px) {
  .site-nav { gap: 0 14px; }
  .menu-panel { position: fixed; left: 16px; right: 16px; top: auto; min-width: 0; }
}
