:root {
    --bg-base: #0f1a17;
    --bg-deep: #162420;
    --panel: #1f3a32;
    --panel-strong: #2d5641;
    --panel-soft: #3a6b52;
    --line: #4a8f6f;
    --line-strong: #4a9b7f;
    --primary: #4a9b7f;
    --primary-bright: #7dd99e;
    --primary-glow: rgba(125, 217, 158, 0.28);
    --text-main: #f3dfcd;
    --text-soft: #c6aead;
    --text-muted: #96808f;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(74, 155, 127, 0.14), transparent 28%),
        radial-gradient(circle at 80% 18%, rgba(58, 107, 82, 0.32), transparent 24%),
        linear-gradient(155deg, #0f1a17 0%, #162420 45%, #0f1a17 100%);
    color: var(--text-main);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 0 49.2%, rgba(74, 155, 127, 0.08) 49.2% 50.2%, transparent 50.2%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02));
    background-size: 240px 240px, auto;
    pointer-events: none;
    opacity: 0.6;
}

.page-shell {
    position: relative;
    isolation: isolate;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(74, 155, 127, 0.3);
    background: rgba(15, 26, 23, 0.88);
    backdrop-filter: blur(14px);
}

.navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 217, 158, 0.75), transparent);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 88px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-decoration: none;
}

.brand-mark,
h1,
h2,
h3,
.button,
.stat-value,
.doctrine-index {
    font-family: "Bahnschrift SemiCondensed", Impact, Haettenschweiler, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    background: none;
}

.brand-subtitle {
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-links .nav-link {
    padding: 10px 14px;
    border: 1px solid transparent;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    color: var(--text-main);
    border-color: rgba(74, 155, 127, 0.55);
    background: linear-gradient(135deg, rgba(74, 155, 127, 0.18), rgba(58, 107, 82, 0.2));
}

.main-content {
    padding: 40px 0 64px;
}

.tab-content {
    display: none;
    animation: rise 0.35s ease;
}

.tab-content.active {
    display: block;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-panel,
.priority-panel,
.contact-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(58, 107, 82, 0.22), rgba(15, 26, 23, 0.66)),
        var(--panel);
    border: 1px solid rgba(74, 155, 127, 0.3);
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
    margin-top: 48px;
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    padding: 40px;
    align-items: center;
}

.hero-panel::before,
.priority-panel::before,
.contact-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(74, 155, 127, 0.08), transparent),
        linear-gradient(0deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
}

.eyebrow,
.card-kicker {
    color: var(--primary-bright);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.92;
    max-width: 10ch;
    margin-bottom: 18px;
}

.hero-text,
.angled-card p,
.doctrine-card p,
.priority-copy p,
.contact-text,
.contact-note {
    color: var(--text-soft);
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.95rem;
    clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.button-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-bright));
    color: #140d12;
    box-shadow: 0 16px 32px rgba(201, 86, 61, 0.22);
}

.button-secondary {
    background: rgba(67, 54, 70, 0.45);
    color: var(--text-main);
    border-color: rgba(201, 86, 61, 0.3);
}

.hero-emblem-frame {
    justify-self: end;
    position: relative;
    width: min(100%, 380px);
    aspect-ratio: 1;
    padding: 18px;
    background: linear-gradient(145deg, rgba(74, 155, 127, 0.12), rgba(58, 107, 82, 0.3));
    border: 1px solid rgba(74, 155, 127, 0.35);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 30px 50px rgba(0, 0, 0, 0.35);
    clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}

.hero-emblem {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

.stats-bar,
.feature-grid,
.doctrine-grid,
.recruit-grid,
.members-grid {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.stats-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.angled-card,
.doctrine-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(45, 86, 65, 0.94), rgba(22, 42, 34, 0.98));
    border: 1px solid rgba(106, 155, 127, 0.24);
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 24px;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.stat-card::after,
.angled-card::after,
.doctrine-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 auto;
    width: 90px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 155, 127, 0.7));
}

.stat-value {
    display: block;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--primary-bright);
}

.stat-label {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
}

