/* INC KMUTT - Download Center 2026
   Styles the HTML emitted by Nginx autoindex.
   Metadata is visually hidden, not removed from the HTML response. */
:root { color-scheme: light; }
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0 auto;
  padding: 48px 24px 72px;
  max-width: 1120px;
  min-height: 100vh;
  color: #20314e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", Arial, sans-serif;
  background: radial-gradient(ellipse at 15% 0%, #deeeff 0%, transparent 42%),
              radial-gradient(ellipse at 95% 0%, #e0fbf2 0%, transparent 40%),
              #f5f8fc;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "INC  /  KMUTT     \2022      FILE LIBRARY";
  display: block;
  margin: 0 0 30px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}
h1 {
  margin: 0 0 28px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.035em;
  color: #112747;
  overflow-wrap: anywhere;
}
hr { display: none; }
pre {
  display: block;
  margin: 0;
  padding: 16px;
  border: 1px solid #e1e9f3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(34, 65, 103, .08);
  font-size: 0 !important;
  line-height: 0 !important;
  white-space: normal;
}
pre a {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  margin: 4px 0;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #26466f;
  background: transparent;
  font-family: inherit;
  font-size: 15px !important;
  line-height: 1.55 !important;
  font-weight: 550;
  text-decoration: none;
  overflow-wrap: anywhere;
  white-space: normal;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
pre a::before {
  content: "\1F4C4 ";
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #edf3ff;
  font-size: 22px;
}
pre a[href$="/"]::before { content: "\1F4C1 "; background: #fff2dc; }
pre a[href="../"] { color: #71819b; }
pre a[href="../"]::before { content: "\21A9 "; color: #526683; background: #eff3f8; font-size: 23px; }
pre a:hover, pre a:focus-visible {
  background: #f3f8ff;
  border-color: #dce9fc;
  transform: translateX(2px);
  outline: none;
}
pre a:focus-visible { box-shadow: 0 0 0 3px #b4d3ff; }
pre a:active { transform: translateX(0); }
body::after {
  content: "INC \2022  King Mongkut's University of Technology Thonburi";
  display: block;
  margin-top: 24px;
  color: #8694a9;
  font-size: 12px;
  text-align: center;
}
@media (max-width: 640px) {
  body { padding: 28px 14px 50px; }
  body::before { font-size: 10px; margin-bottom: 24px; }
  h1 { margin-bottom: 20px; }
  pre { padding: 8px; border-radius: 15px; }
  pre a { font-size: 14px !important; padding: 9px 10px; gap: 10px; }
  pre a::before { flex-basis: 36px; width: 36px; height: 36px; font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  pre a { transition: none; }
}
