:root { --rail-width: 112px; }

.side-nav {
  position: fixed;
  z-index: 6;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--rail-width);
  flex-direction: column;
  align-items: center;
  padding: 24px 12px 20px;
  background: #1a1a1a;
}
.brand { display: grid; width: 76px; height: 64px; place-items: center; margin-bottom: 34px; }
.brand img { display: block; width: 72px; max-height: 58px; object-fit: contain; }
.nav-links { display: flex; width: 100%; flex: 1; flex-direction: column; align-items: center; gap: 9px; }
.nav-link {
  display: flex;
  width: 84px;
  min-height: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #bdbdbd;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .045em;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.nav-link img { width: 25px; height: 25px; object-fit: contain; opacity: .82; }
.nav-link:hover, .nav-link[aria-current="page"] { background: #292929; color: #fff; }
.nav-link:hover img, .nav-link[aria-current="page"] img { opacity: 1; }
.nav-link.register { min-height: 72px; margin-top: auto; background: #d52b2b; color: #fff; }
.nav-link.register:hover { background: #f03a3a; }
.nav-link.register img { width: 21px; height: 25px; }
.more-menu { position: relative; width: 100%; }
.more-menu > summary { list-style: none; cursor: pointer; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-card {
  position: absolute;
  z-index: 10;
  bottom: 0;
  left: calc(100% + 12px);
  display: none;
  width: 270px;
  gap: 6px;
  padding: 10px;
  border: 1px solid #343434;
  border-radius: 10px;
  background: #181818;
  box-shadow: 0 14px 36px #0009;
}
.more-menu:hover .more-card, .more-menu:focus-within .more-card, .more-menu[open] .more-card { display: grid; }
.more-option {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 7px;
  color: #eee;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}
.more-option:hover, .more-option:focus-visible { background: #292929; color: #fff; }
.more-option img { flex: 0 0 auto; width: 25px; height: 25px; object-fit: contain; }
.more-option .icn-logo { width: 72px; height: 30px; filter: brightness(0) invert(1); }
.more-option.mobile-register { background: #d52b2b; }
.more-option.mobile-register:hover, .more-option.mobile-register:focus-visible { background: #f03a3a; }
.site-footer { display: block; width: 100%; margin-top: 48px; border-top: 3px solid #c6a160; background: #181818; color: #fff; }
.site-footer-inner { display: grid; grid-template-columns: 1.15fr 1.5fr 1fr .8fr; gap: 36px; width: min(1200px, 100%); margin: 0 auto; padding: 44px 32px; }
.site-footer-logo img { display: block; width: 300px; max-width: 100%; max-height: 180px; margin-bottom: 16px; object-fit: contain; }
.site-footer h2 { margin: 0 0 15px; font-size: 15px; }
.site-footer p, .site-footer a { color: #c0c0c0; font-size: 13px; line-height: 1.7; }
.site-footer p { margin: 0 0 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.site-footer-social { display: flex; align-items: center; gap: 24px; }
.site-footer-social a { display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.site-footer-social img { display: block; width: auto; height: 24px; object-fit: contain; filter: invert(1); }
.site-footer-copy { padding: 16px 24px; border-top: 1px solid #383838; color: #aaa; font-size: 12px; text-align: center; }

@media (max-width: 900px) {
  :root { --rail-width: 0px; }
  .side-nav {
    inset: auto 0 0;
    width: 100%;
    height: calc(68px + env(safe-area-inset-bottom));
    flex-direction: row;
    justify-content: center;
    padding: 5px 7px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid #303030;
  }
  .brand, .side-nav > .nav-link.register { display: none; }
  .nav-links { flex: initial; width: min(100%, 520px); height: 100%; flex-direction: row; align-items: center; justify-content: space-around; gap: 0; }
  .nav-links > a.nav-link { flex: 1; width: auto; }
  .nav-link { width: 25%; min-height: 54px; gap: 5px; border-radius: 6px; font-size: 9px; letter-spacing: 0; }
  .nav-link img { width: 20px; height: 20px; }
  .more-menu { position: static; flex: 1; min-width: 0; width: auto; }
  .more-menu > summary { width: 100%; min-height: 54px; gap: 5px; font-size: 9px; letter-spacing: 0; }
  .more-card { position: fixed; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); left: 12px; width: auto; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px 18px; padding: 34px 20px; }
  .site-footer-copy { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (min-width: 901px) and (max-height: 650px) {
  .side-nav { padding-top: 12px; padding-bottom: 12px; }
  .brand { margin-bottom: 10px; }
  .nav-links { gap: 0; }
  .nav-link { min-height: 62px; }
}
@media (prefers-reduced-motion: reduce) { .side-nav *, .side-nav *::before, .side-nav *::after { scroll-behavior: auto !important; transition: none !important; } }
