:root {
  --brand-950: #002f65;
  --brand-900: #003c7c;
  --brand-800: #004b8d;
  --brand-700: #0a61aa;
  --brand-100: #dbeefe;
  --brand-50: #eef7ff;
  --ink-950: #172333;
  --ink-700: #42546a;
  --ink-500: #6e7f91;
  --line: #d8e5f0;
  --surface: #ffffff;
  --page: #eef6fc;
  --danger: #d63c4a;
  --warning: #df7900;
  --shadow: 0 14px 36px rgba(0, 54, 107, 0.1);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --section-gap: 10px;
  --section-padding: 16px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  margin: 0;
  color: var(--ink-950);
  background:
    radial-gradient(
      circle at 8% 0%,
      rgba(36, 137, 208, 0.14),
      transparent 28rem
    ),
    linear-gradient(180deg, #f5faff 0%, var(--page) 34rem, #eaf3fa 100%);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 32px;
}

.hero-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
  padding: 22px var(--section-padding);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(117, 200, 255, 0.2),
      transparent 18rem
    ),
    linear-gradient(
      122deg,
      var(--brand-950) 0%,
      var(--brand-800) 58%,
      #0871bb 100%
    );
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 38px rgba(0, 47, 101, 0.2);
}

.hero-card::after {
  position: absolute;
  right: -54px;
  bottom: -94px;
  width: 270px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  content: "";
  transform: rotate(-13deg);
  pointer-events: none;
}

.brand-block {
  position: relative;
  z-index: 2;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.hero-visual {
  position: absolute;
  right: 2%;
  bottom: 0;
  z-index: 1;
  display: block;
  width: 28%;
  height: auto;
  opacity: 0.65;
  pointer-events: none;
  user-select: none;
}

.brand-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 25, 58, 0.24);
}

.brand-copy {
  min-width: 0;
}

.brand-copy h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.brand-copy h1 span {
  margin-left: 0.18em;
  font-size: 0.56em;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-copy p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
}

.archive-entry {
  position: absolute;
  top: 24px;
  right: var(--section-padding);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 30px;
  padding: 4px 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(0, 42, 85, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 12px rgba(0, 32, 68, 0.12);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  backdrop-filter: blur(8px) saturate(130%);
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.archive-entry:hover,
.archive-entry:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.52);
}

.archive-entry:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
  border-radius: 3px;
}

.reset-button {
  border: 0;
  cursor: pointer;
}

