:root {
  --eq-harbor: #243b4a;
  --eq-harbor-hover: #1b303c;

  --eq-sea-glass: #4f807d;
  --eq-sea-glass-dark: #3f6f6c;
  --eq-sea-glass-deep: #356a70;

  --eq-seafoam: #b8d1ca;
  --eq-brass: #a9874f;

  --eq-sailcloth: #f2f0e8;
  --eq-surface: #fbfcfa;

  --eq-ink: #283335;
  --eq-muted: #687576;

  --eq-border: #ccd9d5;

  --eq-radius: 1.25rem;
  --eq-in-hand: #b98b8b;
  --eq-shadow: 0 1rem 2.5rem rgba(36, 59, 74, 0.1);
}
/* ==========================================================
   Base
   ========================================================== */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;

  display: flex;
  flex-direction: column;

  color: var(--eq-ink);
  background: var(--eq-sailcloth);

  font-family: Inter, ui-sans-serif, system-ui, sans-serif;

  line-height: 1.65;

  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--eq-harbor);

  font-family: "Libre Baskerville", Georgia, serif;

  font-weight: 400;
  line-height: 1.2;
}

a {
  color: var(--eq-sea-glass-deep);
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: #28555b;
}

.equorum-main {
  flex: 1;
  width: 100%;
}

/* ==========================================================
   Main header
   ========================================================== */

.equorum-site-header {
  position: relative;
  z-index: 20;

  width: 100%;

  color: #fff;
  background: var(--eq-harbor);

  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.equorum-nav-inner {
  width: 100%;

  display: flex;
  align-items: center;

  min-height: 76px;

  padding: 0.8rem clamp(1.25rem, 4vw, 4rem);
}

.equorum-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;

  margin-right: auto;

  color: #fff;
  text-decoration: none;

  font-family: "Libre Baskerville", Georgia, serif;

  font-size: 1.3rem;
}

.equorum-brand:hover {
  color: #fff;
}

.equorum-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.equorum-brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.equorum-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.equorum-brand-name {
  line-height: 1;
}

/* ==========================================================
   Desktop navigation
   ========================================================== */

.equorum-navigation {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.equorum-navigation > .nav-item > .nav-link {
  position: relative;

  padding: 0.62rem 0.78rem;

  color: #fff;

  text-decoration: none;
  font-weight: 600;

  border-radius: 0.65rem;
}

.equorum-navigation > .nav-item > .nav-link:hover,
.equorum-navigation > .nav-item > .nav-link:focus,
.equorum-navigation > .nav-item > .nav-link.show {
  color: #fff;

  background: color-mix(in srgb, var(--eq-sea-glass) 62%, transparent);

  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);

  transform: translateY(-1px);
}

.equorum-nav-toggle {
  display: none;

  padding: 0.55rem;

  color: #fff;
  background: transparent;

  border: 1px solid rgba(255, 255, 255, 0.28);

  border-radius: 0.65rem;
}

/* ==========================================================
   Navigation dropdowns
   ========================================================== */

.equorum-navigation .dropdown-menu {
  margin-top: 0.45rem;
  padding: 0.4rem;
  background: var(--eq-surface);
  border: 1px solid var(--eq-border-subtle, var(--eq-border));
  border-radius: 0.35rem;
  box-shadow: 0 0.75rem 1.75rem rgba(36, 59, 74, 0.14);
}

.equorum-navigation .dropdown-item {
  padding: 0.55rem 0.7rem;
  color: var(--eq-ink);
  background: transparent;
  border-radius: 0.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.equorum-navigation .dropdown-item:hover,
.equorum-navigation .dropdown-item:focus {
  color: var(--eq-harbor);
  background: #e2ece5;
  box-shadow: none;
  transform: none;
}

.equorum-navigation .dropdown-item.active,
.equorum-navigation .dropdown-item:active {
  color: #fff;
  background: var(--eq-sea-glass-deep);
}

/* ==========================================================
   Member utility bar
   ========================================================== */

.equorum-member-utility {
  position: relative;
  z-index: 19;

  width: 100%;

  color: var(--eq-ink);

  background: color-mix(in srgb, var(--eq-surface) 94%, var(--eq-seafoam));

  border-bottom: 1px solid var(--eq-border);
}

.equorum-member-utility__inner {
  width: 100%;

  min-height: 3.25rem;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;

  padding: 0.55rem clamp(1.25rem, 4vw, 4rem);
}

.equorum-member-utility__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 0.65rem;

  margin-left: auto;
}

/* ==========================================================
   Date / membership badge
   ========================================================== */

.equorum-member-tier {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  min-height: 2rem;

  padding: 0.3rem 0.68rem;

  color: var(--eq-harbor);

  font-size: 0.78rem;
  font-weight: 800;
}

.equorum-game-date i {
  color: var(--eq-brass);
}

.bullets .list-group-item::before {
  content: "•";
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  color: color-mix(in oklab, var(--eq-sea-glass), white 80%) !important;
  font-size: 1.1rem;
  line-height: 1;
}

/* ==========================================================
   Utility buttons
   ========================================================== */

.equorum-balance-pill,
.equorum-utility-account,
.equorum-utility-icon,
.equorum-utility-logout {
  min-height: 2.35rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 0.38rem;

  padding: 0.42rem 0.72rem;

  color: var(--eq-ink);
  background: var(--eq-surface);

  text-decoration: none;

  border: 1px solid var(--eq-border);
  border-radius: 0.72rem;

  box-shadow: 0 0.2rem 0.65rem rgba(36, 59, 74, 0.05);
}

.equorum-utility-icon,
.equorum-utility-logout {
  width: 2.35rem;
  padding: 0;

  cursor: pointer;
}

.equorum-utility-logout {
  font: inherit;
}

.equorum-balance-pill:hover,
.equorum-utility-account:hover,
.equorum-utility-icon:hover,
.equorum-utility-logout:hover {
  color: var(--eq-harbor);

  border-color: var(--eq-brass);

  background: color-mix(in srgb, var(--eq-surface) 82%, var(--eq-seafoam));

  transform: translateY(-1px);
}

.equorum-utility-account {
  font-weight: 700;
}

.equorum-balance-pill strong {
  font-variant-numeric: tabular-nums;
}

.equorum-balance-pill > span:last-child {
  color: var(--eq-muted);

  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

/* ==========================================================
   Equins
   ========================================================== */

.member-topbar-equins > i {
  color: #d4af37;

  filter: drop-shadow(0 1px 1px rgba(92, 65, 0, 0.25))
    drop-shadow(0 0 1px rgba(212, 175, 55, 0.18));
}

.member-topbar-equins {
  background: color-mix(in srgb, #d4af37 8%, transparent);
}

/* ==========================================================
   Pearls
   ========================================================== */

.pearl-icon {
  display: inline-block;

  width: 0.85rem;
  height: 0.85rem;

  flex-shrink: 0;

  border-radius: 50%;

  background: radial-gradient(
    circle at 30% 25%,
    #ffffff 0%,
    #fff8fb 18%,
    #f2dce8 38%,
    #dddff2 58%,
    #c9e1e5 76%,
    #b9b4c9 100%
  );

  border: 1px solid rgba(145, 125, 155, 0.3);

  box-shadow: inset 2px 2px 3px rgba(255, 255, 255, 0.95),
    inset -2px -2px 3px rgba(125, 130, 170, 0.18), 0 1px 2px rgba(0, 0, 0, 0.15),
    0 0 4px rgba(200, 170, 220, 0.2);
}

.member-topbar-pearls {
  background: color-mix(in srgb, #c9b7dc 10%, transparent);
}

/* ==========================================================
   Cards
   ========================================================== */

.equorum-card,
.card {
  background: var(--eq-surface);

  border: 1px solid var(--eq-border);

  border-radius: var(--eq-radius);

  box-shadow: var(--eq-shadow);
}

/* ==========================================================
   Buttons
   ========================================================== */

.btn-primary {
  --bs-btn-bg: var(--eq-sea-glass-deep);
  --bs-btn-border-color: var(--eq-sea-glass-deep);

  --bs-btn-hover-bg: #28555b;
  --bs-btn-hover-border-color: #28555b;

  border-radius: 999px;

  padding: 0.7rem 1.2rem;

  font-weight: 650;
}

.btn-outline-seafoam {
  --bs-btn-border-color: var(--eq-sea-glass-deep);
  --bs-btn-hover-bg: var(--eq-seafoam);
  --bs-btn-hover-border-color: var(--eq-sea-glass);
  --bs-btn-hover-color: var(--eq-sea-glass-deep);
  border-radius: 0.25rem;
  padding: 0.7rem 1.2rem;
  font-weight: 650;
  color: var(--eq-seafoam);
  border: 1px solid var(--eq-seafoam);
}

.btn-seafoam {
  --bs-btn-border-color: var(--eq-sea-glass-deep);
  --bs-btn-hover-bg: var(--eq-seafoam);
  --bs-btn-hover-border-color: var(--eq-sea-glass);
  --bs-btn-hover-color: var(--eq-sea-glass-deep);
  border-radius: 0.25rem;
  padding: 0.7rem 1.2rem;
  font-weight: 650;
  background-color: var(--eq-seafoam);
  color: var(--eq-sea-glass);
  border: 1px solid var(--eq-seafoam);
}

.shadow {
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
  text-shadow: 2px 2px 2px #000000;
}

.shadow:hover {
  text-shadow: none;
}

/* ==========================================================
   Footer
   ========================================================== */

.equorum-site-footer {
  margin-top: clamp(3rem, 8vw, 6rem);

  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 4rem) 1.5rem;

  color: rgba(255, 255, 255, 0.78);

  background: var(--eq-harbor);
}

.equorum-footer-inner {
  width: min(1240px, 100%);

  margin-inline: auto;

  display: flex;
  justify-content: space-between;

  gap: 2rem;
}

.equorum-footer-title {
  margin-bottom: 0.5rem;

  color: #fff;

  font-family: "Libre Baskerville", Georgia, serif;

  font-size: 1.4rem;
}

.equorum-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.equorum-footer-links a {
  color: #fff;
  text-decoration: none;
}

.equorum-footer-bottom {
  width: min(1240px, 100%);

  margin: 2rem auto 0;

  padding-top: 1.25rem;

  text-align: center;
  font-size: 0.875rem;

  border-top: 1px solid var(--eq-brass);
}

/*----------------------------------------------------
 Table
 -----------------------------------------------------*/

.table-transparent {
  background-color: transparent !important;
}

.table-hover tr:hover {
  background-color: var(--eq-seafoam) !important;
}

.table-caption {
  --bs-table-bg: var(--eq-sea-glass);
  --bs-table-color: var(--eq-surface);

  background-color: var(--eq-sea-glass) !important;
  color: var(--eq-surface) !important;

  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
  font-weight: bold;

  box-shadow: rgba(60, 64, 67, 0.3) 0 1px 2px 0,
    rgba(60, 64, 67, 0.15) 0 1px 3px 1px;
}

.table-caption > * {
  --bs-table-bg: var(--eq-sea-glass);
  --bs-table-color: var(--eq-surface);

  background-color: var(--eq-sea-glass) !important;
  color: var(--eq-surface) !important;
}

.table-group-divider {
  border-top: 2px solid var(--eq-sea-glass-deep) !important;
}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 781px) {
  .equorum-nav-inner {
    flex-wrap: wrap;
  }

  .equorum-brand {
    margin-right: auto;
  }

  .equorum-navigation {
    flex: 0 0 100%;
  }

  .equorum-nav-toggle {
    display: inline-flex;
  }

  .equorum-navigation {
    width: 100%;

    flex-direction: column;
    align-items: stretch;

    padding-top: 1rem;
  }

  .equorum-navigation > .nav-item > .nav-link {
    width: 100%;

    color: #fff;

    padding: 0.75rem;
  }

  .equorum-member-utility__inner {
    min-height: 3rem;

    padding: 0.45rem 0.8rem;
  }

  .equorum-member-utility__identity,
  .equorum-utility-account {
    display: none;
  }

  .equorum-member-utility__actions {
    width: 100%;

    justify-content: flex-end;

    gap: 0.45rem;
  }

  .equorum-balance-pill {
    min-height: 2.2rem;

    padding: 0.38rem 0.58rem;

    font-size: 0.9rem;
  }

  .equorum-balance-pill > span:last-child {
    font-size: 0.7rem;
  }

  .equorum-footer-inner {
    flex-direction: column;
  }
}

.eq-home {
  background: var(--eq-bg-page);
}

.eq-home-hero {
  position: relative;
  padding: 6rem 0;

  background: linear-gradient(
      90deg,
      rgba(36, 59, 74, 0.97) 0%,
      rgba(36, 59, 74, 0.9) 40%,
      rgba(36, 59, 74, 0.55) 70%,
      rgba(36, 59, 74, 0.3) 100%
    ),
    url("/assets/img/hero.webp");

  background-size: cover;
  background-position: 70% center; /* slightly left */
  background-repeat: no-repeat;

  color: #fff;
}

.eq-home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: 4rem;
}

