/* Home page header/footer styling, scoped so page content keeps its own design.
   Keep these component rules aligned with static/style.css and static/home.css. */
.site-header,
.site-footer {
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: normal;
  letter-spacing: normal;
  text-align: start;
  text-wrap: wrap;
  color-scheme: dark;
}
.site-header *,
.site-footer * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.site-header { background: #09121f; }
.site-header .mf-head-content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
  border-bottom: 1px solid #263448;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: small;
}
.site-header .mf-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0;
}
.site-header .mf-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.site-header .mf-logo,
.site-footer .mf-logo {
  display: block;
  max-width: 100%;
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  flex-shrink: 0;
}
.site-header .mf-brand h2 {
  font-family: inherit;
  font-size: clamp(20px, 2.3vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
  text-wrap: wrap;
  color: #fff;
}
.site-header .mf-brand p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #cfd8e3;
  line-height: 1.5;
}
.site-header .home-link,
.site-footer .home-link { color: inherit; text-decoration: none; }
.site-footer .home-link { color: #fff; }
.site-header .color-skyblue,
.site-footer .color-skyblue { color: rgb(76, 202, 252); }
.site-header .mf-nav { display: flex; gap: 28px; align-items: center; }
.site-header .mf-nav > a {
  color: #e7edf4;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}
.site-header .mf-nav .mf-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  font-weight: bold;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.site-header .mf-btn-dark:hover { transform: translateY(-2px); opacity: .98; }
.site-header a:focus-visible,
.site-footer a:focus-visible { outline: 3px solid #8ed4ff; outline-offset: 5px; }
.site-footer {
  background: #07101b;
  border-top: 1px solid #263448;
  color: #f8f5f5;
  font-size: .9rem;
  padding: 32px 0;
}
.site-footer .footer-container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 22px;
  padding: 10px 24px;
  align-items: start;
}
.site-footer .footer-section { flex: 1 1 200px; min-width: 0; margin: 0; }
.site-footer h3 {
  font-family: inherit;
  font-size: 1.17em;
  font-weight: bold;
  line-height: normal;
  letter-spacing: normal;
  text-wrap: wrap;
  margin-bottom: .5em;
}
.site-footer .footer-brand { display: flex; align-items: center; gap: 12px; }
.site-footer .footer-brand h3 { font-size: 16px; margin-bottom: 0; }
.site-footer .footer-brand p { font-size: 11px; }
.site-footer p { max-width: none; }
.site-footer ul { list-style: none; }
.site-footer a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .social-icons-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
}
.site-footer .social-icons-links a { display: flex; align-items: center; justify-content: center; }
.site-footer .svg-icon { display: block; max-width: 100%; width: 40px; height: 40px; cursor: pointer; }
.site-footer .footer-bottom { text-align: center; margin-top: 28px; color: #b1bfd0; }
@media (max-width: 980px) {
  .site-header .mf-header { align-items: flex-start; }
}
@media (max-width: 900px) {
  .site-header .mf-nav { gap: 16px; }
  .site-header .mf-brand p { display: none; }
  .site-footer .footer-container { grid-template-columns: 2fr 1fr 1fr; }
}
@media (max-width: 700px) {
  .site-header .mf-nav { gap: 12px; flex-wrap: wrap; }
  .site-header .mf-nav > a { font-size: 12px; }
}
@media (max-width: 640px) {
  .site-header .mf-brand { align-items: flex-start; }
}
@media (max-width: 600px) {
  .site-header .mf-head-content { width: calc(100% - 32px); padding: 16px 0; }
  .site-header .mf-header { gap: 16px; }
  .site-header .mf-brand h2 { font-size: 18px; }
  .site-header .mf-nav { width: 100%; justify-content: space-between; }
  .site-footer .footer-container { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .site-footer .footer-logo { grid-column: 1 / -1; }
  .site-footer .footer-brand { flex-direction: row; justify-content: center; }
  .site-footer .footer-section { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .mf-btn-dark { transition: none; }
}
