/* /static/assets/css/style.css */

:root{
  --bg: #0b0b0b;
  --text: #f5f5f5;
  --muted: rgba(245,245,245,0.75);
  --stroke: rgba(255,255,255,0.10);
  --shadow: 0 18px 60px rgba(0,0,0,0.45);
  --radius: 16px;
}

@font-face{
  font-family: "Digitek";
  src: url("/static/assets/fonts/DIGITEK.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.site-header,
.site-footer{
  font-family: "Digitek", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

html{
  background: var(--bg);
}

/* ✅ Background image layer */
html::before{
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/static/assets/img/home-bg.webp");
  background-size: cover;
  background-repeat: no-repeat;

  /* ✅ shift DOWN by 50px relative to center */
  background-position: center calc(50% + 50px); /* If you want it relative to the top instead, use background-position: center 50px; */

  z-index: -2;
}

/* ✅ Your darkening overlay layer (adjust opacities as you like) */
html::after{
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(0,0,0,0.08), rgba(0,0,0,0.35)),
    linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.25));
  z-index: -1;
  pointer-events: none;
}

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


/* If a page uses the tiled background, disable the home background layers */
body.bg-tiled html::before,
body.bg-tiled html::after{
  content: none;
}


/* ===== TILED BACKGROUND MODE ===== */

/* Put content above blend layers cleanly */
body.bg-tiled{
  position: relative;
  isolation: isolate; /* important for blend modes */
}

/* Tile layer */
body.bg-tiled::before{
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/static/assets/img/bg-tile.png");
  background-repeat: repeat;
  background-size: 256px 256px; /* matches your tile size */
  opacity: 1; /* overall strength can be 1 or 0.55 etc*/
  z-index: -2;
  pointer-events: none;
}

/* Animated “shader” layer */
body.bg-tiled::after{
  content: "";
  position: fixed;
  inset: 0;

  /* Big soft moving color wash */
  background:
    linear-gradient(
      120deg,
      rgba(0, 255, 120, 0.22),
      rgba(0, 120, 255, 0.18),
      rgba(255, 0, 180, 0.16),
      rgba(0, 255, 120, 0.22)
    );

  background-size: 400% 400%;
  animation: rwkShader 12s linear infinite; /* for slower, maybe 18s */

  /* Blend it like a shader */
  mix-blend-mode: overlay; /* try: screen, soft-light, color-dodge */
  opacity: 0.9; /* default 0.55 */

  z-index: -1;
  pointer-events: none;
}

@keyframes rwkShader{
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

/* This below makes it drift diagonally, not left/right
@keyframes rwkShader{
  0%   { background-position:   0%  0%; }
  100% { background-position: 100% 100%; }
}
*/


/* Respect accessibility preference */
@media (prefers-reduced-motion: reduce){
  body.bg-tiled::after{ animation: none; }
}


a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container{
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
}

/* ✅ This is the missing piece if you see only header/footer */
.page-fill{
  flex: 1;
  min-height: 1px; /* prevents weird zero-height edge cases */
}

/* HEADER */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0,0,0,0.55);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header,
.site-header a,
.site-nav a,
.nav-dropdown summary{
  /*color: var(--text);*/
  color: rgb(0, 250, 0);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ✅ was space-between */
  gap: 14px;
  padding: 12px 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 20px; /* gap to the right og logo, tweak 16–32px */
}

.brand-logo{
  height: 38px;
  width: auto;
  display: block;
}


.nav-dropdown{
  position: relative;
}

.nav-dropdown summary{
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  user-select: none;
}

.nav-dropdown summary::-webkit-details-marker{ display: none; }