.eq-home-copy h1 {
  max-width: 800px;
  margin: 0.5rem 0 1.25rem;

  color: #fff;

  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.08;
}

.eq-home-copy p {
  max-width: 700px;

  color: rgba(255, 255, 255, 0.82);

  font-size: 1.05rem;
  line-height: 1.75;
}

.eq-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;

  margin-top: 1.75rem;
}

.eq-home-hero-card {
  padding: 1px;

  border-radius: 1.25rem;

  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.16);
}

.eq-home-hero-card-inner {
  padding: 2rem;

  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.25rem;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.eq-home-hero-card h2 {
  margin: 0.4rem 0 0.9rem;

  color: #fff;

  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.55rem;
}

.eq-home-hero-card p {
  margin: 0;

  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
}

.eq-home-section {
  padding: 5rem 0;
}

.eq-section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.eq-section-heading h2 {
  margin: 0.35rem 0 0.8rem;

  color: var(--eq-harbor);

  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.eq-section-heading p {
  color: var(--eq-muted);
  line-height: 1.7;
}

.eq-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.eq-feature-card {
  padding: 1.5rem;

  color: inherit;
  text-decoration: none;

  background: var(--eq-surface);

  border: 1px solid var(--eq-border);
  border-radius: 1rem;

  box-shadow: var(--eq-shadow);

  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.eq-feature-card:hover {
  transform: translateY(-3px);

  border-color: var(--eq-sea-glass);

  box-shadow: 0 1rem 2rem rgba(36, 59, 74, 0.1);
}

.eq-feature-icon {
  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 1rem;

  color: var(--eq-sea-glass-deep);

  background: var(--eq-seafoam);

  border-radius: 0.8rem;
}

.eq-feature-card h3 {
  margin: 0 0 0.55rem;

  color: var(--eq-harbor);

  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.05rem;
}

.eq-feature-card p {
  margin: 0;

  color: var(--eq-muted);

  font-size: 0.86rem;
  line-height: 1.65;
}

.eq-home-community {
  padding: 0 0 5rem;
}

.eq-community-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;

  padding: 2.2rem;

  background: var(--eq-seafoam);

  border: 1px solid var(--eq-border);
  border-radius: 1.2rem;
}

.eq-community-callout h2 {
  margin: 0.35rem 0 0.65rem;

  color: var(--eq-harbor);

  font-family: "Libre Baskerville", Georgia, serif;
}

.eq-community-callout p {
  max-width: 720px;
  margin: 0;

  color: var(--eq-muted);

  line-height: 1.7;
}

/* =========================================================
   INNER PAGE BANNER
   ========================================================= */

.eq-page-banner {
  position: relative;

  /* Responsive banner height */
  height: clamp(150px, 14vw, 230px);

  background: linear-gradient(
      90deg,
      rgba(36, 59, 74, 0.97) 0%,
      rgba(36, 59, 74, 0.9) 40%,
      rgba(36, 59, 74, 0.55) 70%,
      rgba(36, 59, 74, 0.3) 100%
    ),
    var(--eq-banner-image, url("/assets/img/hero.webp"));

  background-size: cover;
  background-position: var(--eq-banner-position, center center);
  background-repeat: no-repeat;

  color: #fff;
}

.eq-page-banner .container {
  height: 100%;
}

.eq-page-banner-inner {
  display: flex;
  align-items: center;
  height: 100%;
}

.eq-page-banner h1 {
  margin: 0;

  color: #fff;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.1;
}

.eq-page-banner p {
  max-width: 650px;
  margin: 0.5rem 0 0;

  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.6;
}

.eq-page-banner-eyebrow {
  margin-bottom: 0.4rem;

  color: var(--eq-seafoam);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  .eq-page-banner {
    padding: 1.75rem 0;
  }

  .eq-page-banner-inner {
    min-height: 90px;
  }
}

@media (max-width: 950px) {
  .eq-home-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .eq-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .eq-home-hero {
    padding: 3.5rem 0;
  }

  .eq-home-copy h1 {
    font-size: 2.35rem;
  }

  .eq-feature-grid {
    grid-template-columns: 1fr;
  }

  .eq-community-callout {
    align-items: stretch;
    flex-direction: column;
    gap: 1.25rem;
  }

  .eq-home-actions .btn {
    width: 100%;
  }
}

/* ==========================================================
   Economy
   ========================================================== */

.eqf {
  max-width: 1240px;
  margin: auto;
  padding: 42px 24px 64px;
  color: var(--eq-ink, #283335);
}
.eqf * {
  box-sizing: border-box;
}
.eqf h1,
.eqf h2,
.eqf h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  color: var(--eq-harbor, #243b4a);
  overflow-wrap: anywhere;
}
.eqf h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
.eqf h2 {
  font-size: 1.4rem;
}
.eqf h3 {
  font-size: 1.1rem;
  margin-top: 30px;
}
.eqf-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #4f6666;
}
.eqf-heading {
  margin-bottom: 30px;
}
.eqf-accounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.eqf-account,
.eqf-panel {
  padding: 26px;
  background: var(--eq-surface, #fbfcfa);
  border: 1px solid var(--eq-border, #ccd9d5);
  border-radius: 14px;
}
.eqf-account {
  text-decoration: none;
  color: inherit;
}
.eqf-account:hover {
  border-color: #4f807d;
}
.eqf-account dl {
  display: flex;
  gap: 28px;
  margin: 0;
}
.eqf-account dt {
  font-size: 0.85rem;
  font-weight: 400;
}
.eqf-account dd {
  font-size: 1.6rem;
  color: #243b4a;
  margin: 0;
}
.eqf-panel {
  margin-bottom: 24px;
}
.eqf-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.eqf label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}
.eqf input,
.eqf select {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #97aaa3;
  border-radius: 6px;
  background: white;
  color: #283335;
  font: inherit;
}
.eqf button {
  background: #243b4a;
  color: #fff;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  align-self: end;
  cursor: pointer;
}
.eqf :is(a, button, input, select):focus-visible {
  outline: 3px solid #a9874f;
  outline-offset: 3px;
}
.eqf-notice {
  background: #e4f0e8;
  padding: 18px;
  border-left: 4px solid #4f807d;
}
.eqf-error {
  background: #f9e9e6;
  padding: 18px;
  border-left: 4px solid #a44f3e;
}
.eqf-filter {
  display: flex;
  align-items: end;
  gap: 16px;
  margin: 20px 0;
}
.eqf-scroll {
  overflow: auto;
}
.eqf table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.85rem;
}
.eqf th,
.eqf td {
  padding: 12px;
  border-bottom: 1px solid #dce5df;
  vertical-align: top;
  min-width: 110px;
}
.eqf td {
  overflow-wrap: anywhere;
}
.eqf th {
  color: #526365;
}
.eqf-pages {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 20px;
}
@media (max-width: 600px) {
  .eqf {
    padding: 28px 16px;
  }
  .eqf-form {
    grid-template-columns: 1fr;
  }
  .eqf-panel,
  .eqf-account {
    padding: 20px;
  }
  .eqf-account dd {
    font-size: 1.4rem;
  }
}

/* ==========================================================
   Horses
   ========================================================== */

.eqh {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  color: var(--eq-ink, #283335);
}
.eqh * {
  box-sizing: border-box;
}
.eqh h1,
.eqh h2 {
  color: var(--eq-harbor, #243b4a);
  font-family: "Libre Baskerville", Georgia, serif;
  overflow-wrap: anywhere;
}
.eqh h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 8px 0 16px;
}
.eqh h2 {
  font-size: 1.35rem;
  margin: 8px 0 16px;
}
.eqh p {
  line-height: 1.7;
}
.eqh a {
  color: var(--eq-sea-glass-deep, #356a70);
}
.eqh a:focus-visible,
.eqh button:focus-visible,
.eqh select:focus-visible {
  outline: 3px solid #a9874f;
  outline-offset: 4px;
}
.eqh-eyebrow {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #4f6666;
  margin: 0;
}
.eqh-heading {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--eq-border, #ccd9d5);
}
.eqh-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
}
.eqh-toolbar p {
  margin: 0;
}
.eqh-toolbar select,
.eqh-toolbar button {
  font: inherit;
  padding: 8px 12px;
  border: 1px solid #9dafaa;
  border-radius: 6px;
}
.eqh-toolbar button {
  background: #243b4a;
  color: white;
}
.eqh-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.eqh-card,
.eqh-panel {
  background: var(--eq-surface, #fbfcfa);
  border: 1px solid var(--eq-border, #ccd9d5);
  border-radius: 14px;
  overflow: hidden;
}
.eqh-card-link {
  display: block;
  text-decoration: none;
  color: inherit !important;
  height: 100%;
}
.eqh-card:hover {
  border-color: #4f807d;
}
.eqh-card-body {
  padding: 24px;
}
.eqh-card-body p {
  margin-bottom: 10px;
}
.eqh-image,
.eqh-placeholder {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #dce7e2;
}
.eqh-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e5ece7, #b8d1ca);
  color: #4f807d;
}
.eqh-placeholder span {
  font: 100px Georgia, serif;
}
.eqh-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 30px;
  background: #e5ece7;
  color: #243b4a;
  font-size: 0.8rem;
  margin: 4px 4px 0 0;
}
.eqh-panel {
  padding: 28px;
}
.eqh-empty {
  text-align: center;
  padding: 56px 24px;
}
.eqh-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}
.eqh-profile-heading {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-bottom: 32px;
}
.eqh-portrait {
  flex: 0 0 300px;
  border-radius: 14px;
  overflow: hidden;
}
.eqh-portrait .eqh-image,
.eqh-portrait .eqh-placeholder {
  height: 280px;
}
.eqh-profile-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.eqh-facts {
  margin: 0 0 16px;
}
.eqh-facts > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e1e7e3;
}
.eqh-facts dt {
  font-weight: 500;
  color: #526365;
}
.eqh-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .eqh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .eqh-profile-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 580px) {
  .eqh {
    padding: 28px 16px 40px;
  }
  .eqh-grid {
    grid-template-columns: 1fr;
  }
  .eqh-profile-heading {
    display: block;
  }
  .eqh-portrait {
    margin-bottom: 24px;
  }
  .eqh-toolbar > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .eqh-panel {
    padding: 22px;
  }
  .eqh-facts > div {
    grid-template-columns: 85px 1fr;
  }
}

