:root {
    --bg: #f5f1e8;
    --bg-accent: radial-gradient(circle at top right, rgba(210, 169, 98, 0.35), transparent 34%), linear-gradient(135deg, #f7f4ed 0%, #efe4d2 100%);
    --panel: rgba(255, 255, 255, 0.76);
    --panel-strong: #fffdf8;
    --text: #182126;
    --muted: #57636d;
    --line: rgba(24, 33, 38, 0.1);
    --accent: #9f6a2b;
    --accent-strong: #71491d;
    --shadow: 0 18px 50px rgba(24, 33, 38, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans SC", sans-serif;
    color: var(--text);
    background: var(--bg-accent);
    min-height: 100vh;
}

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

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

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

.site-header,
.site-footer,
.hero,
.report-card,
.featured-card,
.detail-hero,
.detail-content,
.form-card {
    backdrop-filter: blur(14px);
}

.site-header,
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-header {
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.site-header nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--muted);
    position: relative;
    z-index: 2;
}

.nav-search-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

.nav-search-input {
    width: min(260px, 48vw);
    min-height: 40px;
    padding: 10px 14px;
    border: 1px solid rgba(24, 33, 38, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
}


.brand,
h1,
h2,
h3 {
    font-family: "Manrope", sans-serif;
}

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

.brand-logo {
    width: auto;
    height: 52px;
    max-width: min(100%, 220px);
    object-fit: contain;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text);
    white-space: nowrap;
}

main {
    padding: 32px 0;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    padding: 36px;
    border-radius: 32px;
    background: linear-gradient(155deg, rgba(255, 251, 244, 0.92), rgba(239, 228, 210, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow);
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 4vw, 4.8rem);
    line-height: 0.98;
    margin: 12px 0;
}

.hero-copy p,
.lead,
.report-card p,
.featured-card p,
.detail-content p,
.contact-page p {
    color: var(--muted);
    line-height: 1.8;
}

.eyebrow,
.chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--accent-strong);
}

.chip {
    padding: 7px 12px;
    background: rgba(159, 106, 43, 0.12);
    color: var(--accent-strong);
}

.chip-muted {
    background: rgba(24, 33, 38, 0.08);
    color: var(--muted);
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-actions,
.form-actions,
.meta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.meta-row,
.muted {
    color: var(--muted);
    font-size: 0.95rem;
}

.button,
.text-link {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.button:hover,
.text-link:hover {
    transform: translateY(-1px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
}

.button-primary {
    background: var(--accent);
    color: white;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--line);
}

.text-link {
    color: var(--accent-strong);
    font-weight: 700;
}

.nav-user {
    color: var(--text);
    font-weight: 700;
}

.nav-inline-form {
    margin: 0;
}

.nav-link-button {
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    color: var(--muted);
    cursor: pointer;
}

.nav-link-button:hover {
    color: var(--accent-strong);
}

.nav-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(159, 106, 43, 0.12);
    color: var(--accent-strong);
    font-weight: 700;
}

.featured-card,
.report-card,
.detail-hero,
.detail-content,
.form-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow);
}

.featured-card,
.report-card,
.detail-hero,
.detail-content {
    border-radius: 28px;
    padding: 28px;
}

.reports-section,
.admin-panel,
.detail-layout {
    margin-top: 28px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h1,
.section-heading h2 {
    margin: 8px 0 0;
}

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

.contact-page {
    margin-top: 28px;
}

.contact-hero {
    padding: 34px;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255, 251, 244, 0.95), rgba(241, 233, 220, 0.84));
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow);
}

.contact-hero h1 {
    margin: 12px 0;
    font-size: clamp(2rem, 3.5vw, 3.6rem);
    line-height: 1.02;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.contact-card {
    padding: 26px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow);
}

.contact-label {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--accent-strong);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-card h2 {
    margin: 0 0 12px;
    font-size: 1.4rem;
    line-height: 1.15;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 20px;
}

.report-detail-page {
    margin-top: 28px;
}

.detail-hero-single,
.detail-content-single {
    width: min(100%, 980px);
    margin: 0 auto;
}

.report-detail-shell {
    width: 100%;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 250, 244, 0.96);
    border: 1px solid rgba(24, 33, 38, 0.08);
    box-shadow: 0 18px 44px rgba(24, 33, 38, 0.06);
}

