:root {
    --blue-900: #003b71;
    --blue-800: #004b8d;
    --blue-700: #0055a4;
    --green-700: #23624a;
    --gold-700: #947100;
    --red-700: #a33a32;
    --ink: #172033;
    --muted: #5f6b7a;
    --line: #d8dee8;
    --soft-line: #e9edf4;
    --panel: #f7f9fc;
    --white: #ffffff;
    --shadow: 0 18px 48px rgba(16, 31, 53, 0.16);
    --header-height: 176px;
    --sidebar-width: 292px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
}

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

a:hover {
    text-decoration: underline;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 1000;
    transform: translateY(-140%);
    background: var(--blue-900);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 4px;
}

.skip-link:focus {
    transform: translateY(0);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.hidden {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    display: grid;
    grid-template-columns: minmax(390px, 1fr) minmax(260px, 460px) auto;
    align-items: center;
    gap: 22px;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
}

.brand-link:hover {
    text-decoration: none;
}

.brand-mark {
    width: 152px;
    height: 152px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--white);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.15;
    min-width: 0;
}

.brand-text strong {
    color: var(--blue-900);
    font-size: 15px;
}

.brand-text span {
    font-size: 14px;
    color: var(--muted);
}

.header-search {
    position: relative;
}

.header-search input {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 12px 9px 38px;
    background:
        linear-gradient(var(--white), var(--white)) padding-box,
        linear-gradient(90deg, var(--blue-700), var(--green-700)) border-box;
    background-color: var(--white);
    color: var(--ink);
}

.header-search::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid var(--muted);
    border-radius: 50%;
    transform: translateY(-54%);
}

.header-search::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 34px;
    width: 8px;
    height: 2px;
    background: var(--muted);
    transform: rotate(45deg);
}

.search-results {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    z-index: 80;
    max-height: 440px;
    overflow: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.search-result {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--soft-line);
    color: var(--ink);
}

.search-result:last-child {
    border-bottom: 0;
}

.search-result strong {
    display: block;
    color: var(--blue-900);
}

.search-result span {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

.account-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.admin-link {
    font-size: 14px;
    color: var(--blue-900);
    font-weight: 650;
}

.text-button,
.plain-button,
.secondary-button,
.primary-button {
    min-height: 38px;
    border-radius: 6px;
    border: 1px solid transparent;
    padding: 8px 13px;
    font-weight: 650;
}

.text-button {
    background: var(--blue-900);
    color: var(--white);
}

.primary-button {
    background: var(--blue-900);
    color: var(--white);
}

.secondary-button {
    background: var(--white);
    color: var(--blue-900);
    border-color: var(--line);
}

.plain-button {
    background: transparent;
    color: var(--muted);
}

.icon-button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    position: relative;
}

.mobile-menu-button {
    display: none;
    margin-right: 10px;
    flex-shrink: 0;
}

.mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--blue-900);
    margin: 4px auto;
}

.close-button::before,
.close-button::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 18px;
    width: 16px;
    height: 2px;
    background: var(--ink);
}

.close-button::before {
    transform: rotate(45deg);
}

.close-button::after {
    transform: rotate(-45deg);
}

.page-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    border-right: 1px solid var(--line);
    background: #fbfcfe;
    padding: 22px 18px 28px;
}

.sidebar-title {
    font-weight: 750;
    color: var(--blue-900);
    margin-bottom: 14px;
}

.nav-section {
    border-bottom: 1px solid var(--soft-line);
    padding: 4px 0;
}

.nav-section-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: transparent;
    color: var(--ink);
    padding: 9px 4px;
    text-align: left;
    font-weight: 700;
}

.nav-section-header .chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.16s ease;
    flex-shrink: 0;
}

.nav-section.collapsed .chevron {
    transform: rotate(-45deg);
}

.nav-links {
    display: grid;
    gap: 2px;
    padding: 0 0 9px 8px;
}

.nav-section.collapsed .nav-links {
    display: none;
}

.nav-link {
    display: block;
    padding: 7px 9px;
    border-radius: 5px;
    color: var(--muted);
    font-size: 14px;
}

.nav-link:hover {
    background: #eef4fb;
    text-decoration: none;
}

.nav-link.active {
    background: #e8f0f8;
    color: var(--blue-900);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--blue-700);
}

.hidden-nav-item {
    opacity: 0.72;
}

