@media (max-width: 991.98px) {
  .data-table col.col-student,
  .data-table col.col-content,
  .data-table col.col-badges {
    width: auto;
  }
}
:root {
  --bg: var(--brand-dark);
  --text: var(--brand-light);
  --muted: rgba(210, 220, 230, 0.75);
  --accent: var(--brand-accent);
  --line: rgba(136, 170, 204, 0.25);
  --panel: var(--brand-surface);
  --glass: var(--brand-glass);
  --rail-green: #1a7f3a;
  --rail-amber: #7a4a00;
  --phosphor: #9afc7c;
  --phosphor-bright: #d8ffd0;
  --phosphor-dim: #0f4224;
  --phosphor-shadow-main: rgba(154, 252, 124, 0.55);
  --phosphor-shadow-alt: rgba(154, 252, 124, 0.35);
  --phosphor-shadow-soft: rgba(154, 252, 124, 0.2);
  --phosphor-overlay-strong: rgba(154, 252, 124, 0.32);
  --phosphor-overlay-mid: rgba(216, 255, 208, 0.22);
  --phosphor-overlay-soft: rgba(15, 66, 36, 0.12);
  --glow1: #164;
  --glow2: #0a2;
  --page-gap: clamp(16px, 5vw, 44px);
}

:root[data-phosphor="amber"] {
  --phosphor: #ffc76b;
  --phosphor-bright: #ffe1bb;
  --phosphor-dim: #5c2c00;
  --phosphor-shadow-main: rgba(255, 199, 107, 0.58);
  --phosphor-shadow-alt: rgba(255, 150, 64, 0.38);
  --phosphor-shadow-soft: rgba(255, 150, 64, 0.22);
  --phosphor-overlay-strong: rgba(255, 199, 107, 0.34);
  --phosphor-overlay-mid: rgba(255, 225, 187, 0.24);
  --phosphor-overlay-soft: rgba(92, 44, 0, 0.14);
  --glow1: #7a4a00;
  --glow2: #3b2200;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  color: var(--text);
  font: 16px/1.6 var(--font-sans, "Segoe UI", system-ui, -apple-system, sans-serif);
  min-height: 100vh;
}



main {
  padding-block: clamp(1.5rem, 3vw, 3.25rem);
}

.container-xl {
  max-width: 100%;
  width: 100%;
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 25px);
}

.site-header .container-xl,
.site-footer .container-xl {
  padding-inline: clamp(12px, 3vw, 18px);
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.terminal-window {
  background: linear-gradient(180deg, rgba(6, 26, 48, 0.9) 0%, rgba(2, 12, 24, 0.88) 100%);
  border: 1px solid rgba(136, 170, 204, 0.35);
  border-radius: 1rem;
  box-shadow: 0 45px 75px rgba(1, 10, 19, 0.72);
  overflow: hidden;
}

.terminal-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, rgba(28, 57, 91, 0.65), rgba(9, 26, 49, 0.78));
  border-bottom: 1px solid rgba(136, 170, 204, 0.25);
  flex-wrap: wrap;
}

.terminal-toolbar .terminal-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

.terminal-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  position: relative;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), inset 0 -1px 2px rgba(0, 0, 0, 0.35);
}

.terminal-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.6), transparent 70%);
  opacity: 0.65;
}

.terminal-button.close {
  background: #ff5f56;
}

.terminal-button.minimize {
  background: #ffbd2e;
}

.terminal-button.zoom {
  background: #27c93f;
}

.terminal-titlebar {
  font-family: var(--font-mono);
  color: rgba(200, 224, 255, 0.85);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-screen {
  padding: clamp(2.25rem, 5vw, 3.25rem);
  color: var(--muted);
  background: radial-gradient(circle at top left, rgba(0, 178, 226, 0.1), transparent 65%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: stretch;
}

.terminal-screen pre {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--phosphor);
  align-self: center;
  filter: drop-shadow(0 0 0.35rem var(--phosphor-shadow-alt));
}

.terminal-screen p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
  text-align: left;
}

.terminal-screen p[data-typewriter] {
  color: var(--phosphor);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-shadow: 0 0 0.65rem var(--phosphor-shadow-main), 0 0 1.35rem var(--phosphor-shadow-soft);
}

.terminal-screen p[data-typewriter] .highlight {
  color: var(--brand-accent);
  display: inline-block;
  padding-inline: 0.1em;
}

.terminal-screen .terminal-title {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.08em;
  color: var(--phosphor-bright);
  text-shadow: 0 0 0.9rem var(--phosphor-shadow-main), 0 0 1.8rem var(--phosphor-shadow-soft);
}

/* directory table */

.data-table-wrapper {
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow-x: auto;
  overflow-y: hidden;
}

.data-table {
  width: 100%;
  color: var(--text);
  background: transparent;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.data-table col.col-student {
  width: 26%;
}

.data-table col.col-content {
  width: 28%;
}

.data-table col.col-badges {
  width: 46%;
}

.data-table thead tr:first-child th:first-child {
  border-top-left-radius: 1rem;
}

.data-table thead tr:first-child th:last-child {
  border-top-right-radius: 1rem;
}

.data-table > :not(caption) > * > * {
  color: var(--text);
  border-bottom: none;
  border-right: none;
}

.data-table thead th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, rgba(28, 57, 91, 0.7), rgba(9, 26, 49, 0.88));
  color: rgba(225, 236, 255, 0.82);
  border-right: 1px solid rgba(136, 170, 204, 0.25);
  border-bottom: 1px solid rgba(136, 170, 204, 0.28);
  padding: 0.85rem 1.2rem;
  text-align: left;
}

