/* Full-page navy backdrop */
.links-clouds {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    #1a3a5c 0%,
    #0c2340 45%,
    #061525 100%
  );
}

/* Center column — grows with links */
.links-column {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  padding-top: 0;
}

/* Sticky campus wallpaper behind the column */
.links-wallpaper {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.links-wallpaper-image {
  position: absolute;
  inset: 0;
  background-color: #69B3E7;
  background-image: url(https://www.mc.edu/sociallinks/images/diamond-background-grid-white.svg);
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 900px;
}

.links-wallpaper-tint {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
}

.links-column > main,
.links-column .links-intro,
.links-column .links-list {
  position: relative;
  z-index: 1;
}

.links-column > main {
  padding-top: 0;
}

.links-column section.main {
  background: transparent;
}

/* Logo, handle, social icons */
.links-intro {
  position: relative;
  z-index: 1;
  padding-top: 2.5rem;
  padding-bottom: 0.5rem;
}

.links-intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.links-logo {
  margin: 0.5rem 0 1rem;
  width: fit-content;
}

/* Hide animated bits until GSAP runs (avoids FOUC) */
.links-logo,
.links-handle,
.links-socials a,
.links-button {
  visibility: hidden;
}

.links-logo img {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.links-handle {
  max-width: 100%;
  margin: 0 1.5rem;
  text-align: center;
}

.links-handle h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: #0b2340;
  overflow-wrap: break-word;
}

.links-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.links-socials a {
  display: inline-flex;
  padding: 0.5rem;
  color: #0b2340;
  border: 0;
  background: transparent;
  transition: transform 0.15s ease;
}

.links-socials a:hover,
.links-socials a:focus {
  color: #0b2340;
  transform: scale(1.075);
}

/* Link buttons */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 28px;
  max-width: 580px;
}

.links-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  height: auto;
  padding: 0.65rem 0.75rem;
  background: #0c2340;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.links-button:hover,
.links-button:focus {
  background: #C99700;
  color: #0C2340;
  text-decoration: none;
}

.links-button.static {
  background: #C99700;
  color: #0c2340;
}

.links-button.static:hover,
.links-button.static:focus {
  background: #0c2340;
  color: #fff;
}

.links-button.urgent {
  background: #fff;
  color: #0c2340;
  border-color: rgba(12, 35, 64, 0.35);
}

.links-button.urgent:hover,
.links-button.urgent:focus {
  background: #fff;
  color: #C99700;
  border-color: #C99700;
}

.links-label {
  min-width: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Page footer */
.links-footer {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  padding: 2.75rem 1rem 1.25rem;
  box-sizing: border-box;
  background: transparent;
}

.links-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #0b2340;
}

.links-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.links-footer-link {
  font-size: 0.75rem;
  color: #0b2340;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.links-footer-link:hover,
.links-footer-link:focus {
  color: #0b2340;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.links-footer-sep {
  padding: 0 0.25rem;
}

@media (min-width: 768px) {
  .links-footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .links-footer-nav .links-footer-row + .links-footer-row::before {
    content: "•";
    padding: 0 0.25rem;
  }
}
