@font-face {
  font-family: "Acumin Pro Condensed";
  src: url("../fonts/acumin-pro-condensed-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --es-blue: #0A7DFA;
  --es-navy: #033162;
  --es-soft: #E6F2FF;
  --es-soft-2: #F5FAFF;
  --es-text-muted: #7997B8;
  --es-black: #141414;
  --line: #B5D8FD;
  --white: #FFFFFF;
  --accent-light: #E8F2FF;
  --tag-cream: #FFF6E6;
  --font-ui: "Roboto Condensed", "Roboto", Arial, sans-serif;
  --font-heading: "Roboto Condensed", "Roboto", Arial, sans-serif;
  --font-display: "Acumin Pro Condensed", "Acumin Post", "Arial Narrow", sans-serif;
  --radius-sm: 6px;
  --button-radius: 8px;
  --shadow-md: 0 15px 27px rgba(0,0,0,.1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--es-navy);
  font-family: var(--font-ui);
  font-size: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .28s cubic-bezier(.16,1,.3,1), transform .28s cubic-bezier(.16,1,.3,1);
}

body.is-page-ready {
  opacity: 1;
  transform: translateY(0);
}

body.is-page-leaving {
  opacity: 0;
  transform: translateY(8px);
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
    transform: none;
  }

  body,
  body.is-page-ready,
  body.is-page-leaving {
    opacity: 1;
    transform: none;
  }
}

a { color: inherit; }

button,
input,
select,
textarea {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 69px 1fr;
}

.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--es-blue);
  height: 69px;
  display: flex;
  align-items: center;
  padding: 18px 22px;
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-logo {
  display: flex;
  align-items: center;
  margin-right: 52px;
  flex-shrink: 0;
}

.navbar-logo img {
  height: 31px;
  width: auto;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #111;
}

.navbar-menu a,
.nav-trigger {
  color: inherit;
  text-decoration: none;
}

.nav-separator {
  width: 1px;
  height: 24px;
  background: var(--line);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.has-chevron::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 10px;
  margin-left: 8px;
  transform: translateY(1px);
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxNiAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0Ljk3NjYgMS4xNDA2Mkw3Ljk3NjU2IDcuMTQwNjNMMC45NzY1NjMgMS4xNDA2MiIgc3Ryb2tlPSIjMEE3REZBIiBzdHJva2Utd2lkdGg9IjMiLz4KPC9zdmc+Cg==") center / contain no-repeat;
}

.nav-dropdown-menu,
.profile-dropdown {
  position: absolute;
  min-width: 176px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  box-shadow: var(--shadow-md);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 120;
}

.nav-dropdown-menu {
  top: calc(100% + 12px);
  left: 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu,
.profile-menu.is-open .profile-dropdown {
  display: flex;
}

.nav-dropdown-menu a,
.profile-option {
  position: relative;
  color: var(--es-navy);
  font-size: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.profile-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-dropdown-menu a::before,
.profile-option::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 999px;
  background: var(--es-blue);
  transform: translateY(-50%);
  transition: height .18s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: var(--accent-light);
  color: var(--es-blue);
  outline: none;
  transform: translateX(4px);
}

.nav-dropdown-menu a:hover::before,
.nav-dropdown-menu a:focus-visible::before {
  height: 18px;
}

.navbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-icon-btn {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  display: flex;
}

.navbar-icon-btn img {
  display: block;
  width: 28px;
  height: 28px;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 22px;
  z-index: 110;
  width: 236px;
  height: 58px;
  overflow: hidden;
  border: 1px solid #FFFFFF;
  border-radius: 20px;
  background: #FAFAFC;
  box-shadow: 0 0 21px rgba(0, 0, 0, .04);
  transition: height .24s cubic-bezier(.16,1,.3,1);
}

.profile-menu.is-open {
  height: 236px;
}

.profile-trigger {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 18px 0 14px;
  font-family: "Roboto Condensed", "Roboto", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: none;
}

.profile-trigger:hover,
.profile-menu.is-open .profile-trigger {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.profile-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  background: #BEBEBE url("assets/profile-avatar-default.webp") center / cover no-repeat;
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 0;
  font-weight: 900;
  background-size: cover;
  background-position: center;
}

.profile-avatar.has-image {
  color: transparent;
}

.profile-chevron {
  width: 14px;
  height: 6px;
  margin-left: auto;
  color: var(--es-blue);
  transition: transform .24s cubic-bezier(.16,1,.3,1);
}

.profile-menu.is-open .profile-chevron {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: static;
  width: 206px;
  min-width: 206px;
  margin: 0 auto;
  padding: 13px 0 0;
  border: 0;
  border-top: 1px solid #EBEBEB;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 9px;
}

.profile-name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  color: #000000;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-align: left;
}

