/* Minimal styling scaffold reflecting scraped class names. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --anumc-blue: #0c3b5d;
  --anumc-gold: #ffd700;
  --anumc-green: #006400;
  --anumc-green-dark: #004d00;
  --body-bg: #f8f9fa;
}

html,
body {
  height: 100%;
}

body {
  background-color: var(--body-bg);
  color: #212529;
  font-family: "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.content-container {
  padding-bottom: 0;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Approximate Bootstrap container sizing without relying on Drupal-era variables */
.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}

.container-fluid {
  max-width: 100%;
}

@media (min-width: 576px) {
  .container,
  .container-sm {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container,
  .container-sm,
  .container-md {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl {
    max-width: 1140px;
  }
}

:root {
  --mobile-nav-offset: 0px;
}

@media (min-width: 1400px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 1320px;
  }
}

.hero-banner {
  position: relative;
  background-size: cover;
  background-position: center top;
  color: #000000;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .hero-banner {
    min-height: 180px;
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
  }

  .hero-title {
    padding-bottom: 1rem;
  }

  .hero-inner::after {
    content: "";
    display: block;
    width: 100%;
    height: 1.5rem;
  }

  .hero-title .page-title {
    font-size: 1.75rem;
  }

  .content-container .container {
    padding-top: 1.25rem;
  }

  .content-container .page-wrapper {
    margin-top: 0.75rem;
  }
}

.mobile-page-title {
  padding-top: 1rem;
  padding-bottom: 0.25rem;
}

.mobile-page-title .page-title-mobile {
  color: #0c3b5d;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 991.98px) {
  .hero-title {
    display: none;
  }

  .hero-title .page-title.mb-2 {
    display: none;
  }

  .hero-banner h1.page-title {
    display: none !important;
  }

  .mobile-page-title {
    padding-top: 1.25rem;
    padding-bottom: 0.35rem;
  }

  .mobile-page-title .page-title-mobile {
    font-size: 1.3rem;
  }
}

@media (min-width: 992px) {
  .mobile-page-title {
    display: none !important;
  }
}

.bg-gradient-custom-1 {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(232, 240, 248, 0.4));
}