.top-card,
.filter-card {
  margin-top: var(--section-gap);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(190, 211, 228, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.top-card-header,
.filter-heading,
.results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-card-header,
.filter-heading,
.results-heading {
  min-height: 40px;
}

.top-card-header,
.filter-heading,
.results-heading {
  padding: 8px var(--section-padding);
  color: #fff;
  background: linear-gradient(135deg, #063d76, #07519a);
}

.top-card h2,
.filter-card h2,
.results-heading h2 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.4;
}

.top-count {
  color: inherit;
  font: inherit;
}

.section-header-title {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.section-header-title h2 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section-header-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
}

.top-card-header-sub {
  flex: 0 0 auto;
  margin: 0 0 0 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: nowrap;
}

.top-list {
  margin: 0;
  padding: 6px var(--section-padding) 10px;
  list-style: none;
  counter-reset: top-rank;
}

.top-list li {
  counter-increment: top-rank;
  border-bottom: 1px solid #e7eef4;
}

.top-list li:last-child {
  border-bottom: 0;
}

.top-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  width: 100%;
  padding: 7px 0;
  color: var(--ink-950);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.top-item::before {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  align-self: start;
  margin-top: 0;
  color: #fff;
  background: var(--brand-700);
  border-radius: 50%;
  content: counter(top-rank);
  font-size: 0.65625rem;
  font-weight: 700;
  line-height: 1;
}

.top-list li:first-child .top-item::before {
  background: var(--danger);
}

.top-list li:nth-child(2) .top-item::before {
  background: var(--warning);
}

.top-item-title {
  grid-column: 2;
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
}

.top-item:hover .top-item-title {
  color: var(--brand-800);
}

.filter-card {
  overflow: visible;
}

.filter-heading {
  margin: -1px -1px 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.filter-heading h2 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}


.reset-button {
  padding: 2px 0;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
}

.reset-button:hover:not(:disabled) {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reset-button:disabled {
  color: rgba(255, 255, 255, 0.42);
  background: transparent;
  cursor: default;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 4px 14px;
  padding: 5px var(--section-padding) 6px;
}

.filter-field {
  position: relative;
  min-width: 0;
}

.filter-search-field {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  column-gap: 14px;
  padding-top: 5px;
  border-top: 1px dashed #83add0;
}

.filter-search-content {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.filter-search-label {
  margin: 0;
  white-space: nowrap;
}

.filter-search-control {
  position: relative;
}

.filter-search-input {
  width: 100%;
  height: 28px;
  min-height: 28px;
  padding: 2px 31px 2px 8px;
  color: var(--ink-950);
  background: #f9fbfd;
  border: 1px solid #cfdde8;
  border-radius: var(--radius-md);
  outline: 0;
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.filter-search-input::placeholder {
  color: #7a8c9d;
  opacity: 1;
}

.filter-search-input::-webkit-search-cancel-button {
  display: none;
}

.filter-search-clear {
  position: absolute;
  top: 50%;
  right: 3px;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #638097;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  transform: translateY(-50%);
}

.filter-search-clear::before,
.filter-search-clear::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  content: "";
}

.filter-search-clear::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.filter-search-clear::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.filter-search-clear:hover,
.filter-search-clear:focus-visible {
  color: var(--brand-900);
  background: #e7f1f9;
}

.filter-label {
  display: block;
  margin-bottom: 1px;
  color: var(--ink-700);
  font-size: 0.8125rem;
  font-weight: 650;
}

.multi-select {
  position: relative;
}

.multi-select-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
  height: 28px;
  min-height: 28px;
  padding: 1px 5px 1px 4px;
  color: var(--ink-950);
  background-color: #f9fbfd;
  border: 1px solid #cfdde8;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.multi-select-control:hover,
.multi-select-control:focus,
.multi-select.is-open .multi-select-control {
  border-color: #6fa7d1;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(53, 129, 188, 0.12);
}

.selected-values {
  display: flex;
  flex: 1;
  flex-wrap: nowrap;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.selected-values::-webkit-scrollbar {
  display: none;
}

.select-placeholder {
  align-self: center;
  color: #5e7082;
  font-size: 0.875rem;
}

.selected-tag {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: none;
  min-width: 0;
  min-height: 20px;
  padding: 0 2px 0 6px;
  color: #07508d;
  background: #e3f2fd;
  border: 1px solid #c5e2f7;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.35;
}

.selected-tag-all {
  padding-right: 6px;
}

.selected-tag-name {
  min-width: max-content;
  white-space: nowrap;
}

.selected-tag-remove {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-left: 2px;
  padding: 0;
  color: #507896;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.selected-tag-remove::before,
.selected-tag-remove::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  content: "";
}

.selected-tag-remove::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.selected-tag-remove::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.selected-tag-remove:hover {
  color: #003c7c;
  background: rgba(255, 255, 255, 0.72);
}

.multi-select-chevron {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #638097;
}

.multi-select-chevron::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translate(-50%, -68%) rotate(45deg);
  transition: transform 150ms ease;
}

.multi-select.is-open .multi-select-chevron::before {
  transform: translate(-50%, -32%) rotate(225deg);
}

.multi-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  left: 0;
  width: max(100%, 260px);
  max-height: 310px;
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid #c9dbe9;
  border-radius: 11px;
  box-shadow: 0 16px 34px rgba(0, 47, 101, 0.18);
}

.filter-field:nth-child(even) .multi-select-menu {
  right: 0;
  left: auto;
}

.multi-select-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 6px 8px;
  color: var(--ink-700);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.8125rem;
}

.multi-select-option:hover:not(:disabled),
.multi-select-option[aria-selected="true"] {
  color: var(--brand-900);
  background: #edf6fd;
}

.multi-select-option:disabled {
  color: #aeb9c2;
  cursor: not-allowed;
}

.option-check {
  display: grid;
  width: 17px;
  height: 17px;
  padding-bottom: 1px;
  place-items: center;
  color: transparent;
  background: #fff;
  border: 1px solid #afc2d1;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
}

.multi-select-option[aria-selected="true"] .option-check {
  color: #fff;
  background: var(--brand-700);
  border-color: var(--brand-700);
}

.option-count {
  color: #728496;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.multi-select-option:disabled .option-count {
  color: #b7c0c8;
}

.results-section {
  margin-top: var(--section-gap);
}

.results-heading {
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 16px rgba(0, 47, 101, 0.12);
}

.results-heading .result-count {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.results-heading h2 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.results-tools {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  white-space: nowrap;
}

.sort-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.sort-option {
  padding: 2px 0;
  color: rgba(255, 255, 255, 0.48);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.sort-option:hover,
.sort-option[aria-pressed="true"] {
  color: #fff;
}

.sort-option[aria-pressed="true"] {
  font-weight: 700;
}

.sort-divider {
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.75rem;
}

.event-list {
  display: grid;
  gap: 9px;
  margin-top: 9px;
}

.results-section > .state-card {
  margin-top: 9px;
}

.event-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 12px rgba(0, 47, 101, 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.event-card:has(.event-toggle[aria-expanded="true"]) {
  border-color: #a8c9e2;
  box-shadow: 0 9px 24px rgba(0, 55, 105, 0.09);
}

.event-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 5px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 10px 12px 14px;
  color: var(--ink-950);
  text-align: left;
  background: #fff;
  border: 0;
  cursor: pointer;
}

.event-toggle:hover {
  color: var(--brand-800);
  background: #fbfdff;
}

.event-title {
  display: inline;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.55;
}

.event-title-wrap {
  display: block;
  min-width: 0;
}

.title-topic {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 5px;
  padding: 0 5px;
  color: #718596;
  background: #f7f9fb;
  border: 1px solid #e2e9ef;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  vertical-align: 1px;
  white-space: nowrap;
}

.title-topic-primary {
  color: #788a99;
  background: #fafbfd;
  border-color: #e4eaef;
  font-weight: 500;
}

.title-topic-related {
  color: #788a99;
  background: #fafbfd;
  border-color: #e4eaef;
}

.title-topic-more {
  color: #84939f;
  background: #f5f7f9;
  border-color: #e6ebef;
}

.importance-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -3px;
  border-radius: 5px;
}

.importance-icon::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.7l2.48 5.02 5.54.8-4.01 3.91.95 5.52L12 16.34l-4.96 2.61.95-5.52-4.01-3.91 5.54-.8L12 3.7z' fill='%23fff' stroke='%23fff' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
  content: "";
  transform: translate(-50%, -50%);
}

.importance-icon-high {
  background: var(--brand-800);
}

.importance-icon-medium {
  background: #78aeda;
}

.importance-icon-low {
  background: #9ca9b5;
}

.chevron {
  position: relative;
  width: 16px;
  height: 16px;
  color: #6d8aa2;
}

.chevron::before,
.chevron::after {
  position: absolute;
  top: 7px;
  width: 7px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  content: "";
  transition: transform 160ms ease;
}

.chevron::before {
  left: 2px;
  transform: rotate(42deg);
}

.chevron::after {
  right: 2px;
  transform: rotate(-42deg);
}

.event-toggle[aria-expanded="true"] .chevron::before {
  transform: rotate(-42deg);
}

.event-toggle[aria-expanded="true"] .chevron::after {
  transform: rotate(42deg);
}

.event-detail {
  padding: 0 16px 17px;
  border-top: 1px solid #edf2f6;
}

.event-detail[hidden] {
  display: none;
}

.detail-summary {
  margin: 0;
  padding-top: 13px;
  color: #34475a;
  font-size: 0.9375rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
  text-indent: 0;
  text-wrap: wrap;
  word-break: break-all;
}

.tag.summary-event-date {
  display: none;
}

.detail-block {
  margin-top: 12px;
}

.detail-block h3 {
  margin: 0 0 4px;
  color: var(--brand-900);
  font-size: 0.8125rem;
  font-weight: 750;
}

.detail-block p {
  margin: 0;
  color: #34475a;
  font-size: 0.9375rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
  text-wrap: wrap;
  word-break: break-all;
}

.analysis-block {
  padding: 10px 12px;
  background: #edf6fd;
  border-left: 3px solid #4c91c5;
  border-radius: 0 8px 8px 0;
}

.numeric-grid {
  display: grid;
  align-items: stretch;
  gap: 8px;
}

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

.numeric-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.numeric-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 7px 10px;
  background: #f7fafc;
  border: 1px solid #e2eaf0;
  border-radius: 9px;
}

.numeric-item strong {
  display: block;
  color: var(--brand-800);
  font-size: 1rem;
  line-height: 1.15;
}

.numeric-item span {
  display: flex;
  align-items: center;
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 0.75rem;
  line-height: 1.2;
}

.numeric-grid.has-multiline-label .numeric-item span {
  min-height: 2.4em;
}

.tag-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 8px 18px;
  margin-top: 14px;
}

