/* Bus Drivers United — site styles
   Palette from the logo: route navy + school-bus gold. Type: Overpass (Highway Gothic lineage). */

@font-face { font-family: "Overpass"; src: url("../fonts/overpass-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("../fonts/overpass-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("../fonts/overpass-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("../fonts/overpass-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("../fonts/overpass-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("../fonts/overpass-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --navy: #13284b;
  --navy-deep: #0b1a33;
  --navy-soft: #24406e;
  --gold: #f5b21b;
  --gold-deep: #c98d00;
  --amber-led: #ffb627;
  --ink: #1d2533;
  --steel: #556070;
  --line: #d6dbe3;
  --paper: #f3f5f8;
  --white: #ffffff;
  --red: #b8322a;
  --red-bg: #fbecea;
  --green: #1d6f47;
  --green-bg: #e6f4ec;
  --blue-bg: #e8eef8;
  --radius: 4px;
  --wrap: 1160px;
  --font: "Overpass", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.15; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 900; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.muted { color: var(--steel); }
.small { font-size: .9rem; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--white); border-bottom: 5px solid var(--gold); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--white); }
.brand img { width: 58px; height: 58px; }
.brand-name { display: block; font-weight: 900; font-size: 1.3rem; line-height: 1.05; letter-spacing: -0.01em; }
.brand-tag { display: block; color: var(--gold); font-size: .85rem; font-weight: 600; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--white); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: var(--radius); font-size: .98rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--navy-soft); color: var(--white); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); border-radius: var(--radius) var(--radius) 0 0; }
.nav .nav-cta { background: var(--gold); color: var(--navy); margin-left: 8px; }
.nav .nav-cta:hover { background: #ffc43d; color: var(--navy); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid rgba(255,255,255,.5); color: var(--white); font: 700 .95rem var(--font); padding: 8px 14px; border-radius: var(--radius); cursor: pointer; }
.account-menu { position: relative; }
.account-menu > button { background: var(--navy-soft); color: var(--white); border: 0; font: 600 .98rem var(--font); padding: 6px 10px 6px 6px; border-radius: 999px; display: flex; align-items: center; gap: 8px; cursor: pointer; margin-left: 8px; }
.account-menu ul { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); list-style: none; margin: 0; padding: 6px; min-width: 200px; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(11,26,51,.25); }
.account-menu.open ul { display: block; }
.account-menu ul a, .account-menu ul button { display: block; width: 100%; text-align: left; color: var(--ink); padding: 8px 12px; background: none; border: 0; font: 600 .95rem var(--font); cursor: pointer; border-radius: var(--radius); }
.account-menu ul a:hover, .account-menu ul button:hover { background: var(--paper); color: var(--navy); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 20px 20px; border-bottom: 5px solid var(--gold); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .account-menu > button { margin: 8px 0 0; width: 100%; border-radius: var(--radius); }
  .account-menu ul { position: static; box-shadow: none; margin-top: 6px; }
}
@media (max-width: 420px) { .brand-tag { display: none; } .brand img { width: 48px; height: 48px; } }

