:root {
    --bg: #07111f;
    --bg-soft: #0c1727;
    --bg-strong: #101d31;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(106, 213, 184, 0.28);
    --text: #f3f7ff;
    --muted: #a2b4d0;
    --accent: #6ad5b8;
    --accent-strong: #9be6d2;
    --gold: #f2c97c;
    --danger: #ff8c8c;
    --header-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(106, 213, 184, 0.1), transparent 26%),
        radial-gradient(circle at top right, rgba(242, 201, 124, 0.08), transparent 18%),
        linear-gradient(180deg, #040a13 0%, var(--bg) 45%, #050b14 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 92%);
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    width: 100%;
    margin: 0;
    padding: 24px 24px 48px;
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 20px;
    margin-bottom: 28px;
    border: 1px solid rgba(153, 181, 255, 0.16);
    border-radius: 22px;
    background: rgba(4, 10, 20, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: var(--header-shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-kicker,
.eyebrow,
.section-tag,
.news-date,
.timeline-date {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
}

.brand-title,
h1,
h2,
h3 {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    letter-spacing: -0.03em;
}

.brand-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.site-logo {
    flex: 0 0 auto;
}

.site-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-logo-header {
    width: 60px;
    min-width: 60px;
}

.site-logo-hero {
    width: min(100%, 360px);
    margin: 0 auto;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.main-nav a,
.auth-links a,
.text-link,
.footer-links a {
    color: var(--muted);
    transition: color 180ms ease, transform 180ms ease;
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link.is-active {
    color: var(--text);
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
}

.main-nav a:hover,
.auth-links a:hover,
.text-link:hover,
.footer-links a:hover {
    color: var(--accent-strong);
    transform: translateY(-1px);
}

.header-actions,
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.button-primary {
    color: #041019;
    background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
    box-shadow: 0 10px 30px rgba(106, 213, 184, 0.18);
}

.button-secondary,
.button-ghost {
    border-color: var(--line);
    background: transparent;
}

.button-danger {
    color: #ffeaea;
    border-color: rgba(255, 140, 140, 0.25);
    background: rgba(110, 17, 17, 0.34);
}

main {
    display: grid;
    gap: 32px;
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: center;
}

.hero-single {
    grid-template-columns: 1fr;
}

.page-block {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero-copy {
    max-width: 720px;
}

.hero-copy h1 {
    margin: 12px 0 18px;
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 0.95;
}

.page-intro h1,
.post-panel h1 {
    margin: 8px 0 12px;
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    line-height: 1.05;
}

.about-intro {
    max-width: 860px;
}

.about-intro h1 {
    margin: 8px 0 12px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.05;
}

.about-centered {
    margin-left: auto;
    margin-right: auto;
}

.hero-text,
.section-heading p,
.auth-intro,
.setup-note,
.hero-logo-note,
.panel p,
.panel li,
.plain-section p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-card,
.page-surface,
.panel,
.legal-layout,
.auth-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--bg-soft);
    box-shadow: none;
}

.hero-card {
    background: linear-gradient(180deg, var(--bg-strong), var(--bg-soft));
}

.gallery-card {
    display: grid;
    gap: 18px;
    align-content: start;
}

.gallery-card-showcase {
    margin-top: 78px;
    padding-bottom: 22px;
}

.gallery-card-head h2 {
    margin: 8px 0 10px;
}

.gallery-showcase {
    display: grid;
    gap: 16px;
}

.gallery-showcase-stack {
    position: relative;
    aspect-ratio: 16 / 9;
    height: auto;
    padding: 0;
    transition: height 320ms ease;
    overflow: hidden;
}

.gallery-showcase-item {
    position: absolute;
    inset: 0;
    margin: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 65%),
        rgba(255, 255, 255, 0.03);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.96);
    transition: opacity 420ms ease, transform 420ms ease, filter 420ms ease;
    pointer-events: none;
}

.gallery-showcase-item img {
    position: absolute;
    display: block;
    max-width: none;
    max-height: none;
}

.gallery-showcase-item.is-active {
    z-index: 3;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: none;
}

.gallery-showcase-item.is-next {
    z-index: 2;
    opacity: 0.72;
    transform: translate3d(24px, 18px, 0) scale(0.94);
    filter: brightness(0.72);
}

.gallery-showcase-item.is-third {
    z-index: 1;
    opacity: 0.38;
    transform: translate3d(40px, 30px, 0) scale(0.9);
    filter: brightness(0.48);
}

.gallery-showcase-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease;
}

.gallery-dot.is-active {
    background: linear-gradient(135deg, var(--accent), var(--gold));
    transform: scale(1.15);
}

.gallery-empty {
    display: grid;
    place-items: center;
    min-height: 280px;
    padding: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.hero-logo-card {
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    gap: 18px;
}

.content-section,
.dashboard-layout,
.admin-tabs-panel {
    display: grid;
    gap: 18px;
}

.section-heading h2,
.panel h2,
.panel h3,
.auth-card h1 {
    margin: 8px 0 10px;
    line-height: 1.15;
}

.panel h2,
.auth-card h1 {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.panel h3 {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}

.news-grid,
.timeline,
.contact-grid,
.admin-layout {
    display: grid;
    gap: 24px;
}

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

.news-grid-wide,
.contact-grid,
.admin-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: stretch;
}

.about-flow {
    display: grid;
    gap: 28px;
}

.about-flow-quiet {
    gap: 24px;
}

.about-block {
    max-width: 860px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.about-block-narrow {
    max-width: 740px;
}

.about-block-wide {
    max-width: 980px;
}

.about-block h2 {
    margin: 8px 0 12px;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.about-list {
    display: grid;
    gap: 16px;
    max-width: 980px;
}

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

.about-list-item {
    padding: 0 18px 0 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.about-list-item:last-child {
    border-right: 0;
    padding-right: 0;
}

.about-list-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.about-quote {
    max-width: 760px;
    padding-left: 0;
    border-left: 0;
    color: var(--accent-strong);
    font-size: 1.08rem;
    line-height: 1.75;
    text-align: center;
}

.about-story-hero {
    display: grid;
    gap: 22px;
}

.about-story-centered,
.about-rhythm-centered {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.about-story-copy {
    max-width: 760px;
}

.about-story-copy h1 {
    margin: 10px 0 14px;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    line-height: 1.02;
    text-align: center;
}

.about-story-copy .section-tag,
.about-story-copy .hero-text {
    text-align: center;
}

.about-story-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.about-story-facts span,
.about-rhythm-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
}

.about-longform {
    display: grid;
    gap: 22px;
}

.about-longform-centered {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.about-longform-block {
    padding: 0 0 22px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.about-longform-block:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.about-longform-block p,
.about-rhythm-head p,
.about-closing p {
    margin-bottom: 0;
}

.about-longform-block h2,
.about-rhythm-head h2 {
    margin: 8px 0 12px;
    font-size: clamp(1.3rem, 2.1vw, 1.9rem);
    line-height: 1.12;
}

.about-rhythm {
    display: grid;
    gap: 18px;
}

.about-rhythm-head {
    max-width: 820px;
}

.about-rhythm-head-centered {
    margin: 0 auto;
    text-align: center;
}

.about-rhythm-item {
    padding: 18px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.about-rhythm-item h3 {
    margin: 10px 0 0;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--text);
    font-weight: 500;
}

.about-rhythm-text {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
    text-align: center;
}

.about-rhythm-text p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.about-closing {
    max-width: 860px;
    margin: 0 auto;
    padding: 14px 0 0;
    border-top: 1px solid var(--line);
    text-align: center;
}

.about-closing p {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--accent-strong);
}

.quote-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.plain-section {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.plain-section + .plain-section {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.legal-layout {
    display: grid;
    gap: 22px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 4px 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.auth-body {
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-wrapper {
    width: min(560px, 100%);
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}

.alert-error,
.alert-success {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 16px;
}

.alert-error {
    border: 1px solid rgba(255, 140, 140, 0.25);
    color: #ffd7d7;
    background: rgba(110, 17, 17, 0.34);
}

.alert-success {
    border: 1px solid rgba(106, 213, 184, 0.25);
    color: #dafdf3;
    background: rgba(12, 82, 62, 0.34);
}

.welcome-panel {
    padding: 0;
    background: transparent;
    border: 0;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 6px 0 2px;
}

.admin-topbar-copy h1 {
    margin: 4px 0 6px;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1;
}

.admin-topbar-copy p:last-child {
    margin: 0;
    color: var(--muted);
}

.admin-topbar-action {
    white-space: nowrap;
}

.welcome-panel h1 {
    margin: 0 0 6px;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.welcome-panel p {
    margin: 0;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    font-size: 0.94rem;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.admin-tab:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.admin-tab.is-active {
    color: #041019;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
}

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

.admin-form input,
.admin-form textarea,
.admin-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    color: var(--text);
    background: #121d2f;
    font: inherit;
}

.admin-form textarea {
    resize: vertical;
    min-height: 108px;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-select:focus {
    outline: 2px solid rgba(106, 213, 184, 0.22);
    outline-offset: 2px;
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.admin-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 48px;
    line-height: 1.35;
    cursor: pointer;
}

.admin-select option {
    color: #f3f7ff;
    background: #121d2f;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 4px;
    color: var(--muted);
}

.checkbox-row input {
    width: 18px;
    height: 18px;
}

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

.user-management-layout {
    gap: 18px;
}

.user-management-layout > .panel {
    width: 100%;
    padding: 26px 28px;
}

.admin-post-list,
.admin-user-list {
    display: grid;
    gap: 14px;
}

.admin-stack-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.admin-edit-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.admin-edit-toggle {
    padding: 0;
    overflow: hidden;
}

.admin-edit-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    cursor: pointer;
    list-style: none;
}

.admin-edit-summary::-webkit-details-marker {
    display: none;
}

.admin-edit-summary p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-edit-toggle form,
.admin-edit-toggle .gallery-admin-card-body,
.admin-edit-toggle > p,
.admin-edit-toggle > a,
.admin-edit-toggle > .admin-card-actions {
    margin: 0 14px 14px;
}

.admin-edit-toggle[open] .admin-edit-summary {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.gallery-admin-summary {
    border-bottom: 0;
}

.admin-edit-card-compact p {
    margin: 0;
}

.admin-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

body.modal-open {
    overflow: hidden;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}

.admin-modal[hidden] {
    display: none !important;
}

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 12, 22, 0.72);
    backdrop-filter: blur(10px);
}

.admin-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.admin-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.legacy-user-editors[hidden] {
    display: none;
}

.legacy-user-cards[hidden] {
    display: none;
}

.admin-users-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    padding: 2px 0 4px;
}

.admin-users-search {
    flex: 1 1 320px;
}

.admin-users-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    color: var(--text);
    background: #121d2f;
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.admin-users-search input::placeholder {
    color: var(--muted);
}

.admin-users-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-users-filters .select-wrap {
    min-width: 150px;
}

.admin-user-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
        rgba(10, 17, 30, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.admin-user-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1080px;
}

.admin-user-table th,
.admin-user-table td {
    padding: 18px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.admin-user-table th {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.015);
}

.admin-user-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-user-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.admin-user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-user-actions .button-secondary,
.admin-users-filters .button-ghost {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.admin-user-actions .button-secondary:hover,
.admin-users-filters .button-ghost:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.09);
}

.admin-user-table td strong {
    font-size: 1rem;
}

.table-subtext {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.admin-user-table td:first-child {
    color: var(--muted);
    width: 88px;
    white-space: nowrap;
}

.admin-user-table td:nth-child(5),
.admin-user-table td:nth-child(6) {
    white-space: nowrap;
}

.admin-user-item,
.admin-post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.admin-user-item:first-child,
.admin-post-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.admin-user-meta,
.admin-post-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.role-badge {
    text-transform: capitalize;
}

.inline-form {
    margin: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid rgba(242, 201, 124, 0.25);
    border-radius: 999px;
    color: var(--gold);
    background: rgba(242, 201, 124, 0.08);
    white-space: nowrap;
    font-size: 0.88rem;
}

.status-badge.is-published {
    border-color: rgba(106, 213, 184, 0.25);
    color: var(--accent-strong);
    background: rgba(106, 213, 184, 0.08);
}

.post-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.post-image-large {
    max-height: 100%;
}

.post-image-frame {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 240px;
    aspect-ratio: 16 / 10;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background:
        radial-gradient(circle at top, rgba(106, 213, 184, 0.08), transparent 45%),
        rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.post-image-frame-large {
    min-height: 320px;
    aspect-ratio: 16 / 9;
    margin-bottom: 26px;
    padding: 20px;
}

.news-card {
    display: grid;
    align-content: start;
}

.news-card-body {
    display: grid;
    gap: 12px;
}

.news-card-body h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.1;
}

.news-card-body p {
    margin: 0;
}

.post-panel {
    padding: 34px;
}

.post-panel-copy {
    max-width: 860px;
}

.post-panel-copy h1 {
    margin-top: 10px;
}

.post-meta {
    color: var(--gold);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
}

.post-content {
    color: var(--muted);
    line-height: 1.8;
    margin-top: 22px;
    font-size: 1.02rem;
}

.website-panel {
    gap: 18px;
}

.website-panel-compact {
    padding: 18px;
}

.website-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.upload-status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    padding: 12px 14px;
    border: 1px solid rgba(106, 213, 184, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.upload-status-card p {
    margin: 4px 0 0;
}

.upload-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(106, 213, 184, 0.12);
    flex: 0 0 auto;
}

.upload-dropzone {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px dashed rgba(106, 213, 184, 0.3);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(106, 213, 184, 0.1), transparent 35%),
        rgba(255, 255, 255, 0.02);
    cursor: pointer;
}

.upload-dropzone input[type="file"] {
    display: none;
}

.upload-dropzone-compact {
    padding: 16px 18px;
    gap: 6px;
}

.upload-dropzone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #041019;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--gold));
}

.upload-dropzone-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.upload-dropzone-text {
    color: var(--muted);
    line-height: 1.6;
}

.upload-inline-fields {
    display: flex;
    align-items: end;
    gap: 12px;
}

.checkbox-row-compact {
    min-height: 52px;
    margin: 0;
}

.selected-files {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-file-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.92rem;
}

.panel-intro {
    margin-top: -4px;
}

.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.gallery-admin-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.gallery-admin-card img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.focus-picker-stage {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    display: inline-block;
    width: min(100%, 500px);
    aspect-ratio: 16 / 9;
    cursor: crosshair;
}

.crop-focus-marker {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: rgba(106, 213, 184, 0.28);
    box-shadow: 0 0 0 5px rgba(4, 10, 20, 0.34);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.focus-picker-stage img {
    position: absolute;
    display: block;
    max-width: none;
    max-height: none;
}

.crop-selection-frame {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    background: transparent;
    box-shadow: 0 0 0 1px rgba(106, 213, 184, 0.22) inset;
    pointer-events: none;
}

.crop-selection-frame::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.45);
    border-radius: 10px;
}

.gallery-admin-card-body {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.gallery-admin-card-body p {
    margin: 0;
}

.gallery-admin-meta,
.mail-setup-grid {
    display: grid;
    gap: 12px;
}

.gallery-admin-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-tight {
    gap: 10px;
    margin-top: 0;
}

.focus-picker {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.focus-picker-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.focus-coordinate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.92rem;
}

.focus-presets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.focus-preset-button {
    min-height: 38px;
    padding: 0 14px;
}

.focus-picker-help {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

.focus-zoom-row {
    display: grid;
    gap: 8px;
    width: min(100%, 320px);
}

.focus-zoom-row label {
    color: var(--muted);
    font-size: 0.92rem;
}

.focus-zoom-row input[type="range"] {
    width: 100%;
    padding: 0;
}

.gallery-admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-page-item {
    display: grid;
    place-items: center;
    min-height: 240px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
}

.gallery-page-item img {
    display: block;
    max-width: 100%;
    max-height: 360px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.mail-setup-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
}

.event-signup-form {
    margin-top: 16px;
}

.admin-inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.inline-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.88rem;
}

.admin-checkbox-list {
    gap: 10px;
}

.checkbox-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-chip input {
    margin: 0;
}

.admin-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.calendar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.calendar-weekday {
    color: var(--gold);
    text-align: center;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calendar-day {
    min-height: 112px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    align-content: start;
    gap: 8px;
}

.calendar-day.is-empty {
    background: transparent;
    border-style: dashed;
}

.calendar-day.has-event {
    border-color: rgba(106, 213, 184, 0.24);
}

.calendar-event-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 6px 8px;
    border-radius: 999px;
    color: #041019;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mail-setup-item {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.mail-setup-item span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .site-header,
    .hero,
    .split-layout,
    .contact-grid,
    .admin-layout,
    .news-grid,
    .timeline,
    .news-grid-wide,
    .about-list-grid,
    .about-story-hero {
        grid-template-columns: 1fr;
    }

    .admin-topbar,
    .website-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .upload-inline-fields {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-card-showcase {
        margin-top: 8px;
    }

    .gallery-showcase-stack {
        aspect-ratio: 16 / 9;
        height: auto;
        padding-right: 24px;
    }

    .gallery-admin-grid,
    .mail-setup-grid,
    .calendar-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-list-item {
        padding: 0 0 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .about-list-item:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .brand {
        align-items: flex-start;
    }

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

    .header-actions {
        width: 100%;
    }

    .header-actions .button {
        flex: 1 1 auto;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 16px 12px 32px;
    }

    .admin-modal {
        padding: 12px;
    }

    .admin-users-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-users-search,
    .admin-users-filters,
    .admin-users-filters .select-wrap {
        width: 100%;
    }

    .hero-card,
    .page-surface,
    .panel,
    .auth-card,
    .legal-layout {
        padding: 22px;
        border-radius: 16px;
    }

    .site-logo-header {
        width: 50px;
        min-width: 50px;
    }

    .hero-copy h1 {
        font-size: clamp(2.3rem, 14vw, 4rem);
    }

    .page-intro h1,
    .post-panel h1,
    .about-intro h1 {
        font-size: clamp(1.55rem, 8vw, 2.1rem);
    }

    .main-nav {
        gap: 12px;
    }

    .gallery-showcase-stack {
        aspect-ratio: 16 / 9;
        height: auto;
        padding-right: 18px;
    }

    .gallery-showcase-item.is-next {
        transform: translate3d(12px, 12px, 0) scale(0.95);
    }

    .gallery-showcase-item.is-third {
        transform: translate3d(20px, 18px, 0) scale(0.92);
    }

    .gallery-admin-grid,
    .mail-setup-grid,
    .gallery-admin-meta,
    .calendar-grid,
    .gallery-page-grid {
        grid-template-columns: 1fr;
    }

    .calendar-head,
    .admin-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-admin-actions {
        flex-direction: column;
    }

    .admin-post-item,
    .admin-user-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-user-meta,
    .admin-post-actions {
        justify-content: flex-start;
    }

    .button,
    .header-actions .button,
    .hero-actions .button {
        width: 100%;
    }

    .focus-presets .button {
        width: auto;
    }
}