.tag-group {
  display: grid;
  grid-template-columns: 4.75em minmax(0, 1fr);
  align-items: start;
  min-width: 0;
  column-gap: 5px;
}

.tag-group-wide {
  grid-column: 1 / -1;
}

.tag-group-label {
  padding-top: 4px;
  color: var(--ink-500);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  white-space: nowrap;
}

.tag-group-values {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  color: #295f8a;
  background: #eef6fc;
  border: 1px solid #d5e7f4;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.tag-more {
  appearance: none;
  color: #84939f;
  background: #f5f7f9;
  border-color: #e6ebef;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}

.source-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 5px;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #edf2f6;
}

.source-label {
  padding-top: 2px;
  color: var(--ink-500);
  font-size: 0.75rem;
  font-weight: 400;
}

.source-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 7px;
  color: #36516a;
  background: #f1f5f8;
  border: 1px solid #e0e8ef;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 400;
  text-decoration: none;
}

.source-link:hover {
  color: #36516a;
  background: #e9eef2;
  border-color: #d6e0e7;
}

.source-note {
  align-self: center;
  color: var(--ink-500);
  font-size: 0.75rem;
}

.state-card {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  padding: 24px;
  color: var(--ink-500);
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px dashed #c8d9e6;
  border-radius: var(--radius-lg);
}

