/* Persistent recommendations and compact page navigation. */
.reading-rail {
  width: min(1180px, calc(100% - 64px));
  margin: 32px auto 0;
  min-width: 0;
}
.floating-airports {
  position: static;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dde5f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(30 48 80 / 8%);
}
.floating-airports-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 10px;
}
.floating-airports-head > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #263a63;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.floating-airports-head > a > .icon { width: 15px; height: 15px; color: var(--blue); }
.airport-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 34px;
  min-height: 28px;
  padding: 2px 3px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #606d84;
  font-size: 10px;
}
.airport-toggle small { font: inherit; }
.airport-toggle:hover { background: #eef2ff; color: #294dc6; }
.floating-airport-list { display: grid; gap: 9px; }
.floating-provider {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid #e6eaf1;
  border-radius: 10px;
  background: #fbfcff;
}
.floating-provider-heading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.floating-provider-heading > div { min-width: 0; }
.floating-provider .provider-mark {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  font-size: 16px;
}
.floating-provider-name {
  display: block;
  color: #24324a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.floating-provider-name:hover, .floating-provider-detail:hover { color: var(--blue); }
.floating-provider-note { margin: 2px 0 0; color: #606d84; font-size: 10px; line-height: 1.6; }
.floating-provider-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 10px;
}
.floating-provider-detail { color: #526b98; font-size: 10px; white-space: nowrap; }
.floating-provider-actions .button {
  flex-shrink: 0;
  gap: 3px;
  min-height: 32px;
  padding: 7px 7px;
  border-radius: 7px;
  font-size: 10px;
  white-space: nowrap;
  box-shadow: none;
}
.floating-provider-actions .button .icon { width: 12px; height: 12px; }
.floating-airports:has(.floating-airport-list[hidden]) .floating-airports-head { margin-bottom: 0; }
.floating-tools {
  position: fixed;
  z-index: 25;
  right: max(32px, calc((100vw - 1384px) / 2));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  width: 180px;
  padding: 5px;
  border: 1px solid #dde5f2;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 6px 24px rgb(30 48 80 / 10%);
}
.floating-tools .floating-tool,
.floating-tools .back-top {
  position: static;
  inset: auto;
  z-index: auto;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: auto;
  min-width: 44px;
  height: 50px;
  min-height: 50px;
  padding: 5px 2px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #405679;
  background: #fff;
  box-shadow: none;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.floating-tool > .icon { width: 18px; height: 18px; }
.floating-tool > small { display: block; font-size: 10px; line-height: 1.3; white-space: nowrap; }
.floating-tools .floating-tool:hover:not(:disabled):not([aria-disabled="true"]) {
  color: #244bc8;
  border-color: #e0e7ff;
  background: #eef2ff;
}
.floating-tools .back-top { color: #315bea; background: #f2f5ff; }
.floating-tools .floating-tool:disabled,
.floating-tools .floating-tool[aria-disabled="true"] {
  color: #8b94a4;
  background: #f7f8fa;
  cursor: not-allowed;
}
.floating-tool:focus-visible, .floating-provider-name:focus-visible,
.floating-provider-detail:focus-visible, .airport-toggle:focus-visible {
  outline: 3px solid #315bea;
  outline-offset: 3px;
}
@media (min-width: 1280px) {
  .reading-rail {
    position: fixed;
    z-index: 24;
    top: 112px;
    right: max(32px, calc((100vw - 1384px) / 2));
    width: 180px;
    max-height: calc(100dvh - 210px);
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .container {
    width: min(1180px, calc(100% - 272px));
    margin-left: max(32px, calc((100% - 1384px) / 2));
    margin-right: auto;
  }
  body { padding-bottom: 90px; }
}
@media (max-width: 1279px) {
  body { padding-bottom: 90px; }
  .floating-airports {
    padding: 9px 10px 10px;
  }
  .floating-airports-head { margin-bottom: 6px; }
  .floating-airport-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .floating-provider { padding: 8px; }
  .floating-provider-heading { gap: 6px; }
  .floating-provider .provider-mark { width: 26px; height: 26px; border-radius: 7px; font-size: 15px; }
  .floating-provider-note { font-size: 9px; line-height: 1.4; }
  .floating-provider-actions { margin-top: 7px; }
  .floating-tools { right: 20px; bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (max-width: 1100px) {
  .reading-rail { width: min(1180px, calc(100% - 48px)); }
}
@media (max-width: 760px) {
  .reading-rail { width: calc(100% - 36px); }
}
@media (max-width: 560px) {
  .floating-tools { right: 12px; }
}
@media (max-width: 400px) {
  .floating-provider-actions .button { padding-inline: 6px; }
  .floating-provider-actions .button .icon { display: none; }
  .floating-provider-detail { font-size: 9px; }
  .floating-provider-name { font-size: 11px; }
}
@media (max-width: 359px) {
  .reading-rail { width: calc(100% - 28px); }
}
@media (prefers-reduced-motion: reduce) {
  .floating-tools .floating-tool { transition: none; }
}
@media print {
  body { padding-bottom: 0; }
  .reading-rail, .floating-airports, .floating-tools { display: none !important; }
  .container { width: 100%; margin-inline: 0; }
}

/* Risk pages contain reading and navigation without airport promotions. */
.risk-page { padding-bottom: 90px; }
