:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7f6;
  color: #18232b;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 8% -14%, rgba(37, 117, 216, 0.14), transparent 32rem),
    linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
  margin: 0;
  min-height: 100vh;
}

.standalone-topbar {
  background: #081d3d;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding: 7px 0;
}

.standalone-shell {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 24px;
}

.standalone-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #dce4e8;
  box-shadow: 0 5px 20px rgba(15, 41, 77, 0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}

.standalone-header .standalone-shell {
  min-height: 72px;
}

.standalone-brand {
  align-items: center;
  color: #18232b;
  display: inline-flex;
  gap: 11px;
  text-decoration: none;
}

.standalone-brand__mark {
  align-items: center;
  background: linear-gradient(145deg, #287bdc, #1559b7);
  border-radius: 50% 50% 50% 12px;
  color: #fff;
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  letter-spacing: 0.05em;
  width: 42px;
}

.standalone-nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

.standalone-nav > a {
  color: #344b68;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.standalone-nav > a:hover {
  color: #1559b7;
}

.standalone-brand strong,
.standalone-brand small {
  display: block;
}

.standalone-brand strong {
  font-size: 17px;
  line-height: 1.15;
}

.standalone-brand small {
  color: #61717c;
  font-size: 11px;
  margin-top: 2px;
}

.standalone-status {
  align-items: center;
  background: #e8f1ff;
  border-radius: 999px;
  color: #0b2f6b;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  gap: 7px;
  padding: 7px 11px;
}

.standalone-status span {
  background: #2f80ed;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.standalone-main {
  padding: 10px 24px 38px;
}

.standalone-skip {
  background: #fff;
  color: #0b2f6b;
  left: 12px;
  padding: 8px 12px;
  position: fixed;
  top: -60px;
  z-index: 100000;
}

.standalone-skip:focus {
  top: 12px;
}

.standalone-footer {
  background: #081d3d;
  border-top: 5px solid #f2b646;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  padding: 34px 0 38px;
}

.standalone-footer .standalone-shell {
  align-items: flex-start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
}

.standalone-footer p {
  margin: 0 0 7px;
}

.standalone-footer strong {
  color: #fff;
}

.standalone-footer__intro > strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  margin-bottom: 12px;
}

.standalone-footer a {
  color: #ffd77d;
  font-weight: 750;
}

html.is-embedded .standalone-topbar,
html.is-embedded .standalone-header,
html.is-embedded .standalone-footer,
html.is-embedded .standalone-skip {
  display: none;
}

html.is-embedded .standalone-main {
  padding: 0;
}

html.is-embedded .gps-calculator {
  margin: 0 auto;
}

@media (max-width: 680px) {
  .standalone-shell {
    padding: 0 16px;
  }

  .standalone-main {
    padding: 4px 10px 24px;
  }

  .standalone-topbar .standalone-shell span:first-child,
  .standalone-nav > a {
    display: none;
  }

  .standalone-status {
    font-size: 0;
    padding: 8px;
  }

  .standalone-footer .standalone-shell {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media print {
  .standalone-header,
  .standalone-footer,
  .standalone-skip {
    display: none !important;
  }

  .standalone-main {
    padding: 0;
  }
}