.profile-name::after {
  content: "Design Engineer";
  display: block;
  margin-top: 2px;
  color: #979797;
  font-family: "Roboto Condensed", "Roboto", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-align: left;
}

.profile-option {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  color: #000000;
  justify-content: flex-start;
  gap: 15px;
  padding: 0 18px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  background: transparent;
  transform: none;
  text-align: left;
}

.profile-option::before {
  position: static;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 0;
  background: center / contain no-repeat;
  transform: none;
  transition: none;
}

.profile-option[href*="profile"]::before { background-image: url("assets/profile-icon-edit.svg"); width: 18px; height: 20px; flex-basis: 18px; }
.profile-option[href*="settings"]::before { background-image: url("assets/profile-icon-settings.svg"); }
.profile-option[href*="logout"]::before { background-image: url("assets/profile-icon-logout.svg"); width: 15px; height: 18px; flex-basis: 15px; }

.profile-option[href*="logout"] {
  margin-top: 8px;
  background: #FFF1F2;
}

.profile-option[href*="logout"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -9px;
  height: 1px;
  background: #EBEBEB;
}

.profile-option:hover,
.profile-option:focus-visible,
.profile-option[aria-current="page"],
.profile-option[href*="logout"]:hover,
.profile-option[href*="logout"]:focus-visible {
  background: #FFFFFF;
  color: #000000;
  outline: none;
  transform: none;
  box-shadow: 0 0 21px rgba(0, 0, 0, .04);
}

.profile-option[href*="logout"]:hover,
.profile-option[href*="logout"]:focus-visible {
  background: #FFF1F2;
}

.profile-option svg {
  display: none;
}

.account-main {
  background:
    radial-gradient(circle at 78% 7%, rgba(10,125,250,.16), transparent 19%),
    linear-gradient(90deg, rgba(230,242,255,.74), rgba(255,255,255,0) 33%),
    var(--white);
  padding: 64px clamp(20px, 5vw, 88px) 70px;
}

.account-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.account-kicker {
  color: var(--es-text-muted);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.account-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--es-navy);
}

.account-subtitle {
  max-width: 650px;
  margin: 0 0 30px;
  color: var(--es-text-muted);
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.55;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(260px, 330px) 1fr;
  gap: 22px;
  align-items: start;
}

.account-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  box-shadow: 0 20px 45px rgba(3,49,98,.08);
  padding: 22px;
}

.profile-summary {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
}

.large-avatar {
  width: 94px;
  height: 94px;
  border-radius: var(--button-radius);
  background: var(--es-blue);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 900;
  background-size: cover;
  background-position: center;
}

.large-avatar.has-image {
  color: transparent;
}

.summary-name {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 900;
}

.summary-meta {
  margin: 0;
  color: var(--es-text-muted);
  font-family: "Roboto", Arial, sans-serif;
}

.avatar-upload {
  width: 100%;
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.avatar-upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-upload-label {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: var(--white);
  color: var(--es-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(14px, .78vw, 16px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.avatar-upload-label:hover {
  border-color: var(--es-blue);
  background: var(--accent-light);
  color: var(--es-blue);
}

.avatar-help {
  margin: 0;
  color: var(--es-text-muted);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.settings-label {
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: var(--white);
  color: var(--es-navy);
  padding: 0 14px;
  outline: none;
}

.field textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--es-blue);
  box-shadow: 0 0 0 3px rgba(10,125,250,.12);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.primary-btn,
.secondary-btn {
  min-height: 44px;
  border-radius: var(--button-radius);
  padding: 0 18px;
  font-family: var(--font-heading);
  font-size: clamp(14px, .78vw, 16px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform .24s cubic-bezier(.16,1,.3,1), box-shadow .24s cubic-bezier(.16,1,.3,1), background-color .24s cubic-bezier(.16,1,.3,1), border-color .24s cubic-bezier(.16,1,.3,1), color .24s cubic-bezier(.16,1,.3,1);
}

.primary-btn {
  border: 1px solid var(--es-blue);
  background: var(--es-blue);
  color: var(--white);
}

.secondary-btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--es-navy);
}

.primary-btn:hover,
.primary-btn:focus-visible,
.secondary-btn:hover,
.secondary-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(10,125,250,.18);
  outline: none;
}

.primary-btn:hover,
.primary-btn:focus-visible {
  background: #0A6FDE;
  border-color: #0A6FDE;
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
  background: var(--accent-light);
  border-color: var(--es-blue);
  color: var(--es-blue);
}

.status-note {
  min-height: 20px;
  margin-top: 12px;
  color: #2E7D32;
  font-family: "Roboto", Arial, sans-serif;
}

.settings-list {
  display: grid;
  gap: 14px;
}

.setting-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.setting-copy p {
  margin: 5px 0 0;
  color: var(--es-text-muted);
  font-family: "Roboto", Arial, sans-serif;
}

.toggle {
  position: relative;
  width: 50px;
  height: 28px;
}

.toggle input {
  position: absolute;
  opacity: 0;
}

.toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #D7E7F8;
  cursor: pointer;
  transition: background .18s ease;
}

.toggle span::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 8px rgba(3,49,98,.16);
  transition: transform .18s ease;
}

