:root {
  --green-900: #123d2e;
  --green-700: #176b4d;
  --green-600: #1f8a5b;
  --mint-100: #e8f5ed;
  --blue-800: #1d3f72;
  --blue-100: #eaf2ff;
  --amber-500: #d99a1e;
  --red-600: #c84c43;
  --ink: #16211d;
  --muted: #64736d;
  --line: #dfe8e3;
  --paper: #ffffff;
  --soft: #f5f8f6;
  --shadow: 0 18px 50px rgba(18, 61, 46, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button:disabled,
.button[disabled] {
  cursor: not-allowed;
  opacity: 0.68;
}

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

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--green-900);
  padding: 10px 14px;
  border-radius: 6px;
}

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

.topbar {
  background: var(--green-900);
  color: #f4fff8;
  font-size: 0.88rem;
}

.topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar span,
.topbar a,
.button,
.text-link,
.panel__head,
.contact-card a,
.download-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar svg,
.button svg,
.text-link svg,
.quicklinks svg,
.panel svg,
.contact-card svg,
.download-list svg,
.info-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.navbar__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--green-700), var(--amber-500));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(31, 138, 91, 0.24);
}

.brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  flex: 0 0 auto;
  background: #fff;
  box-shadow: 0 8px 20px rgba(31, 138, 91, 0.18);
}

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

.brand strong {
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  color: #33433d;
}

.nav-links a:not(.button):hover,
.nav-links a.is-active,
.text-link:hover {
  color: var(--green-700);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--green-900);
}

.button {
  min-height: 44px;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  background: var(--green-700);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(23, 107, 77, 0.25);
}

.button--small {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.button--light {
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-900);
  box-shadow: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero {
  min-height: 620px;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 43, 32, 0.88), rgba(11, 43, 32, 0.52) 46%, rgba(11, 43, 32, 0.12)),
    linear-gradient(0deg, rgba(7, 24, 18, 0.76), transparent 48%);
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: end;
  padding: 92px 0 42px;
  color: #fff;
}

.hero h1,
.section h2,
.login-panel h1 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3.2rem, 8vw, 6.8rem);
}

.hero__lead {
  max-width: 640px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero__panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero__panel div {
  padding: 18px;
  background: rgba(9, 35, 26, 0.28);
}

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

.hero__panel strong {
  font-size: 1.45rem;
}

.hero__panel span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber-500);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quicklinks {
  position: relative;
  z-index: 2;
  margin-top: -24px;
}

.quicklinks__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.quicklinks a {
  min-height: 104px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px 10px;
  text-align: center;
  font-weight: 800;
  border-right: 1px solid var(--line);
}

.quicklinks a:last-child {
  border-right: 0;
}

.quicklinks svg {
  width: 24px;
  height: 24px;
  color: var(--green-700);
}

.school-stats {
  padding: 42px 0 12px;
}

.school-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.school-stats article {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.school-stats strong {
  color: var(--green-700);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
}

.school-stats span {
  color: var(--ink);
  font-weight: 900;
}

.school-stats small {
  color: var(--muted);
}

.section {
  padding: 86px 0;
}

.section--muted {
  background: var(--soft);
}

.split,
.spmb,
.downloads,
.contact-grid,
.sidis__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 46px;
  align-items: start;
}

.section h2,
.login-panel h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section p {
  color: var(--muted);
}

.info-list,
.announcement-list,
.download-list {
  display: grid;
  gap: 14px;
}

.info-list article,
.announcement-list article,
.panel,
.staff-grid article,
.download-list a,
.contact-card,
.login-panel,
.login-aside {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.info-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px;
}

.info-list .headmaster-card {
  grid-template-columns: 92px 1fr;
  align-items: center;
}

.headmaster-card img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
}

.info-list svg {
  width: 32px;
  height: 32px;
  color: var(--green-700);
}

.info-list h3,
.announcement-list h3,
.feature-news h3,
.staff-grid h3,
.panel h2 {
  margin: 0;
  line-height: 1.25;
}

.info-list p,
.announcement-list time,
.feature-news p,
.staff-grid p,
.compact-list,
.panel p {
  margin: 8px 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 26px;
}

.text-link,
.filter-button {
  border: 0;
  background: transparent;
  color: var(--green-700);
  font-weight: 900;
  cursor: pointer;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
}

.feature-news {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: var(--green-900);
}

.feature-news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-news::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 34, 26, 0.92), rgba(10, 34, 26, 0.05) 62%);
}

.feature-news div {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 28px;
}

.feature-news h3 {
  max-width: 680px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.feature-news p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
}

.feature-news a {
  display: inline-block;
  margin-top: 14px;
  font-weight: 900;
  color: #fff;
}

.tag,
.announcement-list span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 0.78rem;
  font-weight: 900;
}

.announcement-list article {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  column-gap: 14px;
  padding: 14px;
}

.announcement-list article img {
  grid-row: span 3;
  width: 104px;
  height: 104px;
  border-radius: 8px;
  object-fit: cover;
}