.nav-dropdown summary:hover{
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

.nav-dropdown[open] summary{
  background: rgba(255,255,255,0.06);
}

.nav-dropdown-menu{
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 170px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.nav-dropdown-menu a{
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-dropdown-menu a:hover{
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}


/* Nav should sit next to logo, not get shoved to far right */
.site-nav{
  display: flex;
  align-items: center;
  gap: 14px; /* this is the 'gap' between the menu items */
  flex-wrap: nowrap;
  justify-content: flex-start; /* ✅ was flex-end */
  flex: 1;                    /* ✅ allow nav to take remaining space */
}

/* Push ONLY the Discord button to the far right (optional) */
.site-nav .btn-primary{
  margin-left: auto;
}

.site-nav a{
  padding: 8px 10px;
  border-radius: 10px;
}

.site-nav a:not(.btn):hover{
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  text-decoration: none !important;
  box-shadow: none;
  white-space: nowrap;
}

.btn-primary{
  background: rgba(255,255,255,0.12);
}

.btn-primary:hover{
  background: rgba(255,255,255,0.18);
}

.dot{ opacity: 0.6; }

/* FOOTER */
.site-footer{
  border-top: 1px solid var(--stroke);
  background: rgba(0,0,0,0.55);
}

.footer-inner{
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  /*color: var(--muted);*/
  color: rgb(0, 250, 0);
  font-size: 14px;
}

.footer-right{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-toggle{
  display: none;
  font-size: 20px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  color: var(--text);
}


/* ===== BEEPBOX PAGE ===== */

.beepbox-page{
  padding: 28px 0 40px;
}

.bb-top{
  display: flex;
  flex-direction: column;   /* ✅ stack title + button */
  align-items: flex-start;  /* ✅ left aligned */
  gap: 10px;
  margin-bottom: 16px;
}

.bb-title{
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.02em;
}

.bb-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
}

.bb-head{
  padding: 10px 12px;
  margin-bottom: 10px;
  text-transform: lowercase;
  opacity: 0.9;
}

.bb-row{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;

  padding: 10px 12px;
  margin-bottom: 10px;

  border: 2px solid rgb(0, 250, 0);
  border-radius: 12px;

  background: rgba(0, 0, 0, 0.25);
}

.bb-song{
  color: rgb(255, 205, 110); /* gold */
  text-decoration: none;
  display: flex;
  align-items: center;  /* ✅ vertically center within its grid cell */
  min-height: 34px;     /* ✅ match your summary min-height (optional but helps) */
}

.bb-song:hover{
  text-decoration: underline;
}

.bb-levels{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bb-level{
  color: rgb(120, 255, 180); /* soft green */
  text-decoration: none;
}

.bb-level:hover{
  text-decoration: underline;
}

.bb-na{
  opacity: 0.8;
}

.bb-sep{
  opacity: 0.6;
}

.bb-note{
  opacity: 0.85;
}


/* ===== RWK PAGE ===== */

.rwk-page{
  padding: 28px 0 44px;
}

.rwk-title{
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: 0.02em;
}

.rwk-grid{
  display: grid;
  grid-template-columns: 1fr; /* ✅ one column */
  gap: 14px;
  align-items: start;
}

.rwk-card{
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(0,0,0,0.35);
  padding: 14px 14px;
}

.rwk-card h2{
  margin: 0 0 8px;
  font-size: 18px;
  color: rgb(0, 250, 0); /* match your header accent */
}

.rwk-card p{
  margin: 0;
  line-height: 1.55;
}

.rwk-card a{
  color: rgb(255, 205, 110); /* your gold accent */
  text-decoration: none;
}

.rwk-card a:hover{
  text-decoration: underline;
}

@media (max-width: 900px){
  .rwk-grid{
    grid-template-columns: 1fr;
  }
}


/* ===== LEVELS PAGE ===== */

/* Levels: maker/author name in DIGITEK */
.levels-page .maker-title{
  font-family: "Digitek", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.04em;
  color: rgb(0, 250, 0);
}


.levels-page{
  padding: 28px 0 44px;
}

.levels-top{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.levels-title{
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.02em;
}

.levels-search{
  width: min(520px, 100%);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  outline: none;
}

.levels-search::placeholder{
  opacity: 0.7;
}

.maker-block{
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
}

.levels-page .maker-title{
  margin: 0 0 10px;
  font-size: 18px;
  text-shadow: 0 0 14px rgba(0, 250, 0, 0.18);
}

/* Simple list, but still “boxed” like your style */
.level-list{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* ✅ four columns */
  gap: 10px;
}

@media (max-width: 1100px){
  .level-list{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px){
  .level-list{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px){
  .level-list{ grid-template-columns: 1fr; }
}

.level-item{
  display: flex;
  align-items: center;
  min-height: 34px;

  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid rgb(0, 250, 0);
  background: rgba(0,0,0,0.25);

  color: rgb(255, 205, 110); /* gold */
  text-decoration: none;
}

.level-item:hover{
  text-decoration: underline;
}

.level-na{
  border-color: rgba(0,250,0,0.35);
  color: rgba(245,245,245,0.75);
}



/* ===== VIDEOS PAGE ===== */

/* Videos: maker/channel name in DIGITEK */
.videos-maker-title{
  font-family: "Digitek", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.04em;
  color: rgb(0, 250, 0);
}

.videos-page{
  padding: 28px 0 44px;
}

.videos-top{
  margin-bottom: 16px;
}

.videos-title{
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: 0.02em;
}

.videos-sub{
  margin: 0;
  opacity: 0.85;
}

.videos-section{
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
}

.videos-section-title{
  margin: 0 0 12px;
  font-size: 20px;
  color: rgb(255, 215, 0);
}

.videos-maker{
  margin-top: 14px;
}

.videos-maker-title{
  margin: 0 0 10px;
  font-size: 16px;
  opacity: 0.95;
}

/* 4 columns */
.video-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.video-card{
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  overflow: hidden;
}

.video-frame{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(0,0,0,0.35);
}

.video-frame iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-missing{
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  opacity: 0.9;
}

.video-meta{
  padding: 10px 12px;
}

.video-title{
  color: rgb(255, 205, 110);
  text-decoration: none;
  line-height: 1.3;
}

.video-title:hover{
  text-decoration: underline;
}

.videos-empty{
  opacity: 0.8;
  padding: 10px 0;
}

/* Responsive */
@media (max-width: 1200px){
  .video-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px){
  .video-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px){
  .video-grid{ grid-template-columns: 1fr; }
}


/* ===== PICTURES PAGE ===== */

.pics-page{
  padding: 28px 0 44px;
}

.pics-top{
  margin-bottom: 16px;
}

.pics-title{
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: 0.02em;
}

.pics-sub{
  margin: 0;
  opacity: 0.85;
}

/* 4 columns */
.pics-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.pic-card{
  margin: 0;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
  overflow: hidden;
}

.pic-link{
  display: block;
}

.pic-img{
  width: 100%;
  height: auto;
  display: block;
}

.pic-meta{
  padding: 10px 12px;
}

.pic-author{
  font-family: "Digitek", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: rgb(0, 250, 0);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.pic-title{
  color: rgb(255, 205, 110);
  opacity: 0.95;
  line-height: 1.25;
}

/* Responsive */
@media (max-width: 1200px){
  .pics-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .pics-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .pics-grid{ grid-template-columns: 1fr; }
}



/* ===== CONTACT PAGE ===== */

.contact-page{
  padding: 28px 0 44px;
}

.contact-top{
  margin-bottom: 16px;
}

.contact-title{
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: 0.02em;
}

.contact-sub{
  margin: 0;
  opacity: 0.85;
}

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  align-items: start;
}

.contact-card{
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  padding: 14px;
}

.contact-h2{
  margin: 0 0 10px;
  font-size: 18px;
  color: rgb(0, 250, 0);
}

.contact-links{
  display: grid;
  gap: 10px;
}

.contact-link{
  color: rgb(255, 205, 110);
  text-decoration: none;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.22);
}

.contact-link:hover{
  text-decoration: underline;
}

.contact-note{
  margin-top: 14px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0,0,0,0.22);
}

.contact-note-title{
  font-family: "Digitek", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: rgb(0, 250, 0);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.contact-note-body{
  opacity: 0.9;
  line-height: 1.45;
}

.contact-alert{
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.22);
}

.contact-alert.ok{
  border-color: rgba(0,250,0,0.35);
}

.contact-alert.bad{
  border-color: rgba(255,120,120,0.35);
}

.contact-form{
  display: grid;
  gap: 12px;
}

.contact-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form label span{
  display: block;
  margin-bottom: 6px;
  opacity: 0.9;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

.contact-form textarea{
  resize: vertical;
}

.contact-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.contact-fineprint{
  margin-top: 10px;
  opacity: 0.75;
  font-size: 13px;
}

@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; }
  .contact-row{ grid-template-columns: 1fr; }
}





/* ===== LEADERBOARD PAGE ===== */
/* ===== LEADERBOARD PAGE ===== */

.leaderboard-page{
  padding: 28px 0 44px;
}

.leaderboard-top{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  margin-bottom:16px;
}

.leaderboard-title{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0.04em;
  color: rgb(255, 223, 0);
  margin: 0;
}

.leaderboard-sub{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.leaderboard-search{
  width: min(520px, 100%);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,255,0,.20);
  background: rgba(0,0,0,.35);
  color: #eaffea;
  outline: none;
}

.leaderboard-card{
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(0,255,0,.18);
  border-radius: 14px;
  overflow: hidden;
}

.leaderboard-toolbar{
  padding: 12px;
  border-bottom: 1px solid rgba(0,255,0,.12);
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.leaderboard-pill{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,255,0,.20);
  background: rgba(0,0,0,.35);
  color: #c9ffd0;
  font-size: 12px;
  white-space: nowrap;
}

.leaderboard-loading{
  padding: 18px;
  opacity: .85;
}

.leaderboard-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* ✅ key */
}


.leaderboard-table th,
.leaderboard-table td{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 12px;
  border-bottom: 1px solid rgba(0,255,0,.10);
  text-align: left;
}


.leaderboard-table th{
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #c9ffd0;
}

.leaderboard-table tr:hover td{
  background: rgba(0,255,0,.04);
}


.leaderboard-table td:nth-child(3),
.leaderboard-table th:nth-child(3){
  width: 120px;
  white-space: nowrap;
}


.col-rank{ width: 82px; }
.num{ font-variant-numeric: tabular-nums; }
.small{ font-size: 12px; }
.muted{ opacity: .85; }

.xp-bar{
  height: 10px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(0,255,0,.20);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.xp-fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(0,255,0,.55), rgba(120,255,120,.85));
}

@media (max-width: 640px){
  .hide-sm{ display:none; }
  .leaderboard-table th,
  .leaderboard-table td{ padding: 10px; }
  .col-rank{ width: 70px; }
}



/* Column sizing */
.leaderboard-table th.col-rank,
.leaderboard-table td.col-rank{
  width: 80px; /* default 80 */
}

.leaderboard-table th.col-name,
.leaderboard-table td.col-name{
  width: 300px; /* default 260 */
}

.leaderboard-table th.col-join,
.leaderboard-table td.col-join{
  width: 150px; /* default 120 */
}

.leaderboard-table th.col-verified,
.leaderboard-table td.col-verified{
  width: 120px; /* default 90 */
}

.leaderboard-table th.col-mm,
.leaderboard-table td.col-mm{
  width: 150px; /* default 180 */
}

.leaderboard-table th.col-level,
.leaderboard-table td.col-level{
  width: 100px; /* default 80 */
}

.leaderboard-table th.col-total,
.leaderboard-table td.col-total{
  width: 120px; /* default 110 */
}

/* XP column gets the remaining space */
.leaderboard-table th.col-xp,
.leaderboard-table td.col-xp{
  width: auto;
}


/* ===== Levels JSON Builder ===== */

.tool-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

.tool-card {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  padding: 16px;
}

.tool-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 20px;
}

.tool-pill {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
}

.tool-sub {
  margin: 0 0 12px;
  color: #555;
  font-size: 13px;
  line-height: 1.4;
}

.tool-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0;
}

