:root{
  --bg:#0B0D10;
  --panel:#12151C;
  --text:#E4E6EB;
  --muted:#9AA0A6;
  --accent:#C7A349;
  /* Banner tint */
  --gunmetal:#2A3439;
}

html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1100px;margin:0 auto;padding:0 16px}

.site-header{
  position:sticky;
  top:0;
  z-index:50;

  /* Background like the reference image: dark gunmetal with subtle texture */
  background:
    radial-gradient(1200px 140px at 50% 0%, rgba(255,255,255,.06) 0%, rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(38,43,48,.98) 0%, rgba(12,13,15,.98) 100%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0px, rgba(255,255,255,.05) 1px, rgba(0,0,0,0) 3px, rgba(0,0,0,0) 10px),
    url("../images/nav-texture.png");
  background-size: cover;
  background-repeat:no-repeat, no-repeat, repeat, repeat;
  background-position:center, center, center, center;

  border-bottom:1px solid rgba(0,0,0,.70);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 30px rgba(0,0,0,.55);
}

/* Gold divider line under the nav disabled (using container-fit 3D divider instead) */
.site-header::after{content:none !important;display:none !important;}
.header-inner{
  display:grid;
  grid-template-columns:120px 1fr 320px;
  align-items:center;
  gap:12px;
  min-height:64px;
}
.header-inner--wide{width:100%}
.site-header .container{max-width:1100px}
.header-col--left{display:flex;align-items:center}
.header-col--center{display:flex;align-items:center;justify-content:flex-start;min-width:0}
.header-col--right{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.brand{gap:0}
.brand-text{display:none}
.brand .custom-logo-link, .brand{display:flex;align-items:center}
.brand img{display:block}

.header-actions{display:flex;align-items:center;gap:12px}
.brand{display:flex;align-items:center;gap:10px}
.brand-logo{width:auto;height:46px;max-width:180px;object-fit:contain;margin-top:2px}
.brand-text{font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:.9rem}

/* Topbar menu (wide text style like reference) */
.topbar-nav{display:flex;align-items:center;justify-content:center}
.topbar-menu{display:flex;align-items:center;justify-content:center;list-style:none;margin:0;padding:0;gap:34px}
.topbar-menu li{margin:0}
.topbar-menu a{
  display:block;
  padding:10px 0;
  font-family:"Rajdhani", system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  font-weight:600;
  letter-spacing:.02em;
  text-transform:none;
  font-size:1.05rem;
  color:rgba(235,235,235,.88);
  text-decoration:none;
  white-space:nowrap;
  position:relative;
  text-shadow:0 1px 0 rgba(0,0,0,.65);
}
.topbar-menu a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-10px;
  height:2px;
  background:rgba(199,163,73,.85);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .18s ease;
}
.topbar-menu a:hover{color:#fff;text-decoration:none}
.topbar-menu a:hover::after{transform:scaleX(1)}
.topbar-menu .current-menu-item>a,
.topbar-menu .current-menu-ancestor>a,
.topbar-menu .current_page_item>a{color:#fff}
.topbar-menu .current-menu-item>a::after,
.topbar-menu .current-menu-ancestor>a::after,
.topbar-menu .current_page_item>a::after{transform:scaleX(1)}
/* Topbar dropdowns */
.topbar-menu .menu-item-has-children{position:relative}
/* Hover "bridge" so the submenu doesn't collapse when moving the cursor down */
.topbar-menu .menu-item-has-children::after{
  content:"";
  position:absolute;
  left:0;right:0;
  top:100%;
  height:10px;
}
.topbar-menu .sub-menu{
  position:absolute;
  top:100%;
  left:0;
  min-width:200px;
  list-style:none;
  margin:6px 0 0;
  padding:8px;
  background:var(--panel);
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  box-shadow:0 18px 60px rgba(0,0,0,.45);
  display:none;
  z-index:60;
}
.topbar-menu .sub-menu .menu-item a{
  border-left:0 !important;
  padding:10px 12px;
  border-radius:10px;
  font-size:.76rem;
  letter-spacing:.08em;
}
.topbar-menu .sub-menu .menu-item a:hover{background:rgba(255,255,255,.07)}
@media (hover:hover){
  .topbar-menu .menu-item-has-children:hover>.sub-menu{display:block}
}
.topbar-menu .menu-item-has-children:focus-within>.sub-menu{display:block}
/* Mobile/touch support: JS toggles .is-open */
.topbar-menu .menu-item-has-children.is-open>.sub-menu{display:block}

/* Legacy nav list (kept for other templates/components) */
.nav-list{display:flex;gap:14px;list-style:none;margin:0;padding:0}
.nav-list a{padding:10px 8px;border-radius:8px}
.nav-list a:hover{background:rgba(255,255,255,0.06);text-decoration:none}

/* Header CTA + user menu */
.header-cta{white-space:nowrap}
.user-menu{position:relative}
.user-menu__toggle{display:inline-flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:var(--text);cursor:pointer}
.user-menu__toggle:hover{background:rgba(255,255,255,.06)}
.user-menu.is-dashboard .user-menu__toggle{border-color:rgba(199,163,73,.45);background:rgba(199,163,73,.12)}
.user-menu__avatar{width:26px;height:26px;border-radius:999px;object-fit:cover;border:1px solid rgba(255,255,255,.16)}
.user-menu__label{font-weight:900;letter-spacing:.08em;text-transform:uppercase;font-size:.78rem}
.user-menu__chev{opacity:.85;font-size:.9rem}
.user-menu__dropdown{position:absolute;right:0;top:calc(100% + 10px);min-width:220px;background:var(--panel);border:1px solid rgba(255,255,255,.10);border-radius:14px;padding:10px;box-shadow:0 18px 60px rgba(0,0,0,.45);display:none}
.user-menu.is-open .user-menu__dropdown{display:block}
.user-menu__meta{padding:8px 10px;margin-bottom:6px;color:var(--muted);font-size:.85rem;border-bottom:1px solid rgba(255,255,255,.06)}
.user-menu__item{display:block;padding:10px 10px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);margin-top:8px}
.user-menu__item:hover{text-decoration:none;background:rgba(255,255,255,.06)}
.user-menu__item.is-active{border-color:rgba(199,163,73,.45);background:rgba(199,163,73,.12)}

/* Guest register pulse */
.is-pulse{animation:deltaonePulse 1.6s ease-in-out infinite}
@keyframes deltaonePulse{
  0%{box-shadow:0 0 0 0 rgba(199,163,73,.35)}
  70%{box-shadow:0 0 0 12px rgba(199,163,73,0)}
  100%{box-shadow:0 0 0 0 rgba(199,163,73,0)}
}

.site-main{min-height:70vh}
.section{padding:56px 0}
.page-title{margin:0 0 18px;letter-spacing:.08em;text-transform:uppercase}

.hero{
  position:relative;
  min-height:clamp(160px,20vh,240px);
  display:flex;
  align-items:center;
  /* Banner should match main content width (not full-bleed) */
  width:calc(100% - 32px);
  max-width:1100px;
  margin:18px auto 0;
  border-radius:16px;
  overflow:hidden;
}
.hero-deltaone{
  /* High-res banner image (no gunmetal tint; menu keeps gunmetal) */
  background-image: image-set(
    url('../images/banner.jpg') type('image/jpeg') 1x,
    url('../images/banner.png') type('image/png') 1x
  );
  background-size: cover;
  background-position:center;
  background-repeat:no-repeat;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(rgba(11,13,16,.55),rgba(11,13,16,.20))}
.hero-content{position:relative;padding:34px 16px;text-align:left}
.hero h1{margin:0;font-size:clamp(2.2rem,5vw,4rem);letter-spacing:.22em}
.hero-sub{margin:14px 0 22px;color:var(--accent);text-transform:uppercase;letter-spacing:.12em;font-size:.9rem}

.btn{display:inline-block;padding:12px 16px;border-radius:10px;border:1px solid rgba(255,255,255,.14)}
.btn.primary{background:var(--accent);color:#0B0D10;border-color:transparent;font-weight:700}
.btn.secondary{background:rgba(255,255,255,.06)}
.hero-cta{display:flex;flex-wrap:wrap;gap:10px}

.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:16px}
.card{background:var(--panel);border:1px solid rgba(255,255,255,.06);border-left:4px solid rgba(199,163,73,.6);padding:16px;border-radius:14px}
.card-title{margin:0 0 8px}
.card-excerpt{margin:0;color:var(--muted)}

.content{background:var(--panel);border:1px solid rgba(255,255,255,.06);padding:20px;border-radius:16px}

.site-footer{border-top:1px solid rgba(255,255,255,0.06);padding:18px 0;color:var(--muted)}
.hero-deltaone{background-position:center;}


/* Dashboard */
:root[data-theme="light"]{
  --bg:#F2F4F7;
  --panel:#FFFFFF;
  --text:#0B0D10;
  --muted:#4B5563;
  --accent:#C7A349;
}

.dashboard-hero{
  position:relative;
  /* Match homepage banner: image-based (no gunmetal tint) */
  background-image: image-set(
    url('../images/banner.jpg') type('image/jpeg') 1x,
    url('../images/banner.png') type('image/png') 1x
  );
  background-size: cover;
  background-position:center;
  background-repeat:no-repeat;
  min-height:140px;
  display:flex;
  align-items:flex-end;
  /* Banner should match main content width (not full-bleed) */
  width:calc(100% - 32px);
  max-width:1100px;
  margin:18px auto 0;
  border-radius:16px;
  overflow:hidden;
}
.dashboard-hero__overlay{position:absolute;inset:0;background:linear-gradient(rgba(11,13,16,.55),rgba(11,13,16,.20));}
.dashboard-hero__inner{position:relative;display:flex;justify-content:space-between;align-items:flex-end;gap:16px;padding:18px 16px 16px;}
.dashboard-hero h1{margin:0;letter-spacing:.14em;text-transform:uppercase}
.dashboard-hero__sub{margin:8px 0 0;color:var(--accent);text-transform:uppercase;letter-spacing:.12em;font-size:.85rem}

.dashboard-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}

