/* Shared shell for every page: brand tokens, top bar and site footer.
   Scoped to .topbar / .foot so it cannot collide with the Bootstrap pages. */

:root {
  --bg: #F1F4F0;
  --card: #FFFFFF;
  --ink: #0D1B16;
  --muted: #5F7168;
  --faint: #93A49B;

  --line: #E3E9E4;
  --line-2: #EEF2EE;

  --green-900: #06301F;
  --green-800: #0A4029;
  --green-700: #0C5C3C;
  --green-600: #10875A;
  --green-100: #E2F3E9;
  --green-50: #F1F9F4;

  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --text: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --max: 1180px;
}

body { background-color: #F1F4F0; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #06301F;
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar .brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
}

.topbar .nav-links {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.topbar .nav-links a,
.topbar .nav-trigger {
  font-family: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease;
}

.topbar .nav-trigger {
  border: 0;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.topbar .nav-links a:hover,
.topbar .nav-trigger:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.topbar .nav-links a.is-active {
  color: #06301F;
  background: #D8F0E2;
}

.topbar .nav-item { position: relative; display: flex; }

.topbar .nav-item.is-open .nav-trigger {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.topbar .caret { font-size: 9px; line-height: 1; opacity: 0.75; }

.topbar .nav-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  min-width: 214px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(13, 27, 22, 0.04), 0 10px 28px rgba(13, 27, 22, 0.05);
  display: none;
  flex-direction: column;
  gap: 2px;
}

.topbar .nav-item:hover .nav-drop,
.topbar .nav-item:focus-within .nav-drop,
.topbar .nav-item.is-open .nav-drop { display: flex; }

.topbar .nav-drop a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #0D1B16;
  background: none;
  white-space: nowrap;
  text-decoration: none;
}

.topbar .nav-drop a:hover { color: #0A4029; background: #F1F9F4; }

/* ---------- footer ---------- */

.foot {
  margin-top: 44px;
  background: #06301F;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--text);
}

.foot-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 26px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px 30px;
  align-items: start;
}

.foot-about { grid-column: 1; grid-row: 1 / span 2; }
.foot-matches { grid-column: 2 / span 2; grid-row: 1; }
.foot-articles { grid-column: 4; grid-row: 1; }
.foot-competitions { grid-column: 2; grid-row: 2; }
.foot-navigation { grid-column: 3; grid-row: 2; }
.foot-categories { grid-column: 4; grid-row: 2; }

.foot h4 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #fff;
}

.foot-about h4:not(:first-child) { margin-top: 26px; }

.foot-about p {
  margin: 0;
  max-width: 46ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.foot-inline { display: flex; flex-wrap: wrap; align-items: center; }

.foot-inline a,
.foot-mail {
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
}

.foot-inline a:hover,
.foot-mail:hover { color: #fff; }

.foot-dot { color: rgba(255, 255, 255, 0.28); margin: 0 8px; }

.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.foot-col a {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.64);
  text-decoration: none;
}

.foot-col a:hover { color: #fff; }

.foot-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }

.foot-middle {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.foot-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }

.foot-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 2px solid #7FE3B0;
}

.foot-logo-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: #fff;
}

.foot-social {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.foot-social:hover { background: rgba(255, 255, 255, 0.18); }
.foot-social svg { width: 18px; height: 18px; }

.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }

.foot-bottom-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-copy {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.foot-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-legal a { font-size: 11.5px; color: rgba(255, 255, 255, 0.66); text-decoration: none; }
.foot-legal a:hover { color: #fff; }

@media (max-width: 1060px) {
  .foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .foot-about { grid-column: 1 / -1; grid-row: auto; }
  .foot-matches { grid-column: 1 / -1; grid-row: auto; }
  .foot-articles,
  .foot-competitions,
  .foot-navigation,
  .foot-categories { grid-column: auto; grid-row: auto; }
}

@media (max-width: 860px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 10px; }

  .topbar .nav-links {
    order: 3;
    width: 100%;
    margin-right: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .topbar .nav-links::-webkit-scrollbar { display: none; }

  .topbar .nav-item { flex-direction: column; }

  .topbar .nav-drop {
    position: static;
    display: none;
    min-width: 0;
    width: max-content;
    margin: 4px 0 4px 4px;
    border-radius: 12px;
  }

  .topbar .nav-item:hover .nav-drop,
  .topbar .nav-item:focus-within .nav-drop { display: none; }

  .topbar .nav-item.is-open .nav-drop { display: flex; }
}

@media (max-width: 560px) {
  .foot-main { grid-template-columns: minmax(0, 1fr); padding: 28px 14px 20px; }
  .foot-two { grid-template-columns: minmax(0, 1fr); }
  .foot-middle { padding: 20px 14px; }
  .foot-bottom-inner { padding: 14px 14px 20px; }
}

/* the site now runs on the homepage's light surface by default */
body.modricpredict-theme.light-theme {
  --lt-bg: #F1F4F0;
  background-color: #F1F4F0 !important;
}

/* admin-uploaded logo */
.topbar .brand-img { height: 34px; width: auto; display: block; }
.foot-logo-img { height: 36px; width: auto; display: block; }