.announcement-list time {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article,
.spmb-flow article {
  display: flex;
  gap: 14px;
  align-items: start;
  padding: 24px;
  border-radius: 8px;
  background: var(--green-900);
  color: #fff;
}

.spmb-flow {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.steps span,
.spmb-flow span {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--amber-500);
  color: var(--green-900);
  font-weight: 900;
}

.steps strong,
.steps small,
.spmb-flow strong,
.spmb-flow small {
  display: block;
}

.steps small,
.spmb-flow small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.65;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.panel {
  padding: 22px;
}

.panel__head {
  justify-content: space-between;
  color: var(--green-900);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill-row span,
.role-grid span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--green-900);
  font-weight: 800;
  font-size: 0.9rem;
}

.compact-list {
  padding-left: 20px;
  color: var(--muted);
}

.agenda-item {
  display: grid;
  gap: 2px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.agenda-item:first-of-type {
  margin-top: 12px;
}

.agenda-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.staff-grid article {
  padding: 20px;
}

.staff-grid span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 900;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery img,
.gallery__note {
  min-height: 300px;
  border-radius: 8px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__note {
  grid-column: span 2;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
  background: var(--green-900);
  color: #fff;
}

.gallery__note svg {
  width: 36px;
  height: 36px;
  color: var(--amber-500);
}

.gallery__note span {
  color: rgba(255, 255, 255, 0.78);
}

.download-list a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  padding: 16px;
}

.download-list small {
  color: var(--muted);
}

.resource-row--primary {
  background: var(--green-900);
  color: #fff;
}

.resource-row--primary svg,
.resource-row--primary small {
  color: rgba(255, 255, 255, 0.78);
}

.sidis {
  background: var(--green-900);
  color: #fff;
}

.sidis p {
  color: rgba(255, 255, 255, 0.78);
}

.role-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.role-grid span {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-card {
  display: grid;
  padding: 14px;
}

.contact-card a {
  min-height: 48px;
  padding: 10px;
  border-radius: 6px;
  font-weight: 800;
}

.contact-card a:hover {
  background: var(--mint-100);
}

.site-footer {
  background: #0d251c;
  color: #eaf7ef;
}

.reference-strip {
  padding: 54px 0;
  border-top: 1px solid var(--line);
  background: #f7faf8;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.reference-card {
  min-height: 136px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.reference-card span {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.88rem;
}

.reference-card strong {
  color: var(--green-900);
  line-height: 1.25;
}

.reference-card svg {
  width: 20px;
  height: 20px;
  color: var(--green-700);
}

.footer__inner {
  min-height: 136px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__inner p,
.footer__inner span,
.footer__inner small {
  display: block;
  margin: 4px 0 0;
  color: rgba(234, 247, 239, 0.72);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    linear-gradient(rgba(18, 61, 46, 0.76), rgba(18, 61, 46, 0.76)),
    url("../img/gerbang-smpn5-sragen.jpg") center / cover fixed;
}

.login-shell {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.login-panel,
.login-aside {
  padding: 28px;
  box-shadow: var(--shadow);
}

.login-panel {
  display: grid;
  gap: 26px;
}

.login-copy {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #33433d;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.login-aside {
  align-self: stretch;
  background: var(--green-900);
  color: #fff;
}

.login-aside h2 {
  margin: 0 0 18px;
}

.login-aside ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.graduation-page {
  background: var(--soft);
}

.graduation-hero {
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 72px 0;
  background:
    linear-gradient(90deg, rgba(18, 61, 46, 0.92), rgba(18, 61, 46, 0.74)),
    url("../img/hero-school.jpg") center / cover;
  color: #fff;
}

.graduation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: center;
}

.graduation-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 1.04;
}

.graduation-copy p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1rem;
}

.graduation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.graduation-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.graduation-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.graduation-card h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.2;
}

.form-note {
  margin: 0;
  color: var(--muted);
}

.release-status,
.graduation-result {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #fff7ed;
  color: #8a4b10;
  font-weight: 800;
}

.release-status.is-open,
.graduation-result--success {
  background: var(--mint-100);
  color: var(--green-900);
}

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

.graduation-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.graduation-form input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.graduation-form input:disabled,
.graduation-form button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.graduation-result {
  display: none;
  align-items: start;
  flex-direction: column;
  background: var(--blue-100);
  color: var(--blue-800);
}

.graduation-result strong,
.graduation-result span {
  display: block;
}

.graduation-result--locked,
.graduation-result--error,
.graduation-result--loading,
.graduation-result--success {
  display: flex;
}

.graduation-result--error {
  background: #fff1f2;
  color: #9f1239;
}

.graduation-result--locked {
  background: #fff7ed;
  color: #8a4b10;
}

.graduation-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.subpage {
  background: var(--paper);
}

.page-hero {
  padding: 88px 0 68px;
  background:
    linear-gradient(90deg, rgba(18, 61, 46, 0.94), rgba(18, 61, 46, 0.74)),
    url("../img/hero-school.jpg") center / cover;
  color: #fff;
}

.page-hero__inner {
  max-width: 920px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.04;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.12rem;
}

.readable {
  max-width: 860px;
}

.readable h2,
.readable h3 {
  line-height: 1.2;
  color: var(--green-900);
}

.readable h2:first-child,
.readable h3:first-child {
  margin-top: 0;
}

.readable p,
.readable li {
  color: var(--muted);
}

.post-attachment {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.post-attachment strong {
  color: var(--green-900);
}

.post-attachment .button {
  width: fit-content;
}

.readable blockquote {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 5px solid var(--amber-500);
  border-radius: 6px;
  background: var(--mint-100);
  color: var(--green-900);
}

.portrait-panel {
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.portrait-panel img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
}

.portrait-panel h2 {
  margin: 16px 0 4px;
  line-height: 1.2;
}

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}

.tabs a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--green-900);
  font-weight: 900;
}