.dashboard-panel{
  grid-column: span 4;
  background:var(--panel);
  border:1px solid rgba(255,255,255,.06);
  border-left:4px solid rgba(199,163,73,.7);
  border-radius:16px;
  padding:16px;
}
.dashboard-panel--wide{grid-column: span 12;}
/* Lock key dashboard panel positions so role-based hiding doesn't reshuffle layout */
.dashboard-panel--actions{grid-column: 1 / span 4;}
.dashboard-panel--status{grid-column: 5 / span 4;}
.dashboard-panel--nextop{grid-column: 9 / span 4;}
.dashboard-panel--pendingqueue{grid-column: 1 / -1;}
.dashboard-panel--games{grid-column: 1 / -1;}

@media (max-width: 900px){
  .dashboard-panel--actions,
  .dashboard-panel--status,
  .dashboard-panel--nextop{grid-column: 1 / -1;}
}

.dashboard-panel h2{margin:0 0 10px;font-size:1rem;letter-spacing:.08em;text-transform:uppercase}
.dashboard-list{margin:0;padding-left:18px}
.game-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:22px;border-radius:8px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03);font-size:12px;font-weight:700;letter-spacing:.06em;margin-left:8px}
.roster-name-text{line-height:1.15;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.roster-flag{font-size:1em;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.roster-game-icons{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;margin-left:0}
.roster-member-link{text-decoration:none}
.roster-member-link:hover{text-decoration:underline}

/* Roster: games under name + Player Stats button */
.roster-meta-row{display:flex;align-items:center;gap:10px;margin-top:6px;flex-wrap:wrap}
.roster-game-icons{display:flex;flex-wrap:wrap;gap:6px;margin-top:0;margin-left:0}
.roster-stats-btn{display:inline-flex;align-items:center;justify-content:center;height:22px;padding:0 10px;border-radius:999px;background:linear-gradient(180deg, rgba(199,163,73,1), rgba(162,131,55,1));border:1px solid rgba(199,163,73,.85);color:#0b0d10;font-size:11px;font-weight:900;letter-spacing:.02em;text-decoration:none;white-space:nowrap}
.roster-stats-btn:hover{filter:brightness(1.08);text-decoration:none}

/* Dashboard mobile */
@media (max-width: 900px){
  .dashboard-panel{grid-column: span 12;}
}

/* Dashboard refinements */
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.panel-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.panel-pill{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;padding:6px 10px;border-radius:999px;background:rgba(199,163,73,.12);border:1px solid rgba(199,163,73,.25);color:var(--accent)}
.btn.tiny{padding:8px 10px;font-size:.85rem}

/* Header buttons styled like the reference */
.site-header .header-cta{
  border-radius:6px;
  padding:10px 16px;
  font-size:.82rem;
  letter-spacing:.10em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.06);
}
.site-header .header-cta:hover{background:rgba(255,255,255,.10);text-decoration:none}
.site-header .header-register{
  background:linear-gradient(180deg, rgba(199,163,73,.95), rgba(150,113,39,.95));
  border-color:rgba(0,0,0,.25);
  color:#0B0D10;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35);
}
.site-header .header-register:hover{filter:brightness(1.05)}
.site-header .header-login{
  background:linear-gradient(180deg, rgba(46,84,86,.95), rgba(28,47,48,.95));
  border-color:rgba(0,0,0,.35);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18);
}

/* Reactions */
.reactions{margin:16px 0}
.reactions__row{display:flex;gap:10px;flex-wrap:wrap}
.reaction-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
}
.reaction-btn:hover{background:rgba(255,255,255,.08)}
.reaction-btn.is-active{border-color:rgba(199,163,73,.55);box-shadow:inset 0 0 0 1px rgba(199,163,73,.35)}
.reaction-emoji{font-size:1.05rem}
.reaction-count{font-weight:800;letter-spacing:.06em}
.reactions__hint{margin-top:8px;color:var(--muted);font-size:.9rem}
.reactions__login{color:#fff;text-decoration:underline}

.voice-channel{padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);margin-bottom:10px}
.voice-channel__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:24px;padding:0 8px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);color:var(--text);font-weight:800;font-size:.85rem}
.voice-channel__users{display:flex;flex-wrap:wrap;gap:8px}
.user-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.08)}
.user-pill__avatar{width:22px;height:22px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgba(199,163,73,.18);border:1px solid rgba(199,163,73,.25);font-weight:900;font-size:.75rem}
.user-pill__name{font-size:.9rem;white-space:nowrap}
.voice-empty{padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.04);border:1px dashed rgba(255,255,255,.12)}
#discord-voice-widget.is-loading{opacity:.85}

/* Overview cards */
.dashboard-panel--overview{border-left-color: rgba(199,163,73,.85)}
.overview-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:12px}
.overview-card{grid-column:span 4;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:14px}
.overview-label{letter-spacing:.12em;text-transform:uppercase;font-size:.75rem;color:var(--muted)}
.overview-value{font-size:1.65rem;font-weight:900;margin-top:6px}
.overview-sub{margin-top:6px}

/* Officer actions */
.actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (max-width: 520px){.actions-grid{grid-template-columns:1fr}}

/* Voice avatars */
.user-pill__img{width:22px;height:22px;border-radius:999px;object-fit:cover;border:1px solid rgba(255,255,255,.15)}

/* Operations board + create form */
.ops-header{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:16px}
.ops-header__actions{display:flex;gap:10px;flex-wrap:wrap}
.ops-filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.chip{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:var(--text);text-decoration:none}
.chip.is-active{border-color:rgba(199,163,73,.4);background:rgba(199,163,73,.12)}
.ops-table{border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03)}
.ops-row{display:grid;grid-template-columns:1.8fr .6fr .8fr 1fr;gap:10px;padding:12px 14px;border-top:1px solid rgba(255,255,255,.06)}
.ops-row--head{background:rgba(255,255,255,.03);border-top:none;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.ops-title .small{margin-top:4px}
.badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);font-weight:800;font-size:.8rem}
.ops-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.btn.danger{background:rgba(255,77,77,.16);border:1px solid rgba(255,77,77,.25)}
.ops-empty{padding:18px;text-align:center;color:var(--muted)}
.ops-form{max-width:820px}
.field{display:block;margin-bottom:14px}
.field__label{display:block;margin-bottom:8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;font-size:.78rem;color:var(--muted)}
.field__input,.field__textarea{width:100%;border-radius:14px;padding:12px 14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:var(--text)}
.field__textarea{min-height:160px}
@media (max-width: 820px){
  .ops-row{grid-template-columns:1fr}
  .ops-actions{justify-content:flex-start}
}

/* Operation single */
.operation-single{max-width:900px;margin:0 auto}
.operation-single__head{margin-bottom:14px}
.operation-single__content{margin-top:14px}
.operation-single__foot{margin-top:18px;display:flex;gap:10px;flex-wrap:wrap}

/* Page banner: full-width gunmetal side panels + content-width image */
.page-banner{
  width:100%;
  margin:0;
  padding:0;
  border-top:0;
  border-bottom:0;
  box-shadow:none;
}

/* Home: banner should butt directly against header divider */
.site-main--home{padding:0;margin:0}

.page-banner__image{
  width:100%;
  max-width:none;
  margin:0;
  height:560px;
  border-radius:0;
  background-repeat:no-repeat;
  background-position:center;
  background-size: cover;
  background-color:#0B0D10;
}
@media (max-width:768px){.page-banner__image{height:320px;}}

