* {
    box-sizing: border-box;
}

:root {
    --bg: #eef8eb;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-solid: #ffffff;
    --text: #143326;
    --muted: #4e6b5d;
    --border: rgba(20, 51, 38, 0.14);
    --primary: #1c7c3f;
    --primary-strong: #0f4f27;
    --accent: #ddb325;
    --accent-soft: #fff2be;
    --shadow: 0 22px 60px rgba(16, 76, 37, 0.16);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(221, 179, 37, 0.2), transparent 30%),
        radial-gradient(circle at top right, rgba(28, 124, 63, 0.14), transparent 26%),
        linear-gradient(180deg, #fffef1 0%, var(--bg) 100%);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

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

.site-header,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 250, 245, 0.82);
    border-bottom: 1px solid rgba(19, 32, 51, 0.08);
}

.header-inner,
.admin-header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-family: Georgia, "Times New Roman", serif;
}

.brand-mark {
    width: 78px;
    height: 78px;
    border-radius: 16px;
    object-fit: contain;
    object-position: center;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(20, 51, 38, 0.08);
    box-shadow: var(--shadow);
}

.brand-link,
.logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo-img {
    width: 78px;
    height: 78px;
    border-radius: 16px;
    object-fit: contain;
    object-position: center;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(20, 51, 38, 0.08);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.logo-text {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    color: var(--text);
}

.brand strong {
    display: block;
    font-size: 1.08rem;
    letter-spacing: 0.03em;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
}

.site-nav,
.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.mobile-nav-toggle,
.site-nav-overlay {
    display: none;
}

.mobile-nav-toggle {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    width: 46px;
    height: 46px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s ease;
}

.mobile-nav-toggle[aria-expanded="true"] {
    background: rgba(28, 124, 63, 0.1);
    border-color: rgba(28, 124, 63, 0.25);
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-quick-actions {
    display: none;
}

.floating-donate-card {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 85;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 56px;
    padding: 0.95rem 1.15rem;
    border-radius: 18px;
    border: 1px solid rgba(20, 51, 38, 0.12);
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-strong);
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(16, 76, 37, 0.14);
    backdrop-filter: blur(14px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.floating-donate-card:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 22px 42px rgba(16, 76, 37, 0.18);
}

.site-nav a {
    color: var(--muted);
    font-weight: 700;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    transition: 0.2s ease;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    color: var(--muted);
    font-weight: 700;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    transition: 0.2s ease;
    background: transparent;
    border: 0;
}

.dropdown:hover .dropdown-toggle {
    color: var(--text);
    background: rgba(19, 32, 51, 0.06);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 220px;
    padding: 0.4rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fffef7;
    box-shadow: var(--shadow);
    display: none;
    z-index: 20;
}

.dropdown-menu a {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    color: var(--text);
}

.dropdown-menu a:hover {
    background: rgba(28, 124, 63, 0.12);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown:focus-within .dropdown-menu {
    display: block;
}

.site-nav a:hover,
.site-nav .nav-button,
.admin-chip {
    color: var(--text);
    background: rgba(19, 32, 51, 0.06);
}

.nav-button,
.btn {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.95rem 1.35rem;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(19, 32, 51, 0.08);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
}

.btn-secondary {
    color: var(--text);
    background: rgba(19, 32, 51, 0.08);
}

.btn-block {
    width: 100%;
}

.hero-section,
.section-block {
    padding: 4.5rem 0;
}

.hero-grid,
.donate-layout,
.contact-layout,
.info-grid,
.admin-grid.two-column {
    display: grid;
    gap: 1.5rem;
}

.hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.9rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(197, 106, 59, 0.12);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
    font-family: Georgia, "Times New Roman", serif;
}

h1 {
    font-size: clamp(2.7rem, 5vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

h3 {
    font-size: 1.35rem;
}

.hero-copy,
.section-heading p,
.side-card p,
.info-card p,
.campaign-card p,
.form-card p {
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.stat-grid,
.campaign-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.stat-card,
.hero-card,
.campaign-card,
.info-card,
.form-card,
.side-card,
.thank-you-card,
.admin-panel,
.mini-card,
.notice {
    background: var(--surface);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 1.15rem;
}

.stat-card strong,
.admin-stat strong {
    display: block;
    font-size: 1.6rem;
    color: var(--primary-strong);
}

.hero-card {
    overflow: hidden;
}

.hero-card img {
    aspect-ratio: 4 / 4.2;
    object-fit: cover;
}

.hero-card-body {
    padding: 1.15rem 1.25rem 1.3rem;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 1.4rem;
}

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

.campaign-card {
    padding: 1.35rem;
}

.campaign-card-head {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: rgba(19, 32, 51, 0.08);
    font-size: 0.78rem;
    font-weight: 800;
}

.pill-accent {
    background: var(--accent-soft);
    color: var(--accent);
}

.progress-line {
    height: 10px;
    background: rgba(19, 32, 51, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-line span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #f2b58d);
}

.campaign-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.section-muted {
    background: linear-gradient(180deg, rgba(28, 124, 63, 0.03), rgba(221, 179, 37, 0.09));
}

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

.about-grid {
    align-items: start;
}

.about-grid .info-card:first-child h1 {
    font-size: clamp(2.5rem, 4.2vw, 4.3rem);
    line-height: 1.02;
    max-width: 11ch;
    text-wrap: balance;
}

.about-grid .info-card h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.3rem);
    line-height: 1.08;
}

.about-grid .info-card p,
.about-grid .info-card li {
    font-size: 1rem;
    line-height: 1.72;
}

.info-card,
.form-card,
.side-card,
.thank-you-card,
.admin-panel {
    padding: 1.5rem;
}

.number-list,
.bullet-list {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
}

.donate-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.6rem 1.8rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary), #2d9e54);
    color: #fff;
    box-shadow: var(--shadow);
}

.donate-banner .btn-primary {
    background: #ffef9b;
    color: #295b2e;
}

.site-footer {
    padding: 1.5rem 0 2rem;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.donate-layout,
.contact-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.55fr);
    align-items: start;
}

.donation-form,
.stack-form {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.donation-form input:not([type="checkbox"]),
.donation-form textarea,
.donation-form select,
.stack-form input:not([type="checkbox"]),
.stack-form textarea,
.stack-form select,
.inline-edit-form input:not([type="checkbox"]),
.inline-edit-form textarea,
.inline-edit-form select,
.inline-form input:not([type="checkbox"]),
.inline-form select {
    width: 100%;
    border: 1px solid rgba(19, 32, 51, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.95rem 1rem;
    color: var(--text);
    outline: none;
}

.donation-form input:not([type="checkbox"]):focus,
.donation-form textarea:focus,
.donation-form select:focus,
.stack-form input:not([type="checkbox"]):focus,
.stack-form textarea:focus,
.stack-form select:focus,
.inline-edit-form input:not([type="checkbox"]):focus,
.inline-edit-form textarea:focus,
.inline-edit-form select:focus,
.inline-form input:not([type="checkbox"]):focus,
.inline-form select:focus {
    border-color: rgba(197, 106, 59, 0.65);
    box-shadow: 0 0 0 4px rgba(197, 106, 59, 0.12);
}

.donation-form label,
.stack-form label {
    font-weight: 800;
    color: var(--primary-strong);
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.amount-pill {
    position: relative;
    display: block;
    cursor: pointer;
}

.amount-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.amount-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font-weight: 900;
    transition: 0.2s ease;
}

.amount-pill input:checked + span {
    background: var(--primary);
    color: #fff;
    border-color: transparent;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    color: var(--muted);
}

.side-panel {
    display: grid;
    gap: 1rem;
}

.notice {
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.notice-success {
    border-color: rgba(61, 140, 72, 0.3);
    background: rgba(61, 140, 72, 0.1);
}

.notice-error {
    border-color: rgba(177, 58, 58, 0.28);
    background: rgba(177, 58, 58, 0.1);
}

.thank-you-card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.receipt-box {
    text-align: left;
    margin: 1.25rem auto;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-lg);
    background: rgba(19, 32, 51, 0.04);
    border: 1px solid rgba(19, 32, 51, 0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-stat {
    padding: 1.1rem 1.2rem;
}

.admin-main .admin-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
}

.full-span {
    grid-column: 1 / -1;
}

.admin-panel h2,
.admin-panel h3 {
    margin-bottom: 0.2rem;
}

.admin-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.mini-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.mini-card {
    padding: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.mini-card p,
.mini-card small {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.inline-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.inline-edit-form {
    display: grid;
    gap: 0.45rem;
    min-width: min(520px, 100%);
}

.inline-edit-form label {
    margin-top: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.drop-zone {
    border: 2px dashed rgba(20, 51, 38, 0.25);
    border-radius: 16px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
    cursor: pointer;
}

.drop-zone.dragging {
    border-color: var(--primary);
    background: rgba(28, 124, 63, 0.09);
}

.drop-zone p {
    margin: 0;
}

.drop-zone input[type="file"] {
    margin-top: 0.65rem;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.data-table th,
.data-table td {
    padding: 0.85rem 0.7rem;
    border-bottom: 1px solid rgba(19, 32, 51, 0.08);
    vertical-align: top;
    text-align: left;
}

.data-table th {
    color: var(--primary-strong);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.admin-chip {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-weight: 800;
}

.admin-chip.muted {
    color: var(--muted);
    background: rgba(19, 32, 51, 0.04);
}

.muted {
    color: var(--muted);
}

.work-section-block {
    margin-top: 2rem;
}

.work-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.work-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.work-card-empty {
    padding: 1rem;
    color: var(--muted);
}

.work-preview {
    background: #f3faef;
}

.work-preview img,
.work-preview video {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.work-content {
    padding: 0.9rem 1rem 1rem;
}

.work-content h4 {
    margin: 0 0 0.4rem;
}

.work-content p {
    margin: 0;
    color: var(--muted);
}

.our-site-stack {
    display: grid;
    gap: 1.25rem;
}

.site-feature-card {
    overflow: visible;
}

.site-content {
    display: grid;
    gap: 1.15rem;
}

.site-head {
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(28, 124, 63, 0.1), rgba(221, 179, 37, 0.16));
    border: 1px solid rgba(20, 51, 38, 0.12);
}

.site-head h3 {
    margin-bottom: 0.5rem;
}

.site-head p {
    margin: 0.4rem 0 0;
}

.site-history-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.95rem;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    padding: 1rem;
}

.site-history-timeline {
    position: relative;
    display: grid;
    gap: 0.95rem;
}

.site-history-timeline::before {
    content: "";
    position: absolute;
    top: 0.9rem;
    bottom: 0.9rem;
    left: 1.15rem;
    width: 2px;
    background: linear-gradient(180deg, rgba(28, 124, 63, 0.3), rgba(221, 179, 37, 0.28));
}

.site-history-marker {
    position: relative;
    z-index: 1;
}

.site-history-marker span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.3rem;
    min-height: 2.3rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15, 79, 39, 0.22);
}

.site-history-body {
    min-width: 0;
}

.site-history-card h4 {
    margin-bottom: 0.55rem;
}

.site-history-card p {
    margin: 0.55rem 0 0;
    color: var(--muted);
}

.site-specs {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
}

.site-specs h4 {
    margin-bottom: 0.85rem;
}

.site-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.site-spec-row {
    border: 1px solid rgba(20, 51, 38, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.75rem;
}

.site-spec-row strong,
.site-spec-row span {
    display: block;
}

.site-spec-row strong {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--primary-strong);
}

.site-photo-block,
.site-digitization-checklist {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
}

.site-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0.7rem;
}

.site-photo-card {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(20, 51, 38, 0.12);
    background: #fff;
}

.site-photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.site-photo-card figcaption {
    padding: 0.55rem 0.65rem 0.7rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.theme-toggle-fab {
    display: none !important;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 85;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    min-height: 56px;
    padding: 0.9rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(20, 51, 38, 0.14);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(16, 76, 37, 0.14);
    backdrop-filter: blur(14px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.theme-toggle-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(16, 76, 37, 0.18);
}

.theme-toggle-inline {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    border-radius: 999px;
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.theme-toggle-inline:hover {
    background: rgba(28, 124, 63, 0.1);
    border-color: rgba(28, 124, 63, 0.28);
}

.theme-toggle-header {
    flex-shrink: 0;
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(221, 179, 37, 0.1), transparent 30%),
        radial-gradient(circle at top right, rgba(28, 124, 63, 0.1), transparent 26%),
        linear-gradient(180deg, #0f1713 0%, #111c16 100%);
    color: #ebf5ef;
}

html[data-theme="dark"] {
    --bg: #111c16;
    --surface: rgba(24, 36, 30, 0.88);
    --surface-solid: #1a2921;
    --text: #ebf5ef;
    --muted: #b9cfc2;
    --border: rgba(180, 210, 192, 0.2);
    --primary: #55b97a;
    --primary-strong: #9de0b8;
    --accent: #f4d57a;
    --accent-soft: rgba(244, 213, 122, 0.2);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .admin-header {
    background: rgba(16, 24, 20, 0.88);
    border-bottom-color: rgba(180, 210, 192, 0.22);
}

html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .logo-img,
html[data-theme="dark"] .mobile-nav-toggle,
html[data-theme="dark"] .floating-donate-card,
html[data-theme="dark"] .theme-toggle-fab,
html[data-theme="dark"] .theme-toggle-inline {
    background: rgba(24, 36, 30, 0.95);
    border-color: rgba(180, 210, 192, 0.22);
    color: #ebf5ef;
}

html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav .nav-button,
html[data-theme="dark"] .admin-chip,
html[data-theme="dark"] .dropdown:hover .dropdown-toggle {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .site-nav,
html[data-theme="dark"] .mobile-quick-actions {
    background: rgba(16, 25, 20, 0.96);
    border-color: rgba(180, 210, 192, 0.2);
}

html[data-theme="dark"] .dropdown-menu a:hover {
    background: rgba(85, 185, 122, 0.22);
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .progress-line,
html[data-theme="dark"] .receipt-box {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .donation-form input:not([type="checkbox"]),
html[data-theme="dark"] .donation-form textarea,
html[data-theme="dark"] .donation-form select,
html[data-theme="dark"] .stack-form input:not([type="checkbox"]),
html[data-theme="dark"] .stack-form textarea,
html[data-theme="dark"] .stack-form select,
html[data-theme="dark"] .inline-edit-form input:not([type="checkbox"]),
html[data-theme="dark"] .inline-edit-form textarea,
html[data-theme="dark"] .inline-edit-form select,
html[data-theme="dark"] .inline-form input:not([type="checkbox"]),
html[data-theme="dark"] .inline-form select {
    background: rgba(12, 20, 16, 0.82);
    border-color: rgba(180, 210, 192, 0.26);
    color: #ebf5ef;
}

html[data-theme="dark"] .amount-pill span {
    background: rgba(12, 20, 16, 0.82);
    border-color: rgba(180, 210, 192, 0.26);
    color: #ebf5ef;
}

html[data-theme="dark"] .drop-zone,
html[data-theme="dark"] .site-history-card,
html[data-theme="dark"] .site-specs,
html[data-theme="dark"] .site-photo-block,
html[data-theme="dark"] .site-digitization-checklist,
html[data-theme="dark"] .site-spec-row,
html[data-theme="dark"] .site-photo-card,
html[data-theme="dark"] .work-preview {
    background: rgba(20, 31, 25, 0.9);
    border-color: rgba(180, 210, 192, 0.2);
}

html[data-theme="dark"] .data-table th,
html[data-theme="dark"] .site-spec-row strong,
html[data-theme="dark"] .donation-form label,
html[data-theme="dark"] .stack-form label {
    color: #cdeed9;
}

html[data-theme="dark"] .data-table td,
html[data-theme="dark"] .data-table th {
    border-bottom-color: rgba(180, 210, 192, 0.2);
}

html[data-theme="dark"] .admin-chip.muted,
html[data-theme="dark"] .notice-success,
html[data-theme="dark"] .notice-error {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .floating-donate-card:hover,
html[data-theme="dark"] .theme-toggle-fab:hover {
    background: rgba(29, 44, 36, 0.98);
}

@media (max-width: 980px) {
    .hero-grid,
    .donate-layout,
    .contact-layout,
    .info-grid,
    .campaign-grid,
    .work-grid,
    .stats-grid,
    .stat-grid,
    .admin-grid.two-column {
        grid-template-columns: 1fr;
    }

    .donate-banner,
    .footer-inner,
    .header-inner,
    .admin-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .site-specs-grid,
    .site-photo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 1rem, 1180px);
    }

    .hero-section,
    .section-block {
        padding: 3rem 0;
    }

    .amount-grid,
    .campaign-grid,
    .stats-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .btn,
    .admin-header-actions a {
        width: 100%;
    }

    .inline-edit-form {
        min-width: 100%;
    }
}

@media (max-width: 860px) {
    .site-header {
        padding: 0.3rem 0;
    }

    .public-page.has-mobile-quick-actions {
        padding-bottom: calc(84px + env(safe-area-inset-bottom));
    }

    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.8rem;
    }

    .brand {
        min-width: 0;
        flex: 1;
    }

    .brand span {
        min-width: 0;
    }

    .brand strong,
    .brand small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

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

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

    .mobile-nav-toggle {
        display: inline-flex;
        margin-left: auto;
        z-index: 75;
    }

    .site-nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        border: 0;
        background: rgba(9, 24, 17, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.22s ease;
        z-index: 69;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(84vw, 340px);
        height: 100dvh;
        padding: 6.2rem 1rem 1.2rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 0.55rem;
        overflow-y: auto;
        border-left: 1px solid var(--border);
        background: rgba(255, 252, 245, 0.98);
        box-shadow: -24px 0 44px rgba(8, 31, 19, 0.18);
        transform: translateX(104%);
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 70;
    }

    .site-nav.is-open {
        transform: translateX(0);
    }

    body.nav-open {
        overflow: hidden;
    }

    body.nav-open .site-nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav a,
    .site-nav .nav-button,
    .dropdown,
    .dropdown-toggle {
        width: 100%;
    }

    .site-nav a,
    .site-nav .nav-button,
    .dropdown-toggle {
        border-radius: 14px;
        min-height: 52px;
        padding: 0.9rem 0.95rem;
        font-size: 1.02rem;
        font-weight: 700;
        text-align: left;
        white-space: nowrap;
    }

    .dropdown-menu {
        position: static;
        display: none;
        margin-top: 0.35rem;
        min-width: 0;
        box-shadow: none;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.92);
    }

    .dropdown.is-open .dropdown-menu {
        display: block;
    }

    .dropdown:focus-within .dropdown-menu {
        display: block;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .mobile-quick-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
        background: rgba(255, 252, 245, 0.94);
        border-top: 1px solid rgba(20, 51, 38, 0.14);
        backdrop-filter: blur(14px);
    }

    .mobile-quick-actions .btn {
        min-height: 52px;
        padding: 0.85rem 0.95rem;
        font-size: 1rem;
        box-shadow: 0 8px 24px rgba(19, 32, 51, 0.1);
    }

    .floating-donate-card {
        display: none;
    }

    .site-nav .theme-toggle-inline {
        width: 100%;
        min-height: 52px;
        border-radius: 14px;
        text-align: left;
        display: block;
        margin-left: 0;
    }

    .theme-toggle-fab {
        right: 0.75rem;
        bottom: calc(76px + env(safe-area-inset-bottom));
        min-width: 118px;
        min-height: 50px;
        padding: 0.75rem 0.9rem;
    }
}