.state-card p {
  margin: 4px 0 0;
}

.state-error {
  color: #91515a;
  border-color: #e9c5cb;
}

.loading-mark {
  width: 25px;
  height: 25px;
  border: 3px solid #cbddea;
  border-top-color: var(--brand-700);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page-footer {
  margin-top: var(--section-gap);
  padding: 14px 0;
  color: var(--ink-500);
  font-size: 0.75rem;
  line-height: 1.65;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(79, 155, 211, 0.44);
  outline-offset: 2px;
}

.filter-search-input:focus,
.filter-search-input:focus-visible {
  border-color: #cfdde8;
  outline: 0;
  box-shadow: none;
}

@media (max-width: 600px) {
  html,
  body {
    font-size: 17px;
  }

  .page-shell {
    width: min(100% - 16px, 1120px);
    margin-top: 8px;
  }

  .hero-card {
    align-items: flex-start;
    min-height: 0;
    padding: 16px;
    border-radius: 14px;
  }

  .archive-entry {
    top: 17px;
    right: 16px;
    min-height: 27px;
    padding: 3px 8px;
    font-size: 0.72rem;
  }

  .brand-block {
    gap: 11px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 9px;
  }

  .hero-visual {
    right: 2%;
    width: 28%;
    opacity: 0.65;
  }

  .brand-copy p {
    margin-top: 5px;
    font-size: 0.75rem;
  }

  .top-card,
  .filter-card {
    border-radius: 14px;
  }

  .top-list {
    padding: 5px var(--section-padding) 8px;
  }

  .top-card-header-sub {
    display: none;
  }

  .filter-label {
    margin-bottom: 1px;
  }

  .filter-search-content {
    grid-column: 1 / -1;
  }

  .multi-select-menu {
    width: 100%;
  }

  .results-heading {
    align-items: center;
    gap: 8px;
  }

  .results-tools {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .event-toggle {
    padding: 11px 9px 11px 12px;
  }

  .event-detail {
    padding: 0 13px 15px;
  }

  .tag-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .tag-group-wide {
    grid-column: auto;
  }

}

@media (max-width: 460px) {
  .filter-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 5px 8px;
  }

  .filter-search-field {
    column-gap: 8px;
  }

  .filter-field:nth-child(even) .multi-select-menu {
    right: 0;
    left: auto;
  }
}

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