/* ==========================================================
   Player handbook
   ========================================================== */

.rules-sidebar {
  top: 1.5rem;
  padding: 1rem;
}
.rules-sidebar__brand {
  display: block;
  color: var(--eq-sea-glass-deep);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.25rem 0.5rem 1rem;
  text-decoration: none;
}
.rules-nav-group + .rules-nav-group {
  border-top: 1px solid #eee8e0;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}
.rules-nav-group__toggle {
  align-items: center;
  background: none;
  border: 0;
  color: var(--rules-ink);
  display: flex;
  font-size: 0.85rem;
  font-weight: 700;
  justify-content: space-between;
  padding: 0.45rem 0.5rem;
  text-align: left;
  width: 100%;
}
.rules-nav-group__toggle .fa-solid {
  transition: transform 0.2s;
}
.rules-nav-group__toggle[aria-expanded="true"] .fa-solid {
  transform: rotate(180deg);
}
.rules-nav-group__links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rules-nav-group__links a {
  border-radius: 0.35rem;
  color: var(--rules-muted);
  display: block;
  font-size: 0.9rem;
  padding: 0.4rem 0.5rem;
  text-decoration: none;
}
.rules-nav-group__links a:hover,
.rules-nav-group__links a.is-active {
  background: #eee5db;
  color: var(--eq-seafoam);
  font-weight: 600;
}
.rules-hero {
  background: var(--eq-sea-glass-deep) !important;
  color: #fff;
  padding: clamp(2rem, 6vw, 4.5rem);
}
.rules-hero h1,
.rules-article h1 {
  font-family: Georgia, serif;
}
.rules-search {
  max-width: 100% !important;
  position: relative;
  width: min(100%, 760px) !important;
  z-index: 2;
}
.rules-search-form {
  margin-bottom: 0;
}
.rules-search-form .input-group-text,
.rules-search-form .form-control,
.rules-search-form .btn {
  font-size: 16px;
  min-height: 48px;
}
.rules-search-form .input-group-text {
  background: #fff;
  border-right: 0;
  padding-inline: 16px;
}
.rules-search-form .form-control {
  border-left: 0;
  border-right: 0;
  padding: 10px 12px;
  background: #ffffff;
}
.rules-search-form .btn {
  padding-inline: 18px;
}
.rules-search-form__shortcut {
  border-left: 0;
  color: var(--eq-seafoam);
  font-size: 12px !important;
}
.rules-search-form kbd {
  background: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
  font-size: 12px;
  font-weight: 500;
}
.rules-search-results {
  background: var(--bs-body-bg);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  left: 0;
  max-height: 420px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  margin-top: 0;
}
.rules-search-results__heading {
  border-bottom: 1px solid var(--bs-border-color);
  color: var(--eq-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 12px 16px;
  text-transform: uppercase;
}
.rules-search-result {
  display: flex !important;
  flex-direction: column;
  gap: 3px;
  min-height: 0;
  margin: 0 !important;
  padding: 12px 16px !important;
}
.rules-search-result > * {
  display: block;
  line-height: 1.35 !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
}
.rules-search-results__category {
  color: var(--rules-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.rules-search-results__title {
  color: var(--bs-body-color);
  font-size: 16px;
  font-weight: 600;
}
.rules-search-results__description {
  color: var(--eq-muted);
  font-size: 14px;
}
.rules-category {
  margin-top: 2.5rem;
}

.rules-category + .rules-category {
  margin-top: 3rem;
}

.rules-category__title {
  margin-bottom: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid
    color-mix(in srgb, var(--eq-sea-glass-deep) 45%, transparent);
  color: var(--eq-sea-glass);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rules-category .bullets .list-group-item {
  padding: 0;
  background: transparent;
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rules-card {
  display: block;
  padding: 1rem 1.25rem;
  border-color: var(--eq-sea-glass);
}

.rules-card h3 {
  margin-bottom: 0.25rem;
  color: var(--eq-ink);
}

.rules-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.rules-category .bullets .list-group-item:hover,
.rules-category .bullets .list-group-item:focus-within {
  border-left-color: var(--eq-sea-glass-deep);
  background: color-mix(in srgb, var(--eq-sea-glass) 7%, transparent);
}

.rules-category .bullets .list-group-item:hover::before,
.rules-category .bullets .list-group-item:focus-within::before {
  color: var(--eq-sea-glass) !important;
}
.rules-breadcrumbs {
  margin-bottom: 1.5rem;
}
.rules-breadcrumbs a {
  color: var(--eq-sea-glass);
}
.rules-article h1 {
  margin-bottom: 2rem;
}
.rule-section + .rule-section {
  border-top: 0px solid #e9e2da;
  margin-top: 2rem;
  padding-top: 2rem;
}
.rule-section h2 {
  font-family: Georgia, serif;
  scroll-margin-top: 2rem;
}
.rule-section h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  scroll-margin-top: 2rem;
}
.rule-callout {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.rule-callout > .fa-solid {
  font-size: 1.2rem;
}
.rules-toc {
  border-left: 2px solid #dfd5ca;
  position: sticky;
  top: 2rem;
}
.rules-toc__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem 0.75rem;
  text-transform: uppercase;
}
.rules-toc a {
  color: var(--rules-muted);
  display: block;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  text-decoration: none;
}
.rules-toc a:hover {
  color: var(--eq-sea-glass);
  border-radius: 0 !important;
}
.rules-toc__subheading {
  padding-left: 1.5rem !important;
}
.offcanvas .rules-sidebar {
  position: static;
  top: auto;
}

.rules-article {
  border: 1px solid
    color-mix(in srgb, var(--eq-sea-glass) 50%, var(--eq-sea-glass-deep));
  border-radius: 1rem;
  box-shadow: 0 0.75rem 2rem rgba(23, 33, 43, 0.08);
}

.rules-article .card-body {
  max-width: 960px;
}

.rules-article h1 {
  color: var(--eq-sea-glass-deep);
  letter-spacing: -0.02em;
}

.rule-section {
  position: relative;
}

.rule-section + .rule-section {
  margin-top: 0.5rem !important;
  padding-top: 0.5rem;
}

.rules-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--eq-sea-glass) !important;
  font-weight: 700 !important;
}

.rules-heading::before {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--eq-sea-glass);
  content: "";
}

.rule-callout {
  border: 0;
  border-left: 4px solid currentColor;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.75rem rgba(23, 33, 43, 0.06);
}

.rules-toc {
  border: 1px solid color-mix(in srgb, var(--eq-sea-glass) 50%, transparent);
  border-radius: 4px;
  background-color: var(--eq-surface);
}

.rules-toc a {
  border-radius: 0.35rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.rules-toc a:hover {
  background: color-mix(in srgb, var(--eq-sea-glass) 10%, transparent);
}

.rules-toc a.is-active {
  background: color-mix(in srgb, var(--eq-sea-glass) 12%, transparent);
  color: var(--eq-sea-glasst);
  font-weight: 700;
  border-radius: 0 !important;
}

.rules-card::before {
  content: none !important;
  display: none !important;
}

.rules-card h3 {
  margin-bottom: 0.25rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.rules-category .bullets .list-group-item {
  padding-left: 1rem;
}

.rules-category .bullets .list-group-item::before {
  left: 0.8rem !important;
}

.rules-category .bullets .list-group-item p {
  font-size: 14px;
}

/* ==========================================================
   Breed administration
   ========================================================== */

.eqb .eqh-panel {
  margin-top: 26px;
}
.eqb-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.eqb-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.eqb-form input:not([type="checkbox"]):not([type="hidden"]) {
  width: 100%;
  min-width: 0;
  font: inherit;
  border: 1px solid #97aaa3;
  border-radius: 6px;
  padding: 10px;
  color: #283335;
  background: white;
}
.eqb-form .eqb-check {
  flex-direction: row;
  align-items: center;
  margin: 24px 0 14px;
  gap: 10px;
}
.eqb-check input {
  width: 18px;
  height: 18px;
  accent-color: #356a70;
}
.eqb h3 {
  font-size: 1.2rem;
  margin: 30px 0 12px;
}
.eqb small {
  color: #526365;
}
.eqb-modifiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.eqb-actions,
.eqb-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.eqb-actions {
  margin-top: 30px;
  justify-content: flex-start;
}
.eqb button {
  font: inherit;
  border: 0;
  border-radius: 8px;
  padding: 12px 24px;
  background: #243b4a;
  color: white;
  cursor: pointer;
}
.eqb-scroll {
  overflow: auto;
}
.eqb table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.eqb th,
.eqb td {
  padding: 14px 12px;
  border-bottom: 1px solid #dce5df;
  vertical-align: top;
}
.eqb th {
  font-size: 0.8rem;
  color: #526365;
}
.eqb-error,
.eqb-success {
  padding: 18px;
  border-left: 4px solid #a44f3e;
  background: #f9e9e6;
  margin: 24px 0;
}
.eqb-success {
  border-color: #4f807d;
  background: #e4f0e8;
}
.eqb :is(a, input, button):focus-visible {
  outline: 3px solid #a9874f;
  outline-offset: 3px;
}
#breed-editor {
  scroll-margin-top: 24px;
}

@media (max-width: 700px) {
  .eqb-modifiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .eqb-fields,
  .eqb-modifiers {
    grid-template-columns: 1fr;
  }
  .eqb .eqh-panel {
    padding: 18px;
  }
}

/* ==========================================================
   Account layouts and handbook details
   ========================================================== */

/* ==========================================================
   Horse creation
   ========================================================== */

.eqc-balance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--eq-seafoam);
  border: 1px solid var(--eq-border);
  border-radius: 0.85rem;
}

.eqc-balance a {
  margin-left: auto;
  font-weight: 600;
}

.eqc-error {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  color: #743a30;
  background: #f9e9e6;
  border-left: 4px solid #a44f3e;
  border-radius: 0.5rem;
}

.eqc-form {
  display: grid;
  gap: 1.5rem;
}
.eqc-form > * {
  min-width: 0;
}

.eqc-form fieldset,
.eqc .equorum-phenotype-preview {
  min-width: 0;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--eq-surface);
  border: 1px solid var(--eq-border);
  border-radius: var(--eq-radius);
  box-shadow: 0 0.3rem 1rem rgba(36, 59, 74, 0.04);
}

