/*
 * PermCTF theme for CTFd.
 * A port of the chemppermkray_site design system (tailwind.config.js + index.css)
 * on top of the core CTFd Bootstrap 5 bundle.
 */
:root,
[data-bs-theme="dark"] {
  /* site palette */
  --bg: #000723;
  --bg-surface: #040d33;
  --bg-elevated: #0a1a4a;
  --neon-purple: #9e30fa;
  --neon-indigo: #3d26ca;
  --neon-cyan: #05fafd;
  --neon-magenta: #e52f12;
  --neon-amber: #fbbe03;
  --border-subtle: rgba(158, 48, 250, 0.2);
  --border-hover: rgba(158, 48, 250, 0.5);
  --brand-gradient: linear-gradient(90deg, #9e30fa, #3d26ca);
  --font-sans: "Roboto", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --font-display: "Handjet", sans-serif;
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.5);

  /* bootstrap mapping */
  --bs-body-bg: var(--bg);
  --bs-body-bg-rgb: 0, 7, 35;
  --bs-body-color: #fff;
  --bs-body-color-rgb: 255, 255, 255;
  --bs-body-font-family: var(--font-sans);
  --bs-secondary-bg: var(--bg-surface);
  --bs-tertiary-bg: var(--bg-elevated);
  --bs-border-color: var(--border-subtle);
  --bs-border-color-translucent: var(--border-subtle);
  --bs-primary: var(--neon-purple);
  --bs-primary-rgb: 158, 48, 250;
  --bs-danger: var(--neon-magenta);
  --bs-danger-rgb: 229, 47, 18;
  --bs-link-color: var(--neon-cyan);
  --bs-link-color-rgb: 5, 250, 253;
  --bs-link-hover-color: #fff;
  --bs-link-hover-color-rgb: 255, 255, 255;
  --bs-secondary-color: rgba(255, 255, 255, 0.6);
  --bs-emphasis-color: #fff;
  --bs-heading-color: #fff;
  --bs-success: #22d39a;
  --bs-success-rgb: 34, 211, 154;
}

/* ===================== base ===================== */
html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: #fff;
  font-family: var(--font-sans);
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* header (h-16 + ticker) is fixed */
  padding-top: 5.75rem;
}

main {
  flex: 1 0 auto;
}

::selection {
  background: rgba(158, 48, 250, 0.3);
  color: #fff;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(158, 48, 250, 0.5); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(158, 48, 250, 0.7); }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.05em;
}

a {
  transition: color 0.2s;
}

code, pre, kbd, .font-monospace {
  font-family: var(--font-mono) !important;
}

code {
  color: var(--neon-cyan);
}

.text-muted {
  color: rgba(255, 255, 255, 0.55) !important;
}

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===================== site components ===================== */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

.btn-pill:hover {
  color: #fff;
  box-shadow: 0 0 28px 0 rgba(158, 48, 250, 0.55);
  transform: scale(1.02);
}

.btn-pill:active {
  box-shadow: none;
  transform: scale(0.98);
}

.btn-pill--ghost {
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
}

.btn-pill--ghost:hover {
  box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.25);
}

.btn-pill--sm {
  padding: 0.6rem 1.75rem;
  font-size: 1.25rem;
}

.section-title {
  position: relative;
  margin: 0;
  padding-left: 3rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
}

.section-title::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 100vw;
  height: 6px;
  margin-top: -3px;
  margin-right: -1.5rem;
  background: var(--neon-cyan);
  transform: skewX(-30deg);
}

.skew-accent {
  position: relative;
  z-index: 0;
  display: inline-block;
  white-space: nowrap;
  color: #fff;
}

.skew-accent::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.05em -0.15em;
  background: var(--neon-purple);
  transform: skewX(-30deg);
}

.neon-card {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  background: rgba(4, 13, 51, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: border-color 0.3s;
}

.neon-card:hover {
  border-color: var(--border-hover);
}

.about-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  letter-spacing: 0.02em;
}

.about-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 4rem;
}

.about-card-head .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(158, 48, 250, 0.7));
}

.about-card-head .line:last-child {
  background: linear-gradient(to left, transparent, rgba(158, 48, 250, 0.7));
}

.about-card-head img {
  max-height: 4rem;
  max-width: 4rem;
}

.about-card-league {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
}

.about-card p {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.8);
}

.about-card details {
  margin-top: auto;
}