.toggle input:checked + span {
  background: var(--es-blue);
}

.toggle input:checked + span::after {
  transform: translateX(22px);
}

.logout-card {
  max-width: 620px;
}

.logout-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--accent-light);
  color: var(--es-blue);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.logout-icon svg {
  width: 34px;
  height: 34px;
}

.site-footer {
  background: var(--white);
  color: #111;
  font-weight: 700;
}

.footer-hero {
  background: var(--es-blue);
  color: var(--white);
  text-align: center;
  padding: 74px 24px 28px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

.footer-logo-img {
  display: block;
  width: auto;
  max-width: min(100%, 820px);
  height: clamp(30px, 6vw, 48px);
  margin: 0 auto;
}

.footer-blurb {
  max-width: 930px;
  margin: 24px auto 20px;
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 500;
  line-height: 1.55;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.footer-socials img {
  display: block;
  width: 24px;
  height: 24px;
}

.footer-copy {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
}

.footer-links {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 44px;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.1fr 1.4fr;
  gap: 44px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 17px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
}

.footer-col span {
  font-size: 16px;
  font-weight: 800;
}

.footer-col a,
.footer-bottom a,
.footer-socials a {
  color: inherit;
  text-decoration: none;
}

.footer-col.sports {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  row-gap: 17px;
}

.footer-bottom {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 20px 0 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--es-text-muted);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 980px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
  }

  .navbar-menu {
    order: 3;
    width: min(100%, calc(100vw - 28px));
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .navbar-right .navbar-icon-btn {
    display: none;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .account-main {
    padding-top: 74px;
  }
}

/* Responsive compatibility pass for account pages. */
@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }
  body {
    font-size: 16px;
    line-height: 1.45;
  }
  .navbar {
    min-height: 43px;
    padding: 8px 14px;
    gap: 0;
    width: 100%;
    max-width: 100%;
  }
  .navbar-logo {
    max-width: min(58vw, 260px);
    margin-right: auto;
  }
  .navbar-logo img,
  .navbar-logo svg {
    height: clamp(22px, 6vw, 31px);
    max-width: 100%;
  }
  .navbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
  .navbar-right .navbar-icon-btn {
    display: none;
  }
  .profile-menu {
    top: calc(100% + 8px);
    right: 12px;
    width: min(222px, calc(100vw - 24px));
    height: 54px;
    border-radius: 18px;
  }
  .profile-menu.is-open {
    height: 226px;
  }
  .profile-trigger {
    height: 54px;
    padding: 0 14px 0 12px;
  }
  .profile-name,
  .profile-option {
    font-size: clamp(16px, 4.8vw, 18px);
  }
  .profile-name::after {
    font-size: 14px;
  }
  .navbar-menu {
    order: 3;
    width: min(100%, calc(100vw - 28px));
    margin: 8px 0 0;
    gap: 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    min-width: 0;
    max-width: calc(100vw - 28px);
    padding-bottom: 2px;
    font-size: clamp(15px, 4.2vw, 18px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .navbar-menu::-webkit-scrollbar {
    display: none;
  }
  .navbar-menu > * {
    flex: 0 0 auto;
  }
  .navbar-menu a,
  .nav-trigger {
    white-space: nowrap;
  }
  .account-title {
    font-size: clamp(30px, 8.5vw, 44px);
    line-height: 1;
  }
  .account-grid {
    gap: 18px;
    width: min(100%, calc(100vw - 28px));
    min-width: 0;
    max-width: calc(100vw - 28px);
  }
}

@media (max-width: 640px) {
  .account-main {
    padding: 44px 14px 52px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .account-card,
  .avatar-card {
    padding: 16px;
    min-width: 0;
    max-width: 100%;
  }
  .profile-photo {
    width: 128px;
    height: 128px;
    font-size: 34px;
  }
  .field-input,
  .field-select,
  .field-textarea {
    font-size: 16px;
  }
  .form-actions {
    gap: 10px;
  }
  .primary-btn,
  .secondary-btn,
  .avatar-upload-label {
    width: 100%;
    min-height: 42px;
    font-size: 14px;
  }
  .setting-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .site-footer {
    padding: 0;
  }

  .footer-hero {
    padding: 50px 18px 24px;
  }

  .footer-links {
    width: calc(100% - 36px);
    padding: 28px 0 34px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    width: calc(100% - 36px);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
