*,
::before,
::after {
    box-sizing: border-box;
}

html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif, Apple Color Emoji, "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

body {
    min-height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px;
    display: grid;
    gap: 3vw;
    grid-template-rows: min-content 1fr min-content;
}

/* Allow full-width layouts for landing pages */
body.template-homepage {
    max-width: none;
    padding: 0;
    display: block;
}

body.template-homepage main {
    max-width: none;
    padding: 0;
}

a {
    color: currentColor;
}

footer {
    border-top: 2px dotted;
    text-align: center;
}

header {
    border-bottom: none;
}

header .nav-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

header .nav-logo {
    display: flex;
    align-items: center;
}

header .nav-menu {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

header .nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid #2c2c2c;
    background: transparent;
    color: #2c2c2c;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-action-button:hover,
.nav-action-button:focus-visible {
    background: #2c2c2c;
    color: #F5EDE2;
    border-color: #2c2c2c;
}

/* Landing page header is handled in home_landing.css */
body.template-homepage header {
    border-bottom: none;
}

.template-homepage main {
    text-align: center;
}

.page-form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}

.page-form :is(textarea, input, select) {
    width: 100%;
    max-width: 500px;
    min-height: 40px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.page-form .helptext {
    font-style: italic;
}