:root,
:host {
  --athena-purple-950: #21174f;
  --athena-purple-900: #2f236f;
  --athena-purple-700: #51308f;
  --athena-turquoise-700: #007b70;
  --athena-turquoise-400: #3dddb0;
  --athena-cyan-700: #087b96;
  --athena-cyan-400: #35c8db;
  --athena-magenta-700: #912b8c;
  --athena-magenta-400: #c44db5;
  --athena-warning-700: #8a4b00;
  --athena-danger-700: #b42318;
  --athena-focus: #ffcf33;
  --athena-paper: #ffffff;
  --athena-ink: #17152a;
  --athena-radius-sm: 0.375rem;
  --athena-radius-md: 0.75rem;
  --athena-radius-pill: 999px;
  --athena-shadow-raised: 0 0.75rem 2rem rgb(33 23 79 / 14%);
  --athena-space-1: 0.25rem;
  --athena-space-2: 0.5rem;
  --athena-space-3: 0.75rem;
  --athena-space-4: 1rem;
  --athena-space-6: 1.5rem;
  --athena-space-8: 2rem;

  --w-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --w-color-primary: var(--athena-purple-900);
  --w-color-primary-200: var(--athena-turquoise-400);
  --w-color-secondary: var(--athena-turquoise-700);
  --w-density-factor: 0.9;
}

*:focus-visible {
  outline: 3px solid var(--athena-focus) !important;
  outline-offset: 3px;
}

.athena-lockup {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: var(--athena-space-3);
  max-width: 100%;
  text-decoration: none;
}

.athena-lockup__mark {
  flex: 0 0 auto;
  height: 2.5rem;
  width: 2.5rem;
}

.athena-lockup__name {
  display: grid;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.athena-lockup__byline {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: var(--athena-space-1);
  opacity: 0.78;
  text-transform: uppercase;
}

.athena-lockup--login .athena-lockup__mark {
  height: 4rem;
  width: 4rem;
}

.athena-lockup--login .athena-lockup__name {
  font-size: 1.5rem;
}

.athena-lockup--login .athena-lockup__byline {
  font-size: 0.75rem;
}

.w-bg-primary,
.sidebar,
[data-wagtail-sidebar] {
  background-color: var(--athena-purple-950);
}

.button,
button,
input,
select,
textarea {
  border-radius: var(--athena-radius-sm);
}

.button.button-longrunning,
.button.button-secondary,
.button[type="submit"] {
  border-radius: var(--athena-radius-pill);
}

.button.button-longrunning,
.button[type="submit"] {
  background-color: var(--athena-turquoise-700);
  border-color: var(--athena-turquoise-700);
  color: var(--athena-paper);
}

.button.button-longrunning:hover,
.button[type="submit"]:hover {
  background-color: #00675f;
  border-color: #00675f;
}

.button.no,
.button-serious,
.button.button--destructive {
  background-color: var(--athena-danger-700);
  border-color: var(--athena-danger-700);
  color: var(--athena-paper);
}

.athena-status {
  align-items: center;
  border: 1px solid currentcolor;
  border-radius: var(--athena-radius-pill);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  gap: var(--athena-space-2);
  line-height: 1;
  padding: 0.4rem 0.7rem;
}

.athena-status--draft {
  background: #f1eff9;
  color: var(--athena-purple-700);
}

.athena-status--published {
  background: #e1f7f1;
  color: var(--athena-turquoise-700);
}

.athena-status--warning,
.athena-status--stale {
  background: #fff2d5;
  color: var(--athena-warning-700);
}

.athena-status--translation,
.athena-status--fallback {
  background: #e4f6fa;
  color: var(--athena-cyan-700);
}

.athena-status--taxonomy {
  background: #faeafb;
  color: var(--athena-magenta-700);
}

.athena-status--danger {
  background: #feeceb;
  color: var(--athena-danger-700);
}

.athena-status--missing {
  background: #f4f4f5;
  color: #4b4858;
}

.athena-workspace {
  color: var(--athena-ink);
  max-width: 100rem;
}

.athena-tabs {
  border-bottom: 1px solid #d8d6e2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--athena-space-2);
  margin-bottom: var(--athena-space-6);
}

.athena-tabs a {
  border-bottom: 3px solid transparent;
  color: var(--athena-purple-900);
  font-weight: 700;
  padding: var(--athena-space-3) var(--athena-space-4);
  text-decoration: none;
}

.athena-tabs a[aria-current="page"] {
  border-color: var(--athena-turquoise-700);
}

.athena-toolbar,
.athena-section-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--athena-space-3);
  justify-content: space-between;
  margin-bottom: var(--athena-space-6);
}

.athena-toolbar label {
  font-weight: 700;
}