.about-card details p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.about-card summary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding-top: 1rem;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neon-purple);
  cursor: pointer;
  transition: color 0.2s;
}

.about-card summary::-webkit-details-marker { display: none; }
.about-card summary:hover { color: var(--neon-cyan); }
.about-card summary::after { content: "▾"; transition: transform 0.2s; }
.about-card details[open] summary::after { transform: rotate(180deg); }
.about-card details[open] .more { display: none; }
.about-card details:not([open]) .less { display: none; }

/* inputs: only the bottom line, like the registration form on the site */
.form-control,
.form-select {
  padding: 0.25rem 0 0.625rem;
  border: 0;
  border-bottom: 2px solid #fff;
  border-radius: 0;
  background-color: transparent;
  color: #fff;
  font-size: 1.125rem;
  transition: border-color 0.2s;
}

.form-select {
  padding-right: 1.75rem;
  background-color: var(--bg-surface);
  background-position: right 0 center;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--neon-purple);
  background-color: transparent;
  box-shadow: none;
  color: #fff;
}

.form-select:focus {
  background-color: var(--bg-surface);
}

textarea.form-control {
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.form-label,
.form-group label {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.form-check-input {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0;
  border: 2px solid #fff;
  border-radius: 0.25rem;
  background-color: transparent;
}

.form-check-input:checked {
  border-color: var(--neon-purple);
  background-color: var(--neon-purple);
}

.form-check-label {
  padding-left: 0.5rem;
  font-weight: 300;
}

/* bootstrap buttons -> site buttons */
.btn {
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary,
.btn-success {
  border: 0;
  background: var(--brand-gradient);
  color: #fff;
  transition: box-shadow 0.2s;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-success:hover,
.btn-success:focus {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 0 28px 0 rgba(158, 48, 250, 0.55);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-secondary:hover {
  border-color: #fff;
  background: transparent;
  color: #fff;
  box-shadow: 0 0 20px 0 rgba(255, 255, 255, 0.25);
}

.btn-close {
  filter: invert(1);
  opacity: 0.6;
}

/* ===================== header + ticker ===================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1030;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 7, 35, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header .navbar {
  min-height: 4rem;
  padding: 0;
  background: transparent !important;
}

.site-header .navbar > .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.75rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff !important;
  text-decoration: none;
}

.site-brand img {
  height: 2rem;
  width: auto;
}

.site-brand small {
  font-size: 1rem;
  color: var(--neon-cyan);
}

.site-header .nav-link {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
}

.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link.active {
  color: var(--neon-cyan);
}

.site-header .navbar-toggler {
  border: 0;
  box-shadow: none;
}

.dropdown-menu {
  --bs-dropdown-bg: var(--bg-surface);
  --bs-dropdown-border-color: var(--border-subtle);
  --bs-dropdown-link-color: #fff;
  --bs-dropdown-link-hover-bg: var(--bg-elevated);
  --bs-dropdown-link-hover-color: var(--neon-cyan);
  --bs-dropdown-link-active-bg: var(--neon-purple);
}

.ticker {
  overflow: hidden;
  padding: 0.375rem 0;
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 13, 51, 0.6);
  font-family: var(--font-display);
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(5, 250, 253, 0.8);
}

.ticker-track {
  display: flex;
  width: max-content;
  white-space: pre;
  animation: marquee 90s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== page header ===================== */
.jumbotron {
  margin: 0;
  padding: 3rem 0 1.5rem !important;
  border: 0;
  background: transparent !important;
  overflow: hidden;
}

.jumbotron h1 {
  /* same as .section-title */
  position: relative;
  display: inline-block;
  margin: 0;
  padding-left: 3rem;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.jumbotron h1::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 100vw;
  height: 6px;
  margin-top: -3px;
  margin-right: -1.5rem;
  background: var(--neon-cyan);
  transform: skewX(-30deg);
}

.jumbotron h2 {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ===================== cards, tables, modals ===================== */
.card,
.modal-content,
.list-group-item {
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  background: rgba(4, 13, 51, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-backdrop.show {
  opacity: 0.7;
}

.modal-content {
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.modal-header,
.modal-footer {
  border-color: var(--border-subtle);
}

.modal-title,
.challenge-name {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
}

.challenge-value {
  font-family: var(--font-display);
  color: #fff;
}

.challenge-desc {
  color: rgba(255, 255, 255, 0.85);
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: #fff;
  --bs-table-striped-bg: rgba(158, 48, 250, 0.06);
  --bs-table-striped-color: #fff;
  --bs-table-hover-bg: rgba(5, 250, 253, 0.06);
  --bs-table-hover-color: #fff;
  --bs-table-border-color: var(--border-subtle);
}

.table thead th {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
}

.nav-tabs {
  --bs-nav-tabs-border-color: var(--border-subtle);
  --bs-nav-tabs-link-active-bg: transparent;
  --bs-nav-tabs-link-active-color: var(--neon-cyan);
  --bs-nav-tabs-link-active-border-color: var(--border-subtle) var(--border-subtle) transparent;
  --bs-nav-link-color: rgba(255, 255, 255, 0.6);
  --bs-nav-link-hover-color: #fff;
}

.nav-pills {
  --bs-nav-pills-link-active-bg: var(--neon-purple);
}

.alert {
  border-radius: 1rem;
}

.badge.bg-primary {
  background: var(--neon-purple) !important;
}

/* ===================== challenge board ===================== */
.category-header h3 {
  /* .section-title look, smaller */
  position: relative;
  padding-left: 2.5rem;
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.category-header h3::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 100vw;
  height: 6px;
  margin-top: -3px;
  margin-right: -1.5rem;
  background: var(--neon-purple);
  transform: skewX(-30deg);
}

.category-challenges {
  overflow: visible;
}

.challenge-button {
  position: relative;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 1rem !important;
  background: rgba(4, 13, 51, 0.7) !important;
  color: #fff !important;
  text-transform: none;
  letter-spacing: 0.02em;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.challenge-button:hover {
  border-color: var(--border-hover) !important;
  box-shadow: 0 0 28px 0 rgba(158, 48, 250, 0.35);
  transform: scale(1.02);
}

.challenge-button .challenge-inner p {
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.challenge-button .challenge-inner span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--neon-cyan);
}

.challenge-button.challenge-solved {
  border-color: transparent !important;
  background: var(--brand-gradient) !important;
}

.challenge-button.challenge-solved .challenge-inner span {
  color: #fff;
}

.div-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  padding: 0 0.6rem;
  border: 1px solid var(--neon-cyan);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.division {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1.25rem 1.75rem;
}

.division-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--neon-purple);
}

.division-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  color: var(--neon-cyan);
}

.division-progress {
  flex: 1 1 240px;
}

.division-progress .progress {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.division-progress .progress-bar {
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
}

/* ===================== auth pages (login card from the site admin) ===================== */
.auth-card {
  max-width: 30rem;
  margin: 2rem auto 0;
  padding: 2rem;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  background: var(--bg-surface);
}

.auth-card .auth-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
}

.auth-card .auth-sub {
  margin: 0.5rem 0 1.5rem;
  font-size: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.auth-card .mb-3 {
  margin-bottom: 1.5rem !important;
}

/* ===================== landing ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 2.5rem;
}

.matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.14;
  pointer-events: none;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

.hero-title img {
  height: 4rem;
  width: auto;
  flex-shrink: 0;
}

.hero-title .lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
}

.hero-title .lines > span {
  white-space: nowrap;
}

.hero-meta {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--neon-cyan);
}

.hero-league {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.countdown {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
}

.countdown b {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--neon-cyan);
}

.hero-bear {
  position: relative;
  width: 260px;
  flex-shrink: 0;
}

.hero-bear img {
  width: 100%;
  object-fit: contain;
}

.section {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0;
}

.section-bg {
  position: absolute;
  z-index: -1;
  display: none;
  max-width: none;
  pointer-events: none;
}

.about {
  padding: 4rem 0 2rem;
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: start;
  gap: 2rem;
}

.shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.pixel-shape {
  position: absolute;
  opacity: 0.7;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
  image-rendering: pixelated;
  animation: float-bob 4s ease-in-out infinite;
}

.pixel-shape::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.4) 30%, transparent 31%);
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}

.timesheet {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1.5rem;
}

.timesheet-row {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  background: rgba(4, 13, 51, 0.7);
  transition: border-color 0.3s;
}

.timesheet-row:hover {
  border-color: var(--border-hover);
}

.timesheet-time {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(5, 250, 253, 0.95);
}

.timesheet-sep {
  width: 1px;
  flex-shrink: 0;
  background: rgba(158, 48, 250, 0.6);
}

.timesheet-title {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding: 2rem 1rem;
}

.partners img {
  height: 3rem;
  width: auto;
  max-width: 200px;
}

.partners img.sm {
  max-width: 160px;
}

.partners--compact {
  gap: 1rem 2.5rem;
  margin: 0;
  padding: 1.25rem 1rem;
}

.partners--compact img,
.partners--compact img.sm {
  height: 2.25rem;
  max-width: 130px;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.partners--compact img:hover {
  opacity: 1;
}

.location {
  display: grid;
  gap: 2rem;
  padding-bottom: 3.5rem;
}

.location p {
  max-width: 400px;
  margin-top: 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.025em;
}

.location .map {
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

.location iframe {
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

/* ===================== footer ===================== */
.site-footer {
  position: relative;
  flex-shrink: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 7, 35, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  min-height: 80px;
  padding: 1.5rem 4rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--neon-cyan);
}

.footer-bottom {
  padding: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  margin: 0 0.75rem;
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--bg);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s;
}

.to-top:hover {
  transform: scale(1.1);
}

.to-top svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* ===================== responsive (tailwind sm / lg / xl) ===================== */
@media (min-width: 640px) {
  .wrap { padding: 0 2rem; }
  .btn-pill { font-size: 1.5rem; }
  .section-title,
  .jumbotron h1 { padding-left: 6rem; font-size: 2.25rem; line-height: 2.5rem; }
  .section-title::before,
  .jumbotron h1::before { height: 10px; margin-top: -5px; margin-right: -3rem; }
  .about-card { padding: 2.5rem; }
  .about-card-head { gap: 1.5rem; min-height: 5rem; }
  .about-card-head img { max-height: 5rem; max-width: 5rem; }
  .hero-title img { height: 6rem; }
  .hero-title .lines { font-size: 2.25rem; }
  .hero-meta, .hero-league { font-size: 1.25rem; }
  .hero-bear { width: 360px; }
  .partners { gap: 2.5rem 5rem; padding: 2.5rem 2rem; }
  .partners img { height: 6rem; max-width: 260px; }
  .partners img.sm { height: 5rem; max-width: 200px; }
  .partners img.lg { height: 7rem; max-width: 300px; }
  .timesheet-row { padding: 0.75rem 2rem; }
  .timesheet-time { width: 90px; font-size: 1rem; }
  .location p { margin-top: 2.75rem; font-size: 1.125rem; }
  .footer-nav { padding: 1.5rem 5rem; }
  .to-top { top: 1.5rem; right: 1.5rem; bottom: auto; }
}

@media (min-width: 992px) {
  .site-header .navbar { min-height: 5rem; }
  .site-brand img { height: 2.25rem; }
  body { padding-top: 6.75rem; }
}

@media (min-width: 1024px) {
  .section { padding: 2rem 0; }
  .section-bg { display: block; }
  .section-title,
  .jumbotron h1 { padding-left: 8rem; font-size: 3rem; line-height: 1; }
  .section-title::before,
  .jumbotron h1::before { height: 15px; margin-top: -7.5px; margin-right: -4.5rem; }
  .hero { padding-top: 3.5rem; }
  .hero-inner { flex-direction: row; justify-content: space-between; gap: 2.5rem; }
  .hero-text { flex: 1; align-items: flex-start; text-align: left; }
  .hero-title { flex-direction: row; text-align: left; }
  .hero-title img { height: 7rem; }
  .hero-title .lines { align-items: flex-start; font-size: 1.875rem; }
  .hero-meta { margin-top: 2.5rem; }
  .hero-cta { justify-content: flex-start; }
  .hero-bear { width: 440px; }
  .about { min-height: 580px; padding: 6rem 0 2.5rem; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .location { grid-template-columns: 1fr 1fr; align-items: center; padding-bottom: 8rem; }
  .footer-nav { gap: 4rem; min-height: 120px; padding: 1.5rem 7rem; font-size: 1.125rem; }
  .to-top { top: 50%; right: 2.5rem; width: 3.5rem; height: 3.5rem; transform: translateY(-50%); }
  .to-top:hover { transform: translateY(-50%) scale(1.1); }
  .to-top svg { width: 1.5rem; height: 1.5rem; }
}

@media (min-width: 1280px) {
  .hero-title img { height: 8rem; }
  .hero-title .lines { font-size: 2.25rem; }
  .hero-bear { width: 540px; }
}

@media (min-width: 1536px) {
  .hero-title .lines { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .pixel-shape { animation: none; }
}
