/* TONELAB shared site styles: colours, fonts, banner and footer.
   Used by every page (homepage and Tools pages) so they all match.
   Change a colour here and every page follows. */

:root {
  --tl-bg: #0d172b;          /* page background (homepage navy) */
  --tl-bar: #000619;         /* banner + footer */
  --tl-panel: #111e36;       /* form panels */
  --tl-line: #2b3a52;        /* borders */
  --tl-text: #e2e8f0;
  --tl-muted: #94a3b8;
  --tl-accent: #f2a33a;      /* buttons (FSK2DAW orange) */
  --tl-accent-hover: #f6b860;
  --tl-accent-ink: #1a1206;
  --tl-warn: #e5654f;
  --tl-yellow: #ffe100;      /* Sample Packs link */
  --tl-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tl-head: "Chakra Petch", "Inter", system-ui, sans-serif;
  --tl-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* Always reserve the scrollbar, so the banner never shifts between short and long pages */
html { overflow-y: scroll; }

/* ---------- Banner ---------- */
.tlh, .tlh *, .tlh *::before, .tlh *::after { box-sizing: border-box; }
.tlh, .tlh * { font-family: var(--tl-font); -webkit-font-smoothing: antialiased; }
.tlh {
  position: relative;
  z-index: 100;
  width: 100%;
  margin: 0;
  background-color: var(--tl-bar);
  color: #fff;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,.2), 0 0 1px 0 rgba(0,0,0,.2), 0 0 0 1px rgba(89,104,125,.4) inset;
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  text-align: left;
}

/* Same container widths as the homepage */
.tlh-inner, .tlf-inner { width: 100%; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (min-width: 576px)  { .tlh-inner, .tlf-inner { max-width: 576px; } }
@media (min-width: 768px)  { .tlh-inner, .tlf-inner { max-width: 768px; } }
@media (min-width: 992px)  { .tlh-inner, .tlf-inner { max-width: 992px; } }
@media (min-width: 1200px) { .tlh-inner, .tlf-inner { max-width: 1200px; } }
@media (min-width: 1400px) { .tlh-inner, .tlf-inner { max-width: 1400px; } }

.tlh-inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: 72px; }

.tlh a, .tlh summary { color: #fff; text-decoration: none; margin: 0; }
.tlh a:hover, .tlh a:focus, .tlh summary:hover { color: #fff; opacity: .7; text-decoration: none; }

/* Brand mark + TONELAB */
.tlh .tlh-brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; white-space: nowrap; }
.tlh .tlh-mark { display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.tlh .tlh-word, .tlf .tlf-brand { font-family: var(--tl-head); font-size: 24px; font-weight: 600; line-height: 28.8px; letter-spacing: 0; color: #fff; }

/* Centre slot (Choose a Sampler on the Loop2BPM pages, empty elsewhere) */
.tlh-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* Right-hand links */
.tlh ul { margin: 0; padding: 0; list-style: none; }
.tlh li { margin: 0; padding: 0; list-style: none; }
.tlh-links { display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
.tlh-links > li > a, .tlh-links summary { display: block; padding: 8px 16px; }
.tlh-links > li:last-child > a { padding-right: 0; }  /* last link lines up with the footer's right edge */
.tlh .tlh-packs, .tlh .tlh-packs:hover { color: var(--tl-yellow); }

/* Dropdowns (Tools, Choose a Sampler) */
.tlh-dd { position: relative; }
.tlh-dd summary { list-style: none; cursor: pointer; white-space: nowrap; }
.tlh-dd summary::-webkit-details-marker { display: none; }
.tlh-dd summary::after { content: ""; display: inline-block; margin-left: 8px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.tlh-dd-list { position: absolute; top: calc(100% + 6px); z-index: 1000; min-width: 170px; padding: 8px 0; background: var(--tl-bar); box-shadow: 0 0 0 1px rgba(89,104,125,.4) inset, 0 8px 20px rgba(0,0,0,.35); }
.tlh-tools .tlh-dd-list { right: 0; }
.tlh-centre .tlh-dd-list { left: 50%; transform: translateX(-50%); top: calc(100% + 20px); max-height: calc(100dvh - 90px); overflow-y: auto; }
.tlh .tlh-dd-list a { display: block; padding: 8px 18px; white-space: nowrap; }
.tlh .tlh-dd-list a:hover, .tlh .tlh-dd-list a[aria-current] { color: var(--tl-accent); opacity: 1; }
.tlh-dd-group { padding: 10px 18px 4px; margin-top: 4px; border-top: 1px solid rgba(89,104,125,.4); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tl-muted); }
.tlh-short { display: none; }

/* Menu button + phone/tablet panel */
.tlh .tlh-burger { display: none; align-items: center; flex: 0 0 auto; width: auto; height: auto; min-height: 0; margin: 0 0 0 16px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; color: #fff; cursor: pointer; transform: scale(1.2); }
.tlh-panel { display: none; position: fixed; left: 0; right: 0; top: 72px; z-index: 999; flex-direction: column; row-gap: 12px; padding: 24px !important; max-height: calc(100dvh - 80px); overflow-y: auto; background: var(--tl-bar); box-shadow: 0 0 0 1px rgba(89,104,125,.4) inset, 0 9px 18px 0 rgba(0,0,0,.28); }
.tlh-panel.open { display: flex; }
.tlh-panel a { display: block; padding: 8px 16px; }

@media (max-width: 991.98px) {
  .tlh-links { display: none; }
  .tlh .tlh-burger { display: flex; }
}
@media (max-width: 575.98px) {
  .tlh .tlh-mark { width: 32px; height: 32px; }
  .tlh .tlh-brand { gap: 10px; }
  .tlh-centre { position: static; transform: none; flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
  .tlh-full { display: none; }
  .tlh-short { display: inline; }
  .tlh-centre .tlh-dd-list { position: fixed; left: 0; right: 0; top: 72px; transform: none; max-height: calc(100dvh - 80px); }
}

/* ---------- Footer ---------- */
.tlf, .tlf *, .tlf *::before, .tlf *::after { box-sizing: border-box; }
.tlf, .tlf * { font-family: var(--tl-font); -webkit-font-smoothing: antialiased; }
.tlf { width: 100%; margin: 0; background: var(--tl-bar); color: #fff; box-shadow: 0 1px 0 0 rgba(89,104,125,.4) inset; font-size: 16px; line-height: 28px; }
.tlf-inner { padding-top: 48px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.tlf-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.tlf-row + .tlf-row { margin-top: 32px; }
.tlf a { color: #fff; text-decoration: none; }
.tlf a:hover { color: #fff; opacity: .7; }
.tlf-social { display: flex; align-items: center; gap: 24px; }
.tlf-social a { display: flex; }
.tlf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(89,104,125,.4); }
.tlf-cols div { display: flex; flex-direction: column; gap: 8px; }
.tlf-cols h2 { margin: 0 0 4px; font-family: var(--tl-head); font-size: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tl-muted); }
.tlf-copy { margin-top: 40px; color: var(--tl-muted); font-size: 14px; }
@media (max-width: 575.98px) { .tlf-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Homepage buttons use the same orange ---------- */
#sections-container .btn,
#sections-container .btn-primary { background-color: var(--tl-accent) !important; border-color: var(--tl-accent) !important; color: var(--tl-accent-ink) !important; }
#sections-container .btn:hover, #sections-container .btn:focus-visible,
#sections-container .btn-primary:hover { background-color: var(--tl-accent-hover) !important; border-color: var(--tl-accent-hover) !important; }
#sections-container .btn-secondary { background-color: transparent !important; box-shadow: inset 0 0 0 1.5px var(--tl-accent) !important; color: var(--tl-accent) !important; }
#sections-container .btn-secondary:hover { background-color: var(--tl-accent) !important; color: var(--tl-accent-ink) !important; }