.detail-hero-single {
    position: relative;
    padding: 34px;
    overflow: hidden;
    width: 100%;
    margin: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.detail-hero-glow {
    display: none;
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 0.95rem;
}

.detail-hero-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.detail-content-single {
    width: 100%;
    margin: 0;
    padding: 0 34px 34px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.detail-hero-copy h1 {
    margin: 14px 0 14px;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    max-width: 12ch;
}

.detail-hero-actions {
    display: grid;
    gap: 18px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-meta-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(24, 33, 38, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.detail-meta-card strong {
    font-size: 1.02rem;
}

.detail-meta-label,
.pdf-toolbar-label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.detail-action-row,
.detail-bottom-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.detail-action-row-top {
    justify-content: flex-end;
}

.detail-action-row-inline {
    justify-content: flex-end;
}

.cover-image {
    border-radius: 18px;
    margin-bottom: 22px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.pdf-viewer-shell {
    margin-bottom: 24px;
    border: 1px solid rgba(24, 33, 38, 0.1);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 22px 60px rgba(24, 33, 38, 0.1);
}

.pdf-viewer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(24, 33, 38, 0.08);
    color: var(--text);
    font-weight: 700;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 244, 237, 0.88));
}

.pdf-viewer-toolbar h2 {
    margin: 0;
    font-size: 1.2rem;
}

.pdf-toolbar-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
}

.pdf-viewer {
    display: block;
    width: 100%;
    min-height: 920px;
    border: 0;
    background: white;
}

.pdf-viewer-shell-large {
    margin-bottom: 28px;
}

.report-detail-meta-footer {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 10px;
    color: var(--muted);
    margin-top: -4px;
    margin-bottom: 10px;
    padding: 0 6px;
}

.report-detail-meta-footer strong {
    color: var(--text);
    font-size: 0.98rem;
}

.report-notes {
    padding: 30px 32px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 241, 232, 0.8));
    border: 1px solid rgba(24, 33, 38, 0.07);
    box-shadow: 0 20px 50px rgba(24, 33, 38, 0.06);
}

.report-notes h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
}

.report-notes-single p {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
    font-size: 1.03rem;
}

.admin-panel.narrow {
    max-width: 520px;
}

.form-card {
    border-radius: 28px;
    padding: 28px;
}

.form-card.large {
    margin-bottom: 18px;
}

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

.human-check-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.turnstile-field {
    margin-bottom: 16px;
    color: var(--muted);
}

.turnstile-field span {
    display: inline-block;
    margin-bottom: 8px;
}

label,
input,
textarea,
select {
    display: block;
    width: 100%;
}

label {
    margin-bottom: 16px;
    color: var(--muted);
}

label span {
    display: inline-block;
    margin-bottom: 8px;
}

input,
textarea,
select {
    border: 1px solid rgba(24, 33, 38, 0.12);
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
}

textarea {
    resize: vertical;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.alert,
.empty-state {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(159, 106, 43, 0.12);
    color: var(--accent-strong);
    margin-bottom: 16px;
}

.alert-success {
    background: rgba(58, 122, 84, 0.14);
    color: #245839;
}

.form-hint {
    margin: 14px 4px 0;
    color: var(--muted);
}

.current-file-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 2px 0 18px;
    color: var(--muted);
}

.admin-toolbar,
.admin-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

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

.report-admin-table {
    display: grid;
    gap: 12px;
}

.report-admin-row {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) 1fr 1fr 0.9fr 1.4fr;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(24, 33, 38, 0.08);
}

.user-admin-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) 0.8fr 1fr 0.9fr 1.4fr;
}

.level-badge {
    background: rgba(24, 33, 38, 0.08);
    color: var(--text);
}

.report-admin-head {
    padding-top: 0;
    font-size: 0.92rem;
    color: var(--muted);
    font-weight: 700;
}

.report-admin-title strong {
    display: block;
    margin-bottom: 6px;
}

.report-admin-title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

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

.status-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-form select {
    min-width: 110px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.status-published {
    background: rgba(34, 139, 34, 0.12);
    color: #1d6b1d;
}

.status-draft {
    background: rgba(159, 106, 43, 0.12);
    color: var(--accent-strong);
}

.status-deleted {
    background: rgba(139, 34, 34, 0.12);
    color: #7a2020;
}

.inline-delete-form {
    margin: 0;
}

.danger-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: #9b2d2d;
    font: inherit;
    cursor: pointer;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(24, 33, 38, 0.08);
}

.profile-row:last-of-type {
    border-bottom: none;
}

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

.profile-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.site-footer {
    margin-top: 24px;
    padding: 16px 6px 0;
    color: var(--muted);
}

@media (max-width: 960px) {
    .hero,
    .detail-layout,
    .report-grid,
    .form-grid,
    .detail-hero-main,
    .detail-meta-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .site-header,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-admin-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .detail-hero-single {
        padding: 26px;
    }

    .detail-content-single {
        padding: 0 26px 26px;
    }

    .detail-action-row-top {
        justify-content: flex-start;
    }

    .detail-action-row-inline {
        justify-content: flex-start;
    }

    .report-detail-meta-footer {
        justify-content: flex-start;
    }

    .pdf-viewer {
        min-height: 620px;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(100% - 20px, 100%);
    }

    .hero,
    .featured-card,
    .report-card,
    .detail-hero,
    .detail-content,
    .form-card {
        padding: 22px;
        border-radius: 22px;
    }

    .hero-copy h1 {
        font-size: 2.2rem;
    }

    .brand-logo {
        height: 42px;
    }

    .brand-title {
        font-size: 0.96rem;
    }
}
