/* Simple site skeleton styles */
:root {
  --bg: #000000;
  --text: #ffffff;
  --theme-btn-face-bg: #000000;
  --theme-btn-face-color: #ffffff;
  --theme-btn-face-border: #ffffff;
  --theme-offset-shadow: #ffffff;
  --theme-btn-shadow-border: transparent;
  --theme-btn-inverse-face-bg: #ffffff;
  --theme-btn-inverse-face-color: #000000;
  --theme-btn-inverse-face-border: #ffffff;
  --theme-btn-inverse-offset-shadow: #000000;
  --theme-btn-inverse-shadow-border: #ffffff;
  --theme-card-bg: #050505;
  --theme-card-border: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", Arial, sans-serif;
  line-height: 1.5;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

nav#top-nav {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid var(--text);
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

a {
  color: var(--text);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 700;
}

.nav-brand-mark {
  display: inline-flex;
  line-height: 0;
}

.nav-brand-mark svg {
  width: 1.25rem;
  height: 1.25rem;
}

.theme-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-switcher-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.theme-switcher-button:hover,
.theme-switcher-button:focus-visible {
  border-color: var(--text);
  outline: none;
}

.theme-switcher-icon {
  display: inline-flex;
  line-height: 0;
}

.theme-switcher-icon svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

.theme-switcher-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  z-index: 110;
  min-width: 10rem;
  border: 1px solid var(--text);
  background: var(--bg);
  padding: 0.35rem;
  text-align: left;
  display: none;
}

.theme-switcher:focus-within .theme-switcher-menu {
  display: block;
}

.theme-switcher-list {
  list-style: none;
  display: grid;
  gap: 0.2rem;
}

.theme-switcher-list li {
  margin: 0;
}

.theme-link {
  display: block;
  border: 1px solid transparent;
  padding: 0.45rem 0.55rem;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.1;
}

.theme-link:hover,
.theme-link:focus-visible {
  border-color: var(--text);
  opacity: 1;
  outline: none;
}

.theme-link.is-active {
  background: var(--text);
  color: var(--bg);
}

a:hover {
  opacity: 0.85;
}

.btn:hover {
  opacity: 1;
}

.btn {
  --btn-lift: 6px;
  --btn-shadow-x: 12px;
  --btn-shadow-y: 12px;
  --btn-shadow-border-width: 2px;
  --btn-face-bg: var(--theme-btn-face-bg);
  --btn-face-color: var(--theme-btn-face-color);
  --btn-face-border: var(--theme-btn-face-border);
  --offset-shadow: var(--theme-offset-shadow);
  --btn-shadow-border: var(--theme-btn-shadow-border);

  position: relative;
  display: inline-block;
  vertical-align: middle;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--offset-shadow);
  border: var(--btn-shadow-border-width) solid var(--btn-shadow-border);
  transform: translate3d(var(--btn-shadow-x), var(--btn-shadow-y), 0);
  pointer-events: none;
  z-index: 0;
}

.btn__face {
  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  padding: 16px 22px;
  border: 4px solid var(--btn-face-border);
  border-radius: 0;
  background: var(--btn-face-bg);
  color: var(--btn-face-color);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  transform: translate3d(var(--btn-shadow-x), var(--btn-shadow-y), 0);
  transition: transform 0.12s ease;
  will-change: transform;
}

.btn:hover .btn__face,
.btn:focus-visible .btn__face {
  transform: translate3d(
    calc(var(--btn-shadow-x) - var(--btn-lift)),
    calc(var(--btn-shadow-y) - var(--btn-lift)),
    0
  );
}

.btn:active .btn__face {
  transform: translate3d(
    calc(var(--btn-shadow-x) - (var(--btn-lift) * 0.33)),
    calc(var(--btn-shadow-y) - (var(--btn-lift) * 0.33)),
    0
  );
}

.btn:focus-visible {
  outline: none;
}

.btn:focus-visible .btn__face {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--btn-face-border), transparent 35%);
}

.btn.primary {
  --btn-face-bg: var(--theme-btn-face-bg);
  --btn-face-color: var(--theme-btn-face-color);
  --btn-face-border: var(--theme-btn-face-border);
  --offset-shadow: var(--theme-offset-shadow);
  --btn-shadow-border: var(--theme-btn-shadow-border);
}

.btn.inverse {
  --btn-face-bg: var(--theme-btn-inverse-face-bg);
  --btn-face-color: var(--theme-btn-inverse-face-color);
  --btn-face-border: var(--theme-btn-inverse-face-border);
  --offset-shadow: var(--theme-btn-inverse-offset-shadow);
  --btn-shadow-border: var(--theme-btn-inverse-shadow-border);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .btn__face {
    transition: none;
  }
}