.data-table tbody td {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  vertical-align: top;
  background: linear-gradient(135deg, rgba(15, 31, 54, 0.6), rgba(8, 18, 34, 0.78));
  backdrop-filter: blur(20px);
  padding: 1rem 1.25rem;
  text-align: left !important;
  border-bottom: 1px solid rgba(136, 170, 204, 0.15);
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
}

.data-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 1rem;
}

.data-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 1rem;
}

.data-table tbody td:first-child {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.data-table tbody td:first-child a {
  color: var(--accent);
}

.data-table tbody td:first-child .pseudo-link {
  color: var(--accent);
}

.data-table tbody tr:nth-child(even) td {
  background: linear-gradient(135deg, rgba(12, 28, 49, 0.56), rgba(6, 16, 32, 0.74));
}

.data-table tbody tr:hover td {
  background: linear-gradient(135deg, rgba(0, 178, 226, 0.32), rgba(0, 72, 133, 0.45));
  color: var(--brand-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.data-table tbody td:nth-child(3) {
  vertical-align: top;
  text-align: left !important;
  line-height: 0;
}

.data-table tbody td:nth-child(3) .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  line-height: 0;
}

.data-table tbody td:nth-child(3) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin: 2px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.data-table tbody td:nth-child(3) img {
  display: inline-block;
  width: 96px !important;
  height: 96px !important;
  margin: 2px;
  object-fit: contain;
}

.data-table tbody td:nth-child(3) a img {
  width: 100% !important;
  height: 100% !important;
}

.data-table tbody td:nth-child(3) a:hover {
  transform: translateY(-2px);
}

.data-table caption {
  caption-side: top;
  color: var(--muted);
  padding-bottom: 0.75rem;
}

.data-table tfoot td {
  font-family: var(--font-mono);
  color: var(--muted);
  background: rgba(3, 15, 28, 0.85);
  border-top: 1px solid rgba(136, 170, 204, 0.25);
  padding: 0.85rem 1.35rem;
  text-align: right;
}

.table-foot-summary {
  margin-left: auto;
  padding: 0.9rem 1.2rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(12, 28, 49, 0.7), rgba(6, 16, 32, 0.78));
  border: 1px solid rgba(136, 170, 204, 0.2);
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  text-align: left;
  width: fit-content;
  max-width: 100%;
}

.table-foot-summary p {
  margin: 0;
  color: var(--brand-light);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  white-space: nowrap;
}

.directory-summary {
  max-width: 720px;
  color: var(--muted);
}

.brand-card {
  border-radius: 1rem;
  background: rgba(9, 35, 63, 0.55);
  border: 1px solid rgba(136, 170, 204, 0.18);
  backdrop-filter: blur(14px);
  padding: 1.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--brand-light);
}

.brand-card .text-osprey {
  color: var(--brand-light) !important;
}

.brand-card .fa-solid {
  color: var(--brand-accent);
}

.text-brand-light {
  color: var(--brand-light) !important;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  text-shadow: none;
}

.home .section-title {
  color: var(--unf-blue-light);
  text-shadow: none;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: min(100%, 880px);
}

.footer-meta,
.footer-meta a {
  color: var(--brand-light);
}

.footer-meta a:hover,
.footer-meta a:focus {
  color: var(--brand-accent);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-powered {
  color: var(--brand-light);
  text-align: right;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-powered span {
  letter-spacing: 0.08em;
}

.footer-powered img {
  max-width: 160px;
}

@media (max-width: 992px) {
  .container-xl {
    padding-inline: clamp(16px, 4vw, 28px);
  }
}

@media (min-width: 768px) {
  .terminal-toolbar {
    flex-wrap: nowrap;
  }
}

@media (max-width: 768px) {
  .terminal-toolbar {
    flex-wrap: wrap;
  }

  .terminal-screen {
    padding: 1.85rem;
    gap: 1.25rem;
  }

  .terminal-screen pre {
    font-size: 0.7rem;
  }

  .data-table tbody td:nth-child(3) > a,
  .data-table tbody td:nth-child(3) .badges > a {
    width: 68px;
    height: 68px;
  }

  .data-table tbody td:nth-child(3) > img,
  .data-table tbody td:nth-child(3) .badges > img {
    width: 68px !important;
    height: 68px !important;
  }

  .table-foot-summary {
    width: 100%;
  }

  .table-foot-summary p {
    white-space: normal;
  }
}

@media (min-width: 992px) {
  .data-table thead th:first-child,
  .data-table tbody td:first-child {
    width: 20%;
  }

  .data-table thead th:nth-child(2),
  .data-table tbody td:nth-child(2) {
    width: 30%;
  }

  .data-table thead th:nth-child(3),
  .data-table tbody td:nth-child(3) {
    width: 50%;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .terminal-window,
  .data-table tbody td,
  .brand-card {
    background: rgba(3, 20, 40, 0.92);
  }
}

/* Toggle/typewriter helpers now live in css/terminal.css */