.eqc-form legend {
  float: none;
  width: auto;
  margin: 0 0 0.75rem;
  padding: 0 0.4rem;
  color: var(--eq-harbor);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.5;
}

.eqc-packages,
.eqc-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.eqc-fields + .eqc-fields {
  margin-top: 1.5rem;
}
.eqc-fields > * {
  min-width: 0;
}
.eqc-fields h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.eqc-form label {
  font-size: 0.9rem;
  font-weight: 600;
}
.eqc-fields > label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.eqc-form input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
.eqc-form select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  color: var(--eq-ink);
  background: #fff;
  border: 1px solid #97aaa3;
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 400;
}

.eqc-form input[type="radio"],
.eqc-form input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--eq-sea-glass-deep);
}

.eqc-package {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem;
  background: #fff;
  border: 2px solid var(--eq-border);
  border-radius: 0.85rem;
  cursor: pointer;
}

.eqc-package input {
  margin-top: 0.3rem;
}
.eqc-package span {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}
.eqc-package strong {
  color: var(--eq-harbor);
  font-size: 1rem;
}
.eqc-package b {
  color: var(--eq-sea-glass-deep);
}
.eqc-package:hover {
  border-color: var(--eq-sea-glass);
}
.eqc-package:has(input:checked) {
  background: #edf4f1;
  border-color: var(--eq-sea-glass-deep);
  box-shadow: 0 0 0 1px var(--eq-sea-glass-deep);
}

.eqc-form small {
  color: var(--eq-muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.6;
}
.eqc-form .eqc-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  font-weight: 400;
  cursor: pointer;
}

.eqc-form :is(a, input, select, button):focus-visible {
  outline: 3px solid var(--eq-brass);
  outline-offset: 3px;
}

.eqc .equorum-phenotype-preview {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
}

.eqc .equorum-coat-swatch {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  color: #fff;
  background: #825436;
  border: 1px solid rgba(36, 59, 74, 0.2);
  border-radius: 1rem;
  box-shadow: inset 0 0 1.5rem rgba(0, 0, 0, 0.12);
}

.eqc .equorum-coat-swatch > i {
  position: relative;
  z-index: 1;
  font-size: 5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.eqc .equorum-preview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.eqc .equorum-preview-badges > * {
  padding: 0.25rem 0.65rem;
  color: var(--eq-harbor);
  background: var(--eq-seafoam);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.eqc-form .eqc-submit {
  justify-self: start;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  color: #fff;
  background: var(--eq-sea-glass-deep);
  border: 1px solid var(--eq-sea-glass-deep);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.eqc-form .eqc-submit:hover {
  background: var(--eq-harbor);
}
.eqc-form .eqc-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.eqc-form [hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .eqc-packages,
  .eqc-fields {
    grid-template-columns: 1fr;
  }
  .eqc .equorum-phenotype-preview {
    grid-template-columns: 1fr;
  }
  .eqc .equorum-coat-swatch {
    max-width: 160px;
  }
  .eqc-balance a {
    margin-left: 0;
  }
  .eqc-form .eqc-submit {
    justify-self: stretch;
  }
}

/* Economy navigation: override the general economy button styles. */
.eqf .eqf-tabs {
  display: inline-flex;
  max-width: 100%;
  gap: 0.4rem;
  margin-bottom: 2rem;
  padding: 0.4rem;
  background: var(--eq-seafoam);
  border: 1px solid var(--eq-border);
  border-radius: 1rem;
}

.eqf .eqf-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  margin: 0;
  padding: 0.7rem 1.25rem;
  color: var(--eq-harbor);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  transition: background-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
}

.eqf .eqf-tabs .nav-link:hover {
  background: var(--eq-surface);
}

.eqf .eqf-tabs .nav-link.active {
  color: #fff;
  background: var(--eq-harbor);
  border-color: var(--eq-harbor);
  box-shadow: 0 0.2rem 0.5rem rgba(36, 59, 74, 0.16);
}

.eqf .eqf-tabs .nav-link:focus-visible {
  position: relative;
  outline: 3px solid var(--eq-brass);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .eqf .eqf-tabs {
    display: flex;
  }
  .eqf .eqf-tabs .nav-link {
    flex: 1 1 auto;
    padding-inline: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eqf .eqf-tabs .nav-link {
    transition: none;
  }
}

.eq-account-login {
  max-width: 520px;
}
.eq-account-register {
  max-width: 620px;
}
.eq-account-pending {
  max-width: 720px;
}
.rules-optional-level {
  color: var(--accent);
}
.rules-stage-description {
  font-size: 0.75em;
  font-style: italic;
}
/* ==========================================================
   Studbook theme — shared component finish
   ========================================================== */

/* 1. Recalibrate card tokens: architectural corners & diffused depth */
:root {
  --eq-radius: 0.35rem;
  --eq-radius-card: 0.35rem;
  --eq-surface: #fcfbf7;
  --eq-border-subtle: #d9d8ce;
  --eq-shadow: none;
  --eq-shadow-soft: none;
  --bs-border-radius: 0.3rem;
  --bs-border-radius-lg: 0.4rem;
  --bs-primary: #243b4a;
  --bs-primary-rgb: 36, 59, 74;
}

/* 2. Global Card Container Normalization */
.equorum-card,
.card,
.eq-feature-card,
.eqh-card,
.eqh-panel,
.eqf-account,
.eqf-panel,
.rules-article,
.eqc-form fieldset,
.eqc .equorum-phenotype-preview {
  border-radius: var(--eq-radius-card) !important;
  border: 1px solid var(--eq-border-subtle) !important;
  box-shadow: var(--eq-shadow-soft) !important;
  background: var(--eq-surface) !important;
}

/* 3. Strip the rigid "card-header" look */
.card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--eq-border-subtle) !important;
  padding: 1.25rem 1.5rem;
  font-family: "Libre Baskerville", Georgia, serif !important;
  font-size: 1.15rem !important;
  color: var(--eq-harbor) !important;
}

.card-body {
  padding: 1.5rem;
}

/* 4. Feature & Entity card lift physics */
.eq-feature-card,
.eqh-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
}

.eq-feature-card:hover,
.eqh-card:hover {
  transform: none !important;
  border-color: rgba(79, 128, 125, 0.35) !important;
  box-shadow: none !important;
}

/* Type and navigation */
.equorum-main h1 {
  letter-spacing: -0.035em;
  line-height: 1.18;
}
.equorum-main h2 {
  letter-spacing: -0.02em;
}
.eqf-eyebrow,
.eqh-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.eqf-heading,
.eqh-heading {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--eq-border-subtle);
}
.equorum-balance-pill,
.equorum-utility-account,
.equorum-utility-icon,
.equorum-utility-logout {
  border-radius: 0.3rem;
  box-shadow: none;
}

/* Long forms and ledger sections read as a document, with ruled headings. */
.eqf-panel,
.eqh-profile-grid > .eqh-panel,
.eqc-form fieldset {
  background: transparent !important;
  border-width: 1px 0 0 !important;
  border-radius: 0 !important;
  padding: 1.75rem 0;
}
.eqc-form legend {
  padding: 0 0.75rem 0 0;
  font-size: 1.1rem;
}
.eqc-package {
  border-radius: 0.35rem;
  border-width: 1px;
}
.eqc-package:has(input:checked) {
  border-color: var(--eq-sea-glass-deep);
  box-shadow: inset 3px 0 var(--eq-sea-glass-deep);
}
.eqc-balance {
  border-radius: 0.3rem;
  background: #e8ede6;
}
.eq-home-hero-card,
.eq-home-hero-card-inner,
.eq-community-callout,
.eq-feature-icon,
.eqh-portrait {
  border-radius: 0.4rem;
  box-shadow: none;
}

/* Buttons keep Bootstrap state variables so disabled and active states work. */
.btn {
  --bs-btn-border-radius: 0.25rem;
  --bs-btn-font-size: 0.875rem;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 1.1rem;
  --bs-btn-padding-y: 0.65rem;
  letter-spacing: 0.025em;
}
.btn-primary {
  --bs-btn-bg: var(--eq-harbor);
  --bs-btn-border-color: var(--eq-harbor);
  --bs-btn-hover-bg: var(--eq-harbor-hover);
  --bs-btn-hover-border-color: var(--eq-harbor-hover);
  --bs-btn-active-bg: var(--eq-harbor-hover);
  --bs-btn-active-border-color: var(--eq-harbor-hover);
  --bs-btn-disabled-bg: var(--eq-harbor);
  --bs-btn-disabled-border-color: var(--eq-harbor);
  border-radius: 0.25rem;
  padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
}

.btn-outline-seaglass {
  border-color: var(--eq-sea-glass);
  color: var(--eq-sea-glass);
  --bs-btn-hover-bg: var(--eq-sea-glass);
  --bs-btn-hover-color: var(--eq-sailcloth);
  --bs-btn-hover-border-color: var(--eq-sea-glass);
  --bs-btn-active-bg: var(--eq-sea-glass-deep);
  --bs-btn-active-border-color: var(--eq-sea-glass-deep);
  --bs-btn-active-color: var(--eq-sailcloth);
}

.btn-sm {
  --bs-btn-padding-y: 0.35rem;
  --bs-btn-padding-x: 0.7rem;
  --bs-btn-font-size: 0.8rem;
}
.eqf-form button,
.eqf-filter button,
.eqb button,
.eqc-form .eqc-submit {
  border-radius: 0.25rem;
  background: var(--eq-harbor);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.eqf-form button:hover,
.eqf-filter button:hover,
.eqb button:hover,
.eqc-form .eqc-submit:hover {
  background: var(--eq-harbor-hover);
}

/* Neutral fields, with a clear keyboard focus treatment. */
.form-label,
.eqf label,
.eqc-form label {
  font-size: 0.85rem;
  font-weight: 600;
}
.form-control,
.form-select,
.eqf input,
.eqf select,
.eqc-form input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
.eqc-form select,
.eqb-form input:not([type="checkbox"]):not([type="hidden"]) {
  border-radius: 0.25rem;
  border-color: #a4aea6;
  background-color: var(--eq-surface);
  color: var(--eq-ink);
  min-height: 44px;
  font-weight: 400;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--eq-sea-glass);
  box-shadow: 0 0 0 0.2rem rgba(79, 128, 125, 0.15);
}