section {
  text-align: center;
  padding: 2rem 0;
}

h1,
h2 {
  color: var(--text);
  margin-top: 0;
}

ul {
  list-style-position: inside;
  margin: 0;
  padding: 0;
}

.echart {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.chart-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.chart-card {
  border: 1px solid var(--theme-card-border);
  background: var(--theme-card-bg);
  padding: 0.75rem;
  text-align: left;
}

.chart-card .echart {
  max-width: none;
}

.chat-page {
  display: grid;
  min-height: calc(100vh - 56px);
  justify-items: center;
  align-content: start;
  padding: 2rem 1rem 3rem;
}

.indlaw-building-shell {
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.indlaw-building-icon {
  display: inline-flex;
  line-height: 0;
}

.indlaw-building-icon svg {
  display: block;
  width: clamp(4.5rem, 10vw, 6.5rem);
  height: clamp(4.5rem, 10vw, 6.5rem);
  animation: indlaw-gear-spin 3.2s linear infinite;
}

.indlaw-building-copy {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

@keyframes indlaw-gear-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 800px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }
}

.report-page {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 1rem 3rem;
}

.report-title-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.report-title-row h1 {
  margin-bottom: 0;
}

.report-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.report-switcher-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: var(--theme-card-bg);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.report-switcher-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  line-height: 0;
}

.report-switcher-chevron svg {
  display: block;
  width: 1.3rem;
  height: 1.3rem;
  transition: transform 160ms ease;
}

.report-switcher:focus-within .report-switcher-chevron svg {
  transform: rotate(180deg);
}

.report-switcher-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 20;
  min-width: min(28rem, 80vw);
  border: 1px solid var(--theme-card-border);
  background: var(--theme-card-bg);
  padding: 0.35rem;
  text-align: left;
  display: none;
}

.report-switcher:focus-within .report-switcher-menu {
  display: block;
}

.report-switcher-list {
  list-style: none;
  display: grid;
  gap: 0.2rem;
}

.report-switcher-list li {
  margin: 0;
}

.report-switcher-link {
  display: block;
  text-decoration: none;
  padding: 0.6rem 0.75rem;
  border: 1px solid transparent;
}

.report-switcher-link:hover,
.report-switcher-link:focus-visible {
  opacity: 1;
  border-color: var(--theme-card-border);
  outline: none;
}

.report-switcher-link.is-current {
  background: var(--text);
  color: var(--bg);
}

.report-hint {
  max-width: 44rem;
  margin: 0 auto;
  opacity: 0.82;
}

.report-filters {
  width: min(100%, 920px);
  margin: 0 auto;
}

.report-fieldset {
  border: 1px solid var(--theme-card-border);
  background: var(--theme-card-bg);
  padding: 1rem;
  text-align: left;
}

.report-fieldset legend {
  padding: 0 0.5rem;
  font-weight: 700;
}

.report-filters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  align-items: end;
}

.report-filter {
  display: grid;
  gap: 0.35rem;
}

.report-filter-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.report-filter select,
.report-submit {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--theme-card-border);
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 0.65rem 0.75rem;
}

.report-submit {
  cursor: pointer;
  font-weight: 700;
}

.report-summary {
  width: min(100%, 920px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  text-align: left;
}

.report-featured-summary {
  margin-top: -0.25rem;
}

.report-stat {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: span 4;
  min-width: 0;
  border: 1px solid var(--theme-card-border);
  background: var(--theme-card-bg);
  min-height: 9rem;
  container-type: inline-size;
}

.report-stat-link {
  color: inherit;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.report-stat-link:hover,
.report-stat-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--text);
  outline: none;
}

.report-stat-body {
  grid-column: 1 / -1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.45rem;
  padding: 1rem 0.9rem;
  text-align: center;
}

.report-stat-title,
.report-stat-value,
.report-stat-detail {
  margin: 0;
}

.report-stat-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.report-stat-value {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.2rem, 9.25cqi, 2.1rem);
  font-weight: 800;
  line-height: 1;
  max-width: 100%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.report-stat-detail {
  font-size: 0.78rem;
  opacity: 0.78;
}

.report-stat-meta {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-stat-detail-strong {
  opacity: 1;
  font-weight: 700;
}

.report-chart-card {
  width: min(100%, 920px);
  margin: 0 auto;
}

.report-empty {
  margin: 0;
  text-align: center;
}

@media (max-width: 700px) {
  .report-title-row {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .report-switcher-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    min-width: min(22rem, calc(100vw - 2rem));
  }

  .report-filters-grid,
  .report-summary {
    grid-template-columns: 1fr;
  }

  .report-stat,
  .report-stat-body {
    grid-column: 1;
  }
}
