:root {
  --ink: #173d36;
  --green: #0b5547;
  --deep: #103f36;
  --muted: #536761;
  --gold: #e8c98d;
  --line: #dbe3dc;
  --paper: #faf9f5;
  --max: 1160px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Cairo, Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
body:has(dialog[open]) {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #bc852c;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(calc(100% - 72px), var(--max));
  margin-inline: auto;
}
.ic {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: middle;
}
.skip {
  position: fixed;
  z-index: 10;
  top: -6rem;
  right: 1rem;
  background: white;
  padding: 0.6rem 1rem;
}
.skip:focus {
  top: 1rem;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
b,
strong {
  line-height: 1.45;
}
button {
  color: inherit;
}
header {
  background: #fff;
  border-bottom: 1px solid #e0e7e0;
  position: relative;
  z-index: 4;
}
.topbar {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  width: 57px;
  height: 57px;
  object-fit: contain;
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font-size: 1.32rem;
  color: #154535;
  font-weight: 800;
}
.brand small {
  font-size: 0.84rem;
  color: #5e7067;
  line-height: 1.5;
}
.topbar nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 2rem;
}
.topbar nav a {
  display: grid;
  align-content: center;
  position: relative;
  font-weight: 650;
  color: #475e55;
}
.topbar nav a:hover,
.topbar nav a[aria-current] {
  color: var(--green);
}
.topbar nav a[aria-current]:after {
  content: '';
  position: absolute;
  height: 3px;
  inset: auto 5% 14px;
  background: #b68a44;
  border-radius: 99px;
}
.head-tools {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.admin-link,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid #c7d6ce;
  border-radius: 7px;
  color: #315e4f;
  background: white;
  font-size: 0.91rem;
  font-weight: 700;
}
.nav-toggle {
  display: none;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(110deg, #123e35 0%, #12483c 47%, #083a31 100%);
  color: #fff;
}
.hero:before,
.subhead:after {
  position: absolute;
  content: '';
  width: 62%;
  inset: 0 0 0 auto;
  background-image: url('tiles.svg');
  background-size: 74px;
  opacity: 0.15;
  mask-image: linear-gradient(270deg, black, transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 5%;
  min-height: 468px;
  padding-block: 38px 32px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 535px;
}
.place {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #ead5a9;
  font-size: 0.93rem;
  font-weight: 600;
}
.place .ic {
  width: 16px;
}
.place i {
  width: 4px;
  height: 4px;
  background: #d1b57d;
  transform: rotate(45deg);
}
.hero h1 {
  font-size: clamp(3rem, 5vw, 4.9rem);
  line-height: 1.32;
  font-weight: 800;
  margin: 0.35rem 0 0.72rem;
  letter-spacing: -0.05em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero p {
  font-size: 1.12rem;
  line-height: 1.9;
  color: #e2eae2;
  max-width: 440px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1.45rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 7px;
  border: 1px solid transparent;
  padding: 0.55rem 1.15rem;
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1.6;
  min-height: 43px;
}
.button:disabled {
  opacity: 0.58;
  cursor: default;
}
.button.gold {
  background: #ead09a;
  color: #213e30;
}
.button.ghost {
  border-color: #85a69a;
  color: #fff;
  background: #154e40;
}
.button.primary {
  background: var(--green);
  color: white;
}
.button.soft {
  background: #e9f0e9;
  color: #205542;
}
.button.outline {
  background: transparent;
  border-color: #bdcfc3;
}
.button:hover:not(:disabled) {
  filter: brightness(0.95);
}
.hero-art {
  position: relative;
  width: 100%;
  max-width: 485px;
  aspect-ratio: 1.36;
  margin: auto;
  align-self: end;
  display: flex;
  align-items: end;
  justify-content: center;
  isolation: isolate;
}
.arch-ring {
  position: absolute;
  inset: 0 4% 0;
  border-radius: 52% 52% 8px 8px / 64% 64% 8px 8px;
  border: 1px solid #bd9a59;
  padding: 9px;
  box-shadow:
    0 0 0 7px #184c40,
    0 0 0 8px #70907a;
}
.arch {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: radial-gradient(ellipse at 46% 44%, #ffefd0 3%, #ebc78e 85%);
  border: 2px solid #ccaa6f;
}
.arch:before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid #aa834f78;
  border-bottom: none;
  border-radius: inherit;
}
.arch-pattern {
  position: absolute;
  inset: 0;
  background: url('tiles.svg') repeat center/52px;
  opacity: 0.32;
}
.arch:after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 24%;
  background: linear-gradient(0deg, #b68546, #dfb477);
  border-top: 2px solid #bb965e;
}
.arch img {
  position: absolute;
  z-index: 1;
  width: 98%;
  height: 84%;
  object-fit: contain;
  object-position: bottom;
  bottom: 4%;
  left: 1%;
  filter: drop-shadow(0 7px 6px #62381230);
}
.sill {
  position: absolute;
  bottom: -3%;
  width: 100%;
  height: 5%;
  background: linear-gradient(#d3b47d 0 25%, #8e724b 25% 40%, #bb9a68 40% 77%, #846b49 77%);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 8px 16px #001c1844;
}
.tileband {
  height: 9px;
  background: #d5ba81 url('tiles.svg') center / 33px;
  border-block: 1px solid #b89961;
}
.services {
  padding-block: 40px 60px;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 21px;
}
.section-head h2 {
  font-weight: 800;
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
}
.orn {
  display: flex;
  color: #a37c39;
}
.orn .ic {
  width: 27px;
  height: 27px;
}
.rule {
  height: 1px;
  background: linear-gradient(to left, #d6dcd1, transparent);
  flex: 1;
  margin-inline-start: 10px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.grid.duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.service {
  --accent: #9c6928;
  --tint: #f6edd9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #d8dfd5;
  padding: 24px 25px 18px;
  border-radius: 13px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 12px #27453606;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.service:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.service:after {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100px;
  height: 75px;
  background: url('tiles.svg') left top/45px;
  opacity: 0.23;
  mask-image: linear-gradient(42deg, transparent 30%, black);
}
.service.admission {
  --accent: #236754;
  --tint: #e5f1e9;
}
.service.grades {
  --accent: #365d7a;
  --tint: #e9eff4;
}
.service-icon,
.heading-icon {
  display: grid;
  place-items: center;
  background: var(--tint, #e5f1e9);
  color: var(--accent, #236754);
  width: 50px;
  height: 50px;
  border-radius: 13px;
}
.service-icon .ic {
  width: 27px;
  height: 27px;
}
.service h3 {
  font-size: 1.32rem;
  font-weight: 800;
  margin: 13px 0 4px;
}
.service p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.card-act {
  border-top: 1px solid #e4e8e0;
  display: block;
  width: 100%;
  padding-top: 12px;
  margin-top: auto;
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 750;
}
footer {
  border-top: 1px solid #d8e0d8;
  background: #f0f3ec;
}
.foot {
  min-height: 97px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
}
.foot b {
  font-weight: 750;
}
.foot small,
.foot a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #536b5f;
  font-size: 0.88rem;
}
.foot a {
  font-weight: 700;
}
.subhead {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #1c5344, #0c3e34);
  color: white;
  padding: 18px 0 32px;
}
.subhead:after {
  inset: 0 auto 0 0;
  mask-image: linear-gradient(90deg, black, transparent);
  opacity: 0.24;
}
.subhead .wrap {
  position: relative;
  z-index: 1;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  color: #d4e4d9;
}
.crumb a:hover {
  text-decoration: underline;
}
.crumb .ic {
  width: 12px;
}
.headline {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}
.heading-icon {
  background: #e7ce951c;
  border: 1px solid #d8bd7f66;
  color: #ecd299;
  flex: none;
}
.heading-icon .ic {
  width: 26px;
  height: 26px;
}
.headline h1 {
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  font-weight: 800;
}
.headline p {
  color: #e1e9e3;
  margin-top: 3px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.85fr);
  align-items: start;
  gap: 24px;
  padding-block: 32px 54px;
}
.panel,
.report {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: clamp(18px, 3.2vw, 32px);
  box-shadow: 0 5px 20px #14362806;
}
.panel h2,
dialog h2,
.report h2 {
  font-size: 1.45rem;
  margin-bottom: 16px;
}
.aside-box {
  position: relative;
  overflow: hidden;
  border: 1px solid #ddd9c9;
  border-radius: 13px;
  background: #f4f0e4;
  padding: 25px;
}
.aside-box h2 {
  font-size: 1.17rem;
  margin: 0.6rem 0;
}
.aside-box ul {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  padding-inline-start: 20px;
  color: #516056;
}
.aside-box li + li {
  margin-top: 8px;
}
.aside-emblem {
  color: #8d6a2c;
}
.aside-emblem .ic {
  width: 29px;
  height: 29px;
}
.aside-deco {
  position: absolute;
  bottom: -39px;
  left: 0;
  font-size: 100px;
  color: #ab945824;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
label {
  display: block;
  font-size: 0.93rem;
  font-weight: 650;
  margin: 0 0 14px;
}
label small,
h3 small {
  font-weight: 400;
  color: var(--muted);
}
input:not([type='checkbox']),
select,
textarea,
output {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid #bacbc0;
  background: #fff;
  border-radius: 7px;
  padding: 0.45rem 0.75rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
  min-height: 43px;
  margin-top: 5px;
}
input:read-only {
  background: #f4f6f1;
  color: #586c5c;
}
textarea {
  resize: vertical;
}
select {
  appearance: none;
  padding-inline-end: 30px;
  background: #fff url('chevron.svg') no-repeat 12px center / 12px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #3e584a;
  font-weight: 500;
}
.check input {
  margin: 6px 0 0;
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  flex-shrink: 0;
}
.feedback {
  padding: 9px 13px;
  background: #fbece5;
  border: 1px solid #e6c2b0;
  color: #823c24;
  margin: 12px 0;
  border-radius: 6px;
}
.feedback.good {
  background: #e6f2e8;
  color: #225c38;
  border-color: #afd2b6;
}
.success b,
output {
  display: block;
  background: #f2f5ed;
  padding: 0.85rem;
  border-radius: 6px;
  font-family: monospace;
  letter-spacing: 1px;
  text-align: center;
  font-size: 1.16rem;
  margin: 0.8rem 0 1.2rem;
}
.success h2 {
  margin: 0.8rem 0;
}
.admin-area,
.report-area {
  padding-block: 32px 55px;
}
.narrow {
  max-width: 500px;
  margin: auto;
}
.desk-head,
.report-actions,
.dialog-title,
.marks-head,
.dialog-foot,
.pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.desk-head {
  margin-bottom: 16px;
}
.desk-head span {
  color: var(--muted);
  margin-inline-end: 8px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin: 10px 0 18px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  background: transparent;
  border: 0;
  padding: 9px 15px;
  font-weight: 700;
  border-bottom: 3px solid transparent;
}
.tabs button[aria-pressed='true'] {
  border-bottom-color: var(--green);
  color: var(--green);
}
.toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar label {
  margin: 0;
}
.toolbar label:first-child {
  flex: 1;
  min-width: 165px;
}
.pager {
  justify-content: center;
  margin-top: 18px;
}
.record {
  border-top: 1px solid var(--line);
  padding: 14px 0;
  overflow-wrap: anywhere;
}
.record h3 {
  font-size: 1.1rem;
}
.record-top,
.record-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.record-top {
  justify-content: space-between;
}
.record-actions {
  margin-top: 10px;
}
.record details {
  margin-top: 8px;
}
.record summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 650;
}
.record dl,
.report dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 15px;
  margin: 8px 0;
}
.record dd,
.report dd {
  margin: 0;
}
.record dt,
.report dt,
.meta {
  color: var(--muted);
}
.status {
  font-size: 0.86rem;
  border-radius: 5px;
  background: #edf1e7;
  color: #4a6245;
  padding: 1px 8px;
}
.status.live {
  background: #dbeee1;
  color: #185735;
}
.record-actions label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.record-actions select {
  margin: 0;
  min-width: 125px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  width: min(650px, calc(100% - 24px));
  max-height: 88dvh;
  padding: 22px;
  color: var(--ink);
  background: var(--paper);
}
dialog::backdrop {
  background: #0c2c25a6;
}
dialog h2 {
  margin: 0;
}
.dialog-title {
  margin-bottom: 16px;
}
.marks-head {
  margin: 10px 0;
}
.mark-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr auto;
  gap: 9px;
  align-items: end;
}
.mark-row .button {
  margin-bottom: 14px;
}
.report-actions {
  justify-content: flex-start;
  margin-bottom: 18px;
}
.report {
  margin-bottom: 15px;
}
.report-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.report-header img {
  width: 50px;
}
.report h2 {
  margin: 0;
}
.report .overall {
  margin: 15px 0;
  padding: 10px 15px;
  background: #e9f3eb;
  border-radius: 7px;
  font-weight: 750;
}
.report table {
  width: 100%;
  border-collapse: collapse;
}
.report th,
.report td {
  text-align: start;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
}
.report th {
  background: #f4f5f0;
}
.report .comment {
  margin-top: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.report-area {
  max-width: 840px;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}
@media (min-width: 1300px) {
  .hero-inner {
    min-height: 495px;
  }
  .hero-art {
    align-self: center;
  }
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .topbar {
    gap: 14px;
    height: 76px;
  }
  .topbar nav {
    gap: 16px;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
  .hero-inner {
    gap: 4%;
    min-height: 378px;
  }
  .hero h1 {
    font-size: 3.3rem;
  }
  .hero-art {
    align-self: center;
  }
  .grid {
    gap: 12px;
  }
  .service {
    padding: 18px;
  }
  .layout {
    gap: 15px;
  }
  .hero p {
    font-size: 1rem;
  }
}
@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .topbar {
    height: 70px;
  }
  .brand {
    gap: 6px;
  }
  .brand strong {
    font-size: 1.05rem;
  }
  .brand small {
    font-size: 0.75rem;
  }
  .brand img {
    width: 41px;
    height: 41px;
  }
  .admin-link {
    padding: 6px 9px;
    font-size: 0.82rem;
  }
  .nav-toggle {
    display: flex;
    padding: 8px;
  }
  .topbar nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    background: #fff;
    padding: 8px 16px;
    box-shadow: 0 6px 12px #143b2724;
  }
  .topbar nav.open {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .topbar nav a {
    padding: 9px;
  }
  .topbar nav a[aria-current]:after {
    inset: 10px 0 10px auto;
    width: 3px;
    height: auto;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding-block: 28px 18px;
    gap: 23px;
  }
  .hero-copy {
    margin: auto;
    text-align: center;
    max-width: 470px;
  }
  .place {
    font-size: 0.86rem;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 10vw, 3.65rem);
    line-height: 1.25;
    margin: 0.3rem 0 0.6rem;
  }
  .hero p {
    font-size: 1rem;
    line-height: 1.75;
  }
  .hero-actions {
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
  }
  .hero-actions .button {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
  }
  .hero-art {
    width: min(77%, 315px);
    aspect-ratio: 1.7;
  }
  .arch-ring {
    border-radius: 52% 52% 6px 6px / 75% 75% 6px 6px;
    padding: 5px;
  }
  .services {
    padding-block: 24px 32px;
  }
  .section-head {
    gap: 8px;
    margin-bottom: 13px;
  }
  .grid,
  .grid.duo,
  .layout {
    grid-template-columns: 1fr;
  }
  .service {
    padding: 17px 18px;
  }
  .service-icon {
    width: 43px;
    height: 43px;
  }
  .service h3 {
    margin-top: 8px;
  }
  .service p {
    margin-bottom: 11px;
  }
  .layout {
    padding-block: 20px 30px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .foot {
    align-items: flex-start;
    gap: 12px;
  }
  .foot b {
    font-size: 0.88rem;
  }
  .foot small,
  .foot a {
    font-size: 0.8rem;
  }
  .subhead {
    padding-block: 13px 23px;
  }
  .headline {
    margin-top: 14px;
    gap: 10px;
  }
  .headline p {
    font-size: 0.95rem;
  }
  .heading-icon {
    width: 42px;
    height: 42px;
  }
  .mark-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.75fr) auto;
    gap: 5px;
  }
  .mark-row .button {
    padding: 6px;
  }
  .report-actions {
    gap: 7px;
  }
  .report-actions h2 {
    width: 100%;
  }
  .admin-area {
    padding-block: 20px;
  }
  .panel {
    padding: 17px;
  }
}
@media (max-width: 365px) {
  .admin-link span {
    display: none;
  }
  .hero-actions .ic {
    display: none;
  }
  .foot {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  @page {
    size: A4;
    margin: 14mm;
  }
  html,
  body {
    background: white;
  }
  .skip,
  header,
  footer,
  .subhead,
  #lookup-layout,
  .report-actions {
    display: none !important;
  }
  .report-area,
  .wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .report {
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    break-after: page;
  }
  .report:last-child {
    break-after: auto;
  }
  .report tr {
    break-inside: avoid;
  }
}

@media (min-width: 681px) {
  .topbar:not(:has(.admin-link)) nav {
    margin-inline-start: auto;
  }
  .head-tools:not(:has(.admin-link)) {
    display: none;
  }
}
