:root { --ink:#111317; --paper:#f3f1eb; --white:#fbfaf6; --muted:#74777b; --line:#d7d4cc; --red:#9d292f; --green:#56d68c; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; background:var(--paper); }
body { margin:0; color:var(--ink); background:var(--paper); font-family:var(--font-geist-sans),Arial,sans-serif; }
a { color:inherit; text-decoration:none; }
button,input,textarea,select { font:inherit; }
button { color:inherit; }

.topbar { height:86px; padding:0 4.5vw; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; border-bottom:1px solid rgba(255,255,255,.13); background:#101216; color:white; position:relative; z-index:20; }
.brand { width:238px; height:72px; display:flex; align-items:center; gap:12px; color:#f4f1e9; overflow:hidden; }
.brand-emblem { width:54px; height:54px; flex:0 0 54px; position:relative; overflow:hidden; border-radius:50%; filter:drop-shadow(0 2px 5px rgba(0,0,0,.48)); }
.brand-emblem img { width:78px; height:78px; max-width:none; position:absolute; left:-12px; top:-5px; object-fit:contain; }
.brand-wordmark { min-width:0; display:flex; flex-direction:column; align-items:stretch; line-height:1; text-align:center; text-shadow:0 1px 8px rgba(255,255,255,.12); }
.brand-wordmark strong { font-family:Georgia,"Times New Roman",serif; font-size:25px; font-weight:700; letter-spacing:.13em; background:linear-gradient(180deg,#fffef8 8%,#c7c8c5 55%,#f2f0e5 92%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.brand-wordmark span { margin-top:3px; padding-top:3px; border-top:1px solid rgba(236,234,224,.55); color:#d9d8d1; font:650 9px var(--font-geist-mono); letter-spacing:.68em; text-indent:.68em; }
.topbar nav { display:flex; align-items:center; gap:22px; color:#b8bbc0; font-size:13px; }
.topbar nav a:hover { color:white; }
.topbar nav a.active { color:white; }
.topbar-actions { justify-self:end; display:flex; align-items:center; gap:8px; }
.topbar-action { border:1px solid #4c5057; padding:12px 16px; text-transform:uppercase; letter-spacing:.1em; font:600 10px var(--font-geist-mono); white-space:nowrap; }
.forum-account { min-height:44px; padding:5px 9px 5px 6px; display:flex; align-items:center; gap:8px; border:1px solid #3b3f46; background:#17191e; color:white; }
.forum-avatar { width:31px; height:31px; flex:0 0 31px; display:grid; place-items:center; overflow:hidden; border-radius:50%; background:#30343b; color:#c7cbd1; font:650 11px var(--font-geist-mono); }
.forum-avatar img { width:100%; height:100%; object-fit:cover; }
.forum-account > span:last-child { display:flex; flex-direction:column; gap:2px; }
.forum-account small { color:#777d86; font:7px var(--font-geist-mono); letter-spacing:.08em; text-transform:uppercase; }
.forum-account strong { max-width:96px; overflow:hidden; text-overflow:ellipsis; color:#dfe1e4; font-size:10px; white-space:nowrap; }
.demo-account { cursor:default; }
.demo-account .forum-avatar { background:#283a31; color:#70dfa0; }
.nav-theme-picker { margin-left:3px; padding:3px; display:flex; align-items:center; border:1px solid #3a3e45; background:#181b20; }
.nav-theme-picker span { padding:0 7px 0 5px; color:#777d86; font:8px var(--font-geist-mono); letter-spacing:.1em; text-transform:uppercase; }
.nav-theme-picker button { min-width:42px; padding:6px 7px; border:0; background:transparent; color:#969ba3; cursor:pointer; font:650 8px var(--font-geist-mono); text-transform:uppercase; }
.nav-theme-picker button.active { background:#f3f1eb; color:#111317; }
.nav-theme-picker button:first-of-type.active { background:#3a3e45; color:white; }
.social-strip { min-height:58px; padding:0 4.5vw; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; background:#0c0e12; color:#d3d5da; border-bottom:1px solid #202329; }
.social-links { display:flex; align-items:center; justify-content:center; gap:54px; }
.social-strip a { display:flex; align-items:center; gap:10px; font-size:14px; font-weight:560; }
.social-strip a:hover { color:white; }
.social-strip > .nav-theme-picker { justify-self:end; margin:0; }
.social-icon { width:22px; height:22px; display:grid; place-items:center; color:#e5e6e9; font-size:11px; line-height:1; }
.youtube-icon { border-radius:6px; background:#e5e6e9; color:#0c0e12; font-size:9px; padding-left:1px; }
.reddit-icon { border:2px solid #e5e6e9; border-radius:50%; font-size:7px; }
.discord-logo-box { width:28px; height:24px; padding:0; border:0; background:transparent; }
.discord-logo-box img { display:block; width:100%; height:100%; object-fit:contain; }

.new-hero { min-height:720px; display:grid; grid-template-columns:1fr 1fr; padding:86px 7vw 70px; position:relative; overflow:hidden; background:#101216; color:white; isolation:isolate; }
.new-hero::before { content:""; position:absolute; inset:0; z-index:-2; background:radial-gradient(circle at 72% 42%,rgba(132,145,180,.2),transparent 26%),linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size:auto,64px 64px,64px 64px; }
.new-hero::after { content:"EMPIRE RISING"; position:absolute; left:6.6vw; bottom:1px; color:rgba(255,255,255,.022); font-size:13vw; white-space:nowrap; letter-spacing:-.07em; font-weight:700; z-index:-1; }
.hero-copy-block { align-self:center; max-width:720px; }
.overline,.index-label { font:650 10px var(--font-geist-mono); letter-spacing:.17em; text-transform:uppercase; }
.overline { color:#b7bbc3; display:flex; align-items:center; gap:12px; }
.overline span { width:24px; height:1px; background:#b7bbc3; }
.new-hero h1 { margin:28px 0 27px; font-size:clamp(55px,7vw,105px); line-height:.91; letter-spacing:-.065em; font-weight:480; }
.new-hero h1 em { color:#d5bfc1; font-style:normal; font-weight:330; }
.hero-copy-block > p { color:#aeb2ba; max-width:610px; font-size:18px; line-height:1.7; }
.hero-buttons { display:flex; flex-wrap:wrap; gap:11px; margin-top:34px; }
.primary-button,.quiet-button { min-height:52px; display:inline-flex; align-items:center; justify-content:space-between; gap:36px; padding:0 20px; text-transform:uppercase; letter-spacing:.09em; font:650 10px var(--font-geist-mono); border:1px solid transparent; }
.primary-button { background:var(--red); color:white; }
.quiet-button { border-color:#41454c; color:#d6d8dc; }
.quiet-button.light { border-color:#6f737a; }
.hero-mark { display:grid; place-items:center; position:relative; align-self:center; min-height:470px; }
.hero-mark img { width:min(440px,80%); max-height:420px; object-fit:contain; position:relative; z-index:2; filter:drop-shadow(0 26px 30px rgba(0,0,0,.4)); }
.hero-mark > span { position:absolute; bottom:14px; color:#7e838b; font:9px var(--font-geist-mono); letter-spacing:.23em; }
.orbital { position:absolute; border:1px solid rgba(255,255,255,.12); border-radius:50%; }
.orbital-one { width:460px; height:460px; }
.orbital-two { width:560px; height:560px; border-style:dashed; opacity:.5; }
.hero-status { position:absolute; left:7vw; right:7vw; bottom:25px; display:flex; gap:30px; border-top:1px solid rgba(255,255,255,.13); padding-top:18px; color:#838891; font:9px var(--font-geist-mono); text-transform:uppercase; letter-spacing:.12em; }
.hero-status span:first-child { color:#b9bec6; }
.hero-status i { width:7px; height:7px; display:inline-block; border-radius:50%; background:var(--green); box-shadow:0 0 11px var(--green); margin-right:8px; }

.registry { padding:125px 7vw 140px; background:var(--paper); }
.registry-intro { display:grid; grid-template-columns:1.3fr .7fr; gap:9vw; align-items:end; margin-bottom:58px; }
.index-label { color:var(--red); }
.registry h2,.ownership-head h2,.join-section h2 { margin:20px 0 0; font-size:clamp(48px,5.5vw,84px); line-height:.97; letter-spacing:-.06em; font-weight:430; }
.registry-intro p { color:#696c70; line-height:1.7; max-width:470px; }
.logo-grid { display:grid; grid-template-columns:repeat(4,1fr); border-left:1px solid var(--line); border-top:1px solid var(--line); }
.logo-card { min-height:470px; position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:flex-start; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--white); text-align:left; }
.logo-card::before { content:""; position:absolute; inset:0; background:linear-gradient(145deg,var(--accent-soft),transparent 46%); opacity:0; transition:opacity .3s ease; }
.logo-card:hover::before,.logo-card:focus-within::before { opacity:.75; }
.logo-card-preview { width:100%; flex:1; padding:26px 26px 16px; display:flex; flex-direction:column; align-items:flex-start; border:0; background:transparent; text-align:left; cursor:pointer; position:relative; z-index:1; }
.card-number { position:absolute; top:22px; left:24px; color:#a5a4a0; font:9px var(--font-geist-mono); }
.logo-stage { height:235px; width:100%; display:grid; place-items:center; position:relative; }
.logo-stage img { width:170px; height:170px; object-fit:contain; position:relative; z-index:2; transition:transform .35s ease; filter:drop-shadow(0 16px 14px rgba(0,0,0,.14)); }
.logo-card:hover .logo-stage img { transform:translateY(-5px) scale(1.025); }
.logo-halo { position:absolute; width:155px; height:155px; border-radius:50%; background:var(--accent-soft); opacity:.58; filter:blur(5px); }
.card-category { color:var(--accent); font:650 9px var(--font-geist-mono); letter-spacing:.13em; text-transform:uppercase; position:relative; }
.logo-card-preview > strong { margin-top:10px; font-size:23px; line-height:1.05; letter-spacing:-.025em; position:relative; }
.rank-seven { color:#777a7e; margin-top:9px; font-size:11px; position:relative; }
.card-leaders { width:100%; margin-top:12px; display:flex; flex-direction:column; gap:5px; color:#6f7276; position:relative; }
.card-leaders > span { display:grid; grid-template-columns:auto 12px minmax(0,1fr); align-items:center; font-size:10px; }
.card-leaders b { color:var(--accent); font:650 8px var(--font-geist-mono); text-transform:uppercase; }
.card-leaders i { color:var(--accent); font-style:normal; text-align:center; }
.card-leaders > span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.card-leaders > .pending-leadership { display:block; color:#777a7e; font-weight:650; letter-spacing:.01em; }
.card-actions { width:100%; min-height:58px; display:grid; grid-template-columns:.85fr 1.15fr; border-top:1px solid var(--line); position:relative; z-index:2; }
.card-actions button,.card-actions a { padding:0 16px; display:flex; align-items:center; justify-content:space-between; border:0; background:rgba(251,250,246,.78); cursor:pointer; font:600 8px var(--font-geist-mono); letter-spacing:.08em; text-transform:uppercase; }
.card-actions button { border-right:1px solid var(--line); color:#76797d; }
.card-actions a { color:var(--ink); }
.card-actions a:hover,.card-actions button:hover { background:var(--accent-soft); }
.card-actions b { color:var(--accent); }

.ownership-section { padding:130px 7vw; background:#dcd9d1; }
.ownership-head { display:flex; align-items:flex-end; justify-content:space-between; }
.ownership-grid { margin-top:60px; display:grid; grid-template-columns:repeat(3,1fr); border:1px solid #c3c0b8; }
.ownership-grid article { min-height:285px; padding:32px; border-right:1px solid #c3c0b8; }
.ownership-grid article:last-child { border-right:0; }
.ownership-grid article > span { font:10px var(--font-geist-mono); color:#8a8984; }
.ownership-grid h3 { margin:78px 0 12px; font-size:22px; }
.ownership-grid p { color:#666762; line-height:1.65; font-size:14px; }
.integration-note { margin-top:28px; padding:26px 30px; display:grid; grid-template-columns:.7fr 1fr auto; gap:45px; align-items:center; background:#111317; color:white; }
.integration-note div { display:flex; flex-direction:column; gap:8px; }
.integration-note div span { color:#8e949d; font:9px var(--font-geist-mono); letter-spacing:.13em; }
.integration-note div strong { font-size:16px; }
.integration-note p { margin:0; color:#9da2aa; line-height:1.55; font-size:13px; }
.integration-note a { border:1px solid #4c5057; padding:11px 13px; font:9px var(--font-geist-mono); text-transform:uppercase; }

.join-section { min-height:470px; padding:85px 7vw; background:#15171b; color:white; display:grid; grid-template-columns:210px 1fr auto; align-items:center; gap:55px; }
.join-section > img { width:200px; height:200px; object-fit:contain; filter:drop-shadow(0 18px 20px rgba(0,0,0,.45)); }
.join-section h2 { font-size:clamp(44px,4.5vw,70px); }
.join-section p { color:#999fa7; margin:18px 0 0; }
.join-actions { display:flex; flex-direction:column; gap:10px; min-width:210px; }
footer { min-height:110px; padding:20px 4.5vw; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; border-top:1px solid #2b2e33; background:#101216; color:#777d86; font-size:10px; }
.footer-brand { width:220px; height:70px; }
footer > div { justify-self:end; display:flex; gap:22px; }

.crafting-site { --ink:#111317; --paper:#f3f1eb; --white:#fbfaf6; --line:#d7d4cc; min-height:100svh; background:var(--paper); color:var(--ink); }
.crafting-site[data-theme="dark"] { --ink:#eef0f3; --paper:#0f1115; --white:#171a1f; --line:#343840; }
.crafting-accent-strip { min-height:64px; padding:10px 4.5vw; display:flex; align-items:center; justify-content:center; gap:20px; border-bottom:1px solid #292d33; background:#111318; color:#8f949c; }
.crafting-accent-strip > span { font:650 8px var(--font-geist-mono); letter-spacing:.14em; text-transform:uppercase; white-space:nowrap; }
.crafting-accent-options { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px; }
.crafting-accent-options button { width:32px; height:32px; padding:5px; display:grid; place-items:center; border:1px solid #343840; background:#191c21; cursor:pointer; }
.crafting-accent-options button i { width:18px; height:18px; border-radius:3px; background:var(--swatch); box-shadow:0 0 0 1px rgba(255,255,255,.18); }
.crafting-accent-options button:hover { color:white; border-color:var(--swatch); }
.crafting-accent-options button.active { border-color:color-mix(in srgb,var(--swatch) 78%,white); background:color-mix(in srgb,var(--swatch) 34%,#171a1f); box-shadow:0 0 0 2px color-mix(in srgb,var(--swatch) 38%,transparent); }
.crafting-command-bar { padding:34px 4.5vw; display:grid; grid-template-columns:.75fr 1.15fr 1fr; gap:4vw; align-items:center; border-bottom:1px solid color-mix(in srgb,var(--crafting-accent) 32%,#27333a); background:linear-gradient(112deg,#071116,var(--crafting-accent-soft) 58%,#101216); color:white; }
.crafting-command-bar > div:first-child span { color:color-mix(in srgb,var(--crafting-accent) 78%,white); font:650 8px var(--font-geist-mono); letter-spacing:.17em; }
.crafting-command-bar h1 { margin:8px 0 0; font-size:clamp(28px,3vw,45px); line-height:.95; letter-spacing:-.045em; font-weight:460; }
.crafting-command-bar > p { margin:0; max-width:650px; color:#aebac0; font-size:13px; line-height:1.65; }
.crafting-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--crafting-accent); border:1px solid var(--crafting-accent); }
.crafting-stats span { min-height:64px; padding:11px; display:flex; flex-direction:column; justify-content:center; gap:5px; background:#0b1820; color:#8f9ba1; font:7px var(--font-geist-mono); letter-spacing:.08em; text-transform:uppercase; }
.crafting-stats strong { color:#eef6f5; font-size:13px; letter-spacing:0; text-transform:none; }
.crafting-application { min-height:900px; background:#071016; }
.crafting-application iframe { width:100%; height:calc(100svh - 144px); min-height:900px; display:block; border:0; background:#071016; }

.hq-backdrop { position:fixed; inset:0; z-index:100; background:rgba(7,8,10,.88); backdrop-filter:blur(10px); padding:24px; display:grid; place-items:center; }
.faction-hq { width:min(1420px,100%); height:min(900px,calc(100svh - 48px)); background:var(--white); display:grid; grid-template-columns:340px 1fr; position:relative; overflow:hidden; box-shadow:0 35px 120px rgba(0,0,0,.48); }
.hq-close { position:absolute; right:17px; top:15px; z-index:5; width:39px; height:39px; border-radius:50%; border:1px solid #cbc9c2; background:var(--white); font-size:22px; cursor:pointer; }
.hq-identity { padding:36px 30px; background:var(--accent-soft); display:flex; flex-direction:column; min-height:0; }
.quick-full-page-link { margin:-10px 0 4px; padding:9px 0; display:flex; justify-content:space-between; color:var(--accent); border-bottom:1px solid rgba(0,0,0,.12); font:650 9px var(--font-geist-mono); letter-spacing:.09em; text-transform:uppercase; }
.hq-logo { height:250px; display:grid; place-items:center; }
.hq-logo img { width:220px; height:220px; object-fit:contain; filter:drop-shadow(0 20px 18px rgba(0,0,0,.17)); }
.hq-code { color:var(--accent); font:650 9px var(--font-geist-mono); letter-spacing:.15em; }
.hq-identity h2 { margin:13px 0 8px; font-size:37px; line-height:.97; letter-spacing:-.045em; }
.hq-identity > p { color:#6e7070; font-size:12px; }
.hq-nav { display:flex; flex-direction:column; gap:12px; margin:28px 0; padding:22px 0; border-top:1px solid rgba(0,0,0,.12); border-bottom:1px solid rgba(0,0,0,.12); font-size:12px; }
.full-page-link { margin:-12px 0 20px; padding:12px 0; display:flex; justify-content:space-between; color:var(--accent); border-bottom:1px solid rgba(0,0,0,.12); font:650 9px var(--font-geist-mono); letter-spacing:.08em; text-transform:uppercase; }
.discord-card { margin-top:auto; display:grid; grid-template-columns:1fr auto; padding:17px; background:#111317; color:white; }
.discord-card span { grid-column:1/3; color:#858a92; font:8px var(--font-geist-mono); letter-spacing:.13em; }
.discord-card strong { margin-top:8px; font-size:12px; }
.discord-card b { align-self:end; color:var(--accent); }
.discord-unset { cursor:default; }
.discord-unset strong,.discord-unset small { color:#90949b; }
.hq-content { overflow:auto; min-width:0; background:#f9f8f4; }
.editor-bar { min-height:70px; position:sticky; top:0; z-index:4; padding:0 66px 0 34px; display:flex; justify-content:space-between; align-items:center; background:rgba(249,248,244,.95); backdrop-filter:blur(12px); border-bottom:1px solid var(--line); }
.editor-bar > div { display:flex; align-items:center; gap:9px; color:#74777c; font:9px var(--font-geist-mono); text-transform:uppercase; letter-spacing:.1em; }
.editor-bar i { width:7px; height:7px; background:#92959a; border-radius:50%; }
.editor-bar i.editing { background:#e4a323; box-shadow:0 0 10px rgba(228,163,35,.5); }
.editor-bar button,.small-add { border:1px solid #c7c5be; background:transparent; padding:10px 13px; cursor:pointer; font:600 9px var(--font-geist-mono); text-transform:uppercase; }
.editor-bar button:disabled { opacity:.5; cursor:not-allowed; }
.editor-login { border:1px solid #c7c5be; padding:10px 13px; font:600 9px var(--font-geist-mono); text-transform:uppercase; }
.hq-overview,.rank-section,.contact-section,.custom-sections { padding:45px 48px; border-bottom:1px solid var(--line); }
.section-tag { color:var(--accent); font:650 9px var(--font-geist-mono); letter-spacing:.15em; }
.lead-summary { max-width:820px; margin:20px 0 34px; font-size:28px; line-height:1.36; letter-spacing:-.025em; }
.hq-overview textarea,.custom-sections textarea { width:100%; min-height:120px; resize:vertical; margin:18px 0; }
.hq-content input,.hq-content textarea,.hq-content select,.faction-page-content input,.faction-page-content textarea,.faction-page-content select { border:1px solid #bcbab3; background:white; color:var(--ink); padding:11px 12px; outline:none; }
.hq-content input:focus,.hq-content textarea:focus,.hq-content select:focus,.faction-page-content input:focus,.faction-page-content textarea:focus,.faction-page-content select:focus { border-color:var(--accent); }
.recruitment-row { display:grid; grid-template-columns:180px 1fr; gap:25px; align-items:center; padding-top:20px; border-top:1px solid var(--line); font-size:13px; }
.recruitment-row span { color:#777a7e; }
.recruitment-row strong { color:var(--accent); }
.section-heading-row { display:flex; justify-content:space-between; gap:25px; align-items:end; margin-bottom:25px; }
.section-heading-row h3 { margin:10px 0 0; font-size:26px; letter-spacing:-.025em; }
.section-heading-row > span { color:#85888c; font-size:11px; }
.rank-list { border-top:1px solid var(--line); }
.rank-row { min-height:71px; display:grid; grid-template-columns:54px 1fr auto; gap:14px; align-items:center; border-bottom:1px solid var(--line); }
.rank-row.leader { min-height:88px; }
.rank-row.classified { padding-left:12px; border-left:3px solid var(--command-color,var(--accent)); }
.rank-row.classified .rank-number,.rank-row.classified small { color:var(--command-color,var(--accent)); }
.rank-number { font:650 11px var(--font-geist-mono); color:#8f9295; }
.rank-row div { display:flex; flex-direction:column; gap:4px; }
.rank-row small { font:8px var(--font-geist-mono); letter-spacing:.12em; color:#9a9c9f; }
.rank-row strong { font-size:16px; }
.rank-row input { width:min(420px,100%); padding:7px 9px; }
.command-chip { color:var(--command-color,var(--accent)); border:1px solid var(--command-color,var(--accent)); padding:6px 8px; font:8px var(--font-geist-mono); letter-spacing:.1em; }
.command-controls { display:flex!important; align-items:flex-end; gap:8px!important; }
.command-select { min-width:138px; padding:8px 10px!important; color:var(--command-color,var(--accent))!important; border-color:var(--command-color,var(--accent))!important; font:650 9px var(--font-geist-mono)!important; text-transform:uppercase; cursor:pointer; }
.command-color-palette { display:flex!important; flex-direction:row!important; gap:5px!important; align-items:center; }
.command-color-palette > button { width:20px; height:20px; padding:0; border:2px solid transparent; border-radius:50%; background:var(--swatch); cursor:pointer; box-shadow:0 0 0 1px rgba(0,0,0,.18); }
.command-color-palette > button.active { border-color:white; box-shadow:0 0 0 2px var(--swatch); }
.command-color-palette.inactive { opacity:.45; }
.command-color-palette label { width:22px; height:22px; overflow:hidden; border-radius:50%; border:1px solid #96999f; cursor:pointer; }
.command-color-palette input[type="color"] { width:32px!important; height:32px!important; margin:-5px!important; padding:0!important; border:0!important; cursor:pointer; }
.contact-grid { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line); border-left:1px solid var(--line); }
.contact-grid article,.contact-discord { min-height:170px; padding:20px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); display:flex; flex-direction:column; }
.contact-grid span { color:#85888b; font:8px var(--font-geist-mono); letter-spacing:.12em; text-transform:uppercase; }
.contact-grid strong { margin-top:auto; font-size:15px; }
.contact-grid small { margin-top:7px; color:#85888b; }
.contact-grid article input { margin-bottom:7px; width:100%; }
.contact-grid article select { width:100%; margin-top:auto; }
.contact-person { position:relative; text-align:center; }
.contact-person > span { width:100%; text-align:center; font-size:11px; font-weight:650; }
.contact-person > strong { width:100%; margin:auto 0 0!important; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; text-align:center; line-height:1.05; letter-spacing:-.025em; }
.contact-person > small { margin:7px 0 auto; text-align:center; font:650 9px var(--font-geist-mono); text-transform:uppercase; }
.contact-field { width:100%; margin-bottom:10px; display:flex; flex-direction:column; gap:5px; text-align:left; }
.contact-field:last-child { margin-bottom:0; }
.contact-field > span { padding-right:30px; }
.contact-field input,.contact-field select { margin:0!important; }
.contact-name-input { min-height:48px; text-align:center; font-weight:650!important; letter-spacing:-.02em; }
.contact-department-input { text-align:center; font-size:11px!important; }
.contact-remove { position:absolute; top:10px; right:10px; z-index:2; width:26px; height:26px; padding:0; display:grid; place-items:center; border:1px solid #b9b7b1; background:transparent; color:#777a7e; cursor:pointer; font-size:17px; line-height:1; }
.contact-remove:hover { border-color:#9d292f; color:#9d292f; }
.contact-discord { background:#17191d; color:white; }
.faction-discord-editor { margin:-5px 0 24px; padding:18px; display:grid; grid-template-columns:minmax(210px,.65fr) 1fr; gap:24px; align-items:center; background:var(--accent-soft); border-left:3px solid var(--accent); }
.faction-discord-editor label { display:flex; flex-direction:column; gap:6px; }
.faction-discord-editor label span { color:var(--accent); font:650 9px var(--font-geist-mono); letter-spacing:.12em; text-transform:uppercase; }
.faction-discord-editor label small { color:#696c70; line-height:1.45; }
.faction-discord-editor input { width:100%; }
.custom-sections article { padding:25px 0; border-top:1px solid var(--line); }
.custom-sections h4 { margin:0 0 11px; font-size:18px; }
.custom-sections p { max-width:780px; color:#696c70; line-height:1.7; }
.custom-sections article input { display:block; width:100%; margin-bottom:8px; font-weight:650; }
.custom-sections article textarea { min-height:95px; margin:0; }
.sections-title-input { min-width:min(460px,70vw); margin-top:10px; font-size:22px!important; font-weight:650; }
.format-toolbar { min-height:42px; margin-top:10px; padding:6px; display:flex; flex-direction:row!important; gap:6px!important; align-items:center; border:1px solid #bcbab3; border-bottom:0; background:#eceae4; }
.format-toolbar button { width:30px; height:28px; border:1px solid #c3c0b9; background:white; cursor:pointer; }
.format-toolbar label { width:30px; height:28px; overflow:hidden; border:1px solid #c3c0b9; background:linear-gradient(135deg,#d4363e,#ddaa34,#42a66b,#477de8,#7047b4); cursor:pointer; }
.format-toolbar input[type="color"] { width:42px!important; height:38px!important; margin:-6px!important; padding:0!important; opacity:0; cursor:pointer; }
.rich-text-editor { width:100%; min-height:132px; padding:14px; border:1px solid #bcbab3; background:white; color:var(--ink); line-height:1.65; outline:none; overflow-wrap:anywhere; }
.rich-text-editor:focus { border-color:var(--accent); }
.rich-text-editor ol,.formatted-section ol { padding-left:28px; list-style:decimal outside!important; }
.rich-text-editor ul,.formatted-section ul { padding-left:28px; list-style:disc outside!important; }
.rich-text-editor li,.formatted-section li { display:list-item; }
.rich-text-editor p,.rich-text-editor div { margin:0 0 8px; }
.formatted-section { max-width:780px; color:var(--ink); line-height:1.7; white-space:normal; }
.formatted-section p,.formatted-section div { margin:0 0 10px; color:inherit; }
.save-dock { position:sticky; bottom:0; z-index:4; display:flex; justify-content:space-between; align-items:center; padding:16px 48px; background:#111317; color:white; box-shadow:0 -12px 28px rgba(0,0,0,.12); }
.save-dock div { display:flex; flex-direction:column; gap:4px; }
.save-dock span { color:#858a92; font:8px var(--font-geist-mono); text-transform:uppercase; }
.save-dock strong { font-size:12px; }
.save-dock button { border:0; background:var(--accent); color:white; padding:12px 18px; cursor:pointer; font:650 9px var(--font-geist-mono); text-transform:uppercase; }
.notice { position:fixed; right:22px; bottom:22px; z-index:150; max-width:430px; padding:16px 18px; display:flex; gap:18px; align-items:center; background:#111317; color:white; border-left:3px solid var(--green); box-shadow:0 18px 50px rgba(0,0,0,.35); font-size:12px; line-height:1.5; }
.notice button { border:0; background:transparent; color:white; font-size:18px; cursor:pointer; }

.site-shell,.faction-page { --ink:#111317; --paper:#f9f8f4; --white:#fbfaf6; --line:#d7d4cc; min-height:100svh; background:var(--paper); color:var(--ink); transition:background .2s ease,color .2s ease; }
.faction-page-top { height:82px; padding:0 5vw; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; background:#101216; color:white; border-bottom:1px solid #292c32; }
.faction-page-brand { width:145px; height:70px; display:flex; align-items:center; }
.faction-page-brand img { width:140px; height:68px; object-fit:contain; }
.faction-page-top nav { display:flex; gap:30px; color:#b8bbc0; font-size:12px; }
.faction-page-top nav a:hover { color:white; }
.faction-page-hero { min-height:440px; padding:62px 7vw; display:grid; grid-template-columns:310px 1fr 250px; gap:58px; align-items:center; background:#15171b; color:white; position:relative; overflow:hidden; }
.faction-page-hero::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 18% 50%,var(--accent-soft),transparent 24%),linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size:auto,58px 58px,58px 58px; opacity:.22; }
.faction-page-emblem,.faction-page-title,.faction-page-status { position:relative; z-index:1; }
.faction-page-emblem { width:290px; height:290px; display:grid; place-items:center; }
.faction-page-emblem span { position:absolute; inset:20px; border:1px solid rgba(255,255,255,.15); border-radius:50%; }
.faction-page-emblem img { width:235px; height:235px; object-fit:contain; filter:drop-shadow(0 24px 25px rgba(0,0,0,.42)); }
.faction-page-title > a { display:block; margin-bottom:38px; color:#8f949c; font:600 9px var(--font-geist-mono); text-transform:uppercase; letter-spacing:.1em; }
.faction-page-title > span { color:var(--accent); font:650 9px var(--font-geist-mono); letter-spacing:.16em; }
.faction-page-title h1 { max-width:760px; margin:14px 0 12px; font-size:clamp(55px,6.5vw,96px); line-height:.9; letter-spacing:-.06em; font-weight:450; }
.faction-page-title p { color:#a2a7af; font-size:14px; }
.faction-page-status { padding:24px; border:1px solid #3b3f46; display:flex; flex-direction:column; gap:9px; }
.faction-page-status span { color:#858a93; font:8px var(--font-geist-mono); letter-spacing:.13em; text-transform:uppercase; }
.faction-page-status strong { font-size:17px; }
.faction-page-status a { margin-top:14px; padding-top:15px; border-top:1px solid #3b3f46; color:var(--accent); font:650 9px var(--font-geist-mono); text-transform:uppercase; }
.faction-page-status small { margin-top:14px; padding-top:15px; border-top:1px solid #3b3f46; color:#7f848c; }
.faction-page-layout { max-width:1500px; margin:0 auto; padding:0 5vw; display:grid; grid-template-columns:220px minmax(0,1fr); align-items:start; }
.faction-page-aside { position:sticky; top:0; padding:58px 34px 58px 0; display:flex; flex-direction:column; gap:16px; }
.faction-page-aside span { margin-bottom:10px; color:#989a9c; font:8px var(--font-geist-mono); letter-spacing:.13em; }
.faction-page-aside a { color:#606367; font-size:11px; }
.faction-page-aside a:hover { color:var(--accent); }
.faction-page-content { min-width:0; background:var(--white); border-left:1px solid var(--line); border-right:1px solid var(--line); }
.faction-page-content .editor-bar { top:0; background:color-mix(in srgb,var(--white) 95%,transparent); }
.site-shell[data-theme="dark"],.faction-page[data-theme="dark"] { --ink:#eef0f3; --paper:#0f1115; --white:#171a1f; --line:#343840; }
.site-shell[data-theme="dark"] .registry { background:var(--paper); }
.site-shell[data-theme="dark"] .registry-intro p,.site-shell[data-theme="dark"] .rank-seven,.site-shell[data-theme="dark"] .ownership-grid p { color:#adb2ba; }
.site-shell[data-theme="dark"] .card-leaders { color:#c0c4ca; }
.site-shell[data-theme="dark"] .logo-card { background:var(--white); }
.site-shell[data-theme="dark"] .card-actions button,.site-shell[data-theme="dark"] .card-actions a { background:rgba(23,26,31,.9); color:#e8e9eb; }
.site-shell[data-theme="dark"] .card-actions button { color:#a8adb5; }
.site-shell[data-theme="dark"] .ownership-section { background:#14171b; }
.site-shell[data-theme="dark"] .ownership-grid,.site-shell[data-theme="dark"] .ownership-grid article { border-color:#343840; }
.site-shell[data-theme="dark"] .faction-hq { background:var(--white); }
.site-shell[data-theme="dark"] .hq-content { background:var(--paper); }
.site-shell[data-theme="dark"] .hq-identity { background:color-mix(in srgb,var(--accent) 16%,#171a1f); }
.site-shell[data-theme="dark"] .editor-bar { background:rgba(23,26,31,.95); }
.site-shell[data-theme="dark"] .editor-bar > div,.site-shell[data-theme="dark"] .section-heading-row > span,.site-shell[data-theme="dark"] .recruitment-row span,.site-shell[data-theme="dark"] .rank-number,.site-shell[data-theme="dark"] .rank-row small,.site-shell[data-theme="dark"] .contact-grid span,.site-shell[data-theme="dark"] .contact-grid small { color:#9ca2ab; }
.site-shell[data-theme="dark"] .hq-content input,.site-shell[data-theme="dark"] .hq-content textarea,.site-shell[data-theme="dark"] .hq-content select { background:#0f1115; color:#eef0f3; border-color:#4a4f58; }
.site-shell[data-theme="dark"] .faction-discord-editor { background:color-mix(in srgb,var(--command-color,var(--accent)) 16%,#171a1f); }
.site-shell[data-theme="dark"] .custom-sections p { color:#b4b8bf; }
.site-shell[data-theme="dark"] .format-toolbar,.faction-page[data-theme="dark"] .format-toolbar { background:#22262c; border-color:#4a4f58; }
.site-shell[data-theme="dark"] .format-toolbar button,.faction-page[data-theme="dark"] .format-toolbar button { background:#111318; color:#eef0f3; border-color:#50555e; }
.site-shell[data-theme="dark"] .rich-text-editor,.faction-page[data-theme="dark"] .rich-text-editor { background:#0f1115; color:#eef0f3; border-color:#4a4f58; }
.site-shell[data-theme="dark"] .formatted-section,.site-shell[data-theme="dark"] .formatted-section p,.faction-page[data-theme="dark"] .formatted-section,.faction-page[data-theme="dark"] .formatted-section p { color:var(--ink); }
.site-shell[data-theme="dark"] .contact-remove,.faction-page[data-theme="dark"] .contact-remove { color:#adb2ba; border-color:#50555e; }
.site-shell[data-theme="dark"] .hq-close { color:#eef0f3; }
.faction-page[data-theme="dark"] .faction-page-aside a { color:#a6abb3; }
.faction-page[data-theme="dark"] .faction-page-aside span,.faction-page[data-theme="dark"] .editor-bar > div,.faction-page[data-theme="dark"] .section-heading-row > span,.faction-page[data-theme="dark"] .recruitment-row span,.faction-page[data-theme="dark"] .rank-number,.faction-page[data-theme="dark"] .rank-row small,.faction-page[data-theme="dark"] .contact-grid span,.faction-page[data-theme="dark"] .contact-grid small { color:#9ca2ab; }
.faction-page[data-theme="dark"] .custom-sections p { color:#b4b8bf; }
.faction-page[data-theme="dark"] .editor-bar button,.faction-page[data-theme="dark"] .small-add { color:#e3e5e8; border-color:#50555e; }
.faction-page[data-theme="dark"] .faction-page-content input,.faction-page[data-theme="dark"] .faction-page-content textarea,.faction-page[data-theme="dark"] .faction-page-content select { background:#0f1115; color:#eef0f3; border-color:#4a4f58; }
.faction-page[data-theme="dark"] .faction-discord-editor { background:color-mix(in srgb,var(--accent) 16%,#171a1f); }
.faction-page[data-theme="dark"] .contact-grid article:not(.contact-discord) { background:#171a1f; }
.faction-page[data-theme="dark"] .lead-summary,.faction-page[data-theme="dark"] .rank-row strong,.faction-page[data-theme="dark"] .custom-sections h4,.faction-page[data-theme="dark"] .section-heading-row h3 { color:#f0f1f3; }
.missing-faction { min-height:100svh; display:grid; place-items:center; align-content:center; gap:20px; background:#101216; color:white; }
.missing-faction img { width:220px; height:180px; object-fit:contain; }
.missing-faction h1 { margin:0; font-size:42px; }
.missing-faction a { color:#c9cbd0; border:1px solid #4c5057; padding:12px 16px; font-size:12px; }

.admin-page { --ink:#eef0f3; --paper:#0f1115; --white:#171a1f; --line:#343840; min-height:100svh; background:var(--paper); color:var(--ink); }
.admin-page[data-theme="light"] { --ink:#111317; --paper:#f3f1eb; --white:#fbfaf6; --line:#d7d4cc; }
.admin-hero { min-height:390px; padding:70px 7vw; display:grid; grid-template-columns:1fr 320px; gap:70px; align-items:center; background:radial-gradient(circle at 80% 30%,rgba(71,125,232,.18),transparent 24%),linear-gradient(135deg,#12151b,#0c0e12); color:white; border-bottom:1px solid #282c33; }
.admin-hero h1 { margin:12px 0 18px; font-size:clamp(52px,7vw,92px); line-height:.9; letter-spacing:-.055em; font-weight:440; }
.admin-hero h1 em { color:#79a2f3; font-style:normal; }
.admin-hero p { max-width:650px; color:#aeb4bd; line-height:1.65; }
.admin-mode-card { min-height:190px; padding:28px; display:flex; flex-direction:column; justify-content:flex-end; border:1px solid #3d424b; background:rgba(14,17,22,.72); }
.admin-mode-card span,.admin-panel-heading span,.admin-summary-grid span { color:#7fa8f7; font:650 9px var(--font-geist-mono); letter-spacing:.13em; }
.admin-mode-card strong { margin:13px 0 8px; font-size:20px; }
.admin-mode-card small { color:#8e949d; line-height:1.45; }
.admin-error { margin:34px auto 0; width:min(1300px,90vw); padding:18px 20px; display:grid; grid-template-columns:auto 1fr auto; gap:18px; align-items:center; border:1px solid #834046; background:#25171a; color:#f1c7ca; }
.admin-error a { color:white; text-decoration:underline; text-underline-offset:3px; }
.admin-workspace { width:min(1300px,90vw); margin:0 auto; padding:46px 0 90px; }
.admin-summary-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.admin-summary-grid article { min-height:130px; padding:23px; display:flex; flex-direction:column; border:1px solid var(--line); background:var(--white); }
.admin-summary-grid strong { margin-top:auto; font-size:36px; line-height:1; }
.admin-summary-grid small { margin-top:7px; color:#8f959e; }
.admin-panel { margin-top:28px; border:1px solid var(--line); background:var(--white); }
.admin-panel-heading { padding:27px 30px; display:flex; justify-content:space-between; gap:35px; align-items:end; border-bottom:1px solid var(--line); }
.admin-panel-heading h2 { margin:8px 0 0; font-size:27px; letter-spacing:-.025em; }
.admin-panel-heading p { max-width:530px; margin:0; color:#8f959e; font-size:12px; line-height:1.55; }
.admin-faction-list article { min-height:78px; padding:14px 20px 14px 28px; display:flex; justify-content:space-between; gap:20px; align-items:center; border-bottom:1px solid var(--line); }
.admin-faction-list article:last-child { border-bottom:0; }
.admin-faction-list article > div { min-width:0; display:flex; gap:14px; align-items:center; }
.admin-faction-list article div div { min-width:0; display:flex; flex-direction:column; gap:5px; }
.admin-faction-list small { overflow:hidden; text-overflow:ellipsis; color:#8f959e; font-size:10px; white-space:nowrap; }
.status-dot { width:9px; height:9px; flex:0 0 9px; border-radius:50%; background:#53d187; box-shadow:0 0 12px rgba(83,209,135,.35); }
.status-dot.closed { background:#d05c64; box-shadow:0 0 12px rgba(208,92,100,.3); }
.admin-faction-list button { min-width:124px; padding:10px 13px; border:1px solid #575d66; background:transparent; color:#d7dbe1; cursor:pointer; font:650 9px var(--font-geist-mono); text-transform:uppercase; }
.admin-page[data-theme="light"] .admin-faction-list button { color:#4b5057; }
.admin-faction-list button.close:hover { border-color:#d05c64; color:#ef8a91; }
.admin-faction-list button.open { border-color:#3d805b; color:#65d996; }
.admin-log-list { max-height:520px; overflow:auto; }
.admin-log-list article { min-height:68px; padding:16px 28px; display:grid; grid-template-columns:165px minmax(220px,1fr) 190px 180px; gap:20px; align-items:center; border-bottom:1px solid var(--line); }
.admin-log-list article:last-child { border-bottom:0; }
.admin-log-list time,.admin-log-list small { color:#858b94; font:9px var(--font-geist-mono); }
.admin-log-list span { color:#b2b6bd; font-size:11px; }
.admin-empty { padding:34px; color:#8f959e; }
.integration-guide ol { margin:0; padding:0; list-style:none; counter-reset:steps; }
.integration-guide li { counter-increment:steps; min-height:90px; padding:22px 28px; display:grid; grid-template-columns:240px 1fr; gap:30px; border-bottom:1px solid var(--line); }
.integration-guide li:last-child { border-bottom:0; }
.integration-guide li b::before { content:"0" counter(steps) " / "; color:#7fa8f7; font:650 9px var(--font-geist-mono); }
.integration-guide li span { color:#9ba0a8; font-size:12px; line-height:1.6; }

.legal-page { --ink:#111317; --paper:#f3f1eb; --white:#fbfaf6; --line:#d7d4cc; min-height:100svh; background:var(--paper); color:var(--ink); }
.legal-layout { width:min(1180px,100%); margin:0 auto; padding:70px 5vw 90px; }
.legal-policy-nav { min-height:58px; padding:0 24px; display:flex; align-items:center; gap:28px; background:var(--white); border:1px solid var(--line); border-bottom:3px solid #9d292f; }
.legal-policy-nav a { color:#666a70; font:650 10px var(--font-geist-mono); letter-spacing:.08em; text-transform:uppercase; }
.legal-policy-nav a:hover { color:#9d292f; }
.legal-article { min-width:0; padding:65px clamp(28px,6vw,86px) 80px; background:var(--white); border:1px solid var(--line); border-top:0; }
.legal-article h1 { margin:0 0 12px; font-size:clamp(46px,7vw,84px); line-height:.94; letter-spacing:-.055em; font-weight:450; }
.legal-article h2 { margin:52px 0 16px; padding-top:25px; border-top:1px solid var(--line); font-size:clamp(24px,3vw,34px); line-height:1.12; letter-spacing:-.025em; }
.legal-article h3 { margin:30px 0 10px; font-size:18px; }
.legal-article h3.important { display:inline-block; padding:7px 10px; color:#9d292f; border:1px solid #9d292f; font:700 11px var(--font-geist-mono); letter-spacing:.1em; }
.legal-article p,.legal-article li { color:#62666b; line-height:1.76; }
.legal-article ul,.legal-article ol { padding-left:24px; }
.legal-article li { margin:.35rem 0; }
.legal-article a { color:#9d292f; text-decoration:underline; text-underline-offset:3px; }
.legal-article .meta { color:#85888c; font:10px/1.7 var(--font-geist-mono); text-transform:uppercase; letter-spacing:.06em; }
.legal-article .notice,.legal-article .toc { position:static; inset:auto; z-index:auto; max-width:none; margin:25px 0; padding:20px; display:block; background:#ece9e1; border:0; border-left:3px solid #c6963d; color:#5e6267; box-shadow:none; font-size:inherit; line-height:1.65; }
.legal-article .toc strong { display:block; margin-bottom:10px; font:700 10px var(--font-geist-mono); letter-spacing:.1em; }
.legal-article .toc a { display:inline-block; margin:5px 14px 5px 0; font-size:12px; }
.legal-page[data-theme="dark"] { --ink:#eef0f3; --paper:#0f1115; --white:#171a1f; --line:#343840; }
.legal-page[data-theme="dark"] .legal-policy-nav a { color:#b3b8c0; }
.legal-page[data-theme="dark"] .legal-article p,.legal-page[data-theme="dark"] .legal-article li { color:#b8bdc5; }
.legal-page[data-theme="dark"] .legal-article .notice,.legal-page[data-theme="dark"] .legal-article .toc { background:#22262c; color:#c0c4ca; }

@media (max-width:1100px) {
  .logo-grid { grid-template-columns:repeat(2,1fr); }
  .new-hero { grid-template-columns:1fr; }
  .hero-mark { position:absolute; right:-80px; top:110px; width:50%; opacity:.28; }
  .hero-copy-block { position:relative; z-index:2; }
  .join-section { grid-template-columns:150px 1fr; }
  .join-section > img { width:150px; height:150px; }
  .join-actions { grid-column:1/3; flex-direction:row; }
  .faction-hq { grid-template-columns:280px 1fr; }
  .hq-logo { height:210px; }
  .hq-logo img { width:180px; height:180px; }
  .contact-grid { grid-template-columns:1fr 1fr; }
  .faction-page-hero { grid-template-columns:230px 1fr; }
  .faction-page-emblem { width:220px; height:220px; }
  .faction-page-emblem img { width:185px; height:185px; }
  .faction-page-status { grid-column:1/3; display:grid; grid-template-columns:1fr 1fr auto; align-items:center; }
  .faction-page-status a,.faction-page-status small { margin:0; padding:0 0 0 18px; border-top:0; border-left:1px solid #3b3f46; }
}

@media (max-width:760px) {
  .admin-hero { min-height:0; padding:55px 22px; grid-template-columns:1fr; gap:28px; }
  .admin-hero h1 { font-size:52px; }
  .admin-mode-card { min-height:150px; }
  .admin-workspace,.admin-error { width:calc(100% - 32px); }
  .admin-error { grid-template-columns:1fr; }
  .admin-summary-grid { grid-template-columns:1fr; }
  .admin-panel-heading { align-items:flex-start; flex-direction:column; }
  .admin-faction-list article { align-items:flex-start; flex-direction:column; }
  .admin-faction-list button { width:100%; }
  .admin-log-list article { grid-template-columns:1fr; gap:7px; }
  .integration-guide li { grid-template-columns:1fr; gap:9px; }
  .legal-layout { padding:35px 16px 55px; }
  .legal-policy-nav { min-height:0; padding:16px; flex-wrap:wrap; gap:13px 20px; }
  .legal-article { padding:42px 22px 58px; border:1px solid var(--line); }
  .legal-article h1 { font-size:46px; }
  .topbar { height:72px; padding:0 20px; grid-template-columns:1fr auto; }
  .topbar-action { display:none; }
  .topbar nav { display:none; }
  .forum-account { min-height:40px; }
  .social-strip { min-height:52px; padding:0 18px; grid-template-columns:1fr auto; gap:12px; }
  .social-strip > span:first-child { display:none; }
  .social-links { justify-content:flex-start; gap:12px; }
  .social-strip a { gap:6px; font-size:12px; }
  .social-icon { width:18px; height:18px; }
  .social-strip .nav-theme-picker span { display:none; }
  .social-strip .nav-theme-picker button { min-width:37px; padding:6px 5px; }
  .brand { width:158px; height:64px; gap:8px; }
  .brand-emblem { width:40px; height:40px; flex-basis:40px; }
  .brand-emblem img { width:58px; height:58px; left:-9px; top:-4px; }
  .brand-wordmark strong { font-size:17px; letter-spacing:.09em; }
  .brand-wordmark span { font-size:7px; letter-spacing:.43em; text-indent:.43em; }
  .new-hero { min-height:700px; padding:100px 22px 85px; }
  .hero-mark { width:85%; right:-125px; top:150px; }
  .hero-mark img { width:350px; }
  .orbital-one { width:350px; height:350px; }
  .orbital-two { width:430px; height:430px; }
  .new-hero h1 { font-size:56px; }
  .hero-status { left:22px; right:22px; overflow:hidden; white-space:nowrap; }
  .registry,.ownership-section { padding:90px 22px; }
  .registry-intro { grid-template-columns:1fr; gap:25px; }
  .logo-grid { grid-template-columns:1fr; }
  .logo-card { min-height:420px; }
  .ownership-head { display:block; }
  .ownership-grid { grid-template-columns:1fr; }
  .ownership-grid article { border-right:0; border-bottom:1px solid #c3c0b8; }
  .integration-note { grid-template-columns:1fr; gap:20px; }
  .join-section { padding:70px 22px; grid-template-columns:1fr; text-align:center; }
  .join-section > img { justify-self:center; }
  .join-actions { grid-column:auto; flex-direction:column; }
  footer { grid-template-columns:1fr; gap:18px; text-align:center; padding:30px 20px; }
  .footer-brand,footer > div { justify-self:center; }
  .footer-brand { width:158px; }
  .crafting-command-bar { padding:26px 20px; grid-template-columns:1fr; gap:18px; }
  .crafting-command-bar > p { font-size:12px; }
  .crafting-accent-strip { padding:12px 20px; flex-direction:column; gap:9px; }
  .crafting-stats { grid-template-columns:repeat(3,1fr); }
  .crafting-application,.crafting-application iframe { min-height:820px; }
  .hq-backdrop { padding:0; }
  .faction-hq { display:block; height:100svh; }
  .hq-identity { min-height:410px; }
  .hq-logo { height:170px; }
  .hq-logo img { width:155px; height:155px; }
  .hq-nav { display:none; }
  .discord-card { margin-top:18px; }
  .hq-content { overflow:visible; }
  .faction-hq { overflow:auto; }
  .editor-bar { position:static; padding:14px 60px 14px 22px; }
  .hq-overview,.rank-section,.contact-section,.custom-sections { padding:36px 22px; }
  .lead-summary { font-size:22px; }
  .section-heading-row { align-items:flex-start; flex-direction:column; }
  .contact-grid { grid-template-columns:1fr; }
  .faction-discord-editor { grid-template-columns:1fr; gap:12px; }
  .recruitment-row { grid-template-columns:1fr; gap:8px; }
  .save-dock { padding:14px 22px; }
  .faction-page-top { height:72px; padding:0 20px; grid-template-columns:1fr auto; }
  .faction-page-top nav { display:none; }
  .faction-page-hero { padding:48px 22px; grid-template-columns:1fr; gap:25px; text-align:center; }
  .faction-page-emblem { justify-self:center; width:190px; height:190px; }
  .faction-page-emblem img { width:160px; height:160px; }
  .faction-page-title > a { margin-bottom:25px; }
  .faction-page-title h1 { font-size:54px; }
  .faction-page-status { grid-column:auto; grid-template-columns:1fr; text-align:left; }
  .faction-page-status a,.faction-page-status small { margin-top:10px; padding:12px 0 0; border-left:0; border-top:1px solid #3b3f46; }
  .faction-page-layout { padding:0; display:block; }
  .faction-page-aside { position:static; padding:22px; flex-direction:row; overflow:auto; border-bottom:1px solid var(--line); }
  .faction-page-aside span { display:none; }
  .faction-page-aside a { white-space:nowrap; }
  .faction-page-content { border:0; }
}

@media (prefers-reduced-motion:reduce) { html{scroll-behavior:auto} *{transition:none!important} }