.bg-gradient-custom-2 {
  background: linear-gradient(180deg, #0c3b5d, #145c86);
  color: #ffffff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #f1f1ec 2%, rgba(241, 241, 236, 0.7) 30%, rgba(241, 241, 236, 0.5) 50%, rgba(241, 241, 236, 0.4) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  height: 100%;
  padding-bottom: 0.75rem;
}

.hero-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title .page-title {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: center;
  color: #000000;
}

.hero-title .lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.content-container {
  background: #f4f6f9;
}

.home-centered {
  text-align: center;
}

.navbar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.topbar-white {
  position: relative;
  z-index: 40;
}

.topbar-white .topbar-container {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  align-items: center !important;
  justify-content: space-between;
  row-gap: 0.75rem;
}

.topbar-white .navbar-brand {
  padding: 0;
  margin-right: 0;
  flex-shrink: 0;
  display: inline-flex;
  align-items: flex-start;
}

.topbar-white .site-name,
.topbar-white .site-slogan {
  color: #212529;
}

.topbar-white .user-actions {
  margin-left: 0;
  align-items: center;
  justify-content: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-white .user-actions .btn {
  min-width: 6rem;
  text-align: center;
  white-space: nowrap;
}

.topbar-white .topbar-user-area {
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
  display: flex;
  flex: 1 0 auto;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.topbar-white .user-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-white .user-label {
  line-height: 1.2;
}

.topbar-white .user-name {
  font-weight: 600;
  color: #0c3b5d;
}

.topbar-white .user-membership-expiry {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(12, 59, 93, 0.08);
  color: #35566f;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (min-width: 992px) {
  .topbar-white .wall-chip {
    order: 1;
  }

  .topbar-white .user-meta-row {
    order: 2;
  }
}

.topbar-white .icon-action {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #ffffff;
  color: #0c3b5d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.topbar-white .icon-action svg {
  width: 1.1rem;
  height: 1.1rem;
}

.topbar-white .icon-action:hover,
.topbar-white .icon-action:focus {
  background: #0c3b5d;
  color: #ffffff;
  border-color: #0c3b5d;
}

.topbar-white .icon-action.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.topbar-white .icon-action.account-status-bg-warning {
  background: #ffff00;
  border-color: #ffff00;
  color: #000000;
}

.topbar-white .icon-action.account-status-bg-danger {
  background: #ff0000;
  border-color: #ff0000;
  color: #ffffff;
}

.topbar-white .icon-action.account-status-bg-warning:hover,
.topbar-white .icon-action.account-status-bg-warning:focus {
  background: #ffff00;
  border-color: #ffff00;
  color: #000000;
}

.topbar-white .icon-action.account-status-bg-danger:hover,
.topbar-white .icon-action.account-status-bg-danger:focus {
  background: #ff0000;
  border-color: #ff0000;
  color: #ffffff;
}

.topbar-white.topbar-white--account-warning {
  background: #fffdf5 !important;
}

.topbar-white.topbar-white--account-danger {
  background: #fff5f5 !important;
}

.topbar-white.topbar-white--account-warning .icon-action.account-status-icon {
  background: #ffff00 !important;
  border-color: #ffff00 !important;
  color: #000000;
}

.topbar-white.topbar-white--account-danger .icon-action.account-status-icon {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
  color: #ffffff;
}

.topbar-white .membership-alert {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.topbar-white .membership-alert i {
  font-size: 1.1rem;
}

.topbar-white .account-status-icon {
  position: relative;
}

.topbar-white .account-status-icon .status-overlay {
  position: absolute;
  right: -0.2rem;
  bottom: -0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid #fff;
}

.topbar-white .account-status-icon .status-overlay-danger {
  background: #dc3545;
  color: #fff;
}

.topbar-white .account-status-icon .status-overlay-warning {
  background: #ffc107;
  color: #212529;
}

.main-nav {
  background: #f1f1ec;
  position: relative;
  z-index: 20;
}

.main-nav .navbar-nav {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;
  display: flex;
  flex: 1 1 100%;
  width: 100%;
  gap: 0.4rem;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.main-nav .nav-item {
  display: flex;
  flex-direction: column;
  flex: 1 1 100%;
}

.main-nav .dropdown {
  position: relative;
}

.main-nav .dropdown-menu .nav-item {
  display: block;
  flex: 1 1 auto;
}

.main-nav .dropdown-menu .dropdown-item {
  display: block;
  width: 100%;
  white-space: normal;
  color: #000000;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
}

.main-nav .dropdown-menu .dropdown-item:visited {
  color: #000000;
}

.main-nav .dropdown-menu .dropdown-item + .dropdown-item {
  margin-top: 0.15rem;
}

.main-nav .dropdown-menu .dropdown-item:hover,
.main-nav .dropdown-menu .dropdown-item:focus {
  background-color: rgba(12, 59, 93, 0.08);
  color: #000000;
  text-decoration: none;
}

.main-nav .dropdown-menu .dropdown-item:active {
  background-color: rgba(12, 59, 93, 0.15);
  color: #000000;
}

.main-nav .nav-link {
  font-weight: 600;
  color: #000000;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  justify-content: space-between;
  width: 100%;
  padding: 0.45rem 0.75rem;
}

.main-nav .nav-link:visited {
  color: #000000;
  text-decoration: none;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
  color: #0c3b5d;
  text-decoration: none;
}


.main-nav .nav-item.dropdown > .nav-link::after {
  content: '\25be';
  font-size: 0.9rem;
  color: #000000;
  line-height: 1;
}

.main-nav .nav-item:not(.dropdown) > .nav-link::after {
  content: none;
}

.main-nav .dropdown-menu .dropdown-item::after {
  content: none;
}

.main-nav .dropdown-menu {
  min-width: 100%;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: none;
  padding: 0.35rem 0.35rem;
  z-index: 25;
}

.main-nav .navbar-toggler {
  background-color: transparent;
  border-color: transparent;
}

.mobile-nav-content {
  padding: 0.75rem 0.4rem 0.35rem;
  background: transparent;
  opacity: 1;
  max-height: none;
  overflow: visible;
}

.mobile-nav-wrapper .navbar-nav {
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-wrapper .nav-link {
  padding: 0.35rem 0.6rem;
  border-radius: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-nav-wrapper {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  .desktop-nav-wrapper {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .main-nav {
    background: none;
  }

  .main-nav .navbar-nav {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    gap: 0.75rem;
    white-space: nowrap;
  }

  .main-nav .nav-item {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
  }

  .main-nav .nav-link {
    justify-content: center;
    width: auto;
  }

  .main-nav .dropdown-menu {
    min-width: 12rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0.35rem;
    top: 100%;
  }

  .main-nav .dropdown-menu {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(0);
    display: block;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
  }

  .main-nav .dropdown:hover > .dropdown-menu,
  .main-nav .dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .topbar-white .topbar-container {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .topbar-white .navbar-brand .site-logo {
    height: 42px;
  }

  .topbar-white .topbar-user-area {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .topbar-white .user-meta-row {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .topbar-white .user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-white .user-membership-expiry {
    display: none;
  }

  .topbar-white .user-actions {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .topbar-white .wall-chip {
    width: auto;
    flex: 0 0 auto;
  }

  .main-nav {
    position: relative;
    z-index: 5;
  }

  .main-nav .dropdown-menu {
    display: none;
    position: static;
    border-radius: 0.5rem;
    margin-top: 0.35rem;
  }

  .main-nav .navbar-collapse {
    background-color: transparent;
    padding: 0.5rem 0.65rem;
    border-radius: 0.75rem;
    margin-top: 0.35rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    box-shadow: none;
  }

  .main-nav .navbar-collapse.show {
    margin-bottom: 0.5rem;
  }

  .main-nav .dropdown.show .dropdown-menu {
    display: block;
  }

  .main-nav .nav-link {
    padding: 0.5rem 0.65rem;
  }
}

.navbar-brand .site-logo {
  height: 48px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
}

.page-wrapper {
  border-radius: 0.5rem;
}

.homepage-hero img {
  border-radius: 0.5rem;
  object-fit: cover;
  max-height: 420px;
}

.welcome-banner {
  background: var(--anumc-green);
  border-radius: 0.5rem;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}


.post-notice-split .split-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.welcome-top {
  background-color: var(--anumc-green);
  color: #fbe18d;
}

.notice-panel {
  background-color: var(--anumc-green);
  border-top: 3px solid var(--anumc-gold);
  border-bottom: 3px solid var(--anumc-gold);
}

.notice-panel h3 {
  color: var(--anumc-gold);
}

.account-status-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
  overflow-y: auto;
}

.account-status-modal {
  width: min(100%, 42rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #ffffff;
  border: 0;
  border-top: 5px solid var(--anumc-gold);
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.account-status-modal-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  padding: 1rem;
}

@media (max-width: 767.98px) {
  .account-status-overlay {
    align-items: flex-start;
    padding: 0.75rem;
  }

  .account-status-modal {
    max-height: calc(100vh - 1.5rem);
    margin-top: 0;
    padding: 1rem;
  }
}

.post-notice-split .row {
  display: flex;
  flex-wrap: nowrap;
}

.post-notice-split .split-panel {
  background: #ffffff;
  color: #0b3c2f;
  font-weight: 700;
  flex: 1 1 50%;
}

.post-notice-split .split-left {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.post-notice-split .split-right {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.post-notice-split .row > [class*='col-']:first-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.post-notice-split .row > [class*='col-']:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 767.98px) {
  .post-notice-split .row {
    flex-wrap: wrap;
  }

  .post-notice-split .row > [class*='col-'] {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .post-notice-split .split-left,
  .post-notice-split .split-right {
    border-left: none;
    border-right: none;
  }
}


.notice-link {
  color: var(--anumc-gold);
  text-decoration: underline;
}

.post-notice-split .split-panel.epic-panel,
.post-notice-split .split-panel.help-panel {
  background-color: var(--anumc-green-dark);
  color: #ffffff;
  min-height: 260px;
}


.help-panel .belay-course-image:hover {
  opacity: 0.7;
}

.belay-image-modal {
  display: none;
  position: fixed;
  z-index: 1100;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.belay-image-modal.is-open {
  display: block;
}

.belay-image-modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1000px;
  animation-name: belayZoom;
  animation-duration: 0.4s;
}

.belay-image-modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1000px;
  text-align: center;
  color: #cccccc;
  padding: 10px 0 20px;
}

@keyframes belayZoom {
  from { transform: scale(0.9); }
  to { transform: scale(1); }
}

.belay-image-modal-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.2s;
  line-height: 1;
}

.belay-image-modal-close:hover,
.belay-image-modal-close:focus {
  color: #bbbbbb;
  text-decoration: none;
  cursor: pointer;
}

@media only screen and (max-width: 700px) {
  .belay-image-modal-content,
  .belay-image-modal-caption {
    width: 95%;
  }
}

.epic-panel h3,
.help-panel h3,
.help-panel p {
  color: #ffffff;
}

.help-panel .help-lines {
  width: 100%;
  text-align: center;
}

.help-panel .help-lines p {
  margin-bottom: 0.5rem;
}

.help-panel .belay-split-line {
  width: 100%;
  height: 2px;
  background: var(--anumc-gold);
  margin-bottom: 1rem;
}

.help-panel .belay-course-image {
  max-width: 480px;
  border: 2px solid var(--anumc-gold);
  cursor: zoom-in;
}

.help-panel .belay-course-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.help-panel .belay-course-icon {
  height: 80px;
  width: auto;
}

.epic-panel h3,
.help-panel h3 {
  color: var(--anumc-gold);
}

.epic-cover img {
  border: 3px solid var(--anumc-gold);
  border-radius: 6px;
  max-width: 75%;
}

.gear-store-map {
  width: 70%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px;
  margin-top: 0;
}

.cta-tile {
  padding: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: block;
}

.cta-tile.light {
  background: #fbe18d;
  color: var(--anumc-green-dark);
}

.cta-tile.dark {
  background: var(--anumc-green-dark);
  color: var(--anumc-gold);
}

.gear-store {
  background: #fbe18d;
  color: var(--anumc-green-dark);
}

.accent-bar {
  height: 10px;
  background-color: var(--anumc-green-dark);
  border-radius: 0 0 8px 8px;
}


.login-arrow-popup {
  position: fixed;
  z-index: 2147483647;
  display: none;
  width: min(360px, calc(100vw - 1rem));
  background: #fbe18d;
  color: #0b3c2f;
  border: 1px solid rgba(11, 60, 47, 0.25);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
  font-size: 0.85rem;
  text-align: left;
}

.login-arrow-popup::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fbe18d;
}

.login-arrow-popup.is-visible {
  display: block;
  animation: loginArrowPulse 1.2s ease-in-out infinite;
}

.login-arrow-popup .login-arrow-close {
  position: absolute;
  top: 0.2rem;
  right: 0.35rem;
  border: 0;
  background: transparent;
  color: #0b3c2f;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

@keyframes loginArrowPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}


}

.section-heading {
  font-size: 1.5rem;
  color: var(--anumc-blue);
}

.trip-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.04);
}

.trip-icon {
  width: 80px;
  height: auto;
}

.trip-title {
  font-size: 1.1rem;
  color: var(--anumc-blue);
  font-weight: 700;
}

.trip-copy {
  color: #4b4f56;
  font-size: 0.95rem;
}

.placeholder-section {
  background: #fdfdfd;
  border: 1px dashed rgba(12, 59, 93, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #0c3b5d;
  color: #ffffff;
  z-index: 1000;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  margin-top: auto;
}

.site-footer .footer-message {
  max-width: 1100px;
  margin: 0 auto;
  color: #0c3b5d;
  line-height: 1.6;
  font-size: 0.95rem;
  font-style: italic;
}

.site-footer .footer-image-wrapper {
  width: 100%;
}

.site-footer .footer-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-top: -1px;
}

/* Upcoming trips grid (mirrors scraped view markup) */
.views-element-container .view-content {
  background: #fdfdfd;
  border-radius: 0.5rem;
}


.views-view-grid .views-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
}

.views-col {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
  text-align: left;
  margin: 0 !important;
  flex: 1 1 calc(33.333% - 1.5rem);
  max-width: 360px;
  min-width: 260px;
}

@media (max-width: 991.98px) {
  .views-col {
    flex: 1 1 calc(50% - 1.5rem);
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .views-col {
    flex: 1 1 100%;
  }
}

.views-col:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.trip-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  background: #ffffff;
}

.views-field-title .trip-title {
  color: var(--anumc-blue);
  font-weight: 800;
  font-size: 1.2rem;
}

.views-field-body p {
  margin: 0;
  color: #333;
}

.trip-overview {
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

.views-field-field-trip-icon img {
  max-width: 100px;
}

.views-field-field-trip-icon img.trip-icon--belay {
  max-width: none;
  width: auto;
  height: 71px;
}

.views-field-field-trip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.view-btn {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  margin-top: 0.5rem;
  display: inline-block;
}

.view-btn:hover,
.view-btn:focus {
  background-color: #0b5cd7;
  border-color: #0b5cd7;
  color: #ffffff;
}

.bg-bushwalking {
  background: #d8e4d4;
}

.bg-canyoning {
  background: #dbe4ef;
}

.bg-climbing {
  background: #e3ddef;
}

.bg-general {
  background: #dfe8f4;
}

.bg-kayaking {
  background: #d4e9e3;
}

.bg-mountain-biking {
  background: #e9e0d3;
}

.bg-mountaineering {
  background: #e1e3ea;
}

.bg-rogaining {
  background: #e9e0e6;
}

.bg-skiing {
  background: #dcebf5;
}

.bg-social {
  background: #e9e0e6;
}

/* Trip detail layout */
.trip-hero {
  color: #000000;
  text-align: center;
}

.trip-detail-page .card {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.trip-detail-card .trip-description {
  color: #1f2933;
  font-size: 1rem;
  line-height: 1.6;
}

.trip-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.trip-info-item {
  background: #f7f9fb;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.trip-info-item .label,
.trip-meta .label {
  display: block;
  color: #5f6b7a;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.trip-info-item .value,
.trip-meta .value {
  font-weight: 700;
  color: #0c3b5d;
}

.trip-sidebar {
  background: #ffffff;
}

.trip-sidebar .trip-meta li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.trip-sidebar .trip-meta li:last-child {
  border-bottom: none;
}

.trip-detail-layout .pill-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.callout {
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8fafc;
}

.callout-info {
  border-color: #b6d4fe;
  background: #f0f6ff;
}

.callout-muted {
  background: #f7f7f2;
  border-color: #e2e3de;
}

.trip-fact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trip-fact-list.compact {
  gap: 0.5rem;
}

.trip-fact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.trip-fact-row .fact-icon {
  font-size: 1.1rem;
  line-height: 1;
  width: 1.5rem;
  text-align: center;
}

.trip-fact-row .label {
  color: #5f6b7a;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.trip-fact-row .value {
  color: #0c3b5d;
  font-weight: 400;
}

.section-card {
  border-color: rgba(0, 0, 0, 0.08);
}

.registration-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 1rem;
}

.rego-check {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
  background: #ffffff;
  display: block;
  width: 100%;
}

.rego-check .check-label {
  display: block;
  font-weight: 600;
}

.rego-details {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #fdfdfb;
  margin-bottom: 1rem;
}

.registration-notes li {
  margin-bottom: 0.15rem;
}

.gear-inventory-page .gear-filters {
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
}

.gear-inventory-table .availability-icon {
  width: 1.15rem;
  height: 1.15rem;
  line-height: 1;
  vertical-align: middle;
  display: inline-block;
}

.gear-inventory-table .availability-yes {
  color: #198754;
}

.gear-inventory-table .availability-no {
  color: #dc3545;
}

.gear-form .alert ul,
.gear-hire-page .alert ul {
  padding-left: 1.2rem;
}

.stocktake-table input[type="text"] {
  min-width: 8rem;
}

/* User account */
.user-account-form .label-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.user-account-form .editable-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
}

.user-account-form .field-value {
  font-weight: 600;
}

.user-account-form .edit-field-btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.user-account-form .readonly-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  background: #f8f9fa;
  min-height: 48px;
  min-width: 8rem;
}

.user-account-form .readonly-amount .currency {
  color: #6c757d;
  font-weight: 600;
}

.user-account-form .readonly-amount .value {
  font-weight: 700;
  color: #0d6efd;
}

.user-hire-list {
  display: grid;
  gap: 0.75rem;
}

.user-hire-item {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 0.5rem;
  background: #f8fafc;
}

.field-edit-dialog {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-width: 480px;
  width: 100%;
  padding: 0;
}

.field-edit-dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.field-edit-dialog__form {
  padding: 1.25rem;
}

.field-edit-dialog__title {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.gear-inventory-table th,
.gear-inventory-table td {
  vertical-align: middle;
}

.gear-inventory-table .col-description {
  min-width: 220px;
}

.gear-inventory-table .col-category,
.gear-inventory-table .col-type {
  min-width: 140px;
}

.gear-inventory-table .col-identifier {
  min-width: 110px;
  white-space: nowrap;
}

.gear-inventory-table .col-availability {
  min-width: 155px;
  white-space: nowrap;
}

.gear-inventory-table .col-value,
.gear-inventory-table .col-year {
  white-space: nowrap;
}

.gear-item-picker .row {
  width: 100%;
}

.gear-search-table table {
  margin-bottom: 0;
}

.gear-search-table th,
.gear-search-table td {
  white-space: nowrap;
}

.gear-search-table td:nth-child(1) {
  max-width: 320px;
  white-space: normal;
}

.gear-item-pill {
  background: #f3f6fb;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.65rem;
  color: #1a1f36;
  padding: 0.35rem 0.45rem 0.35rem 0.75rem;
  gap: 0.5rem;
}

.gear-item-pill-label {
  font-weight: 600;
}

.gear-item-remove {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.35rem;
  color: #3c4a63;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 32px;
}

.gear-item-remove:hover,
.gear-item-remove:focus {
  background: #eef2f7;
  color: #1a1f36;
}

.gear-hire-page .member-input-col {
  max-width: 100%;
}

.gear-hire-page .member-input {
  width: 100%;
  max-width: none;
}

.gear-hire-page #notes {
  min-height: 9rem;
}

.topbar-container {
  flex-wrap: wrap;
}

.wall-chip {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
  min-width: 0;
}

.wall-chip.compact {
  grid-template-columns: auto auto;
  gap: 8px;
  padding: 10px 12px;
}

.wall-chip .wall-chip-icon {
  font-size: 1.5rem;
}

.wall-chip .wall-chip-name {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.wall-chip .wall-chip-time {
  color: #6c757d;
}

.wall-chip .belay-light {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #adb5bd;
  box-shadow: 0 0 0 2px #fff;
}

.wall-chip.open .belay-light {
  background: #2ecc71;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.8);
}

.wall-chip.warning .belay-light {
  background: #f1c40f;
  box-shadow: 0 0 8px rgba(241, 196, 15, 0.8);
}

.wall-chip.closed .belay-light {
  background: #e74c3c;
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.8);
}

.wall-chip .schedule-popup {
  display: none;
  position: absolute;
  top: 100%;
  margin-top: 8px;
  left: 0;
  right: auto;
  width: max(260px, 150%);
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 2000;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 576px) {
  .wall-chip .schedule-popup {
    position: fixed;
    width: min(420px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    z-index: 2000;
  }
}

.wall-chip:hover .schedule-popup {
  display: block;
}

.wall-chip.show-popup .schedule-popup {
  display: block;
}

.wall-chip table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.wall-chip th {
  text-align: left;
  color: #6c757d;
  font-weight: 600;
  padding-bottom: 6px;
}

.wall-chip td {
  padding: 4px 0;
  color: #212529;
}

.wall-chip th:not(:last-child),
.wall-chip td:not(:last-child) {
  padding-right: 12px;
}

.wall-chip tr:not(:last-child) td {
  border-bottom: 1px solid #eef2f7;
}

.wall-chip .starting-soon {
  color: #b8860b;
  font-weight: 600;
}

.wall-status-entry:not(:last-child) {
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.wall-status-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.wall-status-summary {
  font-size: 0.9rem;
  color: #6c757d;
}

.wall-status-header.open .wall-status-summary {
  color: #2ecc71;
}

.wall-status-header.warning .wall-status-summary {
  color: #b8860b;
}

.wall-time-table td,
.wall-time-table th {
  white-space: nowrap;
}

.wall-time-table td:nth-child(1) {
  min-width: 120px;
}

.wall-time-form .form-text {
  color: #6c757d;
}

.category-question {
  min-height: 8rem;
  width: 100%;
}

/* Trip view toggle */
.view-toggle {
  position: relative;
  width: 200px;
  height: 44px;
  background: #e5e7eb;
  border-radius: 999px;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.trip-view-switcher .view-toggle {
  margin-left: auto;
  margin-right: auto;
}

.view-toggle .toggle-slider {
  position: absolute;
  width: 50%;
  height: 38px;
  background: #2563eb;
  border-radius: 999px;
  left: 3px;
  transition: transform 0.25s ease;
}

.view-toggle span {
  flex: 1;
  text-align: center;
  z-index: 1;
  font-weight: 600;
  color: #374151;
}

.view-toggle.active .toggle-slider {
  transform: translateX(97px);
}

.view-toggle.active .calendar,
.view-toggle:not(.active) .cards {
  color: #fff;
}

.trip-view-switcher .trip-view.d-none {
  display: none !important;
}

/* Calendar view */
.trip-calendar-section .calendar-wrapper {
  position: relative;
  overflow-x: auto;
  background: #fff;
  border: 1px solid #ddd;
}

.trip-calendar-section .calendar-days {
  display: grid;
  grid-template-columns: 6rem 1fr;
  grid-auto-rows: 5rem;
  min-width: max-content;
}

.trip-calendar-section .day-label {
  padding: 0.6rem 0.5rem 0 0;
  text-align: right;
  font-size: 0.85rem;
  color: #666;
  border-bottom: 1px solid #eee;
}

.trip-calendar-section .day-label strong {
  display: block;
  color: #000;
}

.trip-calendar-section .day-bg {
  border-bottom: 1px solid #eee;
}

.trip-calendar-section .calendar-events {
  position: absolute;
  top: 0;
  left: 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  grid-auto-rows: 5rem;
  min-width: max-content;
  pointer-events: none;
}

.trip-calendar-section .event {
  pointer-events: auto;
  margin: 0.4rem;
  padding: 0.45rem 0.6rem;
  background: #e7f1ff;
  border-left: 4px solid #0d6efd;
  border-radius: 6px;
  font-size: 0.9rem;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
}

.trip-calendar-section .event:hover {
  background: #d8e8ff;
}

.trip-calendar-section .event.bg-bushwalking     { background: #d8e4d4; border-left-color: #4a7a45; }
.trip-calendar-section .event.bg-bushwalking:hover { background: #c3d5bf; }
.trip-calendar-section .event.bg-canyoning       { background: #dbe4ef; border-left-color: #4a6a9a; }
.trip-calendar-section .event.bg-canyoning:hover   { background: #c8d6e8; }
.trip-calendar-section .event.bg-climbing        { background: #e3ddef; border-left-color: #7a5abf; }
.trip-calendar-section .event.bg-climbing:hover    { background: #d3cce8; }
.trip-calendar-section .event.bg-general         { background: #dfe8f4; border-left-color: #4a7abf; }
.trip-calendar-section .event.bg-general:hover     { background: #ccd9ec; }
.trip-calendar-section .event.bg-kayaking        { background: #d4e9e3; border-left-color: #2a8a6a; }
.trip-calendar-section .event.bg-kayaking:hover    { background: #beddcc; }
.trip-calendar-section .event.bg-mountain-biking { background: #e9e0d3; border-left-color: #8a6a3a; }
.trip-calendar-section .event.bg-mountain-biking:hover { background: #ddd0be; }
.trip-calendar-section .event.bg-mountaineering  { background: #e1e3ea; border-left-color: #5a5f8a; }
.trip-calendar-section .event.bg-mountaineering:hover  { background: #d0d3de; }
.trip-calendar-section .event.bg-rogaining       { background: #e9e0e6; border-left-color: #8a4a7a; }
.trip-calendar-section .event.bg-rogaining:hover   { background: #ddd0d8; }
.trip-calendar-section .event.bg-skiing          { background: #dcebf5; border-left-color: #3a7aaa; }
.trip-calendar-section .event.bg-skiing:hover      { background: #c8dded; }
.trip-calendar-section .event.bg-social          { background: #e9e0e6; border-left-color: #9a4a7a; }
.trip-calendar-section .event.bg-social:hover      { background: #ddd0d8; }

.trip-calendar-section .event-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Wall-times calendar */
.wall-calendar-section .wall-event {
  cursor: default;
  pointer-events: auto;
  /* reset the default blue border/background so per-wall rules win cleanly */
  background: #e9ecef !important;
  border-left-color: #adb5bd !important;
}

.wall-calendar-section .wall-event--new-wall {
  background: #cfe8ff !important;
  border-left-color: #5aabf0 !important;
}

.wall-calendar-section .wall-event--old-wall {
  background: #d4edda !important;
  border-left-color: #52a868 !important;
}

.wall-legend-swatch--new-wall { background: #cfe8ff; }
.wall-legend-swatch--old-wall { background: #d4edda; }

.wall-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}

.wall-legend-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.12);
}
