/* Marine Hall Volunteer Portal (corporate) */

:root {
    /* Wyre palette (brand guide) */
    --wyre-blue: #0067B1;
    --wyre-green: #7AC143;

    --ink: #0b1b2b;
    --muted: #4f5d6b;
    --bg: #f4f6f8;
    --card: #ffffff;
    --line: #d6dde5;

    --radius: 14px;
    --shadow: 0 8px 24px rgba(0, 0, 0, .08);

    --danger: #b00020;
    --danger-bg: #fde7ea;

    --focus: rgba(0, 103, 177, .25);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    /* brand guide font :contentReference[oaicite:1]{index=1} */
    color: var(--ink);
    background: var(--bg);
}

a {
    color: var(--wyre-blue);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

.container {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 16px;
}

.header {
    background: var(--card);
    border-bottom: 4px solid var(--wyre-blue);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .2px;
}

.brand p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.3;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* logo to the right per guide :contentReference[oaicite:2]{index=2} */
}

.logo img {
    max-height: 42px;
    height: auto;
    width: auto;
}

.top-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    min-height: 42px;
}

.btn:hover {
    background: #f8fafc
}

.btn.primary {
    background: var(--wyre-blue);
    border-color: var(--wyre-blue);
    color: #fff;
}

.btn.primary:hover {
    filter: brightness(.95)
}

.btn.success {
    background: var(--wyre-green);
    border-color: var(--wyre-green);
    color: #0a1a0e;
}

.btn.danger {
    background: var(--danger-bg);
    border-color: #f2b8bf;
    color: var(--danger);
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    margin: 14px 0;
}

.grid {
    display: grid;
    grid-template-columns: 1.6fr .9fr;
    gap: 14px;
}

@media (max-width: 920px) {
    .grid {
        grid-template-columns: 1fr
    }
}

.section-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
}

.meta {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.pill {
    border: 1px solid var(--line);
    background: #f7f9fb;
    color: var(--muted);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.field {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 12px;
    font-size: 15px;
    background: #fff;
    outline: none;
    min-height: 42px;
}

.field:focus {
    box-shadow: 0 0 0 4px var(--focus);
    border-color: var(--wyre-blue)
}

label {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted)
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}

@media (max-width: 880px) {
    .form-row {
        grid-template-columns: 1fr
    }
}

.notice {
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    margin: 12px 0;
    font-weight: 700;
}

.notice.ok {
    border-color: rgba(122, 193, 67, .35);
    background: rgba(122, 193, 67, .10)
}

.notice.bad {
    border-color: rgba(176, 0, 32, .25);
    background: rgba(176, 0, 32, .08)
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 10px;
}

.tabs button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 800;
    cursor: pointer;
    min-height: 42px;
}

.tabs button.active {
    border-color: var(--wyre-blue);
    box-shadow: 0 0 0 4px var(--focus);
}

/* Print: A4 Landscape + hide controls */
@page {
    size: A4 landscape;
    margin: 12mm;
}

@media print {
    body {
        background: #fff
    }

    .no-print {
        display: none !important;
    }

    .card {
        box-shadow: none
    }

    .header {
        border-bottom: none
    }
}