.nav-status {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    margin-left: 6px;
    padding: 1px 6px;
    border: 1px solid #ead7a6;
    border-radius: 999px;
    background: #fff8e6;
    color: #805800;
    font-size: 11px;
    font-weight: 750;
}

.content-shell {
    min-width: 0;
    padding: 0;
}

.content-inner {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 34px 42px 72px;
}

.doc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 224px;
    gap: 42px;
    align-items: start;
}

.doc-main {
    min-width: 0;
}

.doc-aside {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    max-height: calc(100vh - var(--header-height) - 48px);
    overflow: auto;
    border-left: 1px solid var(--line);
    padding-left: 18px;
}

.toc-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0 0 10px;
    font-weight: 800;
}

.toc {
    display: grid;
    gap: 6px;
}

.toc a {
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.breadcrumb span::after {
    content: "/";
    margin-left: 8px;
    color: #a3adbb;
}

.breadcrumb span:last-child::after {
    display: none;
}

.page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
    margin-bottom: 26px;
}

.page-head h1 {
    margin: 0;
    color: var(--blue-900);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: 0;
}

.page-summary {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 18px;
    max-width: 780px;
}

.page-actions {
    display: flex;
    gap: 8px;
}

.meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--soft-line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 30px;
}

.home-hero {
    padding: 38px 0 28px;
}

.home-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
}

.home-hero h1 {
    margin: 0 0 18px;
    color: var(--blue-900);
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.04;
    letter-spacing: 0;
    max-width: 920px;
}

.home-summary {
    max-width: 870px;
    margin: 0 0 14px;
    color: #344153;
    font-size: 18px;
}

.home-copy {
    display: grid;
    gap: 14px;
    max-width: 870px;
    color: #344153;
    font-size: 18px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0 46px;
}

.feature-card,
.process-card,
.attachment-card,
.person-card,
.admin-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.feature-card {
    display: grid;
    align-content: space-between;
    min-height: 210px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(16, 31, 53, 0.06);
}

.feature-card h2,
.process-card h3 {
    color: var(--blue-900);
    margin: 0 0 8px;
}

.feature-card p,
.process-card p {
    margin: 0;
    color: var(--muted);
}

.card-link {
    margin-top: 20px;
    font-weight: 750;
    color: var(--blue-900);
}

.section-title {
    color: var(--blue-900);
    font-size: 28px;
    line-height: 1.2;
    margin: 36px 0 18px;
}

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

.process-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    min-height: 178px;
    color: var(--ink);
}

.process-card:hover {
    text-decoration: none;
    border-color: #b8c7d8;
    box-shadow: 0 10px 28px rgba(16, 31, 53, 0.08);
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--blue-800);
    font-weight: 800;
}

.card-icon.green {
    background: var(--green-700);
}

.card-icon.gold {
    background: var(--gold-700);
}

.card-icon.red {
    background: var(--red-700);
}

.doc-content {
    color: #283548;
}

.doc-content h2 {
    color: var(--blue-900);
    margin: 34px 0 12px;
    line-height: 1.22;
    font-size: 26px;
}

.doc-content h3 {
    color: #24344a;
    margin: 24px 0 8px;
    line-height: 1.25;
    font-size: 20px;
}

.doc-content p {
    margin: 0 0 16px;
}

.doc-content ul,
.doc-content ol {
    padding-left: 24px;
}

.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid var(--line);
    font-size: 15px;
}

.doc-content th,
.doc-content td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--soft-line);
    text-align: left;
    vertical-align: top;
}

.doc-content th {
    background: #f0f5fa;
    color: var(--blue-900);
}

.process-diagram-section {
    margin: 28px 0 34px;
    padding: 22px 0 4px;
    border-top: 1px solid var(--soft-line);
    border-bottom: 1px solid var(--soft-line);
}

.diagram-label {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.process-flow {
    position: relative;
    display: grid;
    gap: 14px;
    margin: 20px 0 12px;
    padding: 0 0 0 44px !important;
    list-style: none;
}

.process-flow::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 18px;
    width: 2px;
    background: #c7d3e0;
}

.process-node {
    position: relative;
}

.process-number {
    position: absolute;
    left: -44px;
    top: 14px;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: var(--blue-900);
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 0 0 1px #c7d3e0;
}

.process-node-body {
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue-700);
    border-radius: 8px;
    background: var(--white);
    padding: 14px 16px;
}

