/* Bus Central forum shell v1
   Mirrors the standalone Bus Central shared header while keeping phpBB/Zeina underneath. */

:root{
  --bc-bg:#10202f;
  --bc-bg-deep:#0b1723;
  --bc-line:rgba(213,226,238,.14);
  --bc-text:#f5f7fa;
  --bc-muted:#aab7c4;
  --bc-accent:#f4512a;
  --bc-accent-bright:#ff653e;
  --bc-header-h:68px;
}

.bc-forum-header,
.bc-forum-header *{
  box-sizing:border-box;
}

.bc-forum-header{
  position:sticky;
  top:0;
  z-index:1000;
  height:var(--bc-header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 18px;
  color:var(--bc-text);
  background:linear-gradient(180deg,rgba(6,17,28,.98),rgba(9,22,35,.94));
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.bc-brand{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  color:#fff!important;
  text-decoration:none!important;
}

.bc-brand-mark{
  width:51px;
  height:30px;
  flex:0 0 auto;
}

.bc-brand-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
  line-height:1.05;
}

.bc-brand-name{
  color:#fff;
  font-size:clamp(20px,6vw,25px);
  font-weight:730;
  letter-spacing:-.03em;
  white-space:nowrap;
}

.bc-brand-tagline{
  display:none;
  margin-top:3px;
  color:#bac4ce;
  font-size:9px;
  white-space:nowrap;
}

.bc-desktop-nav,
.bc-header-auth{
  display:none;
}

.bc-member-tools{
  display:flex;
  align-items:center;
  margin-left:auto;
  gap:0;
}

.bc-member-icon,
.bc-member-avatar-button{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  min-width:38px;
  padding:7px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#fff!important;
  cursor:pointer;
  text-decoration:none!important;
}

.bc-member-icon:hover,
.bc-member-avatar-button:hover{
  background:rgba(255,255,255,.06);
}

.bc-member-icon svg{
  display:block;
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.bc-member-count{
  position:absolute;
  top:-2px;
  right:-2px;
  min-width:17px;
  height:17px;
  padding:0 4px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:var(--bc-accent);
  color:#fff;
  font-size:10px;
  font-weight:800;
  line-height:17px;
}

.bc-member-account{
  position:relative;
}

.bc-member-avatar-button{
  padding:3px;
}

.bc-member-avatar{
  width:31px;
  height:31px;
  overflow:hidden;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  background:#1b2b3b;
}

.bc-member-avatar img{
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  object-fit:cover;
}

.bc-member-account-menu{
  position:absolute;
  top:calc(100% + 9px);
  right:0;
  z-index:1100;
  width:215px;
  padding:8px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:12px;
  background:#142332;
  color:#eef3f7;
  box-shadow:0 18px 46px rgba(0,0,0,.38);
}

.bc-member-account-menu[hidden]{
  display:none!important;
}

.bc-member-account-name{
  padding:10px 11px;
  color:#fff;
  font-size:14px;
  font-weight:800;
}

.bc-member-account-menu a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:9px 11px;
  border-radius:8px;
  color:#eef3f7!important;
  font-size:14px;
  font-weight:550;
  text-decoration:none!important;
}

.bc-member-account-menu a:hover{
  background:rgba(255,255,255,.06);
}

.bc-account-divider{
  height:1px;
  margin:5px 4px;
  background:rgba(255,255,255,.08);
}

.bc-menu-toggle{
  width:45px;
  height:45px;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex:0 0 45px;
  padding:0;
  border:0;
  border-radius:12px;
  background:transparent;
  color:#fff;
  cursor:pointer;
}

.bc-menu-toggle span{
  width:27px;
  height:3px;
  border-radius:999px;
  background:currentColor;
  transition:transform .22s ease,opacity .22s ease;
}

.bc-menu-toggle[aria-expanded="true"] span:nth-child(1){
  transform:translateY(8px) rotate(45deg);
}
.bc-menu-toggle[aria-expanded="true"] span:nth-child(2){
  opacity:0;
}
.bc-menu-toggle[aria-expanded="true"] span:nth-child(3){
  transform:translateY(-8px) rotate(-45deg);
}

.bc-forum-mobile-menu{
  position:fixed;
  inset:var(--bc-header-h) 0 0 0;
  z-index:990;
  overflow:auto;
  color:#fff;
  background:rgba(6,16,26,.97);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.bc-forum-mobile-menu[hidden]{
  display:none!important;
}

.bc-forum-mobile-menu-inner{
  width:min(100%,520px);
  margin:0 auto;
  padding:28px 22px max(34px,env(safe-area-inset-bottom));
  display:grid;
  gap:8px;
}

.bc-forum-mobile-menu a{
  display:flex;
  align-items:center;
  min-height:56px;
  width:100%;
  padding:0 18px;
  border:1px solid var(--bc-line);
  border-radius:12px;
  background:rgba(255,255,255,.035);
  color:#fff!important;
  font-size:17px;
  font-weight:650;
  text-align:left;
  text-decoration:none!important;
}

.bc-forum-mobile-menu a.active{
  border-color:rgba(244,81,42,.45);
}

.bc-forum-mobile-menu .bc-mobile-join{
  background:linear-gradient(135deg,var(--bc-accent),var(--bc-accent-bright));
  border-color:transparent;
}

.bc-forum-mobile-menu p{
  margin:12px 4px 0;
  color:var(--bc-muted);
  font-size:15px;
  line-height:1.55;
}

html.bc-forum-menu-open,
html.bc-forum-menu-open body{
  overflow:hidden;
}

.bc-header-auth{
  align-items:center;
  gap:8px;
}

.bc-header-login,
.bc-header-join{
  min-height:42px;
  padding:0 17px;
  border-radius:9px;
  font-size:14px;
  font-weight:700;
  text-decoration:none!important;
}

.bc-header-login{
  display:flex;
  align-items:center;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.035);
  color:#eef3f7!important;
}

.bc-header-join{
  display:flex;
  align-items:center;
  background:linear-gradient(135deg,var(--bc-accent),var(--bc-accent-bright));
  color:#fff!important;
}

/* Keep Zeina quick-login usable but visually tied to the Bus Central header. */
.bc-login-wrap{
  position:relative;
}
.bc-login-wrap .dropdown{
  color:#e2e8f0;
}
.bc-login-wrap .dropdown-contents{
  background:#142332!important;
  border-color:rgba(255,255,255,.09)!important;
}

/* Retire Zeina's old navbar footprint completely. */
.navbar:has(.bc-forum-header){
  padding:0!important;
  min-height:0!important;
  background:transparent!important;
}

@media (max-width:430px){
  .bc-brand-name{font-size:20px;}
  .bc-member-icon{width:35px;height:35px;min-width:35px;}
}

@media (min-width:560px) and (max-width:899px){
  .bc-brand-tagline{display:block;}
}

@media (min-width:900px){
  :root{--bc-header-h:76px;}

  .bc-forum-header{
    padding-left:clamp(36px,5vw,84px);
    padding-right:clamp(36px,5vw,84px);
  }

  .bc-brand-mark{
    width:58px;
    height:34px;
  }

  .bc-brand-name{
    font-size:25px;
  }

  .bc-brand-tagline{
    display:block;
    font-size:10px;
  }

  .bc-desktop-nav{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    display:flex;
    align-items:center;
    gap:clamp(24px,3vw,50px);
    font-size:15px;
    font-weight:600;
  }

  .bc-desktop-nav a{
    position:relative;
    color:#eef3f7!important;
    text-decoration:none!important;
  }

  .bc-desktop-nav a.active:after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-11px;
    height:2px;
    border-radius:999px;
    background:var(--bc-accent);
  }

  .bc-menu-toggle{
    display:none;
  }

  .bc-forum-mobile-menu{
    display:none!important;
  }

  .bc-member-tools{
    gap:2px;
  }

  .bc-header-auth{
    display:flex;
  }
}

