:root {
    --bg: #eaf7f5;
    --paper: rgba(251, 255, 254, 0.96);
    --paper-strong: #ffffff;
    --ink: #1d2327;
    --muted: #5f6b76;
    --line: rgba(29, 35, 39, 0.12);
    --blue: #087f83;
    --blue-deep: #07565f;
    --green: #14966f;
    --orange: #c46a2f;
    --red: #b42318;
    --shadow: 0 20px 48px rgba(7, 86, 95, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(17, 170, 166, 0.2), transparent 28%),
        radial-gradient(circle at top right, rgba(95, 219, 183, 0.2), transparent 24%),
        linear-gradient(180deg, #f5fffd 0%, #eaf7f5 54%, #dceeea 100%);
    font: 17px/1.6 "Aptos", "Segoe UI", sans-serif;
}

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

a {
    color: var(--blue);
}

h1,
h2,
h3,
p,
dl,
ul,
ol {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

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

.site-header,
.site-footer {
    background: rgba(255, 252, 247, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(29, 35, 39, 0.06);
}

.site-footer {
    border-top: 1px solid rgba(29, 35, 39, 0.06);
    border-bottom: 0;
}

.site-header-row,
.site-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: inherit;
    text-decoration: none;
}

.brand-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(31, 111, 178, 0.16);
}

.brand-name {
    font-weight: 700;
    color: var(--ink);
}

.brand-tag,
.footer-copy,
.footer-meta,
.admin-subtitle,
.lede,
.helper-text,
.field span,
.detail-list dt {
    color: var(--muted);
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.top-nav a {
    text-decoration: none;
}

.footer-nav {
    justify-content: flex-end;
}

.footer-meta {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(31, 111, 178, 0.08);
    color: var(--blue-deep);
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-main,
.login-wrap {
    padding: 2rem 0 3rem;
}

.admin-page-head {
    margin-bottom: 1.5rem;
}

.eyebrow,
.card-label {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: var(--blue);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
}

.panel,
.metric-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.panel {
    padding: 1.4rem;
    margin-bottom: 1.25rem;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(230px, 0.65fr);
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3rem);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(227, 251, 245, 0.94));
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-mark {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 300px;
}

.hero-mark img {
    position: relative;
    z-index: 2;
    width: min(270px, 90%);
    border-radius: 28px;
    box-shadow: 0 24px 54px rgba(7, 86, 95, 0.22);
}

.guard-ring {
    position: absolute;
    border: 1px solid rgba(8, 127, 131, 0.2);
    border-radius: 50%;
}

.guard-ring-one {
    width: 330px;
    height: 330px;
}

.guard-ring-two {
    width: 420px;
    height: 420px;
}

.hero-note {
    margin: 1rem 0 0;
}

.incident-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(7, 86, 95, 0.14);
    border-radius: 18px;
    background: rgba(7, 86, 95, 0.14);
    box-shadow: var(--shadow);
}

.incident-strip article {
    padding: 1.2rem;
    background: rgba(251, 255, 254, 0.96);
}

.incident-strip strong,
.incident-strip span {
    display: block;
}

.incident-strip strong {
    color: var(--blue-deep);
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    line-height: 1;
}

.incident-strip span {
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

.story-panel h2,
.boundaries-panel h2,
.support-panel h2,
#faq > h2 {
    max-width: 760px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
}

.story-grid,
.boundaries-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.story-grid p,
.boundaries-panel p {
    color: var(--muted);
}

.feature-grid .metric-card h2 {
    margin-bottom: 0.7rem;
    font-size: 1.4rem;
}

.feature-grid .metric-card p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding: 0.65rem 0 0.65rem 2rem;
    border-bottom: 1px solid rgba(7, 86, 95, 0.1);
}

.check-list li::before {
    position: absolute;
    left: 0;
    content: "✓";
    color: var(--green);
    font-weight: 800;
}

.panel-sub {
    background: var(--paper-strong);
    box-shadow: none;
    margin-bottom: 0;
}

.panel-narrow {
    max-width: 560px;
    margin: 0 auto;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.metric-card {
    padding: 1.2rem 1.3rem;
}

.metric-card h2 {
    margin-bottom: 0;
    font-size: 2rem;
}

.section-top,
.actions-row,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.detail-list {
    display: grid;
    gap: 0.9rem;
}

.detail-list div {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(29, 35, 39, 0.08);
}

.detail-list div:last-child {
    border-bottom: 0;
}

.detail-list dt {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.detail-list dd {
    margin: 0;
    font-weight: 600;
}

.field {
    display: block;
    margin-bottom: 1rem;
}

.field span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(29, 35, 39, 0.16);
    border-radius: 12px;
    background: #fff;
    font: inherit;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    background: var(--blue);
    color: #fff;
}

.button-secondary {
    background: #fff;
    border-color: rgba(29, 35, 39, 0.12);
    color: var(--ink);
}

.button-wordpress {
    background: var(--green);
    color: #fff;
}

.hero-actions {
    justify-content: flex-start;
}

.alert {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid transparent;
}

.alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

.alert-success {
    background: rgba(16, 128, 67, 0.1);
    border-color: rgba(16, 128, 67, 0.2);
}

.alert-error {
    background: rgba(180, 35, 24, 0.08);
    border-color: rgba(180, 35, 24, 0.18);
}

.alert-warning {
    background: rgba(180, 91, 47, 0.08);
    border-color: rgba(180, 91, 47, 0.18);
}

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

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

.data-table th,
.data-table td {
    padding: 0.9rem 0.7rem;
    border-bottom: 1px solid rgba(29, 35, 39, 0.08);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    font-size: 0.9rem;
    color: var(--muted);
}

.plain-list {
    margin-bottom: 0;
    padding-left: 1.15rem;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(29, 35, 39, 0.08);
}

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

.faq-item h3 {
    margin-bottom: 0.45rem;
    font-size: 1.2rem;
}

.faq-item p {
    margin-bottom: 0;
    color: var(--muted);
}

.support-panel {
    scroll-margin-top: 1rem;
}

.support-note {
    margin: 1rem 0 0;
}

code {
    padding: 0.12rem 0.35rem;
    border-radius: 0.4rem;
    background: rgba(29, 35, 39, 0.07);
    font: 0.92em/1.35 Consolas, "Courier New", monospace;
}

@media (max-width: 760px) {
    .site-header-row,
    .site-footer-row,
    .section-top,
    .actions-row,
    .form-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .button,
    .top-nav,
    .top-nav a {
        width: 100%;
    }

    .nav-pill {
        width: auto;
    }

    .hero-panel,
    .story-grid,
    .boundaries-panel {
        grid-template-columns: 1fr;
    }

    .hero-mark {
        min-height: 220px;
    }

    .hero-mark img {
        width: 210px;
    }

    .guard-ring-one {
        width: 250px;
        height: 250px;
    }

    .guard-ring-two {
        width: 310px;
        height: 310px;
    }

    .incident-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}
