:root {
  --ar-flight-ink: #17314d;
  --ar-flight-muted: #557086;
  --ar-flight-line: #c7d8ea;
  --ar-flight-panel: #ffffff;
  --ar-flight-soft: #f4f8fc;
  --ar-flight-blue: #1f5fae;
  --ar-flight-blue-deep: #123a69;
  --ar-flight-gold: #d8aa45;
  --ar-flight-shadow: 0 18px 48px rgba(18, 58, 105, 0.12);
  --ar-flight-ok: #1f8f61;
  --ar-flight-warn: #b06a13;
  --ar-flight-danger: #a12c2c;
}

body.wp-theme-kadence .entry-hero,
body.wp-theme-kadence .entry-hero .entry-header.page-title,
body.wp-theme-kadence .entry-hero .entry-title,
body.wp-theme-kadence .hero-section-overlay {
  display: none !important;
}

body .site-branding .brand.has-logo-image .site-title-wrap,
body .mobile-site-branding .brand.has-logo-image .site-title-wrap {
  display: none !important;
}

body .content-container.site-container {
  width: min(1320px, calc(100vw - 32px)) !important;
  max-width: min(1320px, calc(100vw - 32px)) !important;
}

body .content-wrap,
body .entry-content.single-content,
body #arimota-flight-data-analyzer-root {
  width: 100%;
}

#arimota-flight-data-analyzer-root,
.ar-flight-message {
  width: 100%;
  margin: 0 auto 64px;
  color: var(--ar-flight-ink);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

.ar-flight-shell {
  display: grid;
  gap: 24px;
  width: 100%;
  color: var(--ar-flight-ink);
}

.ar-flight-shell *,
.ar-flight-shell *::before,
.ar-flight-shell *::after {
  box-sizing: border-box;
}

.ar-flight-hero,
.ar-flight-card {
  background: var(--ar-flight-panel);
  border: 1px solid var(--ar-flight-line);
  border-radius: 26px;
  box-shadow: var(--ar-flight-shadow);
}

.ar-flight-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 4vw, 44px);
  background:
    linear-gradient(
      90deg,
      rgba(7, 21, 39, 0.8) 0%,
      rgba(7, 21, 39, 0.72) 24%,
      rgba(10, 29, 52, 0.54) 44%,
      rgba(14, 43, 77, 0.26) 66%,
      rgba(18, 58, 105, 0.08) 100%
    ),
    linear-gradient(135deg, rgba(10, 29, 52, 0.99), rgba(18, 58, 105, 0.96) 52%, rgba(31, 95, 174, 0.92)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%);
  color: #ffffff;
}

.ar-flight-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.025), transparent 30%),
    repeating-linear-gradient(
      90deg,
      rgba(166, 210, 255, 0.045) 0,
      rgba(166, 210, 255, 0.045) 1px,
      transparent 1px,
      transparent 92px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(166, 210, 255, 0.035) 0,
      rgba(166, 210, 255, 0.035) 1px,
      transparent 1px,
      transparent 92px
    );
  mix-blend-mode: screen;
  pointer-events: none;
}

.ar-flight-hero > * {
  position: relative;
  z-index: 1;
}

.ar-flight-hero-grid,
.ar-flight-upload-grid,
.ar-flight-analysis-grid,
.ar-flight-bottom-grid,
.ar-flight-summary-grid,
.ar-flight-form-grid,
.ar-flight-findings,
.ar-flight-follow-up-log,
.ar-flight-phase-grid,
.ar-flight-charts,
.ar-flight-sources,
.ar-flight-event-list {
  display: grid;
  gap: 18px;
}

.ar-flight-hero-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.82fr);
  align-items: stretch;
}

.ar-flight-upload-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.68fr);
}

.ar-flight-analysis-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.ar-flight-bottom-grid {
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.74fr);
}

.ar-flight-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ar-flight-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ar-flight-form-grid .wide {
  grid-column: 1 / -1;
}

.ar-flight-eyebrow,
.ar-flight-pill,
.ar-flight-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  width: fit-content;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ar-flight-eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.ar-flight-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 3.3vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 11ch;
  color: #ffffff;
}

.ar-flight-hero p,
.ar-flight-card p,
.ar-flight-card li {
  line-height: 1.68;
}

.ar-flight-hero p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.92);
}

.ar-flight-hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ar-flight-side-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.ar-flight-side-card h2 {
  margin: 0 0 12px;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 251, 255, 0.76);
}

.ar-flight-side-card p,
.ar-flight-side-card li,
.ar-flight-side-card strong,
.ar-flight-side-card br + * {
  color: rgba(248, 251, 255, 0.9);
}

.ar-flight-card {
  padding: 24px;
}

.ar-flight-card h2,
.ar-flight-card h3 {
  margin: 0;
  color: inherit;
}

.ar-flight-card h2 {
  margin-bottom: 10px;
  font-size: 1.36rem;
  letter-spacing: -0.03em;
}

.ar-flight-card h3 {
  font-size: 1rem;
}

.ar-flight-dropzone {
  display: grid;
  gap: 14px;
  min-height: 210px;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 30px 24px;
  border: 2px dashed rgba(31, 95, 174, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(244, 248, 252, 0.94), rgba(255, 255, 255, 0.99)),
    radial-gradient(circle at top right, rgba(216, 170, 69, 0.12), transparent 12rem);
}

.ar-flight-dropzone.dragover {
  border-color: rgba(31, 95, 174, 0.7);
  box-shadow: 0 0 0 4px rgba(31, 95, 174, 0.08);
  transform: translateY(-1px);
}