/* Reactions */
.reactions{margin-top:16px}
.reactions__row{display:flex;gap:10px;flex-wrap:wrap}
.reaction-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:var(--text);cursor:pointer}
.reaction-btn:hover{background:rgba(255,255,255,.08)}
.reaction-btn.is-active{border-color:rgba(199,163,73,.55);box-shadow:0 0 0 1px rgba(199,163,73,.35) inset}
.reaction-emoji{font-size:1rem;line-height:1}
.reaction-count{font-weight:700;letter-spacing:.02em}
.reactions__hint{margin-top:8px;color:var(--muted);font-size:.92rem}
.reactions__login{text-decoration:underline}

/* Auto contrast hooks (no banner text by default, but safe for future overlays) */
.page-banner.banner--light{color:#0B0D10;}
.page-banner.banner--dark{color:#E4E6EB;}
/* === Horizontal Scrollbar Fix === */
html, body {
  overflow-x: hidden;
}

.main-nav {
  width: 100%;
  overflow: hidden;
}

.nav-inner {
  max-width: 1400px;
  width: 100%;
  box-sizing: border-box;
}


/* Header user avatar (Discord) */
.discord-avatar{width:34px;height:34px;border-radius:999px;display:block;object-fit:cover;border:1px solid rgba(255,255,255,.22);box-shadow:0 2px 8px rgba(0,0,0,.45)}
.header-userwrap{display:flex;align-items:center;gap:10px}


/* === Exact Navigation Look (image-based background) === */
.main-nav, .site-header, header.site-header {
  background-image: url('../images/nav-bg.png');
  }

.main-nav {
  width: 100%;
  border-bottom: 1px solid rgba(0,0,0,0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.main-nav::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(to right, rgba(0,0,0,0), rgba(185,150,70,0.85), rgba(0,0,0,0));
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center; /* center nav as requested */
  gap: 22px;
  padding: 0 18px;
  box-sizing: border-box;
}

.nav-logo {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.nav-logo img {
  height: 46px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.6));
}

.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: #d7c39a;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(0,0,0,0.65);
  padding: 8px 2px;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  color: #f3e2bd;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta .nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-cta .nav-button--login {
  background: linear-gradient(#284c4b, #0f2424);
  color: #e8f1f0;
}

.nav-cta .nav-button--register {
  background: linear-gradient(#b8832d, #6e4c1a);
  color: #fff2d2;
}

.nav-cta .nav-button:hover {
  filter: brightness(1.08);
}

.nav-cta .discord-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  overflow: hidden;
}

.nav-cta .discord-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Prevent horizontal scrollbar */
html, body { overflow-x: hidden; }

/* === Subtle Nav Overlay === */
.main-nav::before,
.site-header::before,
header.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.18),
    rgba(0,0,0,0.28)
  );
  pointer-events: none;
}

.main-nav,
.site-header,
header.site-header {
  position: relative;
}

