:root {
    --ink: #172018;
    --muted: #59645b;
    --green: #123f25;
    --green-dark: #082616;
    --gold: #d9a62e;
    --gold-soft: #f5e3b4;
    --paper: #fffdf7;
    --panel: #ffffff;
    --line: #d8d2c0;
    --shadow: 0 18px 45px rgba(16, 24, 18, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #ece6d7;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a {
    color: #0d5f1b;
}

.site-header {
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 24px;
    align-items: end;
    padding: 24px clamp(18px, 4vw, 56px);
    background:
        linear-gradient(rgba(8, 38, 22, 0.90), rgba(8, 38, 22, 0.90)),
        url("../images/bg.gif") center top repeat-x;
    border-bottom: 6px solid var(--gold);
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    color: white;
    text-decoration: none;
}

.brand img {
    width: 78px;
    height: auto;
}

.brand strong,
.brand span span {
    display: block;
}

.brand strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 2.2vw, 2.2rem);
    line-height: 1;
}

.brand span span {
    color: var(--gold-soft);
    font-size: 0.95rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.site-nav a {
    padding: 8px 11px;
    color: white;
    border: 1px solid rgba(245, 227, 180, 0.45);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--green-dark);
    background: var(--gold);
    border-color: var(--gold);
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 32px auto;
}

.page-intro {
    padding: clamp(26px, 5vw, 54px);
    color: white;
    background: var(--green);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-intro h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.page-intro p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #f7efd9;
    font-size: 1.1rem;
}

.feature-grid,
.requirements,
.college-list,
.document-list,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.college-list,
.document-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

article,
.content-band,
.faq-list details {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(16, 24, 18, 0.08);
}

article {
    padding: 22px;
}

h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.2;
}

p {
    margin: 0 0 14px;
}

p:last-child,
li:last-child {
    margin-bottom: 0;
}

ol,
ul {
    margin: 0;
    padding-left: 1.25rem;
}

li {
    margin-bottom: 7px;
}

.button,
.document-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    color: var(--green-dark);
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
}

.button.secondary,
.document-actions a + a {
    color: var(--green);
    background: white;
    border-color: var(--line);
}

.content-band {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
    padding: 26px;
}

.prose {
    max-width: 840px;
    margin-top: 24px;
}

.document-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.faq-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.faq-list details {
    padding: 18px 20px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 800;
}

.faq-list p {
    margin-top: 12px;
    color: var(--muted);
}

.contact-grid article {
    min-height: 180px;
}

.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 32px;
    color: #f7efd9;
    background: var(--green-dark);
    border-radius: 8px;
    padding: 20px 24px;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0 0 8px;
}

.site-footer p:last-child {
    margin-bottom: 0;
}

.registration-form {
    display: grid;
    gap: 20px;
    margin-top: 24px;
    padding: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(16, 24, 18, 0.08);
}

.registration-form section {
    display: grid;
    gap: 14px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--ink);
    background: white;
    border: 1px solid #bdb6a3;
    border-radius: 6px;
    font: inherit;
}

input:disabled {
    color: #73776f;
    background: #f3f0e7;
}

.field-note {
    color: #7c6a42;
    font-size: 0.86rem;
    font-weight: 700;
}

.notice {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid;
}

.notice.success {
    color: #11391f;
    background: #e4f3e6;
    border-color: #8ec99b;
}

.notice.error {
    color: #5f1d1d;
    background: #fae7e3;
    border-color: #df9b8f;
}

.small-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 820px) {
    .site-header {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .feature-grid,
    .requirements,
    .college-list,
    .document-list,
    .contact-grid,
    .content-band,
    .field-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .brand img {
        width: 58px;
    }

    .site-nav a {
        width: calc(50% - 4px);
        text-align: center;
    }

    .page-shell {
        width: min(100% - 20px, 1120px);
        margin-top: 18px;
    }
}

.document-editor {
    margin: 24px 0;
    padding: 24px;
    background: white;
    border: 1px solid #bdb6a3;
    border-radius: 8px;
}
.document-editor details { margin-top: 20px; }
.document-editor .document-actions { margin: 16px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.document-versions { padding-left: 24px; }
.document-versions li { margin: 20px 0; overflow-wrap: anywhere; }
.document-versions form { margin-top: 10px; }

.college-editor {
    margin: 24px 0;
    padding: 24px;
    background: white;
    border: 1px solid #bdb6a3;
    border-radius: 8px;
}
.college-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.college-actions button:disabled { opacity: 0.55; cursor: not-allowed; }

.division-collection { margin-top: 28px; border-top: 1px solid #bdb6a3; padding-top: 16px; }

.division-list { list-style: none; margin: 12px 0 18px; padding: 0; }
.division-item { padding: 10px 0; border-bottom: 1px solid #e2ddcf; }
.division-item form { width: 100%; margin: 0; }
.division-item input[type="text"] { display: block; width: 100%; min-height: 34px; padding: 6px 8px; font-size: 0.9rem; }
.division-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.division-actions .button { min-height: 30px; padding: 5px 10px; font-size: 0.8rem; white-space: nowrap; }
.division-actions button:disabled { opacity: 0.55; cursor: not-allowed; }

.division-item-inactive { background: #f4f2ec; padding-left: 10px; padding-right: 10px; border-radius: 4px; }
.division-item-inactive input[type="text"] { color: #6c7069; background: #eeece5; border-color: #d0cbbf; }
.division-item-inactive .division-actions .button { background: #e5e2d9; color: #565d54; border-color: #cbc5b8; }
.division-item-inactive .division-actions .button:hover { background: #d8d4c9; }

.division-item input.division-name-inactive {
    color: #75756e;
    -webkit-text-fill-color: #75756e;
    font-style: italic;
    font-weight: 400;
    background: #e9e7e0;
    border-color: #d0cbbf;
}

.college-editor-inactive { background: #f4f2ec; border-color: #d0cbbf; }
.college-editor-inactive > h2 { color: #75756e; font-style: italic; font-weight: 400; }
.college-editor-inactive input.college-name-inactive {
    color: #75756e;
    -webkit-text-fill-color: #75756e;
    font-style: italic;
    font-weight: 400;
    background: #e9e7e0;
    border-color: #d0cbbf;
}
.college-editor-inactive > .registration-form > .button,
.college-editor-inactive > .college-actions > .button { background: #e5e2d9; color: #565d54; border-color: #cbc5b8; }
.college-editor-inactive > .registration-form > .button:hover,
.college-editor-inactive > .college-actions > .button:hover { background: #d8d4c9; }


/* Keep repeated navigation easy to bypass and keyboard focus visible. */
.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    transform: translateY(-200%);
    padding: 12px 18px;
    color: var(--green-dark);
    background: white;
    border: 2px solid var(--green-dark);
    z-index: 100;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #0d5f1b; outline-offset: 3px; }
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-soft); }
.site-footer a { color: var(--gold-soft); }
.site-footer nav { margin-bottom: 12px; }
.site-information section + section { margin-top: 28px; }
.site-information a { overflow-wrap: anywhere; }

.publication-choice { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; }
.publication-choice input { flex: 0 0 auto; width: auto; min-height: 0; margin-top: 5px; }
.publication-permission { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 6px; }
.publication-permission legend { font-weight: bold; }
.document-actions > div { min-width: 0; overflow-wrap: anywhere; }
.document-actions { flex-wrap: wrap; }