.tool-row .right {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.tool-input,
.tool-select,
.tool-btn,
.tool-textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 12px;
}

.tool-input {
  min-width: 240px;
}

.tool-btn {
  cursor: pointer;
  background: #fff;
}

.tool-btn.primary {
  border-color: #000;
  font-weight: 600;
}

.tool-btn.danger {
  border-color: #b00020;
}

.tool-label {
  font-size: 13px;
  color: #444;
}

.tool-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.tool-table th,
.tool-table td {
  border-bottom: 1px solid #eee;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.tool-table th {
  font-size: 13px;
  color: #444;
}

.tool-table td input {
  width: 100%;
  box-sizing: border-box;
}

.tool-textarea {
  width: 100%;
  min-height: 260px;
  box-sizing: border-box;
  white-space: pre;
  margin-top: 12px;
}

.tool-status {
  font-size: 12px;
  color: #555;
  margin-top: 8px;
}

@media (max-width: 720px) {
  .tool-input { min-width: 0; width: 100%; }
}















/* Two sections side-by-side */
.bb-panels{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.bb-panel{
  display: block;
}

/* Optional: make each panel slightly distinct */
.bb-panel .bb-head{
  margin-bottom: 10px;
}

/* Dropdown for multiple levels */
.bb-levels-dd{
  position: relative;
  width: 100%;
}

.bb-levels-dd summary{
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;

  /* ✅ Standardize height across n/a, single, multi */
  min-height: 34px;          /* tweak 32–38px if you want */
  padding: 6px 10px;

  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.25);

  user-select: none;
  list-style: none;
}

