@font-face {
  font-family: "Fira Sans";
  src:
    url("assets/fonts/FiraSans-Regular.woff2") format("woff2"),
    url("assets/fonts/FiraSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src:
    url("assets/fonts/FiraSans-SemiBold.woff2") format("woff2"),
    url("assets/fonts/FiraSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src:
    url("assets/fonts/FiraSans-SemiBold.woff2") format("woff2"),
    url("assets/fonts/FiraSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src:
    url("assets/fonts/FiraSans-SemiBold.woff2") format("woff2"),
    url("assets/fonts/FiraSans-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --hawk-red: #c90019;
  --ink: #1c1c1c;
  --muted: #5f6368;
  --line: #d8d8d8;
  --paper: #ffffff;
  --soft: #eeeeec;
  --mid: #d7d7d4;
  --header-text: #3B3D40;
  --dark-grey: #3B3D40;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Fira Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--hawk-red);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(201, 0, 25, .35);
  outline-offset: 2px;
}

.clipboard-fallback {
  position: fixed;
  left: -9999px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: .75rem;
  z-index: 10;
  padding: .5rem .75rem;
  color: #fff;
  background: var(--hawk-red);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topline {
  height: 6px;
  background: var(--dark-grey);
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.logo {
  display: block;
  width: 118px;
  min-width: 118px;
  height: auto;
}

.brand-text {
  display: grid;
  gap: .1rem;
  min-width: 0;
}

.brand-text strong {
  color: var(--header-text);
  font-size: 1rem;
  line-height: 1.25;
}

.brand-text span {
  color: var(--muted);
  font-size: .92rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  justify-content: flex-end;
  font-size: .95rem;
  font-weight: 700;
}

.nav a {
  color: var(--header-text);
  text-decoration: none;
}

.nav a:hover {
  color: var(--hawk-red);
}

.page-title {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #c5c5c2;
}

.page-title::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(49, 51, 54, .15) 0,
    rgba(49, 51, 54, .15) 1px,
    transparent 1px,
    transparent 10px
  );
}

.page-title-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.2rem 1.25rem 3.3rem;
}

h1 {
  width: fit-content;
  max-width: 920px;
  margin: 0;
  padding: .16em .28em .14em;
  color: var(--header-text);
  background: #fff;
  font-size: 2.35rem;
  line-height: 1.18;
  font-weight: 800;
  text-transform: uppercase;
}

.page-title-label {
  color: inherit;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.page-title-compact .page-title-inner {
  padding-top: 2.5rem;
  padding-bottom: 2.6rem;
}

.page-title-compact h1 {
  font-size: 2.15rem;
}

.legal-content {
  display: grid;
  gap: 2rem;
  max-width: 860px;
}

.legal-content section {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.legal-content section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-content h2 {
  margin: 0 0 .8rem;
  color: var(--header-text);
  font-size: 1.35rem;
  line-height: 1.3;
}

.legal-content p {
  margin: 0 0 .75rem;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.toolbar {
  margin: 0 0 2rem;
  padding: 1.25rem;
  background: #f6f6f4;
  border: 1px solid var(--line);
  border-top: 5px solid var(--dark-grey);
}

.preset-panel {
  display: grid;
  gap: .65rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.preset-title {
  margin: 0;
  font-size: .92rem;
  font-weight: 800;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.preset-button {
  min-height: 40px;
  padding: .45rem .7rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b8b8b8;
  font-weight: 700;
}

.preset-button:hover {
  background: #ececea;
}

.preset-button.is-active {
  color: #fff;
  background: var(--dark-grey);
  border-color: var(--dark-grey);
}

.filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-field {
  display: grid;
  gap: .35rem;
  flex: 0 0 12rem;
}

.search-field {
  flex: 1 1 18rem;
}

.filters label {
  font-size: .92rem;
  font-weight: 800;
}

.filters input,
.filters select {
  width: 100%;
  min-height: 46px;
  height: 46px;
  padding: .55rem .7rem;
  border: 1px solid #b8b8b8;
  border-radius: 0;
  background: #fff;
}

.filters select {
  appearance: none;
  padding-right: 2.4rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--header-text) 50%),
    linear-gradient(135deg, var(--header-text) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 20px,
    calc(100% - 12px) 20px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.count {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: .45rem .75rem;
  color: var(--ink);
  background: var(--mid);
  font-size: .95rem;
  font-weight: 700;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.button {
  min-height: 42px;
  padding: .55rem .8rem;
  color: #fff;
  background: var(--dark-grey);
  border: 0;
  font-weight: 700;
}

.button:hover {
  background: #25282a;
}

.button-secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid #b8b8b8;
}

.button-secondary:hover {
  background: #ececea;
}

.active-filters {
  display: grid;
  gap: .7rem;
  margin: 0 0 1rem;
  padding: 1rem;
  background: #f6f6f4;
  border: 1px solid var(--line);
}

.statistics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--dark-grey);
  background: #f6f6f4;
}

.statistics div {
  display: grid;
  gap: .15rem;
  padding: .9rem 1rem;
  border-right: 1px solid var(--line);
}

.statistics div:last-child {
  border-right: 0;
}

.statistics strong {
  color: var(--header-text);
  font-size: 1.25rem;
  line-height: 1.2;
}

.statistics span {
  color: var(--muted);
  font-size: .86rem;
}

.active-filters[hidden] {
  display: none;
}

.active-filters h2 {
  margin: 0;
  font-size: 1rem;
}

.active-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 34px;
  padding: .3rem .55rem;
  background: #fff;
  border: 1px solid #b8b8b8;
  font-size: .92rem;
  font-weight: 700;
}

.filter-chip button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: var(--ink);
  background: #ececea;
  border: 0;
  font-weight: 800;
  line-height: 1;
}

.filter-chip button:hover {
  background: var(--mid);
}

.status-message {
  min-height: 1.5rem;
  margin: 0 0 1rem;
  color: var(--muted);
}

.year-heading {
  margin: 2.3rem 0 1rem;
  padding-bottom: .45rem;
  border-bottom: 3px solid var(--dark-grey);
  font-size: 1.55rem;
  line-height: 1.2;
}

.pub {
  display: grid;
  gap: .75rem;
  margin-bottom: 1rem;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--mid);
}

.title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}

.meta {
  color: var(--muted);
}

.pub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.copy-button,
.pub-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .35rem .6rem;
  color: var(--ink);
  background: #f0f0ee;
  border: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.copy-button:hover,
.pub-link:hover {
  background: #e4e4e1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .15rem .5rem;
  color: #3c3c3c;
  background: #ececea;
  font-size: .85rem;
  font-weight: 700;
}

mark.search-hit {
  padding: 0 .08em;
  color: inherit;
  background: #fff0a8;
  box-decoration-break: clone;
}

.empty-state,
.loading-state,
.error-state {
  padding: 1.35rem;
  background: var(--paper);
  border-left: 6px solid var(--mid);
}

.site-footer {
  background: var(--dark-grey);
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(14rem, .9fr) minmax(15rem, .8fr);
  gap: 4rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 3.2rem;
  font-size: 15px;
  line-height: 24px;
}

.site-footer h2,
.site-footer h3,
.site-footer p {
  margin: 0;
}

.site-footer h2 {
  margin-top: 1.25rem;
  font-size: 15px;
  line-height: 26px;
  font-weight: 600;
  text-transform: uppercase;
}

.site-footer h3 {
  margin-bottom: 1rem;
  color: #a8adb3;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
}

.site-footer p {
  color: #a8adb3;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
}

.site-footer ul {
  display: grid;
  gap: .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #fff;
  font-size: 15px;
  line-height: 24px;
  font-weight: 400;
  text-decoration: none;
}

@media (max-width: 760px) {
  .statistics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .statistics div:nth-child(2) {
    border-right: 0;
  }

  .statistics div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media print {
  @page {
    margin: 16mm;
  }

  body {
    color: #000;
    font-size: 10.5pt;
  }

  .topline,
  .site-header,
  .toolbar,
  .active-filters,
  .status-message,
  .site-footer,
  .pub-actions,
  .tag-list,
  .skip-link {
    display: none !important;
  }

  .page-title {
    background: transparent;
    border: 0;
  }

  .page-title::after {
    display: none;
  }

  .page-title-inner,
  main {
    max-width: none;
    padding: 0;
  }

  .page-title-inner {
    margin-bottom: 8mm;
  }

  h1 {
    max-width: none;
    font-size: 20pt;
  }

  .statistics {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 8mm;
    break-inside: avoid;
  }

  .statistics strong {
    font-size: 12pt;
  }

  .year-heading {
    margin-top: 7mm;
    break-after: avoid;
  }

  .pub {
    break-inside: avoid;
    margin-bottom: 4mm;
    padding: 0 0 4mm;
    border: 0;
    border-bottom: 1px solid #bbb;
  }

  mark.search-hit {
    padding: 0;
    background: transparent;
  }
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 720px) {
  h1 {
    font-size: 1.85rem;
    line-height: 1.22;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .filter-field,
  .count,
  .preset-button {
    width: 100%;
  }

  .filter-field {
    flex-basis: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