.athena-toolbar input[type="search"] {
  min-width: min(26rem, 100%);
  padding: 0.65rem;
}

.athena-table-scroll {
  overflow-x: auto;
}

.athena-matrix th,
.athena-matrix td {
  min-width: 9rem;
  vertical-align: top;
}

.athena-matrix th:first-child {
  min-width: 16rem;
  position: sticky;
  left: 0;
  background: var(--athena-paper);
  z-index: 1;
}

.athena-matrix .athena-status {
  margin: 0 var(--athena-space-1) var(--athena-space-1) 0;
  text-decoration: none;
}

.athena-pagination {
  align-items: center;
  display: flex;
  gap: var(--athena-space-4);
  justify-content: center;
  margin: var(--athena-space-6) 0;
}

.athena-context-panel,
.athena-empty-state,
.athena-confirmation,
.athena-home {
  background: var(--athena-paper);
  border: 1px solid #d8d6e2;
  border-radius: var(--athena-radius-md);
  box-shadow: 0 0.25rem 1rem rgb(33 23 79 / 8%);
  margin-bottom: var(--athena-space-6);
  padding: var(--athena-space-6);
}

.athena-route-layout,
.athena-single-coordinate,
.athena-comparison {
  display: grid;
  gap: var(--athena-space-6);
  grid-template-columns: minmax(25rem, 1.2fr) minmax(20rem, 0.8fr);
}

.athena-route-list,
.athena-reference-list,
.athena-history-list,
.athena-compact-list {
  list-style: none;
  margin: 0 0 var(--athena-space-4);
  padding: 0;
}

.athena-route-list li,
.athena-reference-list li,
.athena-history-list li {
  align-items: center;
  border-bottom: 1px solid #e5e3eb;
  display: flex;
  gap: var(--athena-space-3);
  padding: var(--athena-space-3) 0;
}

.athena-route-list li.is-dragging {
  background: #e4f6fa;
  opacity: 0.8;
}

.athena-route-list small,
.athena-history-list span {
  display: block;
}

.athena-drag-handle {
  background: var(--athena-paper);
  border: 2px solid var(--athena-purple-900);
  color: var(--athena-purple-900);
  cursor: grab;
  font-size: 1.25rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
}

.athena-route-position {
  background: var(--athena-purple-950);
  border-radius: var(--athena-radius-pill);
  color: var(--athena-paper);
  display: grid;
  font-weight: 800;
  height: 2rem;
  place-items: center;
  width: 2rem;
}

.athena-map {
  background-color: #eef9f7;
  background-image: linear-gradient(#c9e9e2 1px, transparent 1px), linear-gradient(90deg, #c9e9e2 1px, transparent 1px);
  background-size: 2rem 2rem;
  border: 2px solid var(--athena-cyan-700);
  border-radius: var(--athena-radius-md);
  min-height: 22rem;
  overflow: hidden;
  position: relative;
}

.athena-map__label {
  background: var(--athena-cyan-700);
  color: var(--athena-paper);
  font-weight: 700;
  left: 0;
  padding: var(--athena-space-2) var(--athena-space-3);
  position: absolute;
  top: 0;
}

.athena-map__point {
  background: var(--athena-magenta-700);
  border: 2px solid var(--athena-paper);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--athena-magenta-700);
  color: var(--athena-paper);
  display: grid;
  font-weight: 800;
  height: 2rem;
  place-items: center;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 2rem;
}

.athena-locale-grid,
.athena-summary-grid {
  display: grid;
  gap: var(--athena-space-4);
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.athena-locale-grid article,
.athena-summary-grid article,
.athena-source-card {
  background: #f7f6fb;
  border-radius: var(--athena-radius-sm);
  padding: var(--athena-space-4);
}

.athena-summary-grid strong {
  color: var(--athena-purple-900);
  display: block;
  font-size: 2rem;
}

.athena-summary-grid span {
  font-weight: 700;
}

body.login {
  background:
    radial-gradient(circle at 85% 12%, rgb(61 221 176 / 26%), transparent 28rem),
    linear-gradient(145deg, var(--athena-purple-950), var(--athena-purple-700));
}

body.login .content-wrapper {
  backdrop-filter: blur(12px);
  background: rgb(255 255 255 / 96%);
  border-radius: var(--athena-radius-md);
  box-shadow: var(--athena-shadow-raised);
}

body.login .login-logo {
  color: var(--athena-paper);
}

@media (max-width: 50rem) {
  :root,
  :host {
    --w-density-factor: 0.8;
  }

  .athena-lockup__byline {
    display: none;
  }

  .athena-route-layout,
  .athena-single-coordinate,
  .athena-comparison {
    grid-template-columns: 1fr;
  }

  .athena-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .athena-status,
  .button {
    border: 2px solid ButtonText;
  }
}