/* =========================================================
   Bus Central full phpBB login v5
   Geometry deliberately mirrors the standalone quick-login panel.
   ========================================================= */
.bc-auth-page{
  min-height:100vh;
  background:#07121d;
  color:#eef3f7;
  font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

.bc-auth-wrap{
  width:100%;
  margin:0 auto;
  padding:28px 24px 48px;
}

.bc-auth-back{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin:0 0 24px 0;
  color:#eef3f7!important;
  font-size:15px;
  font-weight:600;
  text-decoration:none!important;
}

.bc-auth-back span:first-child{
  font-size:27px;
  line-height:1;
  transform:translateY(-1px);
}

.bc-auth-card{
  width:min(425px,calc(100vw - 24px));
  margin:0 auto;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.09);
  border-radius:14px;
  background:#142332;
  color:#eef3f7;
  box-shadow:0 22px 60px rgba(0,0,0,.46);
}

.bc-auth-card h1{
  margin:0;
  padding:20px 20px 12px;
  color:#fff;
  font-size:18px;
  line-height:1.25;
  font-weight:750;
  letter-spacing:0;
}

.bc-auth-card form{
  margin:0;
  padding:8px 20px 20px;
}

.bc-auth-field{
  margin:0 0 14px;
}

.bc-auth-field > label{
  display:block;
  margin:0 0 7px;
  color:#dce5ec;
  font-size:13px;
  line-height:1.3;
  font-weight:650;
}

.bc-auth-password-wrap{
  position:relative;
}

.bc-auth-input{
  display:block;
  width:100%;
  height:42px;
  padding:9px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:9px;
  outline:0;
  background:#edf3f8;
  color:#0b1723;
  font:inherit;
  font-size:16px;
  box-shadow:none;
  appearance:none;
  -webkit-appearance:none;
}

