/* =========================
   RESET (breadcrumb only)
   ========================= */
.breadcrumb,
.breadcrumb * {
  all: unset;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;

  font-size: 0.9rem;
  line-height: 1;
}

.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex: 0 0 auto;
}

.breadcrumb a {
  color: #034ad8;
  cursor: pointer;
}

.breadcrumb .crumb-disabled {
  color: #777;
}

.breadcrumb .crumb-sep {
  color: #999;
  user-select: none;
}

/* =========================
   SHARED PAGE CONTAINER
   🔑 THIS FIXES ALIGNMENT
   ========================= */

.page-container {
  max-width: 80ch;
  margin-inline: auto;
  padding-inline: 4vw;
}

/* =========================
   HEADER
   ========================= */

.elv-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  z-index: 100;
}

/* header content is constrained */
.elv-header-inner {
  display: grid;
  grid-template-rows: auto auto auto;
  row-gap: 0.75rem;
  padding-block: 1rem 0.75rem;
}

/* ROW 1: brand */
.header-brand {
  display: flex;
  justify-content: center;
  text-align: center;
}

.brand-link {
  text-decoration: none;
  font-size: clamp(28px, 11vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  color: #000;
  letter-spacing: -0.02em;
}

/* ROW 2: navigation */
.header-sections {
  width: 100%;
}

.elv-nav-menu {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-start;
}

.elv-nav-menu a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  color: #111;
  font-weight: 500;
}

.elv-nav-menu a:hover,
.elv-nav-menu a:focus-visible {
  background: rgba(0, 0, 0, 0.06);
}

/* ROW 3: search / lang switch */
.header-search {
  display: flex;
  justify-content: center;
}

/* =========================
   BASE LAYOUT
   ========================= */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #d3d1d41e;
  color: #333;
  line-height: 1.5;
}

/* =========================
   MAIN CONTENT
   ========================= */

main {
  flex: 1;
  margin-block: 5vw;
}

.content {
  max-width: 93vw;
}

/* Safe <br> */
br {
  line-height: 1.5;
}

/* =========================
   TABLES
   ========================= */

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
  width: max-content;
  border-collapse: collapse;
}

.table-wrapper th,
.table-wrapper td {
  white-space: nowrap;
  text-align: left;
}

table th,
table td {
  padding: 0.5rem 0.75rem;
}

/* =========================
   LINKS
   ========================= */

a {
  color: #6200ea;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

main a {
  font-weight: 100;
  color: hsla(249, 62%, 29%, 0.993);
  display: block;
  margin-bottom: 2vh;
}

/* =========================
   FOOTER
   ========================= */

footer {
  display: grid;
  grid-template-areas:
    "contact about"
    "social join"
    "disclaimer disclaimer";
  justify-items: center;
  background-color: #666464;
  text-align: center;
  margin-top: 100px;
  padding: 10px;
}

footer p a {
  color: #fcf4f4;
  font-size: 17px;
  font-weight: bolder;
}

.disclaimer {
  grid-area: disclaimer;
  font-size: 12.5px;
  line-height: 1.45;
  background: #f6f6f6;
  border-top: 1px solid #ddd;
  padding: 12px 16px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  .elv-nav-menu {
    flex-wrap: wrap;
  }

  .elv-header-inner {
    row-gap: 0.5rem;
  }
}