.ar-flight-dropzone strong {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.ar-flight-muted {
  color: var(--ar-flight-muted);
}

.ar-flight-field {
  display: grid;
  gap: 8px;
}

.ar-flight-field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ar-flight-muted);
}

.ar-flight-field input,
.ar-flight-field textarea,
.ar-flight-field select,
.ar-flight-button,
.ar-flight-scrubber {
  font: inherit;
}

.ar-flight-field input,
.ar-flight-field textarea,
.ar-flight-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--ar-flight-line);
  background: #fff;
  color: var(--ar-flight-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.ar-flight-field input:focus,
.ar-flight-field textarea:focus,
.ar-flight-field select:focus,
.ar-flight-scrubber:focus {
  outline: 2px solid rgba(31, 95, 174, 0.22);
  outline-offset: 2px;
  border-color: rgba(31, 95, 174, 0.55);
}

.ar-flight-field textarea {
  min-height: 110px;
  resize: vertical;
}

.ar-flight-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ar-flight-button {
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ar-flight-gold), #ffd98f);
  box-shadow: 0 12px 28px rgba(216, 170, 69, 0.24);
  color: #102b49;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ar-flight-button:hover,
.ar-flight-button:focus-visible {
  background: linear-gradient(135deg, #f8d48b, #ffe6b3);
  box-shadow: 0 16px 30px rgba(216, 170, 69, 0.26);
  transform: translateY(-1px);
}

.ar-flight-button.secondary {
  background: #eaf3ff;
  color: var(--ar-flight-blue-deep);
  border: 1px solid rgba(199, 216, 234, 0.95);
  box-shadow: none;
}

.ar-flight-button.secondary:hover,
.ar-flight-button.secondary:focus-visible {
  background: #f4f8fc;
  box-shadow: none;
}

.ar-flight-button[disabled] {
  opacity: 0.68;
  cursor: not-allowed;
  transform: none;
}

.ar-flight-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  color: var(--ar-flight-muted);
}

.ar-flight-metric {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--ar-flight-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(234, 243, 255, 0.92));
}

.ar-flight-metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.36rem;
  line-height: 1;
  color: var(--ar-flight-blue-deep);
}

.ar-flight-chart {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--ar-flight-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 252, 0.95));
}

.ar-flight-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.ar-flight-chart svg {
  display: block;
  width: 100%;
  height: 190px;
  overflow: visible;
}

.ar-flight-chart .axis {
  stroke: rgba(85, 112, 134, 0.28);
  stroke-width: 1;
}

.ar-flight-chart .line {
  fill: none;
  stroke: var(--ar-flight-blue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ar-flight-chart .marker {
  fill: var(--ar-flight-gold);
  stroke: #ffffff;
  stroke-width: 2;
}

.ar-flight-chart .cursor {
  stroke: rgba(31, 95, 174, 0.42);
  stroke-dasharray: 4 4;
}

.ar-flight-scrubber-row {
  display: grid;
  gap: 8px;
}

.ar-flight-scrubber {
  width: 100%;
}

.ar-flight-event,
.ar-flight-phase,
.ar-flight-finding,
.ar-flight-follow-up-item,
.ar-flight-source,
.ar-flight-suggestion {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--ar-flight-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 252, 0.95));
}

.ar-flight-event button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.ar-flight-pill {
  background: rgba(31, 95, 174, 0.1);
  color: var(--ar-flight-blue);
  font-size: 0.7rem;
}

.ar-flight-pill.info {
  background: rgba(31, 95, 174, 0.1);
  color: var(--ar-flight-blue);
}

.ar-flight-pill.monitor {
  background: rgba(216, 170, 69, 0.18);
  color: #7a4f00;
}

.ar-flight-pill.caution {
  background: rgba(176, 106, 19, 0.15);
  color: var(--ar-flight-warn);
}

.ar-flight-pill.critical {
  background: rgba(161, 44, 44, 0.12);
  color: var(--ar-flight-danger);
}

.ar-flight-badge {
  background: #eaf3ff;
  color: var(--ar-flight-blue-deep);
}

.ar-flight-suggestion {
  gap: 10px;
}

.ar-flight-suggestion-warning {
  padding-left: 12px;
  border-left: 4px solid var(--ar-flight-gold);
  color: var(--ar-flight-muted);
}

.ar-flight-source a {
  color: var(--ar-flight-blue);
  text-decoration: none;
}

.ar-flight-source a:hover,
.ar-flight-source a:focus-visible {
  text-decoration: underline;
}

.ar-flight-map {
  min-height: 320px;
  border-radius: 22px;
  border: 1px solid var(--ar-flight-line);
  overflow: hidden;
}

.ar-flight-hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .ar-flight-hero-grid,
  .ar-flight-upload-grid,
  .ar-flight-analysis-grid,
  .ar-flight-bottom-grid {
    grid-template-columns: 1fr;
  }

  .ar-flight-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body .content-container.site-container {
    width: min(100vw - 20px, 1320px) !important;
    max-width: min(100vw - 20px, 1320px) !important;
  }

  #arimota-flight-data-analyzer-root,
  .ar-flight-message {
    margin-bottom: 42px;
  }

  .ar-flight-shell {
    gap: 18px;
  }

  .ar-flight-hero,
  .ar-flight-card {
    padding: 18px;
    border-radius: 22px;
  }

  .ar-flight-hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .ar-flight-form-grid,
  .ar-flight-summary-grid,
  .ar-flight-hero-meta {
    grid-template-columns: 1fr;
  }
}