.bc-auth-input:focus{
  border-color:rgba(244,81,42,.48);
  box-shadow:0 0 0 2px rgba(244,81,42,.34);
}

.bc-auth-forgot{
  display:inline-block;
  margin-top:10px;
  color:#ff653e!important;
  font-size:13px;
  line-height:1.3;
  font-weight:500;
  text-decoration:none!important;
}

.bc-auth-options{
  margin:2px 0 14px;
}

.bc-auth-check{
  display:flex;
  align-items:center;
  gap:9px;
  color:#aab7c4;
  font-size:13px;
  line-height:1.3;
  cursor:pointer;
}

.bc-auth-check input{
  width:16px;
  height:16px;
  margin:0;
  accent-color:#f4512a;
}

.bc-auth-submit{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:44px;
  padding:0 14px;
  border:0;
  border-radius:10px;
  background:linear-gradient(135deg,#f4512a,#ff653e);
  color:#fff;
  font:inherit;
  font-size:14px;
  font-weight:750;
  cursor:pointer;
}

.bc-auth-footer{
  margin:0;
  padding:0 20px 20px;
  text-align:center;
}

.bc-auth-footer p{
  margin:14px 0 0;
  color:#aab7c4;
  font-size:13px;
  line-height:1.4;
}

.bc-auth-footer a{
  color:#ff653e!important;
  font-weight:700;
  text-decoration:none!important;
}

/* Do not let Zeina/Tailwind typography or controls enlarge this isolated auth card. */
.bc-auth-card input,
.bc-auth-card button,
.bc-auth-card label,
.bc-auth-card a,
.bc-auth-card p,
.bc-auth-card h1{
  box-sizing:border-box;
}

@media (min-width:601px){
  .bc-auth-wrap{
    width:min(100%,900px);
    padding-top:34px;
  }
}

@media (max-width:430px){
  .bc-auth-wrap{
    padding-left:12px;
    padding-right:12px;
  }

  .bc-auth-back{
    margin-left:8px;
  }
}


/* =========================================================
   Bus Central full phpBB login v6
   Position lock: mirror the standalone quick-login modal.
   ========================================================= */
@media (max-width:600px){
  .bc-auth-wrap{
    min-height:100dvh !important;
    padding:0 12px !important;
    position:relative !important;
  }

  .bc-auth-back{
    position:fixed !important;
    top:28px !important;
    left:28px !important;
    z-index:2 !important;
    margin:0 !important;
  }

  .bc-auth-card{
    position:fixed !important;
    top:50% !important;
    left:50% !important;
    z-index:1 !important;
    margin:0 !important;
    transform:translate(-50%,-50%) !important;
  }
}


/* =========================================================
   Approved Bus Central wordmark — forum header
   Uses the exact same root image asset as the shared site.
   ========================================================= */
.bc-brand-approved{
  display:flex;
  align-items:center;
  min-width:0;
  gap:0 !important;
}

.bc-brand-approved-image{
  display:block;
  width:auto;
  height:36px;
  max-width:min(58vw,245px);
  object-fit:contain;
  object-position:left center;
  flex:0 0 auto;
}

@media (max-width:390px){
  .bc-brand-approved-image{
    height:33px;
    max-width:54vw;
  }
}

@media (min-width:900px){
  .bc-brand-approved-image{
    height:42px;
    max-width:285px;
  }
}

/* Retire the previous live-generated forum logo pieces completely. */
.bc-brand-mark,
.bc-brand-copy,
.bc-brand-name,
.bc-brand-tagline{
  display:none !important;
}


/* =========================================================
   Mobile logged-in member tools vertical alignment v8
   Home and Forum differed by ~1px. Move the whole forum
   member-tools group up together so mail, bell and avatar
   remain internally aligned.
   ========================================================= */
@media (max-width:600px){
  .bc-member-tools{
    transform:translateY(-1px);
  }
}


/* =========================================================
   Mobile logged-in member tools vertical alignment v9
   v8 still rendered ~1px lower than Home on-device.
   Move the whole group up one further pixel.
   Total offset from original forum position: -2px.
   ========================================================= */
@media (max-width:600px){
  .bc-member-tools{
    transform:translateY(-2px);
  }
}


/* =========================================================
   Desktop nav font-weight parity v10
   Force Forum / Home / Ideas to match the standalone Home header.
   ========================================================= */
@media (min-width:601px){
  .bc-desktop-nav a{
    font-weight:600 !important;
  }
}


/* =========================================================
   Desktop header font-family parity v11
   Zeina applies its own configured font to forum pages.
   The standalone site shell uses the system/Inter stack.
   Lock the Bus Central header to that same stack so the nav
   letters render identically on Home and Forum.
   ========================================================= */
.bc-forum-header,
.bc-forum-header button,
.bc-forum-header a{
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
}

@media (min-width:601px){
  .bc-desktop-nav,
  .bc-desktop-nav a{
    font-weight:600 !important;
  }
}