.empty-state {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
}

.content-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.content-card > img {
  width: calc(100% + 40px);
  height: 190px;
  margin: -20px -20px 16px;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
  background: var(--mint-100);
}

.content-card h2 {
  margin: 8px 0;
  font-size: 1.2rem;
  line-height: 1.28;
}

.content-card time,
.content-card p {
  color: var(--muted);
}

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

.resource-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 800;
}

.resource-row svg {
  width: 22px;
  height: 22px;
  color: var(--green-700);
}

.resource-row small {
  color: var(--muted);
  font-weight: 700;
}

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

.gallery-page img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.directory-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.directory-table th,
.directory-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.directory-table th {
  background: var(--green-900);
  color: #fff;
  font-size: 0.9rem;
}

.directory-table tr:last-child td {
  border-bottom: 0;
}

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

.gtk-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.gtk-card h2 {
  margin: 4px 0;
  font-size: 1.05rem;
  line-height: 1.24;
}

.gtk-card small {
  color: var(--green-700);
  font-weight: 900;
}

.gtk-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.gtk-card > img {
  width: 96px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  object-fit: cover;
  background: var(--mint-100);
}

.gtk-photo {
  width: 96px;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 138, 91, 0.18), rgba(29, 63, 114, 0.12)),
    var(--mint-100);
  border: 1px dashed rgba(23, 107, 77, 0.38);
}

.gtk-photo span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--green-900);
  font-weight: 900;
}

@media (max-width: 920px) {
  .topbar__inner {
    justify-content: center;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    inset: 100% 16px auto;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .hero {
    min-height: 680px;
  }

  .hero__content,
  .split,
  .spmb,
  .downloads,
  .contact-grid,
  .sidis__inner,
  .news-layout,
  .login-shell,
  .graduation-layout {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    max-width: 520px;
  }

  .quicklinks__grid,
  .school-stats__grid,
  .dashboard-grid,
  .staff-grid,
  .gallery,
  .graduation-info,
  .card-grid,
  .gallery-page,
  .reference-grid,
  .gtk-directory {
    grid-template-columns: repeat(2, 1fr);
  }

  .quicklinks a:nth-child(2n) {
    border-right: 0;
  }

  .login-aside {
    display: none;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .topbar {
    display: none;
  }

  .navbar__inner {
    min-height: 64px;
  }

  .brand__mark,
  .brand__logo {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .hero {
    min-height: 640px;
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgba(8, 30, 23, 0.9), rgba(8, 30, 23, 0.5) 72%, rgba(8, 30, 23, 0.24)),
      linear-gradient(90deg, rgba(8, 30, 23, 0.72), rgba(8, 30, 23, 0.16));
  }

  .hero__content {
    padding: 64px 0 28px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__actions,
  .section-head,
  .footer__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .button--light {
    width: 100%;
  }

  .quicklinks {
    margin-top: 0;
  }

  .quicklinks__grid,
  .school-stats__grid,
  .dashboard-grid,
  .staff-grid,
  .gallery,
  .graduation-info,
  .card-grid,
  .gallery-page,
  .reference-grid,
  .gtk-directory {
    grid-template-columns: 1fr;
  }

  .graduation-hero {
    min-height: auto;
    padding: 48px 0;
  }

  .page-hero {
    padding: 56px 0 42px;
  }

  .resource-row {
    grid-template-columns: 26px 1fr;
  }

  .resource-row small {
    grid-column: 2;
  }

  .gtk-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .gtk-photo {
    width: 82px;
  }

  .gallery__note {
    grid-column: auto;
  }

  .quicklinks a {
    min-height: 74px;
    grid-template-columns: 28px 1fr;
    justify-items: start;
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px 18px;
  }

  .quicklinks a:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 0;
  }

  .news-layout {
    gap: 14px;
  }

  .announcement-list article {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .announcement-list article img {
    width: 86px;
    height: 86px;
  }

  .feature-news {
    min-height: 390px;
  }

  .feature-news div {
    padding: 20px;
  }

  .download-list a {
    grid-template-columns: 26px 1fr;
  }

  .download-list small {
    grid-column: 2;
  }
}