.process-node:nth-child(3n + 2) .process-node-body {
    border-left-color: var(--green-700);
}

.process-node:nth-child(3n) .process-node-body {
    border-left-color: var(--gold-700);
}

.process-node-body h3 {
    margin: 0 0 6px;
    color: var(--blue-900);
    font-size: 19px;
}

.process-node-body p {
    margin: 0;
}

.process-details {
    display: grid;
    gap: 4px;
    margin: 10px 0 0;
    padding-left: 18px !important;
    color: var(--muted);
    font-size: 14px;
}

.diagram-source {
    margin: 10px 0 16px;
    color: var(--muted);
    font-size: 13px;
}

.admission-flow-section {
    margin: 28px 0 34px;
    padding: 22px 0 4px;
    border-top: 1px solid var(--soft-line);
    border-bottom: 1px solid var(--soft-line);
}

.admission-flow {
    position: relative;
    display: grid;
    gap: 16px;
    margin: 20px 0 12px;
    padding: 0 0 0 50px !important;
    list-style: none;
}

.admission-flow::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 19px;
    width: 2px;
    background: #c7d3e0;
}

.admission-flow-step {
    position: relative;
}

.admission-flow-number {
    position: absolute;
    left: -50px;
    top: 14px;
    z-index: 1;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: var(--blue-900);
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 0 0 1px #c7d3e0;
}

.admission-flow-card {
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue-700);
    border-radius: 8px;
    background: var(--white);
    padding: 14px 16px;
}

.admission-flow-step:nth-child(2) .admission-flow-card,
.admission-flow-step:nth-child(3) .admission-flow-card {
    border-left-color: var(--green-700);
}

.admission-flow-step:nth-child(4) .admission-flow-card {
    border-left-color: var(--gold-700);
}

.admission-flow-card h3 {
    margin: 0 0 6px;
    color: var(--blue-900);
    font-size: 19px;
}

.admission-flow-card p {
    margin: 0;
}

.admission-flow-card ul {
    display: grid;
    gap: 4px;
    margin: 10px 0 0;
    padding-left: 18px !important;
    color: var(--muted);
    font-size: 14px;
}

.admission-decision-card {
    border-left-color: var(--red-700);
}

.admission-decision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.admission-decision-outcome {
    padding: 14px;
    background: #f9fbfd;
}

.admission-decision-outcome + .admission-decision-outcome {
    border-left: 1px solid var(--line);
}

.admission-decision-outcome span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.admission-decision-outcome.standard span {
    background: #e8f7f0;
    color: var(--green-700);
}

.admission-decision-outcome.non-standard span {
    background: #fff1ef;
    color: var(--red-700);
}

.admission-decision-outcome h4 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 17px;
}

.admission-decision-outcome p {
    color: var(--muted);
    font-size: 14px;
}

.admission-decision-outcome h5 {
    margin: 14px 0 6px;
    color: var(--blue-900);
    font-size: 14px;
}

.admission-decision-outcome ul {
    display: grid;
    gap: 5px;
    margin: 8px 0 0;
    padding-left: 18px !important;
    color: var(--muted);
    font-size: 13px;
}

.admission-decision-outcome a {
    color: var(--blue-900);
}

.document-checklist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}

.document-checklist-grid section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 16px;
}

.document-checklist-grid h3 {
    margin: 0 0 10px;
    color: var(--blue-900);
    font-size: 18px;
}

.document-checklist-grid ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 18px !important;
    color: var(--muted);
    font-size: 14px;
}

.gantt-section {
    margin: 28px 0 34px;
    padding: 22px 0 4px;
    border-top: 1px solid var(--soft-line);
    border-bottom: 1px solid var(--soft-line);
}

.gantt-scroll {
    overflow-x: auto;
    margin: 18px 0 12px;
    padding-bottom: 8px;
}

.gantt-chart {
    display: grid;
    grid-template-columns: 148px minmax(820px, 1fr);
    gap: 8px 12px;
    min-width: 980px;
}

.gantt-track-label {
    display: flex;
    align-items: center;
    min-height: 42px;
    color: var(--blue-900);
    font-size: 14px;
    font-weight: 800;
}

.gantt-months,
.gantt-track {
    display: grid;
    grid-template-columns: repeat(var(--months), minmax(14px, 1fr));
}

