/* Shared Repitro site header, primary navigation, and footer.
   Used by both /index.html and /manual/index.html.
   Page-specific layouts remain in the respective HTML documents. */

/* Exact visual tokens and layout from the Repitro home header/footer. */
.top {
  height: 66px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: rgba(13, 14, 16, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid #303136;
  color: #f2f0eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.header-identity,
.header-identity:hover,
.header-identity:focus,
.header-identity:active,
.header-identity:visited {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.header-identity * {
  text-decoration: none;
}
.header-app-icon {
  display: block;
  width: 43px;
  height: 43px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.brand {
  font-weight: 780;
  font-size: 18px;
  letter-spacing: -0.6px;
  line-height: 1.35;
}
.brand small {
  display: block;
  color: #a5a5a8;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.site-footer {
  padding: 40px clamp(26px, 6%, 82px) 24px !important;
  background: #111215;
  color: #a7a8ab;
  border-top: 1px solid #292b2e;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  flex-wrap: wrap;
  padding-bottom: 33px;
}
.site-footer .footer-identity {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer .footer-identity strong {
  font-size: 22px;
  letter-spacing: -0.7px;
  color: #f6f3ed;
}
.site-footer .footer-identity span {
  font-size: 13px;
  color: #9b9da1;
}
.site-footer .footer-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.site-footer .footer-app-store {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px 9px 13px;
  background: #f3f3f3;
  color: #101113 !important;
  border-radius: 10px;
  text-decoration: none !important;
  min-width: 169px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.site-footer .footer-app-store:hover {
  background: #fff;
  transform: translateY(-2px);
}
.site-footer .apple-mark {
  font-size: 31px;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.site-footer .footer-app-store > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.05;
}
.site-footer .footer-app-store small {
  font-size: 10px;
  font-weight: 500;
}
.site-footer .footer-app-store strong {
  font-size: 19px;
  letter-spacing: -0.5px;
}
.site-footer .footer-arrow {
  margin-left: auto;
  font-size: 13px;
  align-self: flex-start;
}
.site-footer .footer-bottom {
  border-top: 1px solid #2a2c30;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #878a8f;
  font-size: 12px;
}
@media (max-width: 620px) {
  .site-footer {
    padding: 34px 25px 22px !important;
  }
  .site-footer .footer-links {
    gap: 20px;
  }
  .site-footer .footer-top {
    gap: 26px;
  }
}
@media (max-width: 480px) {
  .header-app-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .header-identity {
    gap: 9px;
  }
  .brand {
    font-size: 15px;
  }
}

/* Shared Repitro navigation on the home page and user manual. */
.global-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.global-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 6px 15px;
  border: 1px solid #383a3f;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #d5d4d2 !important;
  background: transparent;
  text-decoration: none !important;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.global-nav-link:hover {
  background: #282a2f;
  border-color: #747474;
  color: white !important;
}
.global-nav-link[aria-current="page"] {
  color: #ffbd65 !important;
  border-color: #98682c;
  background: #292117;
}
@media (max-width: 480px) {
  .global-nav {
    gap: 5px;
  }
  .global-nav-link {
    padding: 5px 10px;
    min-height: 32px;
    font-size: 12px;
  }
  .top {
    padding-left: 15px;
    padding-right: 15px;
  }
  .brand small {
    font-size: 9px;
  }
}

/* Identical header and footer presentation on Home and Manual. */
header.top {
  height: 66px;
  padding: 0 30px;
  background: #0d0e10;
  border-bottom: 1px solid #303136;
  color: #f2f0eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
header.top .header-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #f2f0eb;
  text-decoration: none;
}
header.top .header-app-icon {
  display: block;
  width: 43px;
  height: 43px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
header.top .brand {
  color: #f2f0eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 780;
  line-height: 1.65;
  letter-spacing: -0.6px;
}
header.top .brand small {
  display: block;
  color: #a5a5a8;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
header.top .global-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
header.top .global-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 6px 15px;
  border: 1px solid #383a3f;
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: #d5d4d2 !important;
  background: transparent;
  text-decoration: none !important;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
header.top .global-nav-link:hover {
  background: #282a2f;
  border-color: #747474;
  color: #fff !important;
}
header.top .global-nav-link[aria-current="page"] {
  color: #ffbd65 !important;
  border-color: #98682c;
  background: #292117;
}
footer.site-footer {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  background: #111215;
  color: #a7a8ab;
}
@media (max-width: 480px) {
  header.top {
    padding-left: 15px;
    padding-right: 15px;
  }
  header.top .header-app-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  header.top .header-identity {
    gap: 9px;
  }
  header.top .brand {
    font-size: 15px;
  }
  header.top .brand small {
    font-size: 9px;
  }
  header.top .global-nav {
    gap: 5px;
  }
  header.top .global-nav-link {
    padding: 5px 10px;
    min-height: 32px;
    font-size: 12px;
  }
}
