/* Southern Justice Roleplay — site styles */
:root {
  --bg: #07090d; --bg2: #0c0f15; --panel: #10141b; --panel2: #151a23; --line: #1f2632; --line2: #2a3341;
  --text: #d8dce2; --muted: #8a929f; --dim: #5d6573; --white: #f3f4f6;
  --gold: #c9a14a; --gold2: #e6c46f; --goldDeep: #8f6a26; --chrome: #c7ccd4;
  --ok: #4fbf8a; --bad: #e0695a; --warn: #e2a64b; --info: #6ea0e8;
  --radius: 4px; --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 13px; }
h1, h2, h3 { color: var(--white); margin: 0; font-weight: 700; letter-spacing: -.01em; }
.display { font-family: Anton, Impact, sans-serif; font-weight: 400; letter-spacing: .01em; text-transform: uppercase; line-height: .95; }
.eyebrow { display: inline-block; font: 700 11px/1 Montserrat, Inter, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.lede { color: var(--muted); font-size: 18px; max-width: 680px; margin: 14px 0 0; }
.rule-gold { width: 56px; height: 2px; background: var(--gold); border: 0; margin: 16px 0; }

/* ── Header ── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(7, 9, 13, .86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font: 400 19px/1 Anton, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--white); }
.brand small { font: 700 9.5px/1 Montserrat, sans-serif; letter-spacing: .42em; color: var(--gold); margin-top: 4px; text-transform: uppercase; }
nav.main { display: flex; gap: 4px; margin-left: 12px; }
nav.main a, .nav-portal { padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: var(--radius); transition: color .15s; }
nav.main a:hover, .nav-portal:hover, nav.main a.on, .nav-portal.on { color: var(--white); }
nav.main a.on, .nav-portal.on { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.acct { position: relative; }
.acct summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 5px 8px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.acct summary::-webkit-details-marker { display: none; }
.acct summary img { width: 26px; height: 26px; border-radius: 50%; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); padding: 6px; box-shadow: 0 20px 40px -10px #000; }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; font: inherit; font-size: 14px; color: var(--text); background: none; border: 0; border-radius: 3px; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--panel2); }
.burger { display: none; margin-left: auto; }
.burger summary { list-style: none; cursor: pointer; padding: 10px; display: grid; gap: 4px; }
.burger summary::-webkit-details-marker { display: none; }
.burger i { display: block; width: 20px; height: 2px; background: var(--text); }
.burger-menu { position: absolute; left: 0; right: 0; top: 68px; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 10px 24px 18px; display: grid; }
.burger-menu a { padding: 11px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { nav.main, .top-right { display: none; } .burger { display: block; } }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; font: 700 13px/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-gold { background: linear-gradient(180deg, #dcb862, #b38a36); color: #1b1408; border-color: #8f6a26; box-shadow: 0 1px 0 #ffffff40 inset; }
.btn-gold:hover { background: linear-gradient(180deg, #e7c46f, #bf953d); }
.btn-ghost { border-color: var(--line2); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.btn-danger { background: transparent; border-color: #6b2a24; color: #f0a196; }
.btn-danger:hover { background: #2a1210; }
.btn-ok { background: #1f5c41; color: #d8f5e6; border-color: #2f7d58; }
.btn-sm { padding: 8px 14px; font-size: 11.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Hero ── */
.hero { position: relative; min-height: 640px; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; background: url(/img/hero.jpg) center 62% / cover no-repeat; transform: scale(1.02); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,13,.25) 0%, rgba(7,9,13,.15) 40%, rgba(7,9,13,.92) 88%, var(--bg) 100%), linear-gradient(90deg, rgba(7,9,13,.75), rgba(7,9,13,0) 60%); }
.hero-in { position: relative; z-index: 2; padding: 0 24px 72px; width: 100%; }
.hero h1 { font-size: clamp(56px, 9vw, 120px); }
.hero h1 .chrome { background: linear-gradient(180deg, #fff 0%, #e8ecf0 22%, #9aa3ae 46%, #3e4650 51%, #727b86 56%, #dfe4ea 74%, #f6f7f9 88%, #9aa2ac 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 8px 14px rgba(0,0,0,.6)); display: block; }
.hero h1 .small-line { font-size: .36em; letter-spacing: .32em; display: block; margin-bottom: 6px; }
.hero .roleplay { font: 800 clamp(13px, 1.6vw, 20px)/1 Montserrat, sans-serif; letter-spacing: .55em; text-transform: uppercase; background: linear-gradient(180deg, #fff1c6, #e9c46d 30%, #a77a26 52%, #f0cd78 80%, #9c7124); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 18px 0 0; }
.hero .lede { color: #b7bdc6; margin-top: 22px; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-top: -48px; position: relative; z-index: 5; }
.stat { padding: 22px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 400 34px/1 Anton, sans-serif; color: var(--white); letter-spacing: .02em; }
.stat span { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px #4fbf8a33; } .dot.off { background: var(--bad); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ── Sections ── */
section.block { padding: 96px 0; }
section.block.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head h2 { font: 400 clamp(34px, 4.5vw, 54px)/1 Anton, sans-serif; text-transform: uppercase; letter-spacing: .01em; margin-top: 10px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pillar { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.pillar:last-child { border-right: 0; }
.pillar .n { font: 700 12px Montserrat, sans-serif; color: var(--gold); letter-spacing: .2em; }
.pillar h3 { margin: 12px 0 8px; font-size: 19px; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar { border-right: 0; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { counter-increment: s; padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { content: counter(s, decimal-leading-zero); font: 400 40px/1 Anton, sans-serif; color: var(--line2); display: block; margin-bottom: 18px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }

/* ── Department grid ── */
.depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dept-card { position: relative; display: flex; gap: 18px; align-items: center; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, transform .15s; overflow: hidden; }
.dept-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--gold)); }
.dept-card:hover { border-color: var(--line2); transform: translateY(-2px); }
.dept-card img { width: 64px; height: 64px; flex: none; }
.dept-card b { display: block; color: var(--white); font: 400 22px/1 Anton, sans-serif; letter-spacing: .03em; }
.dept-card span { display: block; color: var(--muted); font-size: 13.5px; margin-top: 4px; line-height: 1.35; }
.dept-card em { font-style: normal; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 900px) { .depts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .depts { grid-template-columns: 1fr; } }

/* ── Page head ── */
.page-head { padding: 72px 0 44px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 300px at 85% 0%, #2a1a2b55, transparent), radial-gradient(700px 260px at 10% 0%, #c9a14a12, transparent); }
.page-head h1 { font: 400 clamp(44px, 7vw, 80px)/.95 Anton, sans-serif; text-transform: uppercase; letter-spacing: .01em; margin-top: 12px; }
.dept-head { position: relative; padding: 0; border-bottom: 1px solid var(--line); }
.dept-head .bg { height: 280px; background-size: cover; background-position: center; }
.dept-head .in { position: relative; margin-top: -120px; display: flex; gap: 28px; align-items: flex-end; padding-bottom: 36px; }
.dept-head .in img { width: 180px; height: 180px; flex: none; filter: drop-shadow(0 18px 24px rgba(0,0,0,.6)); }
.dept-head h1 { font: 400 clamp(40px, 6vw, 68px)/.95 Anton, sans-serif; text-transform: uppercase; }
@media (max-width: 700px) { .dept-head .in { flex-direction: column; align-items: flex-start; margin-top: -90px; } .dept-head .in img { width: 120px; height: 120px; } }

/* ── Panels & layout ── */
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.grid-2e { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .grid-2, .grid-2e { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 18px; margin-bottom: 4px; }
.panel h3 { font-size: 15px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.list-check { list-style: none; padding: 0; margin: 14px 0 0; }
.list-check li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.list-check li:last-child { border-bottom: 0; }
.list-check li::before { content: ''; position: absolute; left: 2px; top: 18px; width: 10px; height: 2px; background: var(--gold); }

/* ── Rules ── */
.rules-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 56px 0 96px; }
.rules-toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; }
.rules-toc a { padding: 9px 12px; font-size: 14px; color: var(--muted); border-left: 2px solid var(--line); }
.rules-toc a:hover { color: var(--white); border-color: var(--gold); }
.rule-sec { margin-bottom: 56px; scroll-margin-top: 96px; }
.rule-sec h2 { font: 400 34px/1 Anton, sans-serif; text-transform: uppercase; margin: 8px 0 18px; }
.rule { display: grid; grid-template-columns: 64px 1fr; padding: 18px 0; border-top: 1px solid var(--line); }
.rule .num { font: 700 13px Montserrat, sans-serif; color: var(--gold); letter-spacing: .08em; padding-top: 2px; }
.rule b { display: block; color: var(--white); margin-bottom: 4px; }
.rule p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .rules-wrap { grid-template-columns: 1fr; } .rules-toc { position: static; grid-auto-flow: column; overflow-x: auto; } }

/* ── Staff ── */
.tier { margin-bottom: 44px; }
.tier h2 { font: 400 26px/1 Anton, sans-serif; text-transform: uppercase; letter-spacing: .03em; display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tier h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.person { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.person img { width: 44px; height: 44px; border-radius: 50%; flex: none; border: 2px solid var(--c, var(--line2)); }
.person b { display: block; color: var(--white); font-size: 15px; line-height: 1.2; }
.person span { font-size: 12.5px; color: var(--muted); }

/* ── Forms ── */
form.app { max-width: 820px; }
.q { display: block; padding: 22px 0; border-bottom: 1px solid var(--line); }
.q:last-of-type { border-bottom: 0; }
.q-num { font: 700 11px Montserrat, sans-serif; color: var(--gold); letter-spacing: .14em; }
.q-label { display: block; margin: 4px 0 10px; color: var(--white); font-weight: 600; }
.q-help { display: block; margin: -4px 0 10px; color: var(--dim); font-size: 13.5px; }
input, textarea, select { width: 100%; background: #090c11; border: 1px solid var(--line2); color: var(--white); border-radius: var(--radius); padding: 12px 14px; font: inherit; font-size: 15px; }
textarea { resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px #c9a14a22; }
.counter { display: block; text-align: right; font-size: 12px; color: var(--dim); margin-top: 6px; }
.counter.ok { color: var(--ok); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 140px; padding: 9px 11px; font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row label, .stack label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.form-row label input, .form-row label select, .stack label input, .stack label textarea, .stack label select { margin-top: 6px; }

/* ── Tables ── */
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font: 700 11px Montserrat, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 10px 12px; border-bottom: 1px solid var(--line2); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.rank-sep td { background: var(--bg2); font: 700 11px Montserrat, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); padding: 9px 12px; }
.table .who { display: flex; align-items: center; gap: 10px; }
.table .who img { width: 28px; height: 28px; border-radius: 50%; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--chrome); }
.table-wrap { overflow-x: auto; }

.pill { display: inline-block; padding: 3px 9px; border-radius: 99px; font: 700 10.5px/1.4 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; border: 1px solid; }
.pill-pending, .pill-interview { color: var(--warn); border-color: #6b4d1f; background: #2a1e0c; }
.pill-accepted, .pill-approved { color: var(--ok); border-color: #275b41; background: #0e2219; }
.pill-denied { color: var(--bad); border-color: #6b2a24; background: #2a1210; }
.pill-ended, .pill-leave { color: var(--info); border-color: #2b4a75; background: #0f1b2c; }

.flash { padding: 13px 0; font-size: 14.5px; border-bottom: 1px solid; }
.flash-ok { background: #0e2219; color: #9fe3c0; border-color: #275b41; }
.flash-err { background: #2a1210; color: #f3b1a7; border-color: #6b2a24; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tabs a { padding: 12px 16px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--white); border-color: var(--gold); }
.tabs a .count { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 99px; background: var(--gold); color: #1b1408; font-size: 11px; font-weight: 700; }
.portal-head { display: flex; align-items: center; gap: 18px; padding: 32px 0 24px; }
.portal-head img { width: 76px; height: 76px; }
.portal-head h1 { font: 400 40px/1 Anton, sans-serif; text-transform: uppercase; }
.dept-switch { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.sop { white-space: pre-wrap; line-height: 1.7; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--radius); }
.answers dt { color: var(--white); font-weight: 600; margin-top: 16px; }
.answers dd { margin: 4px 0 0; color: var(--muted); white-space: pre-wrap; }
.card-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.card-row:last-child { border-bottom: 0; }

/* ── Footer ── */
.foot { border-top: 1px solid var(--line); margin-top: 0; padding: 56px 0 28px; background: var(--bg2); }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-links { display: grid; gap: 8px; align-content: start; font-size: 14px; color: var(--muted); }
.foot-links a:hover { color: var(--white); }
.foot-links .eyebrow { margin-bottom: 6px; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr; } }

.cta-band { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); padding: 56px; background: linear-gradient(90deg, rgba(7,9,13,.95) 30%, rgba(7,9,13,.4)), url(/img/hero.jpg) center 70% / cover; }
.cta-band h2 { font: 400 clamp(32px, 4vw, 48px)/1 Anton, sans-serif; text-transform: uppercase; margin: 10px 0 12px; }

.list-check li.done { color: var(--white); }
.list-check li.done::before { width: 10px; height: 6px; top: 15px; background: none; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
