/* Canonical FieldReady site shell. Page-specific styles should not target fr-* classes. */
/* Shared loading primitives use the page's existing neutral surfaces and borders. */
.fr-skeleton {
  display: block;
  max-width: 100%;
  border-radius: 3px;
  background: var(--fr-skeleton-color, color-mix(in srgb, currentColor 11%, transparent));
  animation: fr-skeleton-pulse 2.4s ease-in-out infinite;
}
.fr-skeleton-text { width: 90%; height: .8em; min-height: 9px; }
.fr-skeleton-text--short { width: 28%; }
.fr-skeleton-text--medium { width: 62%; }
.fr-skeleton-text--long { width: 90%; }
.fr-skeleton-text--status { width: 10em; }
.fr-skeleton-text--heading { width: 68%; height: 1.7em; min-height: 24px; }
.fr-skeleton-chip { width: 90px; height: 23px; border-radius: var(--radius, 3px); }
.fr-skeleton-card, .fr-skeleton-row, .fr-skeleton-stack {
  display: grid; align-content: center; gap: 10px; min-width: 0; box-sizing: border-box;
}
.fr-skeleton-card { min-height: 100px; padding: 16px; border: 1px solid var(--line, var(--border, #c9c9be)); border-radius: var(--radius, 0); background: var(--paper, var(--surface, transparent)); }
.fr-skeleton-row { min-height: 52px; padding: 12px 0; border-bottom: 1px solid var(--line, var(--border, #c9c9be)); }
.fr-skeleton-section { display: grid; gap: 24px; min-width: 0; }
.fr-skeleton-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.fr-skeleton-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.fr-skeleton-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fr-skeleton-metrics > div { padding: 12px; border: 1px solid var(--line, #c9c9be); }
.fr-skeleton-map { position: absolute; inset: 0; z-index: 700; overflow: hidden; pointer-events: none; background: var(--paper-deep, var(--surface, #e7e9df)); }
.fr-skeleton-map-host { position: relative; }
.fr-skeleton-map-host[aria-busy="true"] > .leaflet-control-container { visibility: hidden; }
.fr-skeleton-map-controls { position: absolute; top: 64px; left: 12px; display: grid; gap: 2px; padding: 4px; border: 1px solid var(--line, #c9c9be); background: var(--paper, #f3f1e9); }
.fr-skeleton-map-controls > span { width: 26px; height: 26px; }
.fr-skeleton-map-caption { position: absolute; top: 50%; left: 30%; width: 40%; }
@keyframes fr-skeleton-pulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fr-skeleton { animation: none; } }

.fr-site-header,
.fr-site-header *,
.fr-site-footer,
.fr-site-footer * {
  box-sizing: border-box;
}

.fr-site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  min-height: 88px;
  margin: 0;
  padding: 18px clamp(18px, 4vw, 64px);
  color: #f3f1e9;
  background-color: #17231e;
  background-image:
    linear-gradient(rgba(243, 241, 233, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 241, 233, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  border-bottom: 1px solid rgba(243, 241, 233, 0.14);
}

.fr-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1440px);
  min-width: 0;
  margin: 0 auto;
  gap: clamp(24px, 4vw, 72px);
}

.fr-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: #f3f1e9;
  text-decoration: none;
}

.fr-brand__mark {
  display: block;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: #b8c98a;
}

.fr-brand__mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.fr-brand__mark .outer-edge,
.fr-brand__mark .inner-edge,
.fr-brand__mark .rear-edge {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fr-brand__mark .outer-edge { stroke-width: 1.8; }
.fr-brand__mark .inner-edge { stroke-width: 1.35; }
.fr-brand__mark .rear-edge { opacity: 0.42; stroke-width: 1; }
.fr-brand__mark .dodecahedron-face { fill: currentColor; fill-opacity: 0.07; stroke: none; }

.fr-brand__text {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.fr-brand__text strong {
  color: #f3f1e9;
  font: 700 18px/1.1 Arial, Helvetica, sans-serif;
  letter-spacing: -0.02em;
}

.fr-brand__text small {
  color: #aeb9b1;
  font: 400 10px/1.3 "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fr-site-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  flex: 1 1 680px;
  width: min(100%, 760px);
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 0;
  font: 500 10px/1.25 "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fr-site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 6px 4px;
  color: #d5dbd7;
  text-align: center;
  text-decoration: none;
  overflow-wrap: normal;
}

.fr-site-nav a:hover,
.fr-site-nav a:focus-visible,
.fr-site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(243, 241, 233, 0.055);
}

.fr-site-nav a:focus-visible,
.fr-brand:focus-visible {
  outline: 2px solid #d49a45;
  outline-offset: 3px;
}

.fr-site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 12%;
  bottom: 3px;
  left: 12%;
  height: 2px;
  background: #b8c98a;
  content: "";
}

.fr-site-footer {
  position: relative;
  z-index: 10;
  display: block;
  width: 100%;
  margin: 0;
  padding: 22px clamp(18px, 4vw, 64px) 26px;
  color: #aeb9b1;
  background: #101a16;
  border: 0;
  border-top: 1px solid rgba(243, 241, 233, 0.14);
  font: 400 11px/1.5 "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.fr-site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1440px);
  margin: 0 auto;
  gap: 12px 32px;
}

.fr-site-footer p {
  max-width: none;
  margin: 0;
  color: inherit;
  font: inherit;
}

.fr-site-footer p:first-child { color: #f3f1e9; }

@media (max-width: 800px) {
  .fr-site-header {
    min-height: 132px;
    padding: 14px clamp(12px, 4vw, 20px) 16px;
  }

  .fr-site-header__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .fr-brand { align-self: flex-start; }

  .fr-site-nav {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .fr-site-nav a {
    min-height: 44px;
    font-size: 9px;
    letter-spacing: 0.035em;
  }
}

@media (max-width: 430px) {
  .fr-site-header { padding-inline: 10px; }

  .fr-brand__mark {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .fr-site-nav a {
    padding-inline: 2px;
    font-size: 8.5px;
    letter-spacing: 0.015em;
  }

  .fr-site-nav a[aria-current="page"]::after {
    right: 8%;
    left: 8%;
  }

  .fr-site-footer { padding-block: 20px 22px; }

  .fr-site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
