:root {
    color-scheme: light;
    font-family: Georgia, "Times New Roman", serif;
    color: #24313b;
    --accent: #0a7ca8;
    --accent-dark: #075a7b;
    --line: rgba(41, 71, 88, .20);
    --panel: rgba(255, 255, 255, .50);
    --panel-strong: rgba(255, 255, 255, .68);
    --shadow: 0 12px 28px rgba(25, 55, 72, .10);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    background: transparent;
    color: #24313b;
    font-size: 16px;
}

body.theme-karlsruhe { --accent: #177a64; --accent-dark: #105744; }

.gb-shell { max-width: 940px; margin: 0 auto; padding: 10px 12px 24px; }
.gb-header { padding: 4px 2px 14px; }
.gb-kicker { margin: 0 0 5px; color: var(--accent-dark); font: 700 .78rem/1.3 Arial, sans-serif; letter-spacing: .11em; text-transform: uppercase; }
h1, h2 { margin: 0; font-weight: 400; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.gb-intro { max-width: 740px; margin: 10px 0 0; line-height: 1.55; }
.gb-panel { margin: 14px 0; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.gb-form-panel { background: var(--panel-strong); }
.gb-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.gb-site-chip, .gb-entry-site, .gb-count, .gb-admin-status { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 999px; }
.gb-site-chip { padding: 6px 10px; color: #fff; background: var(--accent); font: 700 .78rem/1.1 Arial, sans-serif; }
.gb-site-chip.theme-karlsruhe { background: #177a64; }
.gb-site-chip.theme-lightray { background: #0a7ca8; }
.gb-count { min-width: 31px; height: 31px; justify-content: center; color: #fff; background: var(--accent); font: 700 .9rem/1 Arial, sans-serif; }
.gb-form { display: grid; gap: 7px; }
.gb-form label { margin-top: 6px; font-weight: 700; }
.gb-form input, .gb-form select, .gb-form textarea { width: 100%; border: 1px solid rgba(36, 49, 59, .28); border-radius: 7px; padding: 10px 11px; background: rgba(255, 255, 255, .72); color: #24313b; font: 16px/1.35 Georgia, "Times New Roman", serif; }
.gb-form textarea { resize: vertical; min-height: 110px; }
.gb-form input:focus, .gb-form select:focus, .gb-form textarea:focus { outline: 2px solid rgba(10, 124, 168, .35); outline-offset: 1px; border-color: var(--accent); }
button { width: fit-content; border: 0; border-radius: 7px; padding: 10px 16px; color: #fff; background: var(--accent); cursor: pointer; font: 700 15px/1.1 Arial, sans-serif; }
button:hover, button:focus-visible { background: var(--accent-dark); }
.gb-form-note, .gb-footer-note { margin: 3px 0 0; color: rgba(36, 49, 59, .72); font: .82rem/1.4 Arial, sans-serif; }
.gb-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.gb-notice { margin: 12px 0; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .62); line-height: 1.45; }
.gb-notice-success { border-color: rgba(27, 125, 86, .36); background: rgba(215, 244, 229, .78); }
.gb-notice-error { border-color: rgba(164, 69, 51, .38); background: rgba(255, 231, 224, .82); }
.gb-empty { margin: 0; line-height: 1.5; }
.gb-entry-list { display: grid; gap: 11px; }
.gb-entry { padding: 14px 15px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .38); }
.gb-entry-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.gb-entry-meta time { margin-left: auto; color: rgba(36, 49, 59, .66); font: .78rem/1.2 Arial, sans-serif; }
.gb-entry-site { padding: 4px 8px; color: #fff; background: #0a7ca8; font: 700 .7rem/1 Arial, sans-serif; }
.gb-entry-site.theme-karlsruhe { background: #177a64; }
.gb-entry p { margin: 10px 0 0; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; }
.gb-footer-note { text-align: center; }
.gb-admin-actions { font: .9rem/1.4 Arial, sans-serif; }
.gb-admin-actions a { color: var(--accent-dark); }
.gb-admin-list { display: grid; gap: 12px; }
.gb-admin-entry { background: var(--panel-strong); }
.gb-admin-status { margin-top: 11px; padding: 5px 8px; font: 700 .75rem/1 Arial, sans-serif; }
.gb-admin-status.is-approved { color: #176a49; background: #dbf3e5; }
.gb-admin-status.is-pending { color: #8a5b15; background: #fff0c9; }
.gb-admin-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.gb-admin-buttons form { margin: 0; }
.gb-admin-buttons button { font-size: .82rem; padding: 8px 11px; }
.gb-button-danger { background: #98543f; }
.gb-button-danger:hover, .gb-button-danger:focus-visible { background: #733d2e; }

@media (max-width: 560px) {
    .gb-shell { padding: 7px 8px 18px; }
    .gb-panel { padding: 15px; border-radius: 11px; }
    .gb-panel-heading { display: block; }
    .gb-site-chip, .gb-count { margin-top: 11px; }
    .gb-entry-meta time { width: 100%; margin-left: 0; }
    button { width: 100%; }
}


/* Sticky footer */
html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f3ece0;
}

.gb-shell {
    width: 100%;
    flex: 1 0 auto;
}

.gb-footer {
    position: relative;
    flex-shrink: 0;
    margin-top: auto;
    background: #ebdfcc;
    color: #252525;
}

.gb-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -120px;
    width: auto;
    height: 120px;
    background: linear-gradient(to bottom, #f3ece0 0%, #ebdfcc 100%);
    pointer-events: none;
}

.gb-footer-main,
.gb-footer-copyright {
    position: relative;
    z-index: 1;
    text-align: center;
}

.gb-footer-main {
    max-width: 940px;
    margin: 0 auto;
    padding: 22px 12px 18px;
    line-height: 1.7;
}

.gb-footer-main a {
    color: #252525;
    text-decoration: none;
}

.gb-footer-main a:hover,
.gb-footer-main a:focus-visible {
    color: var(--accent-dark);
    text-decoration: underline;
}

.gb-footer-copyright {
    padding: 12px;
    background: #e1d0b2;
    color: #252525;
    font: .82rem/1.4 Arial, sans-serif;
}

@media (max-width: 560px) {
    .gb-footer-main {
        padding-right: 8px;
        padding-left: 8px;
    }

    .gb-footer-copyright {
        font-size: .76rem;
    }
}