/* ---------- Avatars ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; overflow: hidden; flex-shrink: 0; width: 40px; height: 40px; font-size: .95rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 30px; height: 30px; font-size: .75rem; }
.avatar.lg { width: 96px; height: 96px; font-size: 2rem; }
.avatar.xl { width: 140px; height: 140px; font-size: 2.8rem; }

/* ---------- Buttons and forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem var(--font); padding: 11px 20px 9px; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: #ffc43d; border-color: #ffc43d; color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-soft); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy-soft); border-color: transparent; padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { background: var(--paper); }
.btn-danger { background: var(--white); color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: var(--white); }
.btn-sm { font-size: .88rem; padding: 6px 12px 5px; }
.btn-lg { font-size: 1.1rem; padding: 14px 26px 12px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form { display: inline; }

.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 700; margin-bottom: 5px; color: var(--navy); }
.field .hint { display: block; font-size: .88rem; color: var(--steel); margin-top: 4px; font-weight: 400; }
.field .req { color: var(--red); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], input[type=date], input[type=datetime-local], input[type=tel], select, textarea {
  width: 100%; font: 1rem var(--font); color: var(--ink); background: var(--white);
  border: 1.5px solid #b9c1cd; border-radius: var(--radius); padding: 10px 12px 8px; line-height: 1.4;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: 3px solid rgba(245,178,27,.55); outline-offset: 0; }
textarea { min-height: 120px; resize: vertical; }
input[type=file] { font: .95rem var(--font); max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 10px; color: var(--ink); }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--navy); flex-shrink: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.field-error { color: var(--red); font-size: .9rem; margin-top: 4px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; padding: 0; }

/* ---------- Alerts ---------- */
.flashes { margin: 20px auto 0; }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 12px; border-left: 5px solid; background: var(--blue-bg); border-color: var(--navy-soft); }
.alert-success { background: var(--green-bg); border-color: var(--green); }
.alert-error { background: var(--red-bg); border-color: var(--red); }
.alert-warning { background: #fff5dc; border-color: var(--gold-deep); }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }

/* ---------- Page structure ---------- */
main { display: block; min-height: 55vh; }
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 44px 0 32px; }
.page-head h1 { margin-bottom: .2em; }
.page-head p { color: var(--steel); font-size: 1.1rem; max-width: 66ch; margin: 0; }
.crumbs { font-size: .9rem; color: var(--steel); margin-bottom: 10px; }
.crumbs a { color: var(--steel); }
.section { padding-top: 56px; padding-bottom: 56px; }
.section-tight { padding-top: 36px; padding-bottom: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .layout-side { grid-template-columns: 1fr; gap: 32px; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--white); }
.panel + .panel { margin-top: 20px; }
.panel h2, .panel h3 { margin-top: 0; }
.panel-paper { background: var(--paper); border-color: transparent; }
.empty { padding: 36px 24px; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--steel); }
.empty p:last-child { margin: 0; }

/* Road centre-line divider: the one decorative motif, used sparingly */
.centerline { height: 6px; background: repeating-linear-gradient(90deg, var(--gold) 0 46px, transparent 46px 78px); border: 0; margin: 0; }

/* ---------- Hero with destination headsign ---------- */
.hero { background: var(--navy-deep); color: var(--white); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(36,64,110,.65) 0%, transparent 55%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.04; margin-bottom: .4em; text-wrap: balance; }
.hero p { font-size: 1.15rem; color: #d7deea; max-width: 54ch; margin-bottom: 1.6em; }
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,.7); }
.hero .btn-outline:hover { background: var(--white); color: var(--navy); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; padding-bottom: 52px; } }

.headsign { background: #05070b; border: 10px solid #1b222d; border-radius: 10px; box-shadow: inset 0 0 0 2px #2d3644, 0 18px 40px rgba(0,0,0,.45); padding: 18px 20px; display: flex; align-items: center; gap: 18px; min-height: 132px; position: relative; overflow: hidden; }
.headsign::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at center, transparent 0 1.5px, rgba(5,7,11,.6) 1.9px);
  background-size: 4px 4px; }
