@font-face { font-family: "Cinzel"; src: url("fonts/cinzel-latin-wght-normal.e7ed1ab78a17.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --night: #0A0E1A;
  --deep: #0E1428;
  --panel: #131B36;
  --line: #24305A;
  --line-strong: #3A4878;
  --text: #EEEBE4;
  --soft: #C6CDDD;
  --muted: #A6AFC4;
  --blue: #2F5FC9;
  --blue-hover: #3B6EDC;
  --quaggan: #7AA4F5;
  --link: #9DBDFA;
  --crimson: #B8283E;
  --crimson-hover: #CC3349;
  --gold: #E2C275;
  --radius: 18px;
  --serif: "Cinzel", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(122,164,245,.16), transparent 70%),
    radial-gradient(700px 420px at -10% 30%, rgba(184,40,62,.12), transparent 70%),
    var(--night);
  color: var(--text); font: 16px/1.65 var(--sans);
}
main { flex: 1; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #CFE0FF; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--panel); padding: 8px 12px; }

/* Eyebrow line with a little laurel sprig on each side */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 600 13px/1 var(--serif); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 10px; background: url("sprig.3bcbf992cc32.svg") center/contain no-repeat; }
.eyebrow::after { transform: scaleX(-1); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 24px; border-radius: 999px; border: 0; font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); color: #fff; }
.btn-red { background: var(--crimson); color: #fff; box-shadow: 0 6px 20px rgba(184,40,62,.35); }
.btn-red:hover { background: var(--crimson-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--quaggan); color: var(--text); }
.btn-small { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn-link { background: none; border: 0; color: var(--link); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header */
.site-header { border-bottom: 3px double var(--gold); background: rgba(10,14,26,.7); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--text); text-decoration: none; font: 700 19px/1 var(--serif); letter-spacing: .08em; text-transform: uppercase; }
.brand img { width: 48px; height: 48px; }
.site-header nav > a:not(.brand):not(.btn), .site-header nav form button { color: var(--soft); font-weight: 500; text-decoration: none; }
.site-header nav > a[aria-current="page"] { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.who { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-size: 14px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 72px 24px 64px; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero h1 { font-size: clamp(42px, 7vw, 78px); margin-bottom: 20px; background: linear-gradient(180deg, #FFFFFF 30%, #CFDDFB); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 20px; color: var(--soft); max-width: 560px; margin: 0 0 32px; }
.hero-art { flex: 0 1 380px; display: flex; justify-content: center; position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(122,164,245,.35), transparent 65%); filter: blur(6px); }
.hero-art img { position: relative; width: min(360px, 80vw); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } .btn:hover { transform: none; } }

/* Waves between sections: quaggans live in the sea */
.wave { display: block; width: 100%; height: 48px; }
.sea { background: var(--deep); }

.block { padding-top: 56px; padding-bottom: 64px; }  /* top/bottom only: .wrap keeps its side padding */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(30px, 4vw, 40px); margin: 0; }
.intro { color: var(--soft); max-width: 640px; margin: 0 0 32px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--line-strong); }
.card h3 { font-family: var(--sans); font-size: 21px; line-height: 1.3; margin: 0; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--soft); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--muted); }
.card .foot { margin-top: auto; font-size: 14px; color: var(--muted); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1.5px solid currentColor; font: 700 11px/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.04); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #22305C; color: var(--soft); font-size: 12px; font-weight: 600; }

.ranks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.ranks li { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px; overflow: hidden; }
.ranks li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--rank); }
.ranks .name { font: 700 21px/1.2 var(--serif); margin: 0 0 6px; color: var(--rank); }
.ranks p { margin: 0; color: var(--muted); font-size: 15px; }