.feature-grid,
.doctrine-grid,
.recruit-grid,
.members-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.angled-card,
.doctrine-card {
    padding: 26px;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.angled-card h2,
.section-heading h2,
.contact-panel h2 {
    font-size: clamp(1.8rem, 3vw, 2.9rem);
    line-height: 0.98;
    margin-bottom: 14px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.doctrine-card {
    min-height: 250px;
}

.doctrine-index {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: var(--primary-bright);
}

.doctrine-card h3,
.priority-copy h3 {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 14px;
}

.priority-panel {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 20px;
    margin-top: 28px;
    padding: 28px;
}

.activities-panel {
    margin-top: 28px;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(125, 217, 158, 0.08), transparent 42%),
        linear-gradient(145deg, rgba(58, 107, 82, 0.24), rgba(15, 26, 23, 0.78));
    border: 1px solid rgba(74, 155, 127, 0.32);
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.activities-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.activities-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: rgba(15, 26, 23, 0.65);
    border: 1px solid rgba(74, 155, 127, 0.26);
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.07em;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.priority-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: start;
}

.priority-list span {
    display: block;
    padding: 16px 18px;
    background: rgba(15, 26, 23, 0.6);
    border: 1px solid rgba(74, 155, 127, 0.25);
    color: var(--text-main);
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.filter-btn {
    min-height: 42px;
    padding: 0 16px;
    background: rgba(58, 107, 82, 0.36);
    border: 1px solid rgba(106, 155, 127, 0.28);
    color: var(--text-soft);
    cursor: pointer;
    font: inherit;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    transition: 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: #190f14;
    border-color: var(--primary-bright);
    background: linear-gradient(135deg, var(--primary), var(--primary-bright));
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    background: var(--panel-strong);
    border: 1px solid rgba(106, 155, 127, 0.25);
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(125, 217, 158, 0.65);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.gallery-item img,
.gallery-item iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 18px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    color: var(--text-main);
    font-size: 0.92rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gallery-empty {
    margin-top: 16px;
    color: var(--text-muted);
}

.members-empty {
    margin-top: 16px;
    color: var(--text-muted);
}

.member-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 4px;
}

.member-tab {
    min-height: 42px;
    padding: 0 16px;
    background: rgba(58, 107, 82, 0.28);
    border: 1px solid rgba(106, 155, 127, 0.3);
    color: var(--text-soft);
    cursor: pointer;
    font: inherit;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    transition: 0.2s ease;
}

.member-tab:hover,
.member-tab.active {
    color: #102019;
    border-color: var(--primary-bright);
    background: linear-gradient(135deg, var(--primary), var(--primary-bright));
}

.member-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(45, 86, 65, 0.94), rgba(22, 42, 34, 0.98));
    border: 1px solid rgba(106, 155, 127, 0.3);
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: rgba(125, 217, 158, 0.58);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.member-card[draggable="true"],
.gallery-item[draggable="true"] {
    cursor: grab;
}

.member-card.is-dragging,
.gallery-item.is-dragging {
    cursor: grabbing;
    opacity: 0.48;
}

.member-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 174, 156, 0.72);
    background: rgba(48, 22, 24, 0.88);
    color: #ffae9c;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.member-delete:hover,
.member-delete:focus-visible {
    background: #a94f48;
    border-color: #ffc5b7;
    color: #fff7f3;
}

.ally-logo-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    margin: 14px 14px 0;
    border: 1px dashed rgba(125, 217, 158, 0.45);
    background: rgba(15, 26, 23, 0.42);
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
}

.ally-logo-slot img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: contain;
    padding: 14px;
}

.member-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(125, 217, 158, 0.07), transparent 45%),
        linear-gradient(0deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
}

.member-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(74, 155, 127, 0.2);
}