.gantt-months {
    min-height: 42px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.gantt-months span {
    display: flex;
    align-items: end;
    justify-content: center;
    border-left: 1px solid var(--soft-line);
    padding-bottom: 6px;
}

.gantt-months .major {
    color: var(--blue-900);
    font-weight: 800;
}

.gantt-track {
    position: relative;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        repeating-linear-gradient(
            to right,
            #f8fafc 0,
            #f8fafc calc(100% / var(--months) - 1px),
            #e6ebf2 calc(100% / var(--months) - 1px),
            #e6ebf2 calc(100% / var(--months))
        );
}

.gantt-marker {
    grid-column: var(--month);
    align-self: center;
    justify-self: center;
    z-index: 1;
    max-width: 84px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.gantt-marker span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid #b9c8d8;
    border-radius: 999px;
    background: var(--white);
    color: var(--blue-900);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(16, 31, 53, 0.08);
}

.gantt-marker.sta span {
    border-color: #e1c46d;
    background: #fff7dc;
    color: #765a00;
}

.gantt-legend {
    display: grid;
    gap: 4px;
    margin: 12px 0 18px;
    padding-left: 20px !important;
    color: var(--muted);
    font-size: 14px;
}

.gantt-legend strong {
    color: var(--blue-900);
}

.callout {
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue-700);
    background: #f5f9fd;
    padding: 14px 16px;
    border-radius: 6px;
    margin: 20px 0;
}

.callout.warning {
    border-left-color: var(--gold-700);
    background: #fffaf0;
}

.callout.success {
    border-left-color: var(--green-700);
    background: #f2faf6;
}

.callout strong {
    color: var(--blue-900);
}

.accordion {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    margin: 18px 0;
}

.accordion details {
    border-bottom: 1px solid var(--soft-line);
    background: var(--white);
}

.accordion details:last-child {
    border-bottom: 0;
}

.accordion summary {
    padding: 14px 16px;
    font-weight: 750;
    color: var(--blue-900);
    cursor: pointer;
}

.accordion .accordion-body {
    padding: 0 16px 16px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 28px;
}

.person-card {
    padding: 18px;
    min-width: 0;
}

.person-photo,
.person-placeholder {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e7edf4;
    background: #eef3f8;
    display: grid;
    place-items: center;
    color: var(--blue-900);
    font-weight: 800;
    margin-bottom: 12px;
}

.person-card h3 {
    margin: 0 0 4px;
    color: var(--ink);
}

.person-card p,
.person-card a {
    overflow-wrap: anywhere;
}

.person-role {
    color: var(--blue-900);
    font-weight: 700;
    margin-bottom: 8px;
}

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

.attachment-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
}

.file-icon {
    width: 42px;
    height: 48px;
    border: 2px solid var(--line);
    border-radius: 5px;
    position: relative;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--blue-900);
    background: var(--panel);
}

.file-icon::after {
    content: "";
    position: absolute;
    right: -2px;
    top: -2px;
    width: 12px;
    height: 12px;
    background: var(--white);
    border-left: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
}

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

.admin-panel {
    margin: 0 0 28px;
    padding: 22px 0 30px;
    border-bottom: 1px solid var(--soft-line);
}

.admin-panel-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-panel-header h2 {
    margin: 0 0 6px;
    color: var(--blue-900);
    font-size: 26px;
}

.admin-panel-header p {
    margin: 0;
    color: var(--muted);
}

.admin-page-manager {
    display: grid;
    gap: 18px;
}

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

.role-editor-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 16px;
}

.role-editor-card h3 {
    margin: 0 0 4px;
    color: var(--blue-900);
    font-size: 18px;
}

.role-editor-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

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

.role-field-grid label {
    display: grid;
    gap: 5px;
    color: var(--blue-900);
    font-size: 13px;
    font-weight: 750;
}

.role-field-grid input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    padding: 8px 10px;
}

.admin-category {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    overflow: hidden;
}

.admin-category-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--soft-line);
    background: var(--panel);
}

.admin-category-header h3 {
    margin: 0 0 2px;
    color: var(--blue-900);
    font-size: 18px;
}

.admin-category-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.admin-category-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-page-list {
    display: grid;
    margin: 0;
    padding: 0 !important;
    list-style: none;
}

.admin-page-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--soft-line);
}

.admin-page-row:last-child {
    border-bottom: 0;
}