.join { background: linear-gradient(135deg, #18245088, #2a1a3a88), var(--panel); border: 1px solid var(--line-strong); border-radius: 28px; padding: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.join h2 { font-size: 32px; }
.join p { margin: 0; color: var(--soft); }
.join > div:first-child { flex: 1 1 380px; }

/* Footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: #070A14; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 16px; padding-top: 36px; padding-bottom: 36px; }
.site-footer p { margin: 0; max-width: 900px; }

/* Cookie notice */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 560px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 16px; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 14px; color: var(--soft); box-shadow: 0 10px 40px rgba(0,0,0,.55); }
.cookie p { margin: 0; flex: 1 1 260px; }
.cookie[hidden] { display: none; }

/* Messages */
.messages { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.messages li { padding: 12px 16px; border-radius: 12px; background: #1A2A55; border: 1px solid #2E4A8F; overflow-wrap: anywhere; }
.messages li.error { background: #3A1520; border-color: #7A2436; }

/* Forum layout */
.forum { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 40px; }
.forum aside { flex: 1 1 230px; display: flex; flex-direction: column; gap: 4px; }
.forum aside a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--soft); text-decoration: none; font-weight: 500; }
.forum aside a:hover { background: #18214080; color: #fff; }
.forum aside a[aria-current="page"] { background: #1C2850; color: #fff; }
.forum aside .count { color: var(--muted); font-size: 14px; }
.forum > section { flex: 999 1 560px; min-width: 0; }
.list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list > li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 16px 20px; background: var(--deep); border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list .title { flex: 1 1 300px; min-width: 0; }
.list .title a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; }
.list .title a:hover { text-decoration: underline; }
.list .stats { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* Topic */
.topic-head { padding: 40px 0 16px; }
.topic-head h1 { font-size: clamp(28px, 4vw, 40px); }
.post { display: flex; flex-wrap: wrap; gap: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.post .author { flex: 0 0 150px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.post .author strong { overflow-wrap: anywhere; }
.post .content { flex: 1 1 400px; min-width: 0; }
.post .content > :first-child { margin-top: 0; }
.post .tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 14px; font-size: 14px; color: var(--muted); }
.post .tools form { display: inline; }
.prose { overflow-wrap: anywhere; }
.prose img { border-radius: 10px; }
.prose blockquote { margin: 0; padding: 4px 16px; border-left: 3px solid var(--line-strong); color: var(--soft); }
.prose pre { background: #070A14; padding: 12px; border-radius: 10px; overflow-x: auto; }
.prose table { border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.pager { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin: 24px 0; color: var(--muted); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.field .help, .helptext { font-size: 13px; color: var(--muted); }
.field ul.errorlist, ul.errorlist { list-style: none; margin: 0; padding: 0; color: #FF9AAA; font-size: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--crimson); flex: none; }
input[type=text], input[type=password], input[type=search], textarea, select {
  width: 100%; background: #0A0F20; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 11px 14px; color: var(--text); font: inherit; min-height: 46px;
}
input:focus, textarea:focus, select:focus { border-color: var(--quaggan); outline: none; box-shadow: 0 0 0 3px rgba(122,164,245,.25); }
textarea { resize: vertical; line-height: 1.55; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.split { display: flex; flex-wrap: wrap; gap: 24px; }
.split > * { flex: 1 1 340px; }
.login-mark { display: block; width: 120px; margin: 40px auto 24px; }
.danger { border-color: #5A2232; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.members { width: 100%; border-collapse: collapse; min-width: 640px; }
table.members th, table.members td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.members th { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
table.members form { display: flex; gap: 8px; align-items: center; }
table.members select { min-height: 38px; padding: 6px 10px; width: auto; }
code.invite { font-size: 17px; letter-spacing: .08em; color: var(--gold); }
@media (max-width: 480px) { .eyebrow { letter-spacing: .16em; font-size: 12px; } .join, .panel { padding: 24px; } }

/* ---------- Shared bits ---------- */
.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--rank, var(--quaggan)); background: #182450; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text); }
.avatar.big { width: 112px; height: 112px; border-width: 3px; font: 700 48px/1 var(--serif); }
.avatar.mid { width: 56px; height: 56px; font-size: 22px; }
.who .name { display: flex; flex-direction: column; line-height: 1.2; }
.who .name small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pill.solid { background: var(--gold); border-color: var(--gold); color: var(--night); }
.kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.box h2 { font-size: 20px; letter-spacing: .06em; color: var(--gold); margin: 0 0 12px; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #5A6480; }
.dot.on { background: #5BD08F; }

/* ---------- Homepage ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px; padding-top: 64px; padding-bottom: 56px; }
.hero-text { flex: 1 1 520px; max-width: 700px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; margin: 0 0 18px; }
.hero .lede { font-size: 19px; color: var(--soft); margin: 0 0 22px; max-width: 620px; }
.hero .row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badge { flex: none; width: clamp(160px, 22vw, 260px); height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.5)); }
.facts-inline { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 28px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-inline div { display: flex; flex-direction: column; }
.facts-inline dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts-inline dd { margin: 0; font-weight: 600; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-top: 8px; padding-bottom: 64px; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } .hero-badge { order: -1; } }
.news { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.news .section-head { margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.news .section-head h2, .band .section-head h2 { font-size: 28px; }
.home-grid > aside { display: flex; flex-direction: column; gap: 20px; }
.box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.box-head h2 { margin: 0; }
.online { font-size: 13px; font-weight: 600; color: #7EDCA6; }
.officers .av { position: relative; display: inline-flex; }
.officers .av .dot { position: absolute; right: -2px; bottom: -2px; border: 2px solid var(--panel); }
.who-name { display: flex; flex-direction: column; line-height: 1.3; }
.who-name small { color: var(--muted); } .who-name small.is-on { color: #7EDCA6; }
.root-line { font-size: 14px; color: var(--muted); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.root-line strong { color: #7EDCA6; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.box .more { display: inline-block; margin-top: 12px; }
#senate .title { font-size: clamp(30px, 4vw, 40px); }
.lead { display: flex; flex-direction: column; gap: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.lead img, .lead .ph { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius); background: linear-gradient(135deg,#6A2340,#D23A52); }
.lead .kicker { color: #F58A9A; }
.lead h3 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin: 0; }
.lead h3 a, .story h3 a { color: var(--text); text-decoration: none; }
.lead h3 a:hover, .story h3 a:hover { text-decoration: underline; }
.lead p.deck { margin: 0; font-size: 19px; color: var(--soft); }
.stories { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.story { display: flex; flex-direction: column; gap: 8px; }
.story h3 { font-family: var(--sans); font-size: 21px; line-height: 1.3; margin: 0; }
.story p { margin: 0; color: var(--soft); }
.events { list-style: none; margin: 0 -10px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.events li > button { width: 100%; min-height: 44px; display: flex; gap: 12px; align-items: baseline; padding: 10px; background: transparent; border: 0; border-radius: 10px; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.events li > button:hover { background: #1A2547; }
.events time { flex: none; width: 82px; font-size: 13px; font-weight: 700; color: var(--gold); text-transform: uppercase; }
.events .t { font-weight: 500; }
.events small { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.officers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.officers li { display: flex; align-items: center; gap: 10px; }
.officers .r { margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--deep); }
.band .wrap { padding-top: 40px; padding-bottom: 40px; }
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.shots img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--panel); }
.shots figure { margin: 0; } .shots figcaption { font-size: 13px; color: var(--muted); padding-top: 6px; }

/* Event pop-up */
dialog { width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-sizing: border-box; background: var(--panel); color: var(--text); border: 1px solid var(--line-strong); border-radius: 20px; padding: 28px; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(5,8,16,.75); }
dialog .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
dialog .top p { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
dialog h3 { font-size: 30px; margin: 0; }
dialog .close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: var(--text); cursor: pointer; display: grid; place-items: center; }
dialog .desc { color: var(--soft); margin: 16px 0 0; }
dialog .facts { margin: 16px 0; }
dialog .cal { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; margin-top: 14px; }
dialog .cal span { color: var(--muted); }

/* ---------- Forum ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 40px 0 28px; }
.page-head h1 { font-size: 40px; margin: 0; }
.page-head .kicker { color: var(--gold); font-family: var(--serif); letter-spacing: .3em; margin-bottom: 4px; }
.search { display: flex; gap: 8px; flex: 0 1 400px; }
.search input { border-radius: 999px; }
.cat { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--deep); margin-bottom: 28px; }
.cat > header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 14px 22px; background: var(--panel); border-bottom: 1px solid var(--line); }
.cat > header h2 { margin: 0 auto 0 0; font-size: 18px; letter-spacing: .08em; color: var(--gold); }
.cat > header span { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.cat ul { list-style: none; margin: 0; padding: 0; }
.cat li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 18px 22px; border-bottom: 1px solid #1B2547; }
.cat li:last-child { border-bottom: 0; }
.cat .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #182450; color: var(--link); display: grid; place-items: center; }
.cat .icon.gold { background: #3A2A10; color: var(--gold); } .cat .icon.red { background: #3A1420; color: #F58A9A; }
.cat .info { flex: 1 1 280px; min-width: 0; }
.cat .info a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.cat .info a:hover { text-decoration: underline; }
.cat .info p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.cat .n { width: 60px; color: var(--soft); }
.cat .latest { width: 260px; min-width: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.cat .latest a { display: block; color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .cat > header span, .cat .n { display: none; } .cat .latest { width: 100%; } }
.forum-stats { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; }
.forum-stats dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.forum-stats dd { margin: 0; font: 700 26px/1.2 var(--serif); }

.event-card { display: flex; flex-wrap: wrap; gap: 20px 32px; padding: 22px 24px; border: 1px solid #5A4A22; border-radius: var(--radius); background: #16182A; margin-bottom: 24px; }
.event-card .date { flex: none; width: 76px; height: 84px; border-radius: 14px; background: var(--gold); color: var(--night); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.event-card .date span { font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.event-card .date strong { font: 700 34px/1 var(--serif); }
.event-card .facts { flex: 1 1 320px; align-content: center; }
.event-card .add { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; }
.btn-light { background: var(--text); color: var(--night); }
.btn-light:hover { background: #fff; color: var(--night); }

.post { padding: 0; overflow: hidden; gap: 0; }
.post .author { flex: 1 1 180px; max-width: 220px; padding: 20px; background: #10173A; border-right: 1px solid var(--line); }
.post .author a { color: var(--text); font-weight: 700; text-decoration: none; }
.post .author .stats { font-size: 13px; color: var(--muted); line-height: 1.4; }
.post .content { flex: 999 1 400px; padding: 20px 24px; }
@media (max-width: 640px) { .post .author { max-width: none; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- Member page ---------- */
.member { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 40px; }
.member > .card-col { flex: 1 1 340px; display: flex; flex-direction: column; gap: 20px; }
.member > .settings { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.idcard { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.idcard h1 { font-size: 32px; margin: 8px 0 0; }
.idcard .stats { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.idcard .stats dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.idcard .stats dd { margin: 0; font: 700 22px/1.3 var(--serif); }
.settings .box h3 { margin: 0 0 4px; font: 700 18px/1.3 var(--sans); }
.settings .box p { margin: 0; color: var(--soft); }
.settings .box.danger { border-color: #5A2230; background: #1A1020; }
.settings .box.danger h3 { color: #F58A9A; }
.copy { display: flex; flex-wrap: wrap; gap: 8px; }
.copy input { flex: 1 1 320px; font: 14px ui-monospace, monospace; color: var(--soft); }

/* ---------- 2FA ---------- */
.qr { display: inline-block; background: #fff; border-radius: 14px; padding: 6px; line-height: 0; }
.qr svg { width: 220px; height: 220px; }
.secret { font: 600 17px ui-monospace, monospace; letter-spacing: .06em; color: var(--gold); overflow-wrap: anywhere; }
.codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.codes li { font: 600 17px ui-monospace, monospace; letter-spacing: .06em; padding: 10px 14px; border: 1px dashed #5A4A22; border-radius: 10px; color: var(--gold); text-align: center; }

/* ---------- Gallery ---------- */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 20px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--deep); text-align: center; cursor: pointer; }
.dropzone strong { font-size: 18px; }
.dropzone span { font-size: 14px; color: var(--muted); }
.dropzone input[type=file] { max-width: 100%; color: var(--soft); }

/* ---------- Curia ---------- */
.curia-bar { background: #140C18; border-bottom: 2px solid var(--crimson); }
.curia-bar .wrap { max-width: 1360px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.curia-bar .brand { font-size: 18px; letter-spacing: .16em; }
.curia-bar .brand img { width: 36px; height: 36px; }
.curia-bar .brand small { font: 400 13px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.curia { max-width: 1360px; display: flex; flex-wrap: wrap; gap: 28px; padding-top: 28px; padding-bottom: 64px; }
.curia > nav { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 2px; }
.curia > nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 14px; border-radius: 10px; color: var(--soft); text-decoration: none; font-weight: 600; }
.curia > nav a:hover { background: #1E1426; color: #fff; }
.curia > nav a[aria-current="page"] { background: #2A1424; color: #fff; }
.curia > nav small { color: var(--muted); font-weight: 500; }
.curia > nav hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; width: 100%; }
@media (max-width: 760px) { .curia > nav { max-width: none; flex-direction: row; flex-wrap: wrap; } }
.curia > main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.curia h1 { font-size: 36px; margin: 0; }
.curia .head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.curia .head .kicker { color: var(--gold); font-family: var(--serif); letter-spacing: .3em; margin-bottom: 4px; }
.tiles { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tiles > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.tiles dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.tiles dd { margin: 4px 0 0; font: 700 34px/1.1 var(--serif); }
.tiles dd + dd { font: 13px/1.4 var(--sans); color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--soft); text-decoration: none; font-weight: 600; }
.tabs a[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--night); }
.textrow { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.textrow .lbl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.textrow .lbl label { font-weight: 700; }
.textrow .lbl span { font-size: 13px; color: var(--muted); }
.textrow .btn-link { align-self: flex-start; font-size: 14px; }
.savebar { position: sticky; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border: 1px solid #5A4A22; border-radius: 16px; background: #16182A; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.split-curia { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split-curia > .list { flex: 1 1 380px; min-width: 0; }
.split-curia > form { flex: 1 1 440px; min-width: 0; }
.list > li[aria-current="true"] { background: #1A2547; }
.list .acts { display: flex; gap: 4px; align-items: center; }
.list .acts form { display: inline; }
.shot-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.shot-grid li { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.shot-grid li:has(input:checked) { border-color: var(--blue); }
.shot-grid img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--deep); }
.shot-grid .pick { position: absolute; top: 8px; left: 8px; width: 40px; height: 40px; border-radius: 10px; background: rgba(10,14,26,.75); display: grid; place-items: center; }
.shot-grid .pick input { width: 20px; height: 20px; accent-color: var(--blue); }
.shot-grid .st { position: absolute; top: 12px; right: 10px; }
.shot-grid .cap { padding: 12px 14px; }
.shot-grid .cap strong { display: block; }
.shot-grid .cap span { font-size: 13px; color: var(--muted); }
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bulk input[type=text] { width: auto; flex: 1 1 200px; }
@media (max-width: 640px) {
  .site-header nav { gap: 8px 18px; }
  .site-header .brand { flex-basis: 100%; }  /* logo on its own line, all links together below it */
}

/* ---------- Tools: GW2 timers ---------- */
.tools-page { padding-bottom: 64px; }
.timers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 20px; align-items: start; }
.timer-group { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-width: 0; }
.timer-group h2 { font-size: 19px; letter-spacing: .04em; color: var(--gold); margin: 0 0 6px; }
.timer-group.festival { opacity: .8; }
.timer-list { list-style: none; margin: 0; padding: 0; }
.timer { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.timer:first-child { border-top: 0; }
.timer-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.timer-map { font-size: 13px; color: var(--muted); }
.timer-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14px; color: var(--soft); }
.timer-now { color: #7EDCA6; font-weight: 700; }
.timer-next { font-weight: 600; color: var(--text); }
.timer-when { color: var(--muted); margin-right: 10px; font-variant-numeric: tabular-nums; }
.timer-bar { position: relative; height: 24px; border-radius: 6px; background: var(--deep); overflow: hidden; }
.timer-bar .seg { position: absolute; top: 0; bottom: 0; padding: 0 6px; font: 600 11px/24px var(--sans); color: var(--night); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--deep); }
.seg.c0 { background: #E2C275; } .seg.c1 { background: #9DBDFA; } .seg.c2 { background: #F58A9A; } .seg.c3 { background: #8FD3C7; } .seg.c4 { background: #C9A2F2; }
.timer-source { margin-top: 20px; }
.timer-next li { display: flex; gap: 12px; align-items: baseline; padding: 8px 10px; }

/* ---------- Homepage sections (community layout) ---------- */
.hero-live { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 22px 0 0; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(19,27,54,.7); font-size: 14px; color: var(--soft); }
.hero-live .tick { color: var(--muted); font-variant-numeric: tabular-nums; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.pillars { padding-bottom: 56px; }
.pillar-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.pillar { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.pillar:hover { border-color: var(--gold); background: #17214A; transform: translateY(-2px); color: var(--text); }
.pillar svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.pillar strong { font: 700 20px/1.2 var(--serif); letter-spacing: .02em; }
.pillar span { color: var(--soft); font-size: 15px; }

.officers-show .section-head { align-items: flex-end; }
.officers-show .online { margin: 0; color: #7EDCA6; font-size: 14px; font-weight: 600; }
.officer-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.officer-cards li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--rank); border-radius: 14px; }
.officer-cards .av { position: relative; display: inline-flex; }
.officer-cards .avatar { width: 46px; height: 46px; font-size: 18px; }
.officer-cards .dot { position: absolute; right: -1px; bottom: -1px; border: 2px solid var(--panel); }
.officer-cards .r { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rank); }

.join-band { margin-top: 16px; background: linear-gradient(120deg, #1A2652 0%, #2A1A3A 60%, #3A1424 100%); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.join-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 56px; padding-bottom: 56px; }
.join-text { flex: 1 1 480px; max-width: 680px; }
.join-text h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 10px; }
.join-text p { margin: 0 0 10px; color: var(--soft); font-size: 17px; }
.join-text .contact { font-size: 15px; color: var(--muted); }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; }
body:has(.join-band) .site-footer { margin-top: 0; }  /* the band ends the page; no gap before the footer */

.timer-jump { position: sticky; top: 72px; z-index: 3; display: flex; gap: 8px; overflow-x: auto; margin: 0 0 20px; padding: 10px 0; background: rgba(10,14,26,.92); backdrop-filter: blur(6px); scrollbar-width: thin; }
.timer-jump a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--soft); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.timer-jump a:hover { border-color: var(--gold); color: var(--text); }
.timer-group { scroll-margin-top: 140px; }

/* Arrival: sections rise in from a visible state; nothing waits hidden for a script. */
@media (prefers-reduced-motion: no-preference) {
  .hero-text, .hero-badge, .pillar-grid > li { animation: rise .5s ease-out both; }
  .hero-badge { animation-delay: .08s; }
  .pillar-grid > li:nth-child(2) { animation-delay: .05s; } .pillar-grid > li:nth-child(3) { animation-delay: .1s; } .pillar-grid > li:nth-child(4) { animation-delay: .15s; }
}
@keyframes rise { from { transform: translateY(10px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) { .timer-jump { position: static; } }  /* the phone header is taller; keep the jump links in the flow */
@media (prefers-reduced-motion: reduce) { .pillar:hover { transform: none; } }