/* === Dashboard/Logout Button Colors === */
.nav-cta .nav-button--dashboard {
  background: linear-gradient(#b8832d, #6e4c1a);
  color: #fff2d2;
}
.nav-cta .nav-button--logout {
  background: linear-gradient(#284c4b, #0f2424);
  color: #e8f1f0;
}


/* === Nav Background Fit (show full image, no cropping) === */
.main-nav, .site-header, header.site-header {
  background-image: url('../images/nav-bg.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-color: #15181c;
}

/* === Nav Background: Span Full Width Without Distortion === */
.main-nav, .site-header, header.site-header {
  background-image: url('../images/nav-bg.png');
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 100%;
}

/* === Match Dashboard/Logout Colours to Login/Register === */
.nav-cta .nav-button--dashboard {
  background: linear-gradient(#b8832d, #6e4c1a);
  color: #fff2d2;
}

.nav-cta .nav-button--logout {
  background: linear-gradient(#284c4b, #0f2424);
  color: #e8f1f0;
}

/* === Final Exact Nav Background === */
.main-nav, .site-header, header.site-header {
  background-image: url('../images/nav-bg.png');
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
}

/* === Tighten spacing between Home and Join Us === */
.nav-menu ul {
  gap: 22px;
}

/* === FORCE Dashboard / Logout button colours === */
.nav-cta a[href*="dashboard"] {
  background: linear-gradient(#b8832d, #6e4c1a) !important;
  color: #fff2d2 !important;
}

.nav-cta a[href*="logout"] {
  background: linear-gradient(#284c4b, #0f2424) !important;
  color: #e8f1f0 !important;
}

/* === Gold Inner Glow Line (Battlefield-style) === */
.main-nav {
  box-shadow:
    inset 0 1px 0 rgba(215, 170, 90, 0.9),
    inset 0 2px 0 rgba(215, 170, 90, 0.35);
}

/* === NAV FINAL OVERRIDES ===
   The theme header uses .site-header/.header-inner/.topbar-menu and .header-cta buttons.
   Previous changes targeted .main-nav/.nav-cta which do not exist in header.php, so they
   had no visual effect. These rules override the original header background shorthand
   and button styles reliably.
*/

/* Use the exact nav background image, keep it sharp, span full width without cropping */
.site-header{
  background: url("../images/nav-bg.png") repeat-x center / auto 100% !important;
}

/* Match the background art height (your nav art is designed for 76px) */
.site-header .header-inner{
  min-height: 76px;
}

/* Subtle gold inner glow line (1–2px) inside the header bar */
.site-header{
  box-shadow:
    inset 0 1px 0 rgba(215, 170, 90, 0.90),
    inset 0 2px 0 rgba(215, 170, 90, 0.35),
    0 10px 30px rgba(0,0,0,.55);
}

/* Tighten overall menu spacing (removes the "extra" gap between Home and Join Us) */
.topbar-menu{gap: 22px;}

/* Button colours: make Dashboard match Register (gold) and Logout match Login (green) */
.site-header .header-cta{
  border: 1px solid rgba(0,0,0,0.65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Login + Logout (green) */
.site-header .header-login,
.site-header .header-userwrap a[href*="logout"]{
  background: linear-gradient(#284c4b, #0f2424) !important;
  color: #e8f1f0 !important;
}

/* Register + Dashboard (gold) */
.site-header .header-register,
.site-header .header-userwrap a[href*="dashboard"]{
  background: linear-gradient(#b8832d, #6e4c1a) !important;
  color: #fff2d2 !important;
}

.site-header .header-cta:hover{filter: brightness(1.08); text-decoration:none;}


/* === Menu spacing consistency (remove any odd first-gap effects) === */
.topbar-menu { gap: 24px !important; }
.topbar-menu li { margin: 0 !important; padding: 0 !important; }
.topbar-menu a { margin: 0 !important; }

/* === Header buttons: unify to theme colours (Login/Logout = green, Register/Dashboard = gold) === */
.header-userwrap .btn.primary.header-cta,
.header-register.btn.primary.header-cta {
  background: linear-gradient(#b8832d, #6e4c1a) !important;
  color: #fff2d2 !important;
  border: 1px solid rgba(0,0,0,0.65) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18) !important;
}

.header-userwrap .btn.secondary.header-cta,
.header-login.btn.secondary.header-cta {
  background: linear-gradient(#284c4b, #0f2424) !important;
  color: #e8f1f0 !important;
  border: 1px solid rgba(0,0,0,0.65) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18) !important;
}

/* Hover polish */
.header-cta { transition: filter .15s ease, transform .15s ease; }
.header-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* === Discord avatar + name on the right === */
.header-userwrap { display: flex; align-items: center; gap: 10px; }
.header-avatar-link { display: inline-flex; align-items: center; }
.header-discord-name {
  color: #d7c39a;
  font-weight: 600;
  font-family: "Rajdhani", system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(0,0,0,0.65);
  white-space: nowrap;
}


/* === Header layout: remove fixed empty left space so Home sits closer (uniform spacing) === */
.site-header .header-inner {
  grid-template-columns: auto 1fr auto !important;
}

/* Ensure logo column doesn't reserve huge width */
.site-header .brand {
  width: auto !important;
  justify-self: start;
}

/* Keep nav centered in the middle column */
.site-header .topbar-nav {
  justify-content: center !important;
}

/* === Button polish for theme cohesion === */
.site-header .header-cta {
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 10px rgba(0,0,0,0.35) !important;
}


/* === Center Navigation + Banner to Site Containers === */

/* Center header content */
.site-header {
  display: flex;
  justify-content: center;
}

.site-header .header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Center banner content */
.page-banner,
.hero-banner {
  display: flex;
  justify-content: center;
}

.page-banner > * ,
.hero-banner > * {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Ensure background still spans full width */
.site-header,
.page-banner,
.hero-banner {
  background-position: center center;
}


/* === Center NAV & BANNER BACKGROUNDS to container === */

/* Shared container width */
:root {
  --site-container-width: 1200px;
}

/* NAV BACKGROUND centered to container */
.site-header {
  background-position: center top;
  background-size: auto 100%;
}

.site-header::before {
  background-position: center top;
}

/* BANNER BACKGROUND centered to container */
.page-banner,
.hero-banner {
  background-position: center center;
  background-size: cover;
}

/* Ensure inner alignment stays consistent */
.site-header .header-inner,
.page-banner > .inner,
.hero-banner > .inner {
  max-width: var(--site-container-width);
  margin: 0 auto;
}

/* Safety: prevent background drift on ultrawide screens */
@media (min-width: 1600px) {
  .site-header,
  .page-banner,
  .hero-banner {
    background-position: center center;
  }
}


/* === TRUE container-aligned NAV background === */
:root {
  --site-container-width: 1200px;
}

/* Remove background from header itself */
.site-header {
  background: none !important;
  position: relative;
}

/* Create a container-aligned background layer */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--site-container-width);
  height: 100%;
  background-image: url("../assets/images/nav-bg.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
  z-index: 0;
}

/* Ensure header content sits above background */
.site-header .header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--site-container-width);
  margin: 0 auto;
}


/* === Container-aligned NAV background + gold line (no full-width gold stripe) === */
.site-header {
  box-shadow: none !important;
  border-top: none !important;
}

.site-header::before {
  /* keep existing background layer, add gold inner glow on container width only */
  box-shadow:
    inset 0 1px 0 rgba(215, 170, 90, 0.90),
    inset 0 2px 0 rgba(215, 170, 90, 0.35) !important;
}

/* If any previous full-width glow targeted .main-nav, disable it */
.main-nav {
  box-shadow: none !important;
}

/* === Apply same container-aligned background technique to the banner image area === */
/* Use theme banner asset; keeps the background locked to container width. */
.page-banner__image {
  position: relative;
  background-image: none !important;
  background: none !important;
  overflow: hidden;
}

.page-banner__image::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--site-container-width, 1200px);
  height: 100%;
  background-image: url("../assets/images/banner.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: #0B0D10;
  z-index: 0;
}

.page-banner__image > * {
  position: relative;
  z-index: 1;
}



/* === CORRECTION: container-aligned NAV + BANNER backgrounds (fixed paths, banner restored) === */
:root { --site-container-width: 1200px; }

/* NAV: full-width wrapper, container-width background layer */
.site-header{
  background: none !important;
  position: relative;
}
.site-header::before{
  content:"";
  position:absolute;
  top:0; left:50%;
  transform:translateX(-50%);
  width: var(--site-container-width);
  height:100%;
  background-image:url("../images/nav-bg.png");
  background-repeat:repeat-x;
  background-size:auto 100%;
  background-position:center;
  z-index:0;
  /* gold inner glow on container only */
  box-shadow: inset 0 1px 0 rgba(215,170,90,.90), inset 0 2px 0 rgba(215,170,90,.35);
}
/* remove any full-width gold line */
.main-nav, .site-header { box-shadow:none !important; border-top:none !important; }
.site-header .header-inner{ position:relative; z-index:1; }

/* BANNER: restore banner by painting it on a container-width layer, keep full-width wrapper */
.page-banner__image{
  position:relative;
  background:none !important;
}
.page-banner__image::before{
  content:"";
  position:absolute;
  top:0; left:50%;
  transform:translateX(-50%);
  width: var(--site-container-width);
  height:100%;
  background-image:url("../images/banner.jpg");
  background-repeat:no-repeat;
  background-position:center center;
  background-size:cover;
  z-index:0;
}
.page-banner__image > *{ position:relative; z-index:1; }
/* ensure banner keeps its height */
.page-banner__image{ min-height: 280px; }




/* === FIX: remove gold line + match full-width header colour === */
.site-header{
  background-color: #0b0d10 !important; /* match edges so left/right doesn't look different */
}

/* kill any top gold line coming from shadows/borders/pseudo elements */
.site-header,
.main-nav{
  border-top: none !important;
  box-shadow: none !important;
}

.site-header::before{
  box-shadow: none !important;
}

/* Some builds used ::after for a gold divider; disable it */
.site-header::after,
.main-nav::after{
  content: none !important;
  display: none !important;
}




/* === FIX: make nav background continuous full-width (no mismatched side colour) === */
/* Paint the same nav texture across the full header, so left/right matches the container area. */
.site-header{
  background-image: url("../images/nav-bg.png") !important;
  background-repeat: repeat-x !important;
  background-position: center top !important;
  background-size: auto 100% !important;
}

/* Disable the container-only background layer to avoid double-rendering */
.site-header::before{
  display: none !important;
  content: none !important;
}




/* === RESTORE: container-width NAV background (not full width) === */
:root { --site-container-width: 1200px; }

/* Full-width header uses a single flat tone that matches the site background */
.site-header{
  background-image: none !important;
  background: #0b0d10 !important;
  position: relative;
}

/* Container-aligned nav texture layer */
.site-header::before{
  display: block !important;
  content:"" !important;
  position:absolute !important;
  top:0; left:50% !important;
  transform:translateX(-50%) !important;
  width: var(--site-container-width) !important;
  height:100% !important;
  background-image:url("../images/nav-bg.png") !important;
  background-repeat: repeat-x !important;
  background-size: auto 100% !important;
  background-position: center top !important;
  z-index:0 !important;
  box-shadow: none !important;
}

/* Keep header content above */
.site-header .header-inner{
  position: relative !important;
  z-index: 1 !important;
}

/* Ensure no gold line/divider */
.site-header::after, .main-nav::after{ display:none !important; content:none !important; }
.site-header, .main-nav{ border-top:none !important; box-shadow:none !important; }




/* === NAV: remove background image, match template container colour === */
:root { --site-container-width: 1200px; }

.site-header{
  background: #0b0d10 !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Disable any container background layers */
.site-header::before,
.site-header::after,
.main-nav::before,
.main-nav::after{
  content: none !important;
  display: none !important;
}

/* Keep header content aligned to container */
.site-header .header-inner{
  max-width: var(--site-container-width) !important;
  margin: 0 auto !important;
}




/* === Logo sizing for new crest === */
.brand img{height:38px;width:auto;display:block}

/* === Mobile nav: prevent over-wide menu === */
@media (max-width: 768px){
  .header-inner{padding:10px 12px}
  .topbar-nav{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .topbar-menu{flex-wrap:nowrap;gap:12px;justify-content:flex-start;padding:0 6px}
  .topbar-menu a{font-size:.98rem;padding:8px 0;white-space:nowrap}
  /* hide scrollbar but keep scroll */
  .topbar-nav::-webkit-scrollbar{height:0}
}

/* === Discord avatar: remove coloured background behind avatar === */
.header-avatar-link,
.user-pill__avatar{
  background: transparent !important;
  box-shadow:none !important;
}
.user-pill__avatar{border:1px solid rgba(255,255,255,.18) !important}



/* === REMOVE LOGO FROM NAV === */
.site-header .brand,
.site-header .site-logo,
.site-header .logo {
  display: none !important;
}

/* === AVATAR: remove coloured background === */
.nav-user-avatar,
.nav-user-avatar img,
.user-avatar,
.discord-avatar {
  background: transparent !important;
  box-shadow: none !important;
}

/* === FOOTER LOGO PLACEMENT === */
.site-footer .footer-inner {
  position: relative;
}

.site-footer .footer-logo {
  position: absolute;
  right: 0;
  bottom: 0;
}

.site-footer .footer-logo img {
  height: 48px;
  width: auto;
  opacity: 0.9;
}



/* === FORCE remove avatar pill background (was orange/gold) === */
.user-pill__avatar,
.header-avatar-link,
.header-avatar-link img.discord-avatar,
img.discord-avatar {
  background: transparent !important;
}

.user-pill__avatar {
  box-shadow: none !important;
  border-color: rgba(255,255,255,0.12) !important; /* subtle neutral border */
}

/* Remove any gradient on user pill wrapper */
.user-pill,
.user-pill a,
.user-pill__wrap {
  background: transparent !important;
}




/* === Footer logo bottom-right inside container === */
.site-footer .container{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding-right: 72px; /* room for logo */
}
.site-footer .footer-logo{
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 6px 0;
}
.site-footer .footer-logo img{
  height: 54px;
  width: auto;
  display: block;
  opacity: 0.92;
}




/* === HARD FIX: remove orange/gold behind Discord avatar === */
.user-pill__avatar,
.user-pill,
.user-pill__wrap,
.user-pill a,
.header-avatar-link,
.header-avatar-link * {
  background: transparent !important;
  background-image: none !important;
  filter: none !important;
}

.user-pill__avatar::before,
.user-pill__avatar::after,
.user-pill::before,
.user-pill::after,
.header-avatar-link::before,
.header-avatar-link::after {
  content: none !important;
  display: none !important;
}

.user-pill__avatar {
  box-shadow: none !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
}


/* === Footer: inline text left, logo right (same row) === */
.site-footer .container{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.site-footer .footer-logo{
  position: static !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-footer .footer-logo img{
  width: 400px !important;
  height: auto !important;
  max-width: 40vw !important; /* keep sane on small screens */
  display: block !important;
  opacity: 0.92;
}

@media (max-width: 768px){
  .site-footer .footer-logo img{ width: 220px !important; max-width: 55vw !important; }
}




/* === Footer logo: ensure visible and aligned right === */
.site-footer .container{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
}
.site-footer .footer-logo{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
}
.site-footer .footer-logo img{
  width: 400px !important;
  height: auto !important;
  max-width: 40vw !important;
}




/* === Footer logo size adjustment === */
.site-footer .footer-logo img{
  width: 200px !important;
  height: 200px !important;
  max-width: 200px !important;
  max-height: 200px !important;
}


/* === Align main navigation to left === */
.site-header .header-inner{
  display: flex !important;
  align-items: center !important;
}

.site-header .main-nav{
  margin-left: 0 !important;
}

.site-header .main-nav ul{
  justify-content: flex-start !important;
}




/* === Separate nav menu (left) from account actions (right) === */
.site-header .header-inner{
  display: flex !important;
  align-items: center !important;
}

/* Main nav stays left */
.site-header .main-nav{
  margin-right: auto !important;
}

/* Account / user actions forced right */
.site-header .header-actions,
.site-header .user-pill,
.site-header .user-actions,
.site-header .nav-user{
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px;
}

/* Ensure buttons line up nicely */
.site-header .header-actions .btn,
.site-header .user-pill a{
  display: inline-flex !important;
  align-items: center !important;
}



/* === Subtle divider between nav and account actions === */
.site-header .header-inner{
  position: relative;
}

/* Vertical divider centered in container */
.site-header .header-inner::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  height: 60%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.00),
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.00)
  );
  pointer-events: none;
}




/* === Divider: gunmetal grey + faint glow on nav hover/selected === */
.site-header .header-inner{ position: relative; }

.site-header .header-inner::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  height: 60%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(45,52,58,0.00),
    rgba(110,120,128,0.45),
    rgba(45,52,58,0.00)
  );
  opacity: 0.75;
  pointer-events: none;
  transition: box-shadow .18s ease, opacity .18s ease, background .18s ease;
}

/* Glow when hovering nav, or when current menu item exists (selected) */
.site-header .header-inner.nav-hover::after,
.site-header .header-inner.nav-selected::after{
  opacity: 1;
  background: linear-gradient(
    to bottom,
    rgba(45,52,58,0.00),
    rgba(140,150,158,0.75),
    rgba(45,52,58,0.00)
  );
  box-shadow:
    0 0 10px rgba(140,150,158,0.35),
    0 0 18px rgba(140,150,158,0.18);
}




/* === Home: Announcements feed (tag=Announcement) === */
.home-announcements{
  padding: 28px 0 46px;
}
.home-announcements .container{
  max-width: 1100px;
}
.home-announcements__title{
  margin: 0 0 18px;
  font-size: 20px;
  letter-spacing: .02em;
  color: #d7c39a;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
}
.home-announcement{
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.home-announcement:first-of-type{ border-top: 0; }
.home-announcement__title{
  margin: 0;
  font-size: 18px;
}
.home-announcement__title a{
  color: #f3e2bd;
  text-decoration: none;
}
.home-announcement__title a:hover{
  text-decoration: underline;
}
.home-announcement__meta{
  margin-top: 6px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}
.home-announcement__content{
  margin-top: 12px;
  color: rgba(255,255,255,0.88);
}
.home-announcements__empty{
  color: rgba(255,255,255,0.75);
  margin: 0;
}




/* === Pinned label === */
.announcement-card__pinned{
  display:inline-block;
  margin-top: 2px;
  margin-right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0b0d10;
  background: linear-gradient(#f3e2bd, #d7c39a);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}




/* === Announcement comments inside cards === */
.announcement-comments__list{
  margin-top: 10px;
}
.announcement-comments__empty{
  color: rgba(255,255,255,0.7);
  margin: 10px 0 0;
}
.announcement-comments__form{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.announcement-card .comment-list{
  margin: 10px 0 0;
  padding-left: 18px;
}
.announcement-card .comment-body{
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 10px 0;
}
.announcement-card .comment-author .avatar{
  border-radius: 999px;
  background: transparent;
}




/* === Events Calendar Page === */
.events-page{ padding: 22px 0 54px; }
.events-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.events-title{ margin:0; font-size: 26px; color: #f3e2bd; }
.events-nav{ display:flex; align-items:center; gap: 10px; }
.events-month{ color: rgba(255,255,255,0.85); font-weight: 700; letter-spacing:.02em; }

.events-editor{
  margin: 16px 0 22px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.events-editor__title{ margin:0 0 10px; color:#d7c39a; font-size: 18px; }
.events-form .field{ margin-bottom: 12px; }
.events-form label{ display:block; font-weight:700; color: rgba(255,255,255,0.82); margin-bottom: 6px; }
.events-form input[type="text"], .events-form input[type="date"], .events-form textarea{
  width:100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  padding: 10px 12px;
}
.events-form textarea{ resize: vertical; }
.events-form .grid2{ display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.events-form .actions{ display:flex; gap: 10px; align-items:center; }

.notice{ margin: 10px 0 14px; padding: 10px 12px; border-radius: 12px; border:1px solid rgba(255,255,255,0.12); }
.notice-success{ background: rgba(80, 180, 120, 0.12); }
.notice-error{ background: rgba(220, 80, 80, 0.12); }

.events-calendar{ margin-top: 10px; }
.calendar-grid{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
.cal-head{
  text-align:center;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-weight: 800;
  letter-spacing:.04em;
  font-size: 12px;
}
.cal-cell{
  min-height: 120px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 10px 8px;
  position: relative;
  overflow: hidden;
}
.cal-cell.has-events{
  border-color: rgba(215,195,154,0.22);
  background: rgba(255,255,255,0.04);
}
.cal-empty{ background: transparent; border-color: transparent; }
.cal-day{
  font-weight: 900;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  letter-spacing:.04em;
}
.cal-events{
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
  display:flex;
  flex-direction: column;
  gap: 6px;
}
.cal-event{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 8px;
}
.cal-event__title{
  color: #f3e2bd;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
}
.cal-event__title:hover{ text-decoration: underline; }

.cal-del{ margin:0; }
.cal-del__btn{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.75);
  border-radius: 10px;
  padding: 2px 7px;
  cursor: pointer;
}
.cal-del__btn:hover{ filter: brightness(1.1); color:#fff; }

@media (max-width: 900px){
  .calendar-grid{ gap: 8px; }
  .cal-cell{ min-height: 92px; padding: 8px; border-radius: 14px; }
}
@media (max-width: 700px){
  .events-header{ flex-direction: column; align-items:flex-start; }
  .events-form .grid2{ grid-template-columns: 1fr; }
  .calendar-grid{ grid-template-columns: repeat(2, 1fr); }
  .cal-head{ display:none; }
}




.cal-event__time{
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}




/* === Single event page === */
.event-single{ padding: 22px 0 54px; }
.event-single__header{ margin-bottom: 16px; display:flex; flex-direction:column; gap: 10px; }
.event-single__title{ margin:0; color:#f3e2bd; font-size: 28px; }
.event-single__meta{ display:flex; gap: 10px; flex-wrap: wrap; color: rgba(255,255,255,0.75); font-weight: 700; }
.event-single__actions{ display:flex; gap: 10px; flex-wrap: wrap; }
.event-single__content{ border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); border-radius: 16px; padding: 16px; }

/* Calendar edit icon */
.cal-edit{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.75);
  border-radius: 10px;
  padding: 2px 7px;
  text-decoration: none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.cal-edit:hover{ filter: brightness(1.1); color:#fff; }




/* === News-style cards (used on Home announcements) === */
.news-list{ display:flex; flex-direction:column; gap: 14px; }
.news-card__head{ display:flex; align-items:flex-start; justify-content:space-between; gap: 12px; }
.news-card__title{ margin:0; font-size: 18px; line-height:1.2; }
.news-card__title a{ color:#f3e2bd; }
.news-card__meta{ color: rgba(255,255,255,0.65); font-size: 13px; display:flex; gap: 10px; align-items:center; justify-content:flex-end; text-align:right; }
.news-card__content{ margin-top: 10px; color: rgba(255,255,255,0.9); }
.news-card__foot{ margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.08); display:flex; justify-content:space-between; align-items:flex-start; gap: 12px; flex-wrap: wrap; }
.news-card__comments summary{ cursor:pointer; color: rgba(255,255,255,0.8); font-weight:700; }
.news-card__comments summary:hover{ color:#f3e2bd; }
.news-card__pinned{
  display:inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0b0d10;
  background: linear-gradient(#f3e2bd, #d7c39a);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}




/* === Signups list (events/operations) === */
.deltaone-signups-list{ margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08); }
.deltaone-signups-list__title{ margin:0 0 10px; color:#d7c39a; font-size: 16px; }
.deltaone-signups-list__grid{ display:flex; flex-wrap:wrap; gap: 10px; }
.deltaone-signup-member{
  position: relative;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
}
.deltaone-signup-member__avatar{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  background: transparent;
}
.deltaone-signup-member__name{
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  letter-spacing: .02em;
}
.deltaone-remove-signup{
  margin-left: 6px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.75);
  border-radius: 10px;
  padding: 2px 7px;
  cursor:pointer;
}
.deltaone-remove-signup:hover{ color:#fff; filter: brightness(1.12); }




/* === Signup / Leave buttons === */
.deltaone-signup-btn{
  background: linear-gradient(180deg, #2fbf71, #1e9b57);
  border: 1px solid rgba(47,191,113,0.8);
  color: #0b0d10;
  font-weight: 900;
}
.deltaone-signup-btn:hover{
  filter: brightness(1.08);
}

.deltaone-signup-btn.is-active{
  background: linear-gradient(180deg, #d94b4b, #b52f2f);
  border-color: rgba(217,75,75,0.9);
  color: #fff;
}

/* Logout button */
.nav-actions .btn-logout,
.btn.logout{
  background: linear-gradient(180deg, #d94b4b, #b52f2f);
  border-color: rgba(217,75,75,0.9);
  color: #fff;
}
.nav-actions .btn-logout:hover,
.btn.logout:hover{
  filter: brightness(1.08);
}




/* === Signup/Leave + Logout color overrides (maroon) === */
.btn.secondary.deltaone-signup-btn,
.deltaone-signup .btn.secondary.deltaone-signup-btn{
  background: linear-gradient(180deg, #2fbf71, #1e9b57) !important;
  border: 1px solid rgba(47,191,113,0.95) !important;
  color: #0b0d10 !important;
  font-weight: 900 !important;
}
.btn.secondary.deltaone-signup-btn:hover{
  filter: brightness(1.08);
}
.btn.secondary.deltaone-signup-btn.is-active{
  background: linear-gradient(180deg, #7a2230, #5d1a24) !important;
  border-color: rgba(190,80,95,0.75) !important;
  color: #fff !important;
}
.btn.secondary.deltaone-signup-btn.is-active:hover{
  filter: brightness(1.08);
}

/* Logout button should be maroon */
a.header-logout.btn.secondary,
a.header-logout{
  background: linear-gradient(180deg, #7a2230, #5d1a24) !important;
  border: 1px solid rgba(190,80,95,0.65) !important;
  color: #fff !important;
}
a.header-logout:hover{
  filter: brightness(1.08);
}




/* === Fix: button cursor + Logout maroon === */
.deltaone-signup-btn{ cursor: pointer !important; }
.deltaone-remove-signup{ cursor: pointer !important; }

/* Force Logout maroon (override any secondary button styles) */
header a.btn.btn-logout,
header a.btn.btn-logout.secondary,
header a.btn.btn-logout.header-cta{
  background: linear-gradient(180deg, #7a1f2a, #5a141d) !important;
  border: 1px solid rgba(122,31,42,0.95) !important;
  color: #fff !important;
}
header a.btn.btn-logout:hover{ filter: brightness(1.08); }

/* Make "Leave" maroon */
.deltaone-signup-btn.is-active{
  background: linear-gradient(180deg, #7a1f2a, #5a141d) !important;
  border-color: rgba(122,31,42,0.95) !important;
  color: #fff !important;
}




/* === FINAL OVERRIDE: Logout must be maroon === */
html body header a.btn-logout,
html body header .nav-actions a.btn-logout,
html body header a.btn-logout.btn,
html body header a.btn-logout.secondary,
html body header a[href*="logout"]{
  background: linear-gradient(180deg, #7a1f2a, #5a141d) !important;
  border-color: rgba(122,31,42,0.95) !important;
  color: #ffffff !important;
}
html body header a[href*="logout"]:hover{
  filter: brightness(1.08);
}




/* === Container-fit dividers === */
.deltaone-divider,
.deltaone-nav-divider-3d{
  width: 100%;
  max-width: var(--container, 1100px);
  margin: 0 auto;
}

/* Match banner divider to footer divider look */
.banner-divider,
.deltaone-banner-divider,
.divider-under-banner{
  height: 1px;
  background: rgba(255,255,255,0.10);
  box-shadow: 0 1px 0 rgba(0,0,0,0.55);
  max-width: var(--container, 1100px);
  margin-left: auto;
  margin-right: auto;
}

/* 3D gunmetal divider below navigation */
.deltaone-nav-divider-3d{
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.55));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.65),
    0 10px 22px rgba(0,0,0,0.35);
  opacity: 0.85;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Ensure any header top/bottom full-width lines don't bleed outside container */
.site-header::before,
.site-header::after{
  max-width: var(--container, 1100px);
  margin-left: auto;
  margin-right: auto;
}



/* Constrain generic hr dividers to container (only within main content) */
main .container hr,
main hr{
  max-width: var(--container, 1100px);
  margin-left: auto;
  margin-right: auto;
}




/* === Container-fit dividers (real fix) === */
.page-banner::after{
  content:"";
  display:block;
  height:1px;
  max-width:1100px;
  margin:0 auto;
  background: rgba(255,255,255,0.06); /* match footer top divider */
  box-shadow: 0 1px 0 rgba(0,0,0,0.55);
}

/* 3D gunmetal divider below navigation (inside container) */
.deltaone-nav-divider-3d{
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.55));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.65),
    0 10px 22px rgba(0,0,0,0.35);
  opacity: 0.9;
  margin: 10px auto 10px;
}




/* === Dividers: nav + banner (container width) === */
.deltaone-nav-divider-3d{
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(0,0,0,0.55));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.65),
    0 10px 22px rgba(0,0,0,0.35);
  opacity: 0.9;
  margin: 10px auto 12px;
}

.deltaone-banner-divider{
  height: 1px;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(0,0,0,0.55);
  margin: 0 auto 14px;
}

/* Ensure dividers never stretch past container */
.container .deltaone-nav-divider-3d,
.container .deltaone-banner-divider{
  width: 100%;
}




/* === Header container width for dividers (matches nav/menu area) === */
.header-container{max-width:1400px;padding-left:0;padding-right:0;}

/* === Banner alignment within main body container === */
.page-banner{
  max-width:1100px;
  margin:0 auto;
  border-radius: 14px;
  overflow:hidden;
}
.page-banner__image{
  max-width:1100px;
  border-radius:14px;
}

/* Divider directly under banner (matches footer divider) */
.deltaone-banner-divider{
  height: 1px;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(0,0,0,0.55);
  margin: 14px auto 14px;
}




/* === Header frame for menu + user controls (container width) === */
.site-header .header-inner--wide{
  position: relative;
}
.site-header .header-inner--wide::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  bottom:0;
  pointer-events:none;
  border-left: 1px solid rgba(255,255,255,0.06);
  border-right: 1px solid rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.55);
  border-radius: 14px;
}




/* === Events create/edit form width fix === */
.deltaone-events-admin form input[type="text"],
.deltaone-events-admin form input[type="datetime-local"],
.deltaone-events-admin form textarea{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.deltaone-events-admin form textarea{ min-height: 120px; }




/* === Events form overflow fix (box sizing) === */
.events-form input[type="text"],
.events-form input[type="date"],
.events-form input[type="time"],
.events-form textarea{
  box-sizing: border-box;
  max-width: 100%;
}




/* Dashboard - Next Events */
.dashboard-event-item .dashboard-link{
  display:flex;
  justify-content:space-between;
  gap:12px;
}
.dashboard-event-when{
  opacity:0.8;
  font-size: 0.9em;
  white-space: nowrap;
}



/* === Remove excess bottom spacing on News & Operations pages === */
.page-template-page-news main,
.page-template-page-operations main{
  padding-bottom: 0 !important;
}

.page-template-page-news .site-content,
.page-template-page-operations .site-content{
  margin-bottom: 0 !important;
}

.page-template-page-news .section:last-child,
.page-template-page-operations .section:last-child{
  margin-bottom: 0 !important;
}




/* === Remove forced viewport height on short pages (News & Operations) === */
.page-template-page-news .site-main,
.page-template-page-operations .site-main{
  min-height: auto !important;
}




/* === Remove forced viewport height on Operations pages (all variants) === */
.page-template-page-operations .site-main,
.page-slug-operations .site-main,
.page-operations .site-main,
.post-type-archive-deltaone_operation .site-main,
.single-deltaone_operation .site-main,
.single-deltaone_operation_signup .site-main,
.single-deltaone_operation-signup .site-main{
  min-height: auto !important;
}




/* === Fix: remove forced 70vh height that creates large footer gaps === */
.site-main{ min-height: auto !important; }



/* DELTAONE_ROSTER_PANEL_STYLES */
.roster-panel-content {
  margin-top: 10px;
}
.roster-panel-content p:last-child {
  margin-bottom: 0;
}
.roster-panel-empty {
  margin-top: 10px;
  opacity: 0.75;
  font-size: 0.95em;
}


/* DELTAONE_ROSTER_VISUAL_UPGRADE */
.page-template-page-roster .roster-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.page-template-page-roster .roster-grid .card{
  padding: 18px 18px 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

.page-template-page-roster .roster-grid .card-title{
  margin: 0 0 12px;
}

.page-template-page-roster .roster-names{
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-template-page-roster .roster-names li{
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.page-template-page-roster .roster-names li:first-child{
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 900px){
  .page-template-page-roster .roster-grid{
    grid-template-columns: 1fr;
  }
  .page-template-page-roster .roster-grid .card{
    padding: 16px;
  }
}


/* DELTAONE_ROSTER_FOUNDERS */
.page-template-page-roster .roster-founders{
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
}

.page-template-page-roster .roster-founders__title{
  margin-bottom: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-template-page-roster .roster-founders__names{
  font-size: 1.05em;
  margin-bottom: 6px;
}

.page-template-page-roster .roster-founders__honour{
  opacity: .75;
  font-size: .95em;
}


.page-template-page-roster .roster-grid .card:nth-child(2) .roster-names li{
  color: var(--primary);
  font-weight: 700;
}

.page-template-page-roster .roster-grid .card:nth-child(3) .roster-names li{
  color: var(--success);
  font-weight: 700;
}


/* DELTAONE_ROSTER_COLOUR_CODING_DARK */
.page-template-page-roster .roster-grid .card:nth-child(1) .roster-names li{
  color: #8f3a3a; /* Dark Maroon - Command */
  font-weight: 700;
}

.page-template-page-roster .roster-grid .card:nth-child(2) .roster-names li{
  color: #c2a23a; /* Dark Gold - Officers */
  font-weight: 700;
}

.page-template-page-roster .roster-grid .card:nth-child(3) .roster-names li{
  color: #3f6f5a; /* Dark Pine Green - Members */
  font-weight: 700;
}



/* DELTAONE_ROSTER_OPERATIONS_LINEUP */
.page-template-page-roster .roster-ops-lineup-card{
  margin-top: 18px;
  padding: 18px 18px 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.page-template-page-roster .roster-ops-lineup-card .card-title{
  margin: 0 0 12px;
}

.page-template-page-roster .roster-ops-lineup-grid{
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 18px;
}

.page-template-page-roster .roster-ops-col{
  min-width: 0;
}

@media (max-width: 860px){
  .page-template-page-roster .roster-ops-lineup-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.page-template-page-roster .ops-team-pills{
  display:flex;
  /* Stack entries 1 per line inside each column */
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap:10px;
}
.page-template-page-roster .ops-team-pill{
  display:flex;
  width:100%;
  min-width:0;
  position:relative;
  overflow:hidden;
  align-items:center;
  gap:8px;
  padding:10px 12px 10px 16px; /* extra left space for accent */
  border-radius:14px;
  border:1px solid rgba(199,163,73,.25);
  background:linear-gradient(180deg, rgba(199,163,73,.10), rgba(0,0,0,0));
  text-decoration:none;
}
.page-template-page-roster .ops-team-pill::before{
  content:'';
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:3px;
  background:linear-gradient(180deg, rgba(199,163,73,.95), rgba(199,163,73,.35));
  opacity:.9;
}
.page-template-page-roster .ops-team-pill:hover{
  border-color: rgba(199,163,73,.55);
  text-decoration:none;
}
.page-template-page-roster .ops-team-pill:hover{
  border-color: rgba(199,163,73,.55);
  text-decoration:none;
}
.page-template-page-roster .ops-team-flag{ font-size:14px; line-height:1; }
.page-template-page-roster .ops-team-name{ color: var(--text); font-weight: 700;  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.page-template-page-roster .ops-team-games{ display:inline-flex; gap:6px; margin-left: auto; }
.page-template-page-roster .ops-team-game{
  width:18px;height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:5px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(10,12,14,.35);
  overflow:hidden;
}
.page-template-page-roster .ops-team-game img{ width:100%; height:100%; object-fit:cover; display:block; }


/* DELTAONE_MEDIA_CARD_SPLIT */
.page-template-page-media .btn,
.page-template-page-media button,
.page-template-page-media input[type="submit"]{
  cursor: pointer;
}

.page-template-page-media .media-card-head{
  display:flex;
  justify-content:flex-end;
  margin: 10px 0 12px;
}

.page-template-page-media .media-grid--card{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-template-page-media .media-item--card,
.page-template-page-media .media-item--thumb{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

.page-template-page-media .media-grid--thumbs{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-template-page-media .media-item__meta{
  padding: 10px 12px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.page-template-page-media .media-item__title{
  font-weight: 700;
  font-size: .95em;
  opacity: .95;
}

.page-template-page-media .media-item__embed iframe{
  width:100%;
  aspect-ratio:16/9;
  border:0;
}

.page-template-page-media .media-item__thumb img{
  width:100%;
  height:auto;
  display:block;
}

.page-template-page-media .media-form-row select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.15);
  color: inherit;
}

@media (max-width: 900px){
  .page-template-page-media .media-grid--thumbs{
    grid-template-columns: 1fr;
  }
}


/* DELTAONE_MEDIA_READABILITY */
.page-template-page-media .media-item__meta{
  background: rgba(0,0,0,.20);
}

.page-template-page-media .media-item__link{
  text-decoration: none;
  opacity: .95;
}

.page-template-page-media .media-item__link:hover{
  opacity: 1;
}

.page-template-page-media .media-item__delete .btn{
  opacity: .85;
}

.page-template-page-media .media-item__delete .btn:hover{
  opacity: 1;
}

.page-template-page-media .media-item__title{
  color: rgba(255,255,255,.92);
}

.page-template-page-media .media-viewall{
  padding: 8px 10px;
}

.page-template-page-media .notice{
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
}

.page-template-page-media .notice-success{
  border-color: rgba(120, 220, 160, .35);
}

.page-template-page-media .notice-error{
  border-color: rgba(255, 120, 120, .35);
}

.page-template-page-media .media-item__embed{
  background: rgba(0,0,0,.22);
}


/* DELTAONE_MEDIA_GALLERY_PAGES */
.page-template-page-media select.media-type-select,
.page-template-page-media .media-form-row select{
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.14);
}

.page-template-page-media select.media-type-select option,
.page-template-page-media .media-form-row select option{
  background: #0f0f10;
  color: #fff;
}

.page-template-page-media .media-gallery-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.page-template-page-media .media-gallery-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.page-template-page-media .media-item--gallery{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

.page-template-page-media .media-pagination{
  margin-top: 16px;
}

.page-template-page-media .media-pagination ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.page-template-page-media .media-pagination a,
.page-template-page-media .media-pagination span{
  display:inline-block;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  text-decoration:none;
  opacity:.95;
}

.page-template-page-media .media-pagination .current{
  opacity:1;
}

@media (max-width: 900px){
  .page-template-page-media .media-gallery-grid{
    grid-template-columns: 1fr;
  }
}


/* DELTAONE_MEDIA_GALLERY_TEMPLATE_STYLES */
.media-gallery-card .btn,
.media-gallery-card button{
  cursor: pointer;
}

.media-gallery-card{
  padding: 18px;
}

.media-gallery-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}


/* DELTAONE_OP_POINTER */
.operation-single .btn,
.ops-table .btn,
.deltaone-signup button,
.deltaone-signups-list button{
  cursor: pointer;
}


/* DELTAONE_OP_STATS */
.ops-stats__grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.ops-stat{
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
}
.ops-stat__num{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
}
@media (max-width: 900px){
  .ops-stats__grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}


/* DELTAONE_OP_STAT_COLORS */
.ops-stat--won .ops-stat__num{ color: #1f4d3a; }   /* dark pine green */
.ops-stat--drawn .ops-stat__num{ color: #3a3f46; } /* gunmetal grey */
.ops-stat--lost .ops-stat__num{ color: #5a1f2a; }  /* dark maroon */


/* DELTAONE_OP_RESULT_BADGES */
.badge--won{ background: rgba(31,77,58,.18); border: 1px solid rgba(31,77,58,.35); color: #1f4d3a; }
.badge--lost{ background: rgba(90,31,42,.18); border: 1px solid rgba(90,31,42,.35); color: #5a1f2a; }
.badge--drawn{ background: rgba(58,63,70,.18); border: 1px solid rgba(58,63,70,.35); color: #3a3f46; }


/* DELTAONE_OP_DARK_SELECT */
.ops-dark-select,
.form-row select{
  background: rgba(10,12,14,.92);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.14);
}
.ops-dark-select option,
.form-row select option{
  background: #0b0d10;
  color: rgba(255,255,255,.92);
}


/* DELTAONE_NEWS_DARK_SELECT */
.news-dark-select{
  background: rgba(10,12,14,.92);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.14);
}
.news-dark-select option{
  background: #0b0d10;
  color: rgba(255,255,255,.92);
}


/* DELTAONE_NEWS_IMAGE_FIT */
.single-post .media-gallery-grid,
.single .media-gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.single-post .media-gallery-grid a,
.single .media-gallery-grid a{
  display:block;
  border-radius: 16px;
  overflow:hidden;
}

.single-post .media-gallery-grid img,
.single .media-gallery-grid img{
  width:100%;
  height:220px;
  object-fit: cover;
  display:block;
}


/* DELTAONE_HOME_NEWS_PAGINATION */
.pagination-wrap{
  margin-top:14px;
}
.pagination-wrap ul{
  list-style:none;
  display:flex;
  gap:8px;
  padding:0;
  margin:0;
  flex-wrap:wrap;
}
.pagination-wrap a,
.pagination-wrap span{
  display:inline-block;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(10,12,14,.55);
  color: rgba(255,255,255,.9);
  text-decoration:none;
}
.pagination-wrap .current{
  background: rgba(255,255,255,.08);
}


/* DELTAONE_NEWS_CARD_IMAGE_CONTAIN */
.card.news-card{ overflow:hidden; }

.news-card__content img,
.news-card__content video,
.news-card__content iframe{
  max-width: 100%;
}

.news-card__content img{
  height: auto;
  display: block;
}

.news-card__content figure,
.news-card__content .wp-block-image,
.news-card__content .wp-block-embed{
  margin: 10px 0;
}

.news-card__content .alignwide,
.news-card__content .alignfull{
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.news-card__content .wp-block-image img{
  width: 100%;
  height: auto;
}


/* DELTAONE_PINNED_BADGE */
.news-card__pinned{
  display:inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  letter-spacing: .08em;
  margin-right: 8px;
}


/* DELTAONE_PIN_CURSOR */
.announcement-pin{ cursor: pointer; }
.announcement-pin:disabled{ cursor: not-allowed; opacity: .7; }

.game-icon img{max-width:100%;max-height:100%;display:block;}


/* Dashboard: announcements should be one per line */
.dashboard-panel--announcements .dashboard-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.dashboard-panel--announcements .dashboard-link{
  display:block;
}

/* Dashboard: status badge + secondary button */
.d1-dashboard-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.d1-badge{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
}
.d1-badge--ok{ border-color: rgba(46, 204, 113, .35); background: rgba(46, 204, 113, .22); color: rgba(230,255,240,.95); }
.d1-badge--warn{ border-color: rgba(241, 196, 15, .35); background: rgba(241, 196, 15, .22); color: rgba(255,250,230,.95); }
.d1-badge--unset{ border-color: rgba(196, 74, 74, .35); background: rgba(196, 74, 74, .18); color: rgba(255,235,235,.95); opacity: 1; }

.button.button--ghost{
  background: transparent;
  border: 1px solid rgba(199,163,73,.45);
}
.button.button--ghost:hover{
  border-color: rgba(199,163,73,.8);
}


/* Dashboard game status badges */
.d1-game-status{padding:6px 10px;border-radius:8px;font-weight:700;color:#0b0b0b;display:inline-block}
.d1-game-status.configured{background:#3fae6b;color:#081b12}
.d1-game-status.partial{background:#e0b84a;color:#1b1505}
.d1-game-status.not-set{background:#c44a4a;color:#1b0606}

/* Test stats button */
.d1-test-stats-btn{background:#c44a4a;border:1px solid rgba(0,0,0,.2);color:#fff;border-radius:8px;padding:6px 10px;font-weight:700;cursor:pointer}
.d1-test-stats-btn:hover{filter:brightness(1.1)}


/* Footer widgets */
/* Use a 3-column grid so the logo sits flush right to the container edge,
   while the Who's Online / Views block stays centered. */
.site-footer .footer-top{display:grid;grid-template-columns:1fr minmax(320px,640px) 1fr;align-items:center;gap:16px}
.site-footer .footer-left{white-space:nowrap;justify-self:start}
.site-footer .footer-presence{display:flex;justify-content:center;justify-self:center}
.site-footer .footer-right{justify-self:end;display:flex;justify-content:flex-end}

.footer-widgets{
  display:grid;
  grid-template-columns: 1.4fr .6fr;
  gap:14px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,0.06);
}

/* Inline widgets (used in the footer-top center column) */
.footer-widgets--inline{
  width:min(640px, 100%);
  margin:0;
  padding:0;
  border-top:0;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
}
.footer-widget{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:14px;
  padding:12px 12px;
}
.footer-widget__title{
  font-family:'Rajdhani', system-ui, sans-serif;
  font-weight:700;
  letter-spacing:.3px;
  color:var(--text);
  font-size:14px;
  margin-bottom:8px;
}
.footer-widget__content{color:var(--muted);font-size:13px}
.footer-online-list{display:flex;flex-wrap:wrap;gap:8px}
.footer-online-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(199,163,73,.25);
  background:linear-gradient(180deg, rgba(199,163,73,.10), rgba(0,0,0,0));
  text-decoration:none;
}
.footer-online-pill:hover{border-color:rgba(199,163,73,.55);text-decoration:none}
.footer-dot{
  width:8px;height:8px;border-radius:999px;
  background:var(--accent);
  box-shadow:0 0 0 2px rgba(199,163,73,.18);
}
.footer-flag{font-size:14px;line-height:1}
.footer-online-name{color:var(--text);font-weight:600}
.footer-subtle{margin-top:10px;color:var(--muted);font-size:12px}

.footer-views{display:flex;flex-direction:column;gap:8px}
.footer-views__row{display:flex;justify-content:space-between;gap:10px}
.footer-views__label{color:var(--muted)}
.footer-views__value{color:var(--text);font-weight:700;font-family:'Rajdhani', system-ui, sans-serif}

@media (max-width: 800px){
  .footer-widgets{grid-template-columns:1fr}
  .site-footer .footer-top{grid-template-columns:1fr;align-items:stretch}
  .site-footer .footer-right{grid-row:1;justify-content:flex-start}
  .site-footer .footer-presence{grid-row:2;justify-content:flex-start}
  .site-footer .footer-left{grid-row:3}
}


/* Event signup: public list + locked state */
.deltaone-signup--locked{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.deltaone-signup-note{opacity:.85;font-size:.9em;}
.deltaone-signup-note a{text-decoration:underline;}

.page-template-page-roster .ops-team-games{ min-width:0; }


/* === Ops Lineup polish: card accent + gold headings + hard column clamp === */
.page-template-page-roster .roster-ops-lineup-card{
  position: relative;
  border-left: 4px solid rgba(199,163,73,.6);
}
.page-template-page-roster .roster-ops-lineup-card .card-title{
  color: rgba(199,163,73,.95);
  text-shadow: 0 0 18px rgba(199,163,73,.18);
}
.page-template-page-roster .roster-ops-col{
  overflow: hidden; /* prevents any visual bleed */
}
.page-template-page-roster .ops-team-pill{
  max-width: 100%;
  box-sizing: border-box;
}


/* === Per-operation lineup picker === */
.ops-lineup-section{
  margin-top: 14px;
  padding: 14px 14px 10px;
  border-left: 4px solid rgba(199,163,73,.6);
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: 16px;
}
.ops-lineup-section .field__label{
  color: rgba(199,163,73,.95);
}
.ops-lineup-picker__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}
.ops-lineup-picker__item{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
}
.ops-lineup-picker__item input{ transform: translateY(1px); }
.op-lineup-card{ margin-top: 14px; border-left: 4px solid rgba(199,163,73,.6); }
.op-lineup-card .card-title{ color: rgba(199,163,73,.95); }
.op-lineup-grid{
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 18px;
}
@media (max-width: 860px){
  .op-lineup-grid{ grid-template-columns: 1fr; gap: 14px; }
}
.op-lineup-heading{
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(199,163,73,.9);
}
.ops-lineup-list{
  margin: 0;
  padding-left: 0;
  list-style: none;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.ops-lineup-list li a{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  padding: 10px 12px 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(199,163,73,.25);
  background: linear-gradient(180deg, rgba(199,163,73,.10), rgba(0,0,0,0));
  position: relative;
  overflow:hidden;
  text-decoration:none;
}
.ops-lineup-list li a::before{
  content:'';
  position:absolute;
  left:0; top:0; bottom:0;
  width:3px;
  background: linear-gradient(180deg, rgba(199,163,73,.95), rgba(199,163,73,.35));
  opacity:.9;
}
.ops-lineup-list li a:hover{ border-color: rgba(199,163,73,.55); }
.ops-lineup-flag{ font-size: 14px; line-height:1; }


/* === Button hover cursor === */
.btn, button.btn, .btn.primary, button.btn.primary {
  cursor: pointer;
}
.btn:disabled, button.btn:disabled, .btn[disabled], button.btn[disabled]{
  cursor: not-allowed;
}