.hidden-admin-item {
    background: #fffaf0;
}

.admin-page-main strong,
.admin-page-main span,
.admin-page-main p {
    display: block;
}

.admin-page-main strong {
    color: var(--ink);
}

.admin-page-main span {
    color: var(--blue-900);
    font-size: 13px;
    font-weight: 700;
}

.admin-page-main p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.status-badge {
    display: inline-flex !important;
    width: fit-content;
    align-items: center;
    min-height: 22px;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.2;
}

.status-badge.published {
    border: 1px solid #b8decf;
    background: #e8f7f0;
    color: var(--green-700);
}

.status-badge.hidden-status {
    border: 1px solid #ead7a6;
    background: #fff8e6;
    color: #805800;
}

.admin-page-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.admin-page-controls select {
    min-height: 38px;
    max-width: 210px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    padding: 7px 10px;
}

.danger-button {
    color: var(--red-700);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.admin-card {
    padding: 18px;
}

.admin-card h2 {
    margin: 0 0 8px;
    color: var(--blue-900);
    font-size: 20px;
}

.mobile-backdrop,
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(9, 22, 41, 0.38);
}

.mobile-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(88vw, 340px);
    z-index: 100;
    background: var(--white);
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: auto;
    padding: 18px;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 800;
    color: var(--blue-900);
}

.modal-backdrop {
    display: grid;
    place-items: center;
    padding: 20px;
}

.mobile-backdrop[hidden],
.mobile-drawer[hidden],
.modal-backdrop[hidden] {
    display: none;
}

.modal {
    width: min(920px, 100%);
    max-height: min(860px, 92vh);
    overflow: auto;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    padding: 24px;
}

.narrow-modal {
    width: min(620px, 100%);
}

.modal-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.eyebrow {
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    color: var(--muted);
    font-weight: 800;
}

.modal h2 {
    margin: 0;
    color: var(--blue-900);
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    margin-bottom: 16px;
}

.editor-toolbar button {
    min-width: 38px;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--white);
    color: var(--ink);
    font-weight: 700;
}

.field-label {
    display: block;
    color: var(--blue-900);
    font-weight: 750;
    margin: 12px 0 6px;
}

.editor-meta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.editor-title-input,
.editor-body {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
}

.editor-body {
    min-height: 320px;
    resize: vertical;
}

.tox.tox-tinymce {
    border-color: var(--line);
    border-radius: 6px;
}

.form-status {
    min-height: 22px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.form-status.error {
    color: var(--red-700);
}

.check-field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--ink);
    font-weight: 650;
}

.check-field input {
    width: 18px;
    height: 18px;
}

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

.history-list {
    display: grid;
    gap: 12px;
}

.history-list article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.history-list strong,
.history-list span {
    display: block;
}

.history-list span {
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .site-header {
        grid-template-columns: minmax(330px, 1fr) minmax(220px, 360px) auto;
    }

    .doc-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .doc-aside {
        display: none;
    }

    .process-grid,
    .document-checklist-grid,
    .role-editor-grid,
    .admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 860px) {
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        height: auto;
        min-height: var(--header-height);
        padding: 10px 14px;
    }

    .header-search {
        grid-column: 1 / -1;
        order: 3;
    }

    .mobile-menu-button {
        display: block;
    }

    .page-shell {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .content-inner {
        padding: 24px 18px 56px;
    }

    .page-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-hero-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-actions {
        justify-content: flex-start;
    }

    .admission-decision-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .admission-decision-outcome + .admission-decision-outcome {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .admin-panel-header,
    .admin-category-header,
    .admin-page-row,
    .role-editor-grid,
    .role-field-grid,
    .editor-meta-grid {
        grid-template-columns: 1fr;
    }

    .admin-panel-header,
    .admin-category-header {
        display: grid;
    }

    .admin-category-controls,
    .admin-page-controls {
        justify-content: flex-start;
    }

    .admin-page-controls select {
        max-width: 100%;
    }

    .featured-grid,
    .process-grid,
    .attachment-grid,
    .document-checklist-grid,
    .admin-grid,
    .people-grid {
        grid-template-columns: 1fr;
    }

    .process-card,
    .attachment-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .attachment-card .secondary-button {
        grid-column: 2;
        justify-self: start;
    }

    .brand-text strong {
        font-size: 14px;
    }

    .brand-text span {
        font-size: 13px;
    }
}
