:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    color: #20283b;
    background: #f3f5f9;
    line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: #111d5e; }
a:focus-visible { outline: 3px solid #e32845; outline-offset: 5px; }

.viewer-container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

.viewer-header {
    background: #111d5e;
    color: #fff;
    padding: 28px 0 32px;
}

.college-name {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.college-name:hover { text-decoration: underline; }
.viewer-eyebrow { margin: 24px 0 6px; font-size: 14px; color: #dce2f2; }
h1 { margin: 0; font-size: clamp(24px, 4vw, 36px); line-height: 1.25; overflow-wrap: anywhere; }
.document-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.button-primary { background: #e32845; color: #fff; }
.button-primary:hover { background: #c21b35; }
.button-secondary { border-color: #7982ae; color: #fff; }
.button-secondary:hover { background: #253271; }
.button:focus-visible { outline-color: #fff; }
.viewer-main { padding-top: 24px; padding-bottom: 40px; }
.document-pages { margin: 0; padding: 0; list-style: none; }
.document-page { margin: 0 0 28px; }
.document-page figure { margin: 0; }

.document-page img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    border: 1px solid #dce1eb;
    box-shadow: 0 2px 10px rgb(17 29 94 / 8%);
}

.document-page figcaption { margin-top: 10px; color: #596174; text-align: center; font-size: 14px; }
.document-error, .page-error { padding: 24px; background: #fff; border: 1px solid #dce1eb; border-radius: 4px; }
.document-error h2 { margin-top: 0; color: #111d5e; }
.document-error li + li { margin-top: 8px; }
.page-error p { margin-top: 0; }
.page-error a { font-weight: 700; }

@media (max-width: 480px) {
    .viewer-container { width: calc(100% - 24px); }
    .viewer-header { padding-top: 22px; padding-bottom: 24px; }
    .college-name { font-size: 14px; }
    .document-controls { gap: 10px; }
    .button { width: 100%; }
    .viewer-main { padding-top: 16px; }
}