.bb-levels-dd summary::-webkit-details-marker{
  display: none;
}

/* Make n/a + single LOOK plain, but KEEP the same sizing */
.bb-levels-na summary,
.bb-levels-single summary{
  background: transparent;
  border-color: transparent;

  /* keep padding so height stays identical */
  padding: 6px 10px;
}

/* Single level link should fill the "cell" */
.bb-levels-single summary a{
  display: block;
  width: 100%;
  padding: 0;
}

/* Menu */
.bb-levels-menu{
  margin-top: 8px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
}

.bb-levels-menu a{
  display: block;
  padding: 6px 8px;
  border-radius: 10px;
}

.bb-levels-menu a:hover{
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}


/* Mobile: stack the two sections */
@media (max-width: 900px){
  .bb-panels{
    grid-template-columns: 1fr;
  }
}


/* Mobile: stack columns */
@media (max-width: 780px){
  .bb-grid,
  .bb-row{
    grid-template-columns: 1fr;
  }

  .bb-top{
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* Mobile */
@media (max-width: 780px){
  .nav-toggle{ display: inline-flex; }

  .site-nav{
    display: none;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--stroke);
    justify-content: flex-start;
  }

  .site-nav.open{ display: flex; }

  .header-inner{
    flex-wrap: wrap;
  }
}

/* Force scrolling to happen on the page, not inside main */
html, body{
  height: auto !important;
  overflow-y: auto !important;
}

.page-fill{
  height: auto !important;
  overflow: visible !important;
}

/* Force footer to behave like normal document flow */
.site-footer{
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
}

/* Sticky footer layout */
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main{
  flex: 1 0 auto;   /* main grows to fill space */
}

.site-footer{
  margin-top: auto; /* pushes footer to bottom when content is short */
}







.signup-page .contact-grid{
  grid-template-columns: 1fr;
  gap: 18px;
}

.signup-page .contact-card{
  width: min(900px, 92vw); /* optional */
  margin: 0;               /* not centered */
}