/* Ledger-style tables */
.equorum-main .table,
.eqf table,
.eqb table {
  --bs-table-bg: #fcfbf7;
  --bs-table-color: var(--eq-ink);
  --bs-table-border-color: #d0d6cc;
  --bs-table-striped-bg: #f2f2ea;
  --bs-table-striped-color: var(--eq-ink);
  --bs-table-hover-bg: #e2ece5;
  --bs-table-hover-color: var(--eq-ink);
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #c5cec2;
  border-radius: 0.35rem;
  background: #fcfbf7;
}
.equorum-main .table > tbody > tr > *,
.eqf tbody > tr > *,
.eqb tbody > tr > * {
  background-color: #fcfbf7;
  border-bottom: 1px solid #d0d6cc;
}
.equorum-main .table > tbody > tr:nth-child(even) > *,
.eqf tbody > tr:nth-child(even) > *,
.eqb tbody > tr:nth-child(even) > * {
  --bs-table-bg: #f2f2ea;
  background-color: #f2f2ea;
}
/* Stripe the same rows even when Bootstrap's table-striped is present. */
.equorum-main .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-bg-type: transparent;
}
.equorum-main .table > thead > tr > *,
.eqf thead > tr > *,
.eqb thead > tr > * {
  --bs-table-bg: #dce7de;
  background-color: #dce7de;
  border-bottom: 2px solid #b4c4b6;
}
.equorum-main .table > tbody > tr:last-child > *,
.eqf tbody > tr:last-child > *,
.eqb tbody > tr:last-child > * {
  border-bottom: 0;
}
.equorum-main .table > thead > tr:first-child > :first-child,
.eqf thead > tr:first-child > :first-child,
.eqb thead > tr:first-child > :first-child {
  border-top-left-radius: 0.3rem;
}
.equorum-main .table > thead > tr:first-child > :last-child,
.eqf thead > tr:first-child > :last-child,
.eqb thead > tr:first-child > :last-child {
  border-top-right-radius: 0.3rem;
}
.equorum-main .table > tbody > tr:last-child > :first-child,
.eqf tbody > tr:last-child > :first-child,
.eqb tbody > tr:last-child > :first-child {
  border-bottom-left-radius: 0.3rem;
}
.equorum-main .table > tbody > tr:last-child > :last-child,
.eqf tbody > tr:last-child > :last-child,
.eqb tbody > tr:last-child > :last-child {
  border-bottom-right-radius: 0.3rem;
}
.equorum-main .table > :not(caption) > * > *,
.eqf th,
.eqf td,
.eqb th,
.eqb td {
  padding: 1rem 0.85rem;
}
.equorum-main .table thead th,
.eqf th,
.eqb th {
  color: var(--eq-harbor);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eqf td,
.eqb td {
  font-variant-numeric: tabular-nums;
}
.equorum-main .table > tbody > tr:hover > *,
.equorum-main .table > tbody > tr:focus-within > *,
.eqf tbody > tr:hover > *,
.eqf tbody > tr:focus-within > *,
.eqb tbody > tr:hover > *,
.eqb tbody > tr:focus-within > * {
  --bs-table-bg: #e2ece5;
  background-color: #e2ece5;
}

/* Underlined tabs */
.eqf .eqf-tabs {
  display: flex;
  gap: 1.25rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--eq-border-subtle);
  border-radius: 0;
}
.eqf .eqf-tabs .nav-link {
  padding: 0.8rem 0.25rem;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--eq-muted);
}
.eqf .eqf-tabs .nav-link:hover {
  background: transparent;
  color: var(--eq-harbor);
}
.eqf .eqf-tabs .nav-link.active {
  background: transparent;
  color: var(--eq-harbor);
  border-color: var(--eq-brass);
  box-shadow: none;
}

