:root {
    --primary: #123b77; /* institutional blue */
    --secondary: #1f4b83;
    --accent: #f05a28; /* accent color used in some banners */
    --light: #f4f7f6;
    --danger: #e74c3c;
    --muted: #7f8c8d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    margin: 0;
    min-height: 100vh;
    color: #233d4d;
}

.site-header {
    background: var(--primary);
    color: white;
}

.site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 16px;
    position: relative; /* allow absolute centering of brand */
}

.site-header .crest {
    height: 40px;
    width: auto;
    display: block;
}

.site-header .brand .logo {
    height: 36px;
    width: auto;
    display: block;
}

.site-header .header-actions .login {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    font-weight: 600;
}

.site-header .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

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

.site-header .logo-link { display:inline-block; }

.firstMenu {
    background: var(--light);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.firstMenu .inner-menu {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.firstMenu .site-url a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.firstMenu .site-url a:hover { text-decoration: underline; }

.site-header .header-actions {
    margin-left: auto;
    z-index: 2;
}

.site-banner {
    background: linear-gradient(90deg, rgba(18,59,119,0.95), rgba(31,75,131,0.95));
    padding: 20px 0;
}

.site-banner .banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 980px;
    margin: 24px auto;
}

h1 {
    color: var(--primary);
    text-align: left;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-weight: 600;
}

input[type="text"],
input[type="date"],
input[type="number"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
textarea:focus {
    border-color: var(--accent);
    outline: none;
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    width: 100%;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.25s;
}

button:hover {
    background: var(--secondary);
}

.author-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-add {
    background: var(--secondary);
    margin-top: 0.5rem;
    width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-remove {
    background: var(--danger);
    width: auto;
    padding: 0 1rem;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.alert-error {
    background: #fdecea;
    color: var(--danger);
    border: 1px solid #fadbd8;
}

.date-container {
    display: flex;
    gap: 1rem;
}

.date-container input {
    flex: 1;
}

.hint-text {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.25rem;
    display: block;
}

@media (max-width: 700px) {
    .site-header .header-inner { padding: 10px; }
    .site-banner .banner-inner { font-size: 1.15rem; }
    .site-header .crest { height: 42px; }
    .site-header .brand .logo { height: 34px; }
    .container { padding: 1rem; margin: 12px; }
}
