:root {
    color-scheme: light;
    --navy: #071c35;
    --navy-soft: #123251;
    --gold: #c89b3c;
    --white: #ffffff;
    --grey-50: #f5f7f9;
    --grey-200: #dce2e8;
    --grey-600: #596675;
    --success: #14804a;
    font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: var(--grey-50);
    color: var(--navy);
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px clamp(20px, 5vw, 72px);
}

.site-header {
    border-bottom: 1px solid var(--grey-200);
    background: var(--white);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 2px solid var(--gold);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
}

.environment-label {
    color: var(--grey-600);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.account-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.account-nav a,
.link-button {
    border: 0;
    background: none;
    color: var(--navy);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.account-nav form { margin: 0; }
.account-nav .nav-action { color: var(--white); background: var(--navy); padding: 9px 13px; border-radius: 4px; }

.site-main {
    display: grid;
    flex: 1;
    place-items: center;
    padding: 48px 20px;
}

.foundation {
    width: min(100%, 760px);
    border-left: 4px solid var(--gold);
    padding: 20px 0 20px clamp(22px, 5vw, 54px);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 72px;
    line-height: 1.05;
}

.intro {
    max-width: 520px;
    margin: 18px 0 28px;
    color: var(--navy-soft);
    font-size: 19px;
    line-height: 1.6;
}

.status-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 24px;
    color: var(--grey-600);
    font-size: 14px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
}

.status-row.is-ready .status-dot {
    background: var(--success);
}

.site-footer {
    border-top: 1px solid var(--grey-200);
    color: var(--grey-600);
    font-size: 12px;
}

.form-page,
.account-page {
    width: min(100%, 760px);
    align-self: center;
}

.form-heading h1,
.account-page h1 {
    font-size: 38px;
}

.form-heading p:not(.eyebrow) { color: var(--grey-600); line-height: 1.6; }

.app-form {
    display: grid;
    gap: 18px;
    max-width: 560px;
    margin-top: 30px;
    padding: 26px;
    border: 1px solid var(--grey-200);
    border-radius: 6px;
    background: var(--white);
}

.app-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.app-form input,
.app-form select { width: 100%; min-height: 44px; border: 1px solid #aeb8c2; border-radius: 4px; padding: 10px 12px; background: var(--white); color: var(--navy); font: inherit; }
.app-form input:focus,
.app-form select:focus { outline: 3px solid rgba(200, 155, 60, .25); border-color: var(--gold); }
.primary-button,
.secondary-button,
.primary-link { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 1px solid var(--navy); border-radius: 4px; padding: 10px 18px; background: var(--navy); color: var(--white); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.secondary-button { max-width: 560px; margin-top: 16px; background: transparent; color: var(--navy); }
.secondary-link { display: inline-block; margin-top: 18px; color: var(--navy-soft); }
.form-message { min-height: 20px; margin: 0; color: var(--success); font-size: 14px; }
.form-message.is-error { color: #b42318; }
.details-list { display: grid; max-width: 680px; margin: 30px 0; border-top: 1px solid var(--grey-200); }
.details-list div { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--grey-200); }
.details-list dt { color: var(--grey-600); }
.details-list dd { margin: 0; overflow-wrap: anywhere; }
.catalogue-admin { width: min(100%, 1040px); }
.catalogue-admin h1 { font-size: 38px; }
.catalogue-admin h2 { margin-top: 32px; font-size: 22px; }
.intro.compact { margin-bottom: 18px; font-size: 16px; }
.admin-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.admin-links a { border: 1px solid var(--grey-200); border-radius: 4px; padding: 13px 16px; background: var(--white); color: var(--navy); font-weight: 700; text-decoration: none; }
.check-row { grid-template-columns: 22px 1fr !important; align-items: center; }
.check-row input { min-height: 18px; }
.data-table { width: 100%; margin-top: 28px; overflow-x: auto; }
.data-table table { width: 100%; border-collapse: collapse; background: var(--white); }
.data-table th, .data-table td { padding: 12px; border-bottom: 1px solid var(--grey-200); text-align: left; vertical-align: top; }
.data-table th { color: var(--grey-600); font-size: 12px; text-transform: uppercase; }
.data-table .app-form { margin: 0; padding: 0; border: 0; }
.inline-edit { display: grid; gap: 8px; min-width: 190px; margin: 0 0 12px; }
.inline-edit input { width: 100%; min-height: 36px; border: 1px solid #aeb8c2; border-radius: 4px; padding: 7px; }
.inline-edit .secondary-button { margin-top: 0; }
.inline-action { display: inline-flex; gap: 8px; margin-left: 10px; }
.image-list { padding-left: 22px; color: var(--grey-600); }

@media (max-width: 560px) {
    .site-header,
    .site-footer {
        padding: 15px 18px;
    }

    .site-main {
        place-items: start center;
        padding-top: 72px;
    }

    .environment-label,
    .site-footer span:last-child {
        display: none;
    }

    .account-nav { gap: 10px; }
    .account-nav .nav-action { display: none; }
    .app-form { padding: 20px; }
    .details-list div { grid-template-columns: 1fr; gap: 5px; }
    .data-table { font-size: 13px; }
    h1 { font-size: 46px; }
}