.headsign-route { font-weight: 900; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; color: var(--amber-led); text-shadow: 0 0 12px rgba(255,182,39,.55); padding-right: 18px; border-right: 2px solid #2a313c; flex-shrink: 0; }
.headsign-text { flex: 1; min-width: 0; height: 4.4rem; position: relative; }
.headsign-line { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; color: var(--amber-led); text-shadow: 0 0 12px rgba(255,182,39,.55); font-weight: 800; transition: transform .45s cubic-bezier(.6,0,.3,1), opacity .45s; }
.headsign-line strong { font-size: clamp(1.5rem, 3.6vw, 2.25rem); line-height: 1.05; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.headsign-line span { font-size: 1.15rem; font-weight: 800; opacity: .9; }
.headsign-line.out { transform: translateY(-110%); opacity: 0; }
.headsign-line.in { transform: translateY(110%); opacity: 0; }
.headsign-caption { margin: 12px 4px 0; font-size: .92rem; color: #9fb0c8; }
@media (prefers-reduced-motion: reduce) { .headsign-line { transition: none; } }

/* ---------- Home sections ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: 8px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 2px solid var(--line); }
.pillar h3 { font-size: 1.35rem; font-weight: 800; }
.pillar p { color: var(--steel); margin: 0; }
@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr; gap: 24px; }
  .pillar, .pillar + .pillar { padding: 0 0 0 18px; border-left: 4px solid var(--gold); }
}
.home-columns { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; }
@media (max-width: 900px) { .home-columns { grid-template-columns: 1fr; gap: 40px; } }
.join-band { background: var(--gold); color: var(--navy); }
.join-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 36px; padding-bottom: 36px; flex-wrap: wrap; }
.join-band h2 { margin: 0 0 .2em; }
.join-band p { margin: 0; max-width: 60ch; }
.join-band .btn-navy:hover { background: var(--navy-deep); }

/* ---------- Lists: news, events, resources ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-item:first-child { padding-top: 0; }
.news-item.no-image { grid-template-columns: 1fr; }
.news-item img { width: 180px; height: 120px; object-fit: cover; border-radius: var(--radius); background: var(--paper); }
.news-item h3 { margin: 2px 0 6px; font-size: 1.25rem; }
.news-item h3 a { color: var(--navy); text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; }
.news-item p { margin: 0; color: var(--steel); }
.meta { font-size: .9rem; color: var(--steel); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; } .news-item img { width: 100%; height: 180px; } }

.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px 1px; border-radius: 999px; background: var(--paper); color: var(--steel); border: 1px solid var(--line); white-space: nowrap; }
.badge-members { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.badge-gold { background: #fff1cc; color: #7a5500; border-color: #f2d27a; }
.badge-green { background: var(--green-bg); color: var(--green); border-color: #b6dcc6; }
.badge-red { background: var(--red-bg); color: var(--red); border-color: #efc2bd; }
.badge-blue { background: var(--blue-bg); color: var(--navy-soft); border-color: #c7d4ea; }

.event-list { list-style: none; margin: 0; padding: 0; }
.event-item { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.event-item:first-child { padding-top: 0; }
.datebox { width: 64px; flex-shrink: 0; text-align: center; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--navy); background: var(--white); }
.datebox .m { display: block; background: var(--navy); color: var(--gold); font-weight: 800; font-size: .8rem; padding: 3px 0 1px; }
.datebox .d { display: block; font-size: 1.65rem; font-weight: 900; color: var(--navy); line-height: 1.25; padding-top: 2px; }
.event-item h3 { margin: 0 0 4px; font-size: 1.15rem; }
.event-item h3 a { color: var(--navy); text-decoration: none; }
.event-item h3 a:hover { text-decoration: underline; }
.event-item.cancelled h3 a { text-decoration: line-through; }

.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: .85rem; color: var(--steel); font-weight: 700; padding: 8px 4px; text-align: left; border-bottom: 2px solid var(--navy); }
.cal td { vertical-align: top; height: 104px; border: 1px solid var(--line); padding: 6px; font-size: .85rem; }
.cal td.other { background: var(--paper); color: #9aa3b0; }
.cal td.today { box-shadow: inset 0 0 0 2px var(--gold); }
.cal .daynum { font-weight: 800; color: var(--navy); display: block; margin-bottom: 4px; }
.cal a.cal-event { display: block; background: var(--navy); color: var(--white); text-decoration: none; border-radius: 3px; padding: 2px 6px 1px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cal a.cal-event:hover { background: var(--navy-soft); }
.cal-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-nav h2 { margin: 0 auto 0 0; }
@media (max-width: 700px) { .cal-wrap { display: none; } }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.tabs a { padding: 10px 16px 8px; text-decoration: none; font-weight: 700; color: var(--steel); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a:hover { color: var(--navy); }
.tabs a[aria-current="page"] { color: var(--navy); border-color: var(--gold); }

.resource-group { margin-bottom: 40px; }
.resource-group > h2 { padding-bottom: 8px; border-bottom: 3px solid var(--navy); }
.resource-list { list-style: none; margin: 0; padding: 0; }
.resource { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.resource-icon { width: 44px; height: 52px; flex-shrink: 0; border: 2px solid var(--navy); border-radius: 3px 12px 3px 3px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; font-size: .68rem; font-weight: 800; color: var(--navy); background: var(--white); }
.resource-icon.link { border-radius: 50%; height: 44px; align-items: center; padding: 0; font-size: 1.2rem; }
.resource h3 { margin: 0 0 4px; font-size: 1.1rem; }
.resource p { margin: 0 0 4px; color: var(--steel); }
.resource-main { flex: 1; min-width: 0; }

/* ---------- Article content from the editor ---------- */
.prose { font-size: 1.1rem; line-height: 1.7; max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: .5em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 5px solid var(--gold); color: var(--navy); font-size: 1.15rem; }
.prose pre { background: var(--paper); padding: 14px; border-radius: var(--radius); overflow-x: auto; font-size: .92rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose li[data-list="bullet"] { list-style-type: disc; }
.prose li[data-list="ordered"] { list-style-type: decimal; }
.prose li[data-list="checked"], .prose li[data-list="unchecked"] { list-style: none; }
.prose li[data-list="checked"]::before { content: "\2611  "; }
.prose li[data-list="unchecked"]::before { content: "\2610  "; }
.prose .ql-indent-1 { margin-left: 2em; } .prose .ql-indent-2 { margin-left: 4em; } .prose .ql-indent-3 { margin-left: 6em; }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; } .prose .ql-align-justify { text-align: justify; }
.prose iframe.ql-video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; } .prose td, .prose th { border: 1px solid var(--line); padding: 6px 10px; }
.prose > :first-child { margin-top: 0; }
.lede { font-size: 1.25rem; color: var(--steel); line-height: 1.5; }
.article-image { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; }

.locked { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 36px 32px; max-width: 640px; }
.locked h2 { color: var(--white); }
.locked p { color: #d7deea; }

/* ---------- Auth pages ---------- */
.auth-wrap { max-width: 520px; margin: 0 auto; padding: 48px 20px 64px; }
.auth-wrap.wide { max-width: 760px; }
.auth-wrap h1 { font-size: 2.1rem; }
.status-track { list-style: none; padding: 0; margin: 24px 0 28px; position: relative; }
.status-track::before { content: ""; position: absolute; left: 13px; top: 12px; bottom: 12px; width: 4px; background: var(--line); }
.status-track li { position: relative; padding: 0 0 22px 44px; }
.status-track li::before { content: ""; position: absolute; left: 4px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 4px solid var(--line); }
.status-track li.done::before { background: var(--navy); border-color: var(--navy); }
.status-track li.current::before { background: var(--gold); border-color: var(--navy); }
.status-track strong { display: block; color: var(--navy); }
.status-track span { color: var(--steel); font-size: .95rem; }

/* ---------- Member area ---------- */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.member-card { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.member-card:hover { border-color: var(--navy); color: var(--ink); }
.member-card strong { display: block; color: var(--navy); }
.member-card span { display: block; font-size: .88rem; color: var(--steel); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 24px; }
.filters .field { margin: 0; flex: 1 1 180px; }
.dash-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.dash-links a { display: block; padding: 18px 16px 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.dash-links a strong { display: block; color: var(--navy); font-size: 1.1rem; }
.dash-links a span { color: var(--steel); font-size: .92rem; }
.dash-links a:hover strong { text-decoration: underline; }
.profile-head { display: flex; gap: 24px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.profile-head h1 { margin: 0 0 4px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0 0 24px; }
.facts dt { font-weight: 700; color: var(--navy); }
.facts dd { margin: 0; }

/* ---------- Forum ---------- */
.forum-cats { width: 100%; border-collapse: collapse; }
.forum-cats td { padding: 18px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.forum-cats td:first-child { padding-left: 0; }
.forum-cats .num { text-align: right; color: var(--steel); white-space: nowrap; font-size: .92rem; width: 90px; }
.forum-cats .last { width: 220px; font-size: .9rem; color: var(--steel); }
.forum-cats h3 { margin: 0 0 4px; font-size: 1.15rem; }
.forum-cats h3 a { color: var(--navy); text-decoration: none; }
.forum-cats h3 a:hover { text-decoration: underline; }
.forum-cats p { margin: 0; color: var(--steel); font-size: .95rem; }
@media (max-width: 700px) { .forum-cats .num, .forum-cats .last { display: none; } }
.topic-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.topic-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.topic-row .t { flex: 1; min-width: 0; }
.topic-row .t a { font-weight: 700; color: var(--navy); text-decoration: none; font-size: 1.05rem; }
.topic-row .t a:hover { text-decoration: underline; }
.topic-row .stats { text-align: right; font-size: .88rem; color: var(--steel); white-space: nowrap; }
.topic-row.pinned { background: #fffaf0; }
.post { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-author { font-size: .9rem; color: var(--steel); }
.post-author a { font-weight: 700; color: var(--navy); text-decoration: none; display: block; margin-top: 8px; font-size: 1rem; }
.post-body { min-width: 0; overflow-wrap: anywhere; }
.post-body p:last-child { margin-bottom: 0; }
.post-tools { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.post.hidden-post { opacity: .6; }
.post details summary { cursor: pointer; color: var(--steel); font-size: .9rem; }
@media (max-width: 640px) { .post { grid-template-columns: 1fr; gap: 10px; } .post-author { display: flex; gap: 10px; align-items: center; } .post-author a { margin: 0; } }

.pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 28px 0 0; }
.pagination a { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #c4cedd; margin-top: 64px; font-size: .95rem; }
main:has(> .join-band:last-child) + .site-footer { margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 44px; padding-bottom: 28px; }
.site-footer h2 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: #e2e8f1; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 64px; height: 64px; }
.footer-base { border-top: 1px solid #22314d; }
.footer-base .wrap { display: flex; justify-content: space-between; padding-top: 16px; padding-bottom: 18px; gap: 12px; flex-wrap: wrap; font-size: .88rem; grid-template-columns: none; }
@media (max-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Errors ---------- */
.error-page { text-align: left; padding-top: 72px; padding-bottom: 72px; }
.error-page .code { font-size: 5rem; font-weight: 900; color: var(--gold); line-height: 1; margin-bottom: 8px; }

@media print { .site-header, .site-footer, .btn, .post-tools { display: none !important; } }

/* ---------- Visual editor (admin content and forum posts) ---------- */
.editor-wrap { position: relative; background: var(--white); border-radius: var(--radius); }
.editor-wrap .ql-toolbar.ql-snow { border: 1.5px solid #b9c1cd; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; font-family: var(--font); background: #fafbfc; position: sticky; top: 0; z-index: 2; }
.editor-wrap .ql-container.ql-snow { border: 1.5px solid #b9c1cd; border-top: 0; border-radius: 0 0 var(--radius) var(--radius); font-family: var(--font); font-size: 1.05rem; }
.editor-wrap .ql-editor { min-height: 360px; line-height: 1.65; color: var(--ink); }
.editor-wrap .ql-editor.ql-blank::before { color: #8a93a1; font-style: normal; }
.editor-wrap .ql-editor h2 { font-size: 1.6rem; color: var(--navy); }
.editor-wrap .ql-editor h3 { font-size: 1.25rem; color: var(--navy); }
.editor-wrap .ql-editor blockquote { border-left: 5px solid var(--gold); padding-left: 16px; color: var(--navy); }
.editor-wrap .ql-editor img { max-height: 360px; border-radius: var(--radius); }
.editor-wrap.small .ql-editor { min-height: 200px; }
.editor-wrap.forum-editor .ql-editor { min-height: 180px; }
.editor-wrap .ql-snow .ql-tooltip { z-index: 5; }
.editor-wrap .ql-snow .ql-tooltip input[type=text] { width: 190px; padding: 3px 6px; font-size: .9rem; }
.editor-wrap .ql-snow.ql-toolbar button:focus-visible { outline: 3px solid var(--gold); }
.editor-status { font-size: .88rem; color: var(--red); margin-top: 6px; min-height: 1.2em; }
.editor-status:empty { min-height: 0; margin: 0; }
textarea.editor-source { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; }

/* ---------- Forum posts and moderation ---------- */
.post-content { font-size: 1.02rem; max-width: none; }
.post-content img { max-height: 560px; width: auto; display: block; margin: .6em 0; }
.post-content blockquote { font-size: 1rem; background: var(--paper); padding: 8px 14px; margin: 0 0 1em; border-left-width: 4px; }
.post-content blockquote + blockquote { margin-top: -1em; padding-top: 0; }
.post-content pre { white-space: pre-wrap; }
.post-flag { font-size: .9rem; padding: 8px 12px; border-radius: var(--radius); margin-bottom: 12px; border-left: 4px solid; }
.post-flag-pending { background: #fff5dc; border-color: var(--gold-deep); color: #6b4c00; }
.post-flag-deleted { background: var(--red-bg); border-color: var(--red); color: #7d221c; }
.post.post-pending { box-shadow: inset 4px 0 0 var(--gold); padding-left: 16px; }
.post.post-deleted { box-shadow: inset 4px 0 0 var(--red); padding-left: 16px; }
.post.post-deleted .post-content { opacity: .65; }
.post-tools { gap: 4px; }
.post-tools details { position: relative; }
.post-tools details > summary { list-style: none; }
.post-tools details > summary::-webkit-details-marker { display: none; }
.post-tools details[open] > summary { background: var(--paper); }
.pop { position: absolute; z-index: 10; left: 0; top: calc(100% + 6px); width: min(340px, 80vw); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(11,26,51,.18); padding: 14px; }
.pop .field { margin-bottom: 10px; }
.pop p { font-size: .9rem; margin-bottom: 10px; }
.mod-tools-sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 6px; }
.btn-ghost.danger { color: var(--red); }

.mod-bar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: var(--radius); margin: 18px 0; }
.mod-bar .mod-bar-label { font-weight: 800; color: var(--gold); margin-right: 4px; }
.mod-bar > form { display: contents; }
.mod-bar .group { display: inline-flex; gap: 6px; align-items: center; }
.mod-bar .btn-outline { color: var(--white); border-color: rgba(255,255,255,.55); }
.mod-bar .btn-outline:hover { background: var(--white); color: var(--navy); }
.mod-bar .btn-danger { background: transparent; color: #ffb3ad; border-color: #ff9d95; }
.mod-bar .btn-danger:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.mod-bar select, .mod-bar input[type=text] { width: auto; padding: 5px 8px 4px; font-size: .9rem; }
.mod-bar input[type=text] { width: 190px; }
.mod-bar .check { margin: 0; color: var(--white); align-items: center; }
.mod-bar .check input { margin-top: 0; }
.mod-bar .pop { color: var(--ink); }
.mod-bar details { position: relative; }
.mod-bar details > summary { list-style: none; }
.mod-bar details > summary::-webkit-details-marker { display: none; }
.topic-row .pick { width: 22px; flex-shrink: 0; }
.topic-row .pick input { width: 18px; height: 18px; accent-color: var(--navy); }
.topic-row.held { background: #fffaf0; }
.topic-row .t .badge { margin-left: 4px; vertical-align: 2px; }
.muted-note { background: var(--paper); border-left: 4px solid var(--steel); padding: 14px 16px; border-radius: var(--radius); }
.sr-submit { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Warnings ---------- */
.warning-card.inactive { opacity: .7; }
.warning-card.needs-ack { border-color: var(--gold-deep); box-shadow: inset 4px 0 0 var(--gold); }
.panel.warning-card + .panel.warning-card { margin-top: 16px; }
.warning-quote { margin: 0 0 12px; padding: 8px 14px; background: var(--paper); border-left: 4px solid var(--line); border-radius: var(--radius); font-size: .95rem; color: var(--ink); overflow-wrap: anywhere; }
.appeal-box { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--radius); background: #fbfcfd; }
.ack-form { margin-top: 12px; padding: 12px 14px; background: #fff5dc; border-radius: var(--radius); }
.restriction-revoked { border-left-color: var(--red); background: var(--red-bg); }
.restriction-suspended, .restriction-acknowledge { border-left-color: var(--gold-deep); background: #fff5dc; }
.muted-note p:last-child { margin-bottom: 0; }
.muted-note .btn { margin-top: 4px; }

/* ---------- Visitors in the forum ---------- */
.forum-join { background: var(--navy); color: #d7deea; border-radius: var(--radius); padding: 24px 26px; border-left: 6px solid var(--gold); }
.forum-join h2 { color: var(--white); font-size: 1.35rem; margin-bottom: .35em; }
.forum-join p { max-width: 62ch; }
.forum-join .btn-outline { color: var(--white); border-color: rgba(255,255,255,.7); }
.forum-join .btn-outline:hover { background: var(--white); color: var(--navy); }
.author-name { display: block; margin-top: 8px; color: var(--navy); font-size: 1rem; }
@media (max-width: 640px) { .author-name { margin: 0; } }