@media (max-width: 600px) {
  .card-body {
    padding: 1.15rem;
  }
  .eqf-panel,
  .eqh-profile-grid > .eqh-panel,
  .eqc-form fieldset {
    padding: 1.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eq-feature-card,
  .eqh-card {
    transition: none !important;
  }
}

.eqf .eqf-tabs {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.3rem;
  background: #e5e9e1;
  border: 1px solid #c5cec2;
  border-radius: 0.6rem;
}

.eqf .eqf-tabs .nav-link {
  flex: 1;
  margin: 0;
  padding: 0.65rem 1.2rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: var(--eq-harbor);
  font-weight: 600;
}

.eqf .eqf-tabs .nav-link:hover {
  background: rgba(255, 255, 255, 0.5);
}

.eqf .eqf-tabs .nav-link.active {
  background: var(--eq-harbor);
  color: #fff;
  box-shadow: 0 1px 3px rgba(36, 59, 74, 0.15);
}

/* Links inside paragraphs and handbook content */
.equorum-main
  :is(p, li, dd, td)
  a:not(.btn, .nav-link, .eqf-account, .eqh-card-link, .rules-card) {
  color: var(--eq-sea-glass-deep);
  font-weight: 500;
  text-decoration-line: underline;
  text-decoration-color: #a8bdb3;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-skip-ink: auto;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.equorum-main
  :is(p, li, dd, td)
  a:not(.btn, .nav-link, .eqf-account, .eqh-card-link, .rules-card):hover {
  color: var(--eq-harbor);
  text-decoration-color: var(--eq-brass);
}

/* Visible keyboard focus for all links */
a:focus-visible {
  outline: 2px solid var(--eq-brass);
  outline-offset: 4px;
  border-radius: 2px;
}

.equorum-main
  :is(p, li, dd, td)
  a:not(.btn, .nav-link, .eqf-account, .eqh-card-link, .rules-card) {
  color: var(--eq-sea-glass-deep);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.equorum-main
  :is(p, li, dd, td)
  a:not(.btn, .nav-link, .eqf-account, .eqh-card-link, .rules-card):hover {
  color: var(--eq-harbor);
  background-color: #dce7de;
  text-decoration: none;
}

.equorum-main nav a:not(.nav-link):not(.btn) {
  display: inline-flex;
  align-items: center;
  color: var(--eq-sea-glass-deep);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.3rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.equorum-main nav a:not(.nav-link):not(.btn):hover {
  color: var(--eq-harbor);
  background: #dce7de;
  text-decoration: none;
}

.equorum-main nav a[aria-current="page"] {
  color: var(--eq-surface) !important;
  background: var(--eq-sea-glass);
  padding: 4px;
  border-radius: 0;
}

.nav-link,
.list-group-item {
  color: var(--eq-sea-glass);
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.list-group-item.active {
  background-color: var(--eq-sea-glass);
}

/* ==========================================================
   Economy account cards
   ========================================================== */

.eqf-account {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  color: inherit;
}

.eqf-account.is-selected {
  border-color: var(--eq-sea-glass) !important;
  box-shadow: inset 3px 0 var(--eq-sea-glass) !important;
}

.eqf-account__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.eqf-account__heading h2 {
  margin: 0.2rem 0 0;
}

.eqf-account__current {
  flex: 0 0 auto;
  padding: 0.25rem 0.55rem;
  color: var(--eq-harbor);
  background: var(--eq-seafoam);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eqf-account__balances {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem !important;
  margin: 0;
}

.eqf-account__balances > div {
  min-width: 0;
}

.eqf-account__balances dt {
  color: var(--eq-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eqf-account__balances dd {
  margin: 0.15rem 0 0;
  color: var(--eq-harbor);
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.eqf-account__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.eqf-account__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.eqf-account__actions .btn-outline-seaglass.active {
  color: #fff;
  background: var(--eq-sea-glass-deep);
  border-color: var(--eq-sea-glass-deep);
}

.eqf-ledger-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 520px) {
  .eqf-account__actions .btn {
    flex: 1 1 auto;
  }

  .eqf-account__actions .btn-primary {
    flex-basis: 100%;
  }
}

/* ---------------------------------
   Internal / secondary navigation
---------------------------------- */

.eq-subnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;

  margin-bottom: 1.5rem;
  padding: 0.45rem;

  background: var(--eq-surface);
  border: 1px solid var(--eq-border);
  border-radius: 0.75rem;
}

.eq-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;

  color: var(--eq-muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;

  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.eq-subnav-link i {
  color: var(--eq-sea-glass);
  font-size: 0.85rem;
}

.eq-subnav-link:hover {
  background: var(--eq-seafoam);
  color: var(--eq-harbor);
}

.eq-subnav-link:hover i {
  color: inherit;
}

.eq-subnav-link.active {
  background: var(--eq-harbor);
  color: #fff;
}

.eq-subnav-link.active i {
  color: var(--eq-seafoam);
}

.eq-subnav-divider {
  width: 1px;
  height: 1.5rem;
  margin: 0 0.25rem;
  background: var(--eq-border);
}

/* =========================================================
   AUTHENTICATION
   ========================================================= */

.eq-auth {
  display: flex;
  align-items: center;

  min-height: calc(100vh - 160px);
  padding: clamp(2rem, 5vw, 4rem) 0;

  background: radial-gradient(
      circle at 15% 20%,
      rgba(143, 188, 178, 0.16),
      transparent 35%
    ),
    var(--eq-sailcloth);
}

/* Card
   --------------------------------------------------------- */

.eq-auth-card {
  display: grid;
  grid-template-columns:
    minmax(380px, 1fr)
    minmax(400px, 0.9fr);

  max-width: 1100px;
  margin: 0 auto;

  overflow: hidden;

  background: var(--eq-surface);

  border: 1px solid var(--eq-border);
  border-radius: 18px;

  box-shadow: 0 24px 60px rgba(36, 59, 74, 0.12),
    0 4px 12px rgba(36, 59, 74, 0.06);
}

/* Form
   --------------------------------------------------------- */

.eq-auth-form {
  display: flex;
  align-items: center;

  padding: clamp(2.5rem, 5vw, 4.5rem);
}

.eq-auth-form-inner {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.eq-auth-eyebrow {
  margin-bottom: 0.5rem;

  color: var(--eq-sea-glass);

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eq-auth-form h1 {
  margin: 0 0 0.75rem;

  color: var(--eq-ink);

  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.eq-auth-intro {
  margin-bottom: 2rem;

  color: var(--eq-muted);

  font-size: 0.95rem;
  line-height: 1.6;
}

/* Fields
   --------------------------------------------------------- */

.eq-auth .form-label {
  margin-bottom: 0.45rem;

  color: var(--eq-ink);

  font-size: 0.85rem;
  font-weight: 600;
}

.eq-auth-input {
  position: relative;
}

.eq-auth-input > i {
  position: absolute;
  z-index: 2;

  top: 50%;
  left: 1rem;

  color: var(--eq-muted);

  transform: translateY(-50%);

  pointer-events: none;
}

.eq-auth-input .form-control {
  min-height: 52px;

  padding: 0.75rem 1rem 0.75rem 2.75rem;

  background: var(--eq-surface);

  border: 1px solid var(--eq-border);
  border-radius: 9px;

  color: var(--eq-ink);

  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eq-auth-input .form-control:focus {
  border-color: var(--eq-sea-glass);

  box-shadow: 0 0 0 0.2rem rgba(91, 143, 134, 0.12);
}

/* Submit
   --------------------------------------------------------- */

.eq-auth-submit {
  width: 100%;
  min-height: 52px;

  border-radius: 9px;

  font-weight: 600;
}

/* Register link
   --------------------------------------------------------- */

.eq-auth-switch {
  margin-top: 1.75rem;
  padding-top: 1.5rem;

  border-top: 1px solid var(--eq-border);

  color: var(--eq-muted);

  text-align: center;
  font-size: 0.9rem;
}

.eq-auth-switch a {
  margin-left: 0.25rem;

  color: var(--eq-sea-glass);

  font-weight: 600;
  text-decoration: none;
}

.eq-auth-switch a:hover {
  text-decoration: underline;
}

li::marker {
  color: var(--eq-seafoam);
}

/* Image panel
   --------------------------------------------------------- */

.eq-auth-visual {
  position: relative;

  display: flex;
  align-items: flex-end;

  min-height: 590px;
  padding: 3rem;

  background: linear-gradient(
      180deg,
      rgba(36, 59, 74, 0.02) 20%,
      rgba(36, 59, 74, 0.25) 55%,
      rgba(36, 59, 74, 0.92) 100%
    ),
    var(--eq-auth-image);

  background-size: cover;
  background-position: var(--eq-auth-position, center);
  background-repeat: no-repeat;
}

.eq-auth-visual-content {
  position: relative;
  z-index: 1;

  max-width: 390px;

  color: #fff;
}

.eq-auth-visual-mark {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;

  color: var(--eq-seafoam);

  font-size: 1.15rem;
}

.eq-auth-visual h2 {
  margin: 0 0 0.8rem;

  color: #fff;

  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
}

.eq-auth-visual p {
  margin: 0;

  color: rgba(255, 255, 255, 0.78);

  line-height: 1.7;
}

/* Mobile
   --------------------------------------------------------- */

@media (max-width: 767.98px) {
  .eq-auth {
    min-height: auto;
    padding: 1.5rem 0;
  }

  .eq-auth-card {
    grid-template-columns: 1fr;
  }

  .eq-auth-visual {
    grid-row: 1;

    min-height: 210px;
    padding: 1.5rem;

    background-position: center 40%;
  }

  .eq-auth-form {
    grid-row: 2;

    padding: 2rem 1.5rem;
  }

  .eq-auth-visual-mark {
    display: none;
  }

  .eq-auth-visual h2 {
    margin-bottom: 0;

    font-size: 1.6rem;
  }

  .eq-auth-visual p {
    display: none;
  }
}
.eq-auth-help {
  margin-top: 0.4rem;
  padding-left: 0.15rem;

  color: var(--eq-muted);

  font-size: 0.78rem;
  line-height: 1.4;
}

.eq-auth-note {
  font-size: 0.8rem;
  color: var(--eq-sea-glass-deep);
  background-color: var(--eq-sailcloth);
  border: 1px solid var(--eq-seafoam);
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
}
/* Remove the duplicate Bootstrap 5 caret arrow in Summernote */
.note-editor .dropdown-toggle::after {
  all: unset !important;
}

/* =========================================================
   PASSPORT STAMPS
   ========================================================= */

.passport-stamp-display {
  --passport-stamp-size: 5rem;

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
  vertical-align: top;
}

/* Sizes */

.passport-stamp-size-xs {
  --passport-stamp-size: 2rem;
}

.passport-stamp-size-sm {
  --passport-stamp-size: 3rem;
}

.passport-stamp-size-md {
  --passport-stamp-size: 5rem;
}

.passport-stamp-size-lg {
  --passport-stamp-size: 7rem;
}

.passport-stamp-size-xl {
  --passport-stamp-size: 9rem;
}

/* ---------------------------------------------------------
   Base stamp
   --------------------------------------------------------- */

.passport-stamp {
  --stamp-primary: var(--stamp-earned-primary, #355f63);
  --stamp-secondary: var(--stamp-earned-secondary, #a9d6c8);
  --stamp-accent: var(--stamp-earned-accent, #c5a45d);

  position: relative;
  width: var(--passport-stamp-size);
  height: var(--passport-stamp-size);
  flex: 0 0 var(--passport-stamp-size);

  color: var(--stamp-primary);

  transition: transform 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
}

.passport-stamp.is-earned:hover {
  transform: translateY(-2px) rotate(-1deg);
}

/* ---------------------------------------------------------
   Outer body
   --------------------------------------------------------- */

.passport-stamp-outer {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--stamp-primary);
  border: max(1px, calc(var(--passport-stamp-size) * 0.018)) solid
    color-mix(in srgb, var(--stamp-primary), #000 12%);

  box-shadow: 0 0.15rem 0.4rem rgb(0 0 0 / 0.1),
    inset 0 0 0 max(1px, calc(var(--passport-stamp-size) * 0.025))
      rgb(255 255 255 / 0.16);
}

/* ---------------------------------------------------------
   Inner ring
   --------------------------------------------------------- */

.passport-stamp-ring {
  position: absolute;
  inset: 10%;

  display: flex;
  align-items: center;
  justify-content: center;

  border: max(1px, calc(var(--passport-stamp-size) * 0.035)) solid
    var(--stamp-secondary);

  box-shadow: inset 0 0 0 max(1px, calc(var(--passport-stamp-size) * 0.018))
    rgb(255 255 255 / 0.18);
}

.passport-stamp-inner {
  position: absolute;
  inset: 11%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: radial-gradient(
    circle at 35% 30%,
    color-mix(in srgb, var(--stamp-secondary), #fff 18%),
    var(--stamp-secondary)
  );

  color: var(--stamp-accent);

  overflow: hidden;
}

.passport-stamp-inner i {
  position: relative;
  z-index: 2;

  /* Smaller icon with more negative space */
  font-size: calc(var(--passport-stamp-size) * 0.25);
  line-height: 1;

  filter: drop-shadow(
    0 calc(var(--passport-stamp-size) * 0.008)
      calc(var(--passport-stamp-size) * 0.012) rgb(0 0 0 / 0.12)
  );
}

/* ---------------------------------------------------------
   SEAL
   --------------------------------------------------------- */

.passport-stamp-seal .passport-stamp-outer,
.passport-stamp-seal .passport-stamp-ring,
.passport-stamp-seal .passport-stamp-inner {
  border-radius: 50%;
}

/* ---------------------------------------------------------
   MEDALLION
   --------------------------------------------------------- */

.passport-stamp-medallion .passport-stamp-outer,
.passport-stamp-medallion .passport-stamp-ring,
.passport-stamp-medallion .passport-stamp-inner {
  border-radius: 50%;
}

.passport-stamp-medallion .passport-stamp-outer {
  border-width: calc(var(--passport-stamp-size) * 0.055);

  box-shadow: 0 0.18rem 0.45rem rgb(0 0 0 / 0.13),
    inset 0 0 0 calc(var(--passport-stamp-size) * 0.025) var(--stamp-accent);
}

.passport-stamp-medallion .passport-stamp-ring {
  inset: 13%;
}

/* =========================================================
   BADGE
   ========================================================= */

.passport-stamp-badge .passport-stamp-outer {
  border-width: max(1px, calc(var(--passport-stamp-size) * 0.018));

  border-radius: 22%;

  box-shadow: 0 calc(var(--passport-stamp-size) * 0.018)
    calc(var(--passport-stamp-size) * 0.045) rgb(0 0 0 / 0.08);
}

.passport-stamp-badge .passport-stamp-ring {
  inset: 9%;

  border-width: max(1px, calc(var(--passport-stamp-size) * 0.018));

  border-radius: 18%;
}

.passport-stamp-badge .passport-stamp-inner {
  inset: 9%;
  border-radius: 14%;
}

.passport-stamp-badge .passport-stamp-ticks {
  display: none;
}

/* ---------------------------------------------------------
   POSTMARK
   --------------------------------------------------------- */

.passport-stamp-postmark {
  transform: rotate(-4deg);
}

.passport-stamp-postmark.is-earned:hover {
  transform: translateY(-2px) rotate(-6deg);
}

.passport-stamp-postmark .passport-stamp-outer {
  border-radius: 50%;
  background: transparent;

  border: calc(var(--passport-stamp-size) * 0.045) double var(--stamp-primary);

  box-shadow: none;
}

.passport-stamp-postmark .passport-stamp-ring {
  inset: 13%;
  border-radius: 50%;

  border: calc(var(--passport-stamp-size) * 0.022) dashed var(--stamp-primary);

  box-shadow: none;
}

.passport-stamp-postmark .passport-stamp-inner {
  border-radius: 50%;

  background: color-mix(in srgb, var(--stamp-secondary), transparent 75%);

  color: var(--stamp-accent);
}

/* ---------------------------------------------------------
   LOCKED / UNEARNED
   --------------------------------------------------------- */

.passport-stamp.is-locked {
  /*
     * Ignore the stamp's actual palette until it is earned.
     */
  --stamp-primary: color-mix(
    in srgb,
    var(--eq-muted, #87908e),
    var(--eq-surface, #fff) 35%
  );

  --stamp-secondary: color-mix(
    in srgb,
    var(--eq-border, #d9dfdc),
    var(--eq-surface, #fff) 35%
  );

  --stamp-accent: color-mix(
    in srgb,
    var(--eq-muted, #87908e),
    var(--eq-surface, #fff) 55%
  );

  opacity: 0.58;
  filter: grayscale(1) saturate(0.25);
}

.passport-stamp.is-locked:hover {
  opacity: 0.72;
}

/* ---------------------------------------------------------
   SECRET
   --------------------------------------------------------- */

.passport-stamp.is-secret {
  --stamp-primary: color-mix(
    in srgb,
    var(--eq-muted, #87908e),
    var(--eq-surface, #fff) 42%
  );

  --stamp-secondary: color-mix(
    in srgb,
    var(--eq-border, #d9dfdc),
    var(--eq-surface, #fff) 25%
  );

  --stamp-accent: color-mix(
    in srgb,
    var(--eq-muted, #87908e),
    var(--eq-ink, #263330) 20%
  );

  opacity: 0.72;
  filter: grayscale(1);
}

.passport-stamp.is-secret .passport-stamp-inner i {
  font-size: calc(var(--passport-stamp-size) * 0.23);
}

/* ---------------------------------------------------------
   Labels
   --------------------------------------------------------- */

.passport-stamp-label {
  max-width: calc(var(--passport-stamp-size) * 1.65);
}

.passport-stamp-name {
  color: var(--eq-ink);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
}

.passport-stamp-date,
.passport-stamp-status {
  margin-top: 0.2rem;

  color: var(--eq-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

/* =========================================================
   PASSPORT ADMIN
   ========================================================= */

.passport-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.passport-admin-stamp {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;

  padding: 1rem;

  border: 1px solid var(--eq-border);
  border-radius: 0.75rem;

  background: var(--eq-surface);
}

.passport-admin-stamp-preview {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.passport-admin-stamp-body {
  min-width: 0;
}

.passport-admin-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;

  margin: 0;
}

.passport-admin-meta div {
  min-width: 0;
}

.passport-admin-meta dt {
  margin-bottom: 0.1rem;

  color: var(--eq-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.passport-admin-meta dd {
  margin: 0;

  color: var(--eq-ink);
  font-size: 0.82rem;

  overflow-wrap: anywhere;
}

/* Editor */

.passport-color-control {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.5rem;
}

.passport-color-control .form-control-color {
  width: 3.25rem;
  height: 2.4rem;
  padding: 0.2rem;
}

.passport-preview-card {
  position: sticky;
  top: 1rem;
}

.passport-live-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;

  align-items: start;
  justify-items: center;

  padding: 1rem 0;
}

.passport-live-preview > div {
  min-width: 0;
  text-align: center;
}

.passport-preview-heading {
  margin-bottom: 1rem;

  color: var(--eq-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Smaller screens */

@media (max-width: 767.98px) {
  .passport-admin-stamp {
    grid-template-columns: 5.5rem 1fr;
  }

  .passport-live-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .passport-preview-card {
    position: static;
  }
}

@media (max-width: 480px) {
  .passport-live-preview {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Passport — Player Collection
   ========================================================= */

.passport-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.passport-page-header h1 {
  font-family: var(--eq-heading-font, serif);
}

.passport-summary {
  flex: 0 0 auto;
  text-align: right;
}

.passport-summary-number {
  color: var(--eq-harbor);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.passport-summary-number span {
  color: var(--eq-muted);
  font-size: 1rem;
  font-weight: 500;
}

.passport-summary-label {
  margin-top: 0.35rem;
  color: var(--eq-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Progress */

.passport-overall-progress .progress {
  height: 0.5rem;
  overflow: hidden;
  background: var(--eq-border);
  border-radius: 999px;
}

.passport-overall-progress .progress-bar {
  background: var(--eq-harbor);
}

/* Category */

.passport-category-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--eq-border);
}

.passport-category-title {
  margin: 0;
  color: var(--eq-ink);
  font-size: 1.5rem;
}

.passport-category-description {
  margin: 0.35rem 0 0;
  color: var(--eq-muted);
}

.passport-category-count {
  flex: 0 0 auto;
  color: var(--eq-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Stamp collection */

.passport-stamp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
}

.passport-collection-card {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  align-items: center;
  min-height: 10rem;
  padding: 1.25rem;
  overflow: hidden;

  background: var(--eq-surface);
  border: 1px solid var(--eq-border);
  border-radius: 1rem;
}

.passport-collection-card--earned {
  box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 0.035);
}

.passport-collection-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
}

.passport-collection-content {
  min-width: 0;
  margin-left: 1rem;
}

.passport-collection-name {
  margin: 0 0 0.35rem;
  color: var(--eq-ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.passport-collection-description {
  margin: 0 0 0.8rem;
  color: var(--eq-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.passport-earned-date,
.passport-locked-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;

  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.passport-earned-date {
  color: var(--eq-harbor);
}

.passport-locked-label {
  color: var(--eq-muted);
}

.passport-empty-category {
  padding: 1.5rem;
  color: var(--eq-muted);
  text-align: center;
  background: var(--eq-surface);
  border: 1px dashed var(--eq-border);
  border-radius: 0.75rem;
}

/* Mobile */

@media (max-width: 767.98px) {
  .passport-page-header {
    align-items: flex-start;
  }

  .passport-summary-number {
    font-size: 1.5rem;
  }

  .passport-category-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .passport-stamp-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .passport-page-header {
    flex-direction: column;
    gap: 1rem;
  }

  .passport-summary {
    text-align: left;
  }

  .passport-collection-card {
    grid-template-columns: 6rem minmax(0, 1fr);
    padding: 1rem;
  }

  .passport-collection-card .passport-stamp-display--lg {
    --passport-size: 5.5rem;
  }
}
:root {
  --eq-in-hand: #b88f8f;
}

.show-calendar {
  border: 1px solid var(--eq-border);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--eq-surface);
}

.show-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--eq-sailcloth);
  border-bottom: 1px solid var(--eq-border);
}

.show-calendar-weekday {
  padding: 0.7rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--eq-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.show-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.show-calendar-day {
  min-height: 125px;
  padding: 0.65rem;
  border-right: 1px solid var(--eq-border);
  border-bottom: 1px solid var(--eq-border);
  min-width: 0;
}

.show-calendar-day:nth-child(7n) {
  border-right: 0;
}

.show-calendar-day.empty {
  background: var(--eq-sailcloth);
  opacity: 0.55;
}

.show-calendar-day.today {
  box-shadow: inset 0 0 0 2px var(--eq-sea-glass);
}

.show-calendar-number {
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.show-calendar-event {
  display: block;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.4rem;
  border: 1px solid var(--eq-border);
  border-radius: 0.55rem;
  background: var(--eq-surface);
  color: var(--eq-ink);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.25;
}

.show-calendar-event:hover {
  border-color: var(--eq-sea-glass);
  color: var(--eq-ink);
}

.show-calendar-event-name {
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.show-color-strip {
  display: flex;
  gap: 3px;
  margin-top: 0.35rem;
  min-height: 4px;
}

.show-color-strip span {
  height: 4px;
  flex: 1;
  border-radius: 999px;
}

.show-discipline-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  flex: 0 0 auto;
}

.show-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
}

.show-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--eq-muted);
}

.show-calendar-mobile-date {
  display: none;
}

@media (max-width: 767.98px) {
  .show-calendar-weekdays {
    display: none;
  }

  .show-calendar-grid {
    display: block;
  }

  .show-calendar-day,
  .show-calendar-day:nth-child(7n) {
    min-height: 0;
    border-right: 0;
    padding: 0.85rem;
  }

  .show-calendar-day.empty,
  .show-calendar-day:not(:has(.show-calendar-event)) {
    display: none;
  }

  .show-calendar-number {
    display: none;
  }

  .show-calendar-mobile-date {
    display: block;
    font-weight: 700;
    margin-bottom: 0.6rem;
  }
}

.passport-stamp-postmark {
  transform: rotate(var(--stamp-tilt, -4deg));
  mix-blend-mode: multiply;
  filter: url(#passport-stamp-weathering);
}

.passport-stamp-postmark.is-earned:hover {
  transform: translateY(-2px) rotate(calc(var(--stamp-tilt, -4deg) - 2deg));
  filter: url(#passport-stamp-weathering) contrast(1.15);
}

.passport-stamp-postmark .passport-stamp-outer {
  border-radius: 50%;
  background: transparent;
  border: calc(var(--passport-stamp-size) * 0.045) double var(--stamp-primary);
  box-shadow: none;
  opacity: 0.88;
}

.passport-stamp-postmark .passport-stamp-ring {
  inset: 12%;
  border-radius: 50%;
  border: calc(var(--passport-stamp-size) * 0.022) dashed var(--stamp-primary);
  box-shadow: none;
  opacity: 0.82;
}

.passport-stamp-postmark .passport-stamp-inner {
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 35%,
    color-mix(in srgb, var(--stamp-primary), transparent 75%) 100%
  );
  color: var(--stamp-primary);
  box-shadow: none;
}

/* =========================================================
   SEAL (Pressed Wax)
   ========================================================= */

.passport-stamp-seal .passport-stamp-outer {
  border-radius: 50%;
  background: var(--stamp-primary);
  border: calc(var(--passport-stamp-size) * 0.025) solid
    color-mix(in srgb, var(--stamp-primary), #000 20%);

  /* Deep organic cast shadow + thick wax rim lighting */
  box-shadow: 0 calc(var(--passport-stamp-size) * 0.05)
      calc(var(--passport-stamp-size) * 0.1) rgb(0 0 0 / 0.28),
    inset 0 2px 4px rgb(255 255 255 / 0.35),
    inset 0 calc(var(--passport-stamp-size) * -0.04)
      calc(var(--passport-stamp-size) * 0.06) rgb(0 0 0 / 0.35);
}

.passport-stamp-seal .passport-stamp-ring {
  inset: 12%;
  border-radius: 50%;
  border: calc(var(--passport-stamp-size) * 0.02) solid
    color-mix(in srgb, var(--stamp-secondary), transparent 30%);
  box-shadow: none;
}

.passport-stamp-seal .passport-stamp-inner {
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    color-mix(in srgb, var(--stamp-primary), #fff 12%),
    color-mix(in srgb, var(--stamp-primary), #000 15%)
  );

  /* Pressed deboss effect: top shadow makes it sink into the wax */
  box-shadow: inset 0 calc(var(--passport-stamp-size) * 0.035)
      calc(var(--passport-stamp-size) * 0.05) rgb(0 0 0 / 0.45),
    inset 0 -1px 2px rgb(255 255 255 / 0.25);
}

/* Debossed icon */
.passport-stamp-seal .passport-stamp-inner i {
  color: color-mix(in srgb, var(--stamp-primary), #000 25%);
  filter: drop-shadow(0 1px 0 rgb(255 255 255 / 0.35))
    drop-shadow(0 -1px 1px rgb(0 0 0 / 0.6));
}

/* =========================================================
   MEDALLION (Minted Coin)
   ========================================================= */

.passport-stamp-medallion .passport-stamp-outer {
  border-radius: 50%;
  border-width: calc(var(--passport-stamp-size) * 0.045);
  border-style: solid;
  border-color: color-mix(in srgb, var(--stamp-accent), #fff 25%);

  /* Dynamic metallic luster rotation */
  background: conic-gradient(
    from 135deg,
    color-mix(in srgb, var(--stamp-primary), #fff 15%),
    color-mix(in srgb, var(--stamp-primary), #000 25%) 25%,
    color-mix(in srgb, var(--stamp-primary), #fff 20%) 50%,
    color-mix(in srgb, var(--stamp-primary), #000 30%) 75%,
    color-mix(in srgb, var(--stamp-primary), #fff 15%)
  );

  box-shadow: 0 calc(var(--passport-stamp-size) * 0.06)
      calc(var(--passport-stamp-size) * 0.12) rgb(0 0 0 / 0.3),
    inset 0 1px 2px rgb(255 255 255 / 0.8), inset 0 -2px 4px rgb(0 0 0 / 0.5);
}

/* Coin milling: dotted notched ring */
.passport-stamp-medallion .passport-stamp-ring {
  inset: 10%;
  border-radius: 50%;
  border: calc(var(--passport-stamp-size) * 0.018) dotted var(--stamp-accent);
  box-shadow: none;
  opacity: 0.85;
}

.passport-stamp-medallion .passport-stamp-inner {
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 35%,
    color-mix(in srgb, var(--stamp-secondary), #fff 20%),
    var(--stamp-secondary) 70%,
    color-mix(in srgb, var(--stamp-secondary), #000 20%)
  );

  box-shadow: inset 0 2px 4px rgb(0 0 0 / 0.35),
    inset 0 -1px 2px rgb(255 255 255 / 0.4);
}

/* Raised relief emblem */
.passport-stamp-medallion .passport-stamp-inner i {
  color: var(--stamp-accent);
  filter: drop-shadow(0 -1px 0 rgb(0 0 0 / 0.5))
    drop-shadow(0 1px 0 rgb(255 255 255 / 0.65));
}

/* =========================================================
   BADGE (Heraldic Shield)
   ========================================================= */

.passport-stamp-badge {
  /* Slightly taller proportion for shields */
  filter: drop-shadow(
    0 calc(var(--passport-stamp-size) * 0.04)
      calc(var(--passport-stamp-size) * 0.06) rgb(0 0 0 / 0.2)
  );
}

.passport-stamp-badge .passport-stamp-outer,
.passport-stamp-badge .passport-stamp-inner {
  /* Shield contour */
  clip-path: polygon(0% 0%, 100% 0%, 100% 68%, 50% 100%, 0% 68%);
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.passport-stamp-badge .passport-stamp-outer {
  background: linear-gradient(
    180deg,
    var(--stamp-primary) 0%,
    color-mix(in srgb, var(--stamp-primary), #000 20%) 100%
  );
}

/* Embroidered stitch border */
.passport-stamp-badge .passport-stamp-ring {
  inset: 6%;
  border-radius: 0;
  clip-path: polygon(0% 0%, 100% 0%, 100% 68%, 50% 100%, 0% 68%);
  border: max(1px, calc(var(--passport-stamp-size) * 0.018)) dashed
    color-mix(in srgb, var(--stamp-accent), #fff 25%);
  box-shadow: none;
}

.passport-stamp-badge .passport-stamp-inner {
  inset: 9%;
  background: linear-gradient(
    180deg,
    var(--stamp-secondary) 0%,
    color-mix(in srgb, var(--stamp-secondary), #000 12%) 100%
  );
}

.passport-stamp-badge .passport-stamp-inner i {
  color: var(--stamp-primary);
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.25));
}

/* ==========================================================
   TREKKING
   ========================================================== */

.trekking-page {
  max-width: 1240px;
}

.trekking-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.trekking-heading h1 {
  font-family: var(--eq-serif, inherit);
}

.trekking-season {
  flex: 0 0 auto;
  padding: 0.7rem 1rem;
  border: 1px solid var(--eq-border);
  border-radius: 6px;
  background: var(--eq-surface);
  text-align: right;
}

.trekking-season-label {
  display: block;
  color: var(--eq-muted);
  font-size: 0.7rem;
  line-height: 1;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Tabs */



.trekking-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  margin: 0;
  padding: 0.7rem 1.25rem;
  color: var(--eq-harbor);
background-color: rgb(from var(--eq-seafoam) r g b / 0.3);
  border: 1px solid var(--eq-seafoam);
  border-radius: 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  
}

.trekking-tabs a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  color: var(--eq-harbor) !important;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease;
}

.trekking-tabs a:hover {
  background: var(--eq-surface);
}

.trekking-tabs a.active {
  color: #fff !important;
  background: var(--eq-harbor);
  border-color: var(--eq-harbor);
  box-shadow: 0 0.2rem 0.5rem rgba(36, 59, 74, 0.16);
}


.trekking-tabs a:focus-visible {
  position: relative;
  outline: 3px solid var(--eq-brass);
  outline-offset: 2px;
}

/* Route cards */

.trekking-route {
  overflow: hidden;
  border: 1px solid var(--eq-border);
  border-radius: 1rem;
  background: var(--eq-surface);
  box-shadow: 0 8px 24px rgba(20, 45, 48, 0.05);
}

.trekking-route-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--eq-sailcloth);
}

.trekking-route-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trekking-difficulty {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #26383a;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trekking-route-body {
  padding: 1.25rem;
}

.trekking-flavor {
  color: var(--eq-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.trekking-closed {
  flex: 0 0 auto;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--eq-sailcloth);
  color: var(--eq-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.trekking-route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trekking-route-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--eq-border);
  border-radius: 999px;
  color: var(--eq-muted);
  font-size: 0.8rem;
}

.trekking-route-meta i {
  color: var(--eq-harbor);
}

.trekking-improves {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.trekking-improves span:not(.trekking-meta-label) {
  padding: 0.25rem 0.5rem;
  border-radius: 0.45rem;
  background: color-mix(in srgb, var(--eq-sea-glass) 12%, transparent);
  font-size: 0.78rem;
}

.trekking-meta-label {
  margin-right: 0.15rem;
  color: var(--eq-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trekking-route-form {
  padding-top: 1rem;
  border-top: 1px solid var(--eq-border);
}

.trekking-route-unavailable {
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  background: var(--eq-sailcloth);
  color: var(--eq-muted);
  font-size: 0.9rem;
}

/* Outcome */

.trekking-outcome {
  padding: 1.5rem;
  border: 1px solid var(--eq-border);
  border-radius: 1rem;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--eq-sea-glass) 13%, var(--eq-surface)),
    var(--eq-surface)
  );
}

.trekking-outcome-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.trekking-eyebrow,
.trekking-result-label {
  color: var(--eq-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trekking-outcome-season {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--eq-border);
  border-radius: 999px;
  background: var(--eq-surface);
  font-size: 0.8rem;
  font-weight: 700;
}

.trekking-story {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--eq-sea-glass);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 0 0.65rem 0.65rem 0;
}

.trekking-result-card {
  padding: 1rem;
  border: 1px solid var(--eq-border);
  border-radius: 0.8rem;
  background: var(--eq-surface);
}

.trekking-result-icon {
  margin-bottom: 0.55rem;
  color: var(--eq-harbor);
  font-size: 1.15rem;
}

.trekking-result-card strong {
  display: block;
}

.trekking-result-card small {
  display: block;
  margin-top: 0.2rem;
  color: var(--eq-muted);
}

.trekking-passport-earned {
  padding: 1rem;
  border: 1px solid var(--eq-border);
  border-radius: 0.8rem;
  background: var(--eq-surface);
}

.trekking-stamp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--eq-border);
  border-radius: 999px;
  font-size: 0.85rem;
}

/* Log */

.trekking-log {
  overflow: hidden;
  border: 1px solid var(--eq-border);
  border-radius: 0.9rem;
  background: var(--eq-surface);
}

.trekking-log-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--eq-border);
  color: var(--eq-ink);
  text-decoration: none;
}

.trekking-log-row:last-child {
  border-bottom: 0;
}

.trekking-log-row:hover {
  background: color-mix(in srgb, var(--eq-sea-glass) 8%, transparent);
}

.trekking-log-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--eq-sea-glass) 18%, var(--eq-surface));
  color: var(--eq-harbor);
}

.trekking-log-main {
  min-width: 0;
}

.trekking-log-main strong,
.trekking-log-main span {
  display: block;
}

.trekking-log-main span {
  margin-top: 0.1rem;
  color: var(--eq-muted);
  font-size: 0.82rem;
}

.trekking-log-reward {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--eq-muted);
}

/* Mobile */

@media (max-width: 767.98px) {
  .trekking-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .trekking-season {
    text-align: left;
  }

  .trekking-tabs {
    width: 100%;
  }

  .trekking-tabs a {
    flex: 1;
    justify-content: center;
  }

  .trekking-route-image {
    height: 185px;
  }

  .trekking-outcome-top {
    flex-direction: column;
  }

  .trekking-log-row {
    grid-template-columns: auto 1fr;
  }

  .trekking-log-reward {
    display: none;
  }
}

/* Trekking encounters admin */

.trekking-encounter-preview {
  overflow: hidden;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--eq-border);
  border-radius: 0.75rem;
  background: var(--eq-sailcloth);
}

.trekking-encounter-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trekking-encounter-library {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 65rem;
}

.trekking-encounter-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem;
  border: 1px solid var(--eq-border);
  border-radius: 0.75rem;
}

.trekking-encounter-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--eq-sea-glass) 18%, var(--eq-surface));
  color: var(--eq-harbor);
}

.trekking-encounter-row-main {
  min-width: 0;
}

.trekking-assignment-form {
  padding: 1rem;
  border: 1px solid var(--eq-border);
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--eq-sea-glass) 5%, var(--eq-surface));
}

/* ==========================================================
   TREKKING REWARDS ADMIN
   ========================================================== */

.trekking-reward-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.trekking-reward-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--eq-border);
  border-radius: 0.75rem;
}

.trekking-reward-icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--eq-sea-glass) 18%, var(--eq-surface));
  color: var(--eq-harbor);
}

.trekking-reward-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 575.98px) {
  .trekking-reward-row {
    grid-template-columns: auto 1fr;
  }

  .trekking-reward-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

.trekking-admin-image-preview {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 180px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.75rem;
  border: 1px solid var(--eq-border);
}

.trekking-admin-destination-thumb {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: center;
  border-radius: 0.6rem;
}
.trekking-encounter-hero {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--eq-border);
    background: var(--eq-surface);
}

.trekking-encounter-hero img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    object-position: center;
}

.trekking-log-encounter-image {
    flex: 0 0 120px;
    width: 120px;
    overflow: hidden;
    border-radius: .65rem;
    border: 1px solid var(--eq-border);
}

.trekking-log-encounter-image img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    object-position: center;
}
@media (max-width: 575.98px) {
    .trekking-log-encounter-image {
        width: 100%;
    }
}

.trekking-result-container {
  display: flex;
  align-items: center;    /* aligns icon and text vertically */
  justify-content: center; /* centers them horizontally */
  gap: 10px;              /* space between icon and text */
}
/* Admin-only subnavigation */
.eq-admin-subnav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
}
.eq-admin-subnav > a,
.eq-admin-subnav .eq-subnav-dropdown {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: none;
    padding: .4rem .55rem;
}
.eq-admin-subnav > a:hover,
.eq-admin-subnav > a:focus,
.eq-admin-subnav > a.active,
.eq-admin-subnav .eq-subnav-dropdown:hover,
.eq-admin-subnav .eq-subnav-dropdown:focus {
    color: var(--eq-harbor);
}
.eq-admin-subnav .dropdown-menu {
    border-color: var(--eq-border);
}

.alert-seafoam {
  background-color: rgb(from var(--eq-seafoam) r g b / 0.6);
  border: 1px solid var(--eq-seafoam);
}

.alert-seafoam .alert-link {
  color: var(--eq-harbor) !important;
  text-decoration: none;
}

.alert-seafoam .alert-link:hover {
  color: var(--eq-sea-glass) !important;
}