/* Project styles layered on top of Pico. */

/* Dev-mode badge: fixed top-right, only rendered when running with -dev. */
.dev-badge {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 1000;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    background: var(--pico-del-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    pointer-events: none;
}

/* Inline field validation messages, shown under their input. */
.field-error {
    color: var(--pico-del-color);
}

/* Monospaced Caddyfile editor, with a clearly muted/italic placeholder so the
   example never reads like real configuration. */
#caddyfile {
    font-family: var(--pico-font-family-monospace);
}

#caddyfile::placeholder {
    color: var(--pico-muted-color);
    opacity: 0.6;
    font-style: italic;
}

/* Reserve one line so updating the status never shifts the Save button. */
#status {
    min-height: 1.5em;
    margin-bottom: var(--pico-spacing);
}

#status.status-ok {
    color: var(--pico-ins-color);
}

/* Muted helper text describing a group of fields. */
.field-hint {
    color: var(--pico-muted-color);
}

/* Space the setup form's sections apart so each group reads as a block. */
#setup-form section {
    margin-bottom: calc(var(--pico-spacing) * 2);
}

/* Heading and its hint share one baseline-aligned row; the hint wraps below
   the heading on narrow screens. */
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    margin-bottom: var(--pico-spacing);
}

.section-head h2 {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--pico-muted-color);
}