.member-name {
    font-family: "Bahnschrift SemiCondensed", Impact, Haettenschweiler, sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.member-role {
    color: var(--primary-bright);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.member-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    background: rgba(15, 26, 23, 0.6);
    border: 1px solid rgba(74, 155, 127, 0.3);
    color: var(--text-soft);
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.member-body {
    padding: 14px 18px 18px;
}

.member-characters {
    list-style: none;
    display: grid;
    gap: 10px;
}

.member-characters li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(15, 26, 23, 0.55);
    border: 1px solid rgba(74, 155, 127, 0.5);
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.character-name {
    color: var(--text-main);
}

.character-class {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
}

.members-manage {
    margin-top: 24px;
    padding: 22px;
    background: linear-gradient(145deg, rgba(58, 107, 82, 0.24), rgba(15, 26, 23, 0.7));
    border: 1px solid rgba(74, 155, 127, 0.26);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.members-manage h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.members-manage p {
    color: var(--text-soft);
}

.admin-panel {
    margin-top: 24px;
    padding: 22px;
    background: linear-gradient(145deg, rgba(58, 107, 82, 0.24), rgba(15, 26, 23, 0.7));
    border: 1px solid rgba(125, 217, 158, 0.42);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.admin-panel-heading h3 {
    color: var(--text-main);
    font-size: 1.3rem;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.admin-form-grid label {
    display: grid;
    gap: 6px;
    color: var(--text-soft);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-form-grid input,
.admin-form-grid select {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid rgba(106, 155, 127, 0.4);
    background: rgba(15, 26, 23, 0.72);
    color: var(--text-main);
    font: inherit;
}

.admin-field-wide {
    grid-column: 1 / -1;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.admin-form-status {
    color: var(--primary-bright);
    font-size: 0.9rem;
}

.admin-form-status.error {
    color: #ffae9c;
}

.hidden {
    display: none !important;
}

.trait-list {
    list-style: none;
    display: grid;
    gap: 12px;
    color: var(--text-soft);
}

.trait-list li {
    padding-left: 18px;
    position: relative;
}

.trait-list li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--primary-bright);
    transform: rotate(45deg);
}

.warning-card {
    border-color: rgba(74, 155, 127, 0.44);
    background: linear-gradient(145deg, rgba(29, 52, 42, 0.96), rgba(18, 31, 25, 0.98));
}

.contact-panel {
    padding: 34px;
}

.contact-callout {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 22px;
    padding: 18px 20px;
    background: rgba(15, 26, 23, 0.66);
    border: 1px solid rgba(74, 155, 127, 0.34);
    clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

.contact-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-callout strong {
    font-family: "Bahnschrift SemiCondensed", Impact, Haettenschweiler, sans-serif;
    font-size: 1.4rem;
    color: var(--primary-bright);
    letter-spacing: 0.04em;
}

.contact-note {
    margin-top: 18px;
}

.auth-card {
    max-width: 560px;
    padding: 28px;
    background: linear-gradient(145deg, rgba(58, 107, 82, 0.28), rgba(15, 26, 23, 0.8));
    border: 1px solid rgba(74, 155, 127, 0.3);
    box-shadow: var(--shadow);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.user-status {
    color: var(--text-main);
    font-size: 0.98rem;
}

.login-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.login-form label {
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.login-form input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(106, 155, 127, 0.4);
    background: rgba(15, 26, 23, 0.72);
    color: var(--text-main);
    outline: none;
}

.login-form input:focus {
    border-color: rgba(125, 217, 158, 0.75);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.auth-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#btnLogout.hidden {
    display: none;
}

.auth-back-link {
    margin-top: 12px;
    color: var(--text-soft);
}

.auth-back-link a {
    color: var(--primary-bright);
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(7, 6, 8, 0.92);
    z-index: 50;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: 0;
    color: var(--text-main);
    font-size: 3rem;
    cursor: pointer;
}

.lightbox-content,
.lightbox-video {
    width: min(100%, 980px);
    max-height: 88vh;
    border: 1px solid rgba(74, 155, 127, 0.5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-video {
    aspect-ratio: 16 / 9;
}

.footer {
    border-top: 1px solid rgba(74, 155, 127, 0.3);
    background: rgba(9, 15, 13, 0.82);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 76px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

@media (max-width: 920px) {
    .hero-panel,
    .priority-panel,
    .feature-grid,
    .doctrine-grid,
    .recruit-grid,
    .members-grid,
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .hero-emblem-frame {
        justify-self: start;
        width: min(100%, 320px);
    }

    .activities-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .nav-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 0;
    }

    .brand-logo {
        width: 64px;
        height: 64px;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-panel,
    .priority-panel,
    .contact-panel {
        padding: 24px;
    }

    h1 {
        max-width: 100%;
    }

    .priority-list {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        padding: 16px 0;
    }

    .activities-list {
        grid-template-columns: 1fr;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-field-wide {
        grid-column: auto;
    }
}
