:root {
  color-scheme: light;
  --paper: #f3f0e9;
  --surface: #fbfaf6;
  --ink: #17202a;
  --muted: #5f6871;
  --rule: #cbc7bd;
  --blue: #164f78;
  --blue-strong: #0d3b5c;
  --focus: #d45528;
  --shadow: 0 18px 45px rgb(23 32 42 / 9%);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #151a1f;
  --surface: #1d242b;
  --ink: #edf0ed;
  --muted: #aab2b8;
  --rule: #3b454d;
  --blue: #82b8db;
  --blue-strong: #b9d9ec;
  --focus: #f3a27f;
  --shadow: 0 18px 45px rgb(0 0 0 / 28%);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --paper: #151a1f;
    --surface: #1d242b;
    --ink: #edf0ed;
    --muted: #aab2b8;
    --rule: #3b454d;
    --blue: #82b8db;
    --blue-strong: #b9d9ec;
    --focus: #f3a27f;
    --shadow: 0 18px 45px rgb(0 0 0 / 28%);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-strong);
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 0.9rem;
  color: var(--surface);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 0.88rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark strong {
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
}

.wordmark-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

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

.global-search {
  display: grid;
  width: min(42rem, 52vw);
  min-height: 2.8rem;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  grid-template-columns: auto 1fr auto;
}

.search-icon {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--muted);
  mask: url("/assets/icons/search.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/icons/search.svg") center / contain no-repeat;
}

.global-search input {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.global-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.global-search:focus-within {
  border-color: var(--focus);
  box-shadow: 0 2px var(--focus);
}

.global-search button {
  padding: 0.45rem 0.7rem;
  border: 0;
  color: var(--surface);
  background: var(--blue-strong);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.language-link {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.theme-toggle {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.theme-icon {
  width: 1.2rem;
  height: 1.2rem;
  background: currentColor;
  mask: url("/assets/icons/sun.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/icons/sun.svg") center / contain no-repeat;
}

.theme-toggle[data-effective-theme="dark"] .theme-icon {
  mask-image: url("/assets/icons/moon.svg");
  -webkit-mask-image: url("/assets/icons/moon.svg");
}

.shell {
  display: grid;
  min-height: calc(100vh - 4.5rem);
  grid-template-columns: minmax(13rem, 18vw) 1fr;
}

.topic-rail {
  position: sticky;
  top: 4.5rem;
  align-self: start;
  min-height: calc(100vh - 4.5rem);
  padding: 3.5rem 2rem;
  border-right: 1px solid var(--rule);
}

.rail-label,
.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.topic-rail > a {
  display: block;
  margin: 0 -0.75rem 0.3rem;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  text-decoration: none;
}

.topic-rail > a[aria-current="page"] {
  color: var(--blue-strong);
  background: var(--surface);
  box-shadow: inset 3px 0 var(--blue);
}

.rail-rule {
  width: 2.5rem;
  margin: 2rem 0;
  border-top: 1px solid var(--rule);
}

.rail-note {
  max-width: 12rem;
  color: var(--muted);
  font-size: 0.8rem;
}

main {
  width: min(100%, 88rem);
  min-width: 0;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 6vw, 6rem) 7rem;
}

.page-intro {
  max-width: 52rem;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

.page-intro.compact {
  margin-bottom: 1.5rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.06;
  text-wrap: balance;
}

h1 {
  max-width: 16ch;
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  letter-spacing: -0.035em;
}

.page-intro > p:last-child {
  max-width: 44rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.topic-atlas {
  display: grid;
  border-top: 1px solid var(--rule);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topic-group {
  position: relative;
  display: grid;
  min-height: 0;
  padding: 1.6rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  grid-template-rows: auto auto auto;
  gap: 0.75rem;
  cursor: pointer;
}

.topic-group:nth-child(even) {
  border-right: 0;
}

.topic-group:hover {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.topic-index {
  float: left;
  width: 2.3rem;
  margin: 0.1rem 1rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
}

.topic-group h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.topic-group h2 a {
  color: var(--ink);
  text-decoration: none;
}

.topic-group h2 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.topic-group li a,
.topic-enter {
  position: relative;
  z-index: 1;
}

.topic-group:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.topic-group ul {
  display: flex;
  align-content: start;
  align-items: start;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
}

.topic-group li a {
  display: inline-block;
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
  transition: background-color 140ms ease-out, border-color 140ms ease-out,
    color 140ms ease-out;
}

.topic-group li a:hover,
.topic-group li a:focus-visible {
  border-color: var(--blue-strong);
  color: var(--surface);
  background: var(--blue-strong);
}

.topic-enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--blue-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.crumbs {
  display: flex;
  margin-bottom: 2.5rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.resource-card {
  position: relative;
  display: grid;
  min-height: 0;
  padding: 1.6rem;
  background: var(--surface);
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
}

.resource-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.card-marker {
  display: grid;
  width: 3.5rem;
  height: 4.6rem;
  place-items: center;
  border: 1px solid var(--rule);
  color: var(--muted);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.bookmark-toggle {
  display: inline-grid;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--rule);
  color: var(--blue-strong);
  background: var(--paper);
  cursor: pointer;
  place-items: center;
}

.resource-card > .card-copy > .bookmark-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.resource-card > .card-copy {
  padding-right: 3rem;
}

.bookmark-toggle[aria-pressed="true"] {
  border-color: var(--blue);
  color: var(--surface);
  background: var(--blue-strong);
  box-shadow: inset 0 0 0 2px var(--surface);
}

.bookmark-icon {
  width: 1.2rem;
  height: 1.2rem;
  background: currentcolor;
  mask: url("/assets/icons/bookmark.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/icons/bookmark.svg") center / contain no-repeat;
}

.bookmark-toggle.text-button {
  display: inline-flex;
  width: auto;
  height: auto;
  min-height: 2.75rem;
  margin-top: auto;
  padding: 0.55rem 0.75rem;
  justify-self: start;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.8rem;
}

.card-kicker,
.card-authors,
.card-language,
.added-date {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.card-kicker a {
  color: inherit;
}

.card-authors {
  color: var(--ink);
  font-size: 0.82rem;
}

.resource-card h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  overflow-wrap: anywhere;
}

.resource-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.resource-card h2 a:hover {
  color: var(--blue-strong);
  text-decoration: underline;
}

.card-action {
  display: flex;
  align-items: start;
  margin-top: auto;
  padding-top: 1rem;
  flex-direction: column;
  gap: 0.4rem;
}

.card-target {
  color: var(--muted);
  font-size: 0.75rem;
}

.card-file-action {
  display: grid;
  gap: 0.2rem;
}

.card-file-action + .card-file-action {
  border-top: 1px solid var(--rule);
  padding-top: 0.4rem;
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.unavailable.compact {
  font-size: 0.78rem;
}

.resource-detail {
  max-width: 64rem;
  min-width: 0;
}

.resource-heading {
  position: relative;
  padding-bottom: clamp(1.5rem, 3vw, 3rem);
  border-bottom: 1px solid var(--rule);
}

.detail-bookmark {
  position: absolute;
  top: 0;
  right: 0;
}

.resource-heading h1 {
  max-width: 20ch;
  overflow-wrap: anywhere;
}

.primary-pdf {
  margin: 0.25rem 0 0.5rem;
}

.detail-bookmark {
  display: inline-flex;
  width: auto;
  align-items: center;
  padding: 0 0.7rem;
  gap: 0.4rem;
}

.bookmark-label {
  font-size: 0.78rem;
  font-weight: 700;
}

.metadata {
  display: grid;
  max-width: 44rem;
  margin: 1.5rem 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.metadata div {
  border-top: 1px solid var(--rule);
  padding-top: 0.8rem;
}

.metadata dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metadata dd {
  margin: 0.35rem 0 0;
}

.detail-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.detail-section h2 {
  margin-bottom: 1.8rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.file-list {
  display: grid;
  gap: 0.8rem;
  scroll-margin-top: 6rem;
}

.file-list:target {
  outline: 2px solid var(--blue);
  outline-offset: 0.45rem;
}

.file-entry {
  border: 1px solid var(--rule);
  background: var(--surface);
}

.file-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  gap: 1rem;
}

.file-target > div {
  min-width: 0;
}

.file-target-link {
  color: var(--ink);
  text-decoration: none;
}

.file-target-link:hover {
  background: var(--paper);
}

.file-target-link:focus-visible {
  outline-offset: -4px;
}

.file-target-action {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--blue);
  color: var(--surface);
  background: var(--blue-strong);
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.jump-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
}

.file-target h3,
.source-list bdi,
.source-list code {
  overflow-wrap: anywhere;
}

.file-target h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.file-target p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--blue);
  color: var(--surface);
  background: var(--blue-strong);
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.secondary-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  display: grid;
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule);
  grid-template-columns: minmax(8rem, 0.25fr) minmax(0, 1fr);
  gap: 1rem;
}

.source-list a,
.source-list bdi,
.source-list code {
  min-width: 0;
  word-break: break-word;
}

.technical-reference {
  min-width: 0;
  grid-column: 2;
  font-size: 0.78rem;
}

.technical-reference summary {
  color: var(--blue);
  cursor: pointer;
}

.technical-reference code {
  display: block;
  margin-top: 0.5rem;
  white-space: normal;
}

.source-list span {
  color: var(--muted);
  font-size: 0.8rem;
}

.file-sources {
  padding: 0 1.25rem 0.4rem;
}

.availability {
  padding: 1rem;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.message-state {
  max-width: 42rem;
  padding: clamp(2rem, 6vw, 5rem);
  border: 1px solid var(--rule);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.message-state.compact {
  box-shadow: none;
}

.message-state h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.message-state h2 {
  font-size: 1.8rem;
}

.search-heading h1 {
  max-width: 22ch;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.filter-panel {
  display: grid;
  align-items: end;
  margin-bottom: 2rem;
  padding: 1.25rem;
  border-block: 1px solid var(--rule);
  background: var(--surface);
  grid-template-columns: repeat(3, minmax(9rem, 1fr)) auto;
  gap: 1rem;
}

.filter-disclosure > summary {
  display: none;
}

.filter-chevron {
  display: none;
}

.filter-count {
  display: inline-grid;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.25rem;
  place-items: center;
  color: var(--surface);
  background: var(--blue-strong);
  font-size: 0.75rem;
}

.topic-suggestions {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.topic-suggestions .eyebrow {
  margin-bottom: 0.7rem;
}

.topic-suggestions ul {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.topic-suggestions a {
  display: grid;
  min-width: 10rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

.topic-suggestions a:hover {
  border-color: var(--blue);
}

.topic-suggestions small {
  color: var(--muted);
  font-size: 0.7rem;
}

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

.filter-field label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-field select {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.55rem 2rem 0.55rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.clear-filters {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: 0.82rem;
}

.validation-message {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--focus);
  background: var(--surface);
}

.storage-status {
  position: fixed;
  z-index: 30;
  right: 1rem;
  bottom: 1rem;
  max-width: 28rem;
  padding: 0.8rem 1rem;
  border: 2px solid var(--focus);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.action-status {
  position: fixed;
  z-index: 29;
  right: 1rem;
  bottom: 1rem;
  max-width: 20rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--blue);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
}

.action-status[hidden] {
  display: none;
}

.history-heading {
  display: flex;
  max-width: 64rem;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
}

.history-heading > div {
  max-width: 52rem;
}

.history-sections {
  display: grid;
  gap: 4rem;
}

.history-section {
  min-width: 0;
}

.history-section > h2 {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.recent-search-list {
  display: grid;
  margin: 0;
  padding-left: 1.5rem;
  gap: 0.5rem;
}

.recent-search-list a {
  display: inline-block;
  padding: 0.3rem 0;
}

.empty-note,
.local-unavailable p {
  color: var(--muted);
}

.search-prompt {
  margin-top: 3rem;
}

.search-prompt p,
.message-state > p {
  color: var(--muted);
}

.state-actions {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pagination a {
  min-width: 6rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
}

.pagination span {
  color: var(--muted);
  font-size: 0.86rem;
}

.mobile-nav {
  display: none;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 4.4rem;
  }

  .topbar {
    display: grid;
    min-height: 7.5rem;
    padding: 0.65rem 1rem 0.8rem;
    grid-template-columns: 1fr auto;
    gap: 0.45rem 1rem;
  }

  .wordmark {
    letter-spacing: 0.1em;
  }

  .global-search {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .shell {
    display: block;
    min-height: auto;
  }

  .topic-rail {
    display: none;
  }

  main {
    padding: 1.8rem 1rem 5rem;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
  }

  .page-intro {
    margin-bottom: 2rem;
  }

  .topic-atlas,
  .resource-grid {
    display: block;
    border: 0;
    background: transparent;
  }

  .topic-group,
  .resource-card {
    margin-bottom: 1px;
    border: 1px solid var(--rule);
  }

  .resource-card > .card-copy {
    padding-right: 2.7rem;
  }

  .topic-group {
    min-height: 0;
    padding: 1.4rem;
  }

  .resource-card {
    min-height: 0;
    padding: 1.2rem;
    grid-template-columns: 2.7rem 1fr;
    gap: 1rem;
  }

  .card-marker {
    width: 2.7rem;
    height: 3.6rem;
  }

  .metadata {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .filter-disclosure {
    margin-bottom: 1.5rem;
    border: 1px solid var(--rule);
    background: var(--surface);
  }

  .filter-disclosure > summary {
    display: flex;
    min-height: 2.8rem;
    align-items: center;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    gap: 0.5rem;
    list-style: none;
  }

  .filter-disclosure > summary::-webkit-details-marker {
    display: none;
  }

  .filter-chevron {
    display: block;
    width: 0.65rem;
    height: 0.65rem;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.15rem) rotate(45deg);
    transition: transform 180ms ease-out;
  }

  .filter-disclosure[open] .filter-chevron {
    transform: translateY(0.15rem) rotate(225deg);
  }

  .filter-disclosure .filter-panel {
    margin-bottom: 0;
    border-bottom: 0;
  }

  .clear-filters {
    grid-column: auto;
  }

  .file-target {
    align-items: stretch;
    flex-direction: column;
  }

  .source-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .technical-reference {
    grid-column: 1;
  }

  .mobile-nav {
    position: fixed;
    z-index: 12;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: 4.25rem;
    border-top: 1px solid var(--rule);
    background: var(--surface);
    grid-template-columns: repeat(5, 1fr);
  }

  .mobile-nav a {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
    padding-inline: 0.2rem;
  }

  .mobile-nav a[aria-current="page"] {
    color: var(--blue-strong);
    box-shadow: inset 0 3px var(--blue);
  }

  .history-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .history-heading .secondary-button {
    align-self: start;
  }

  .detail-bookmark {
    position: static;
    margin-bottom: 1.5rem;
  }

  .storage-status {
    right: 0.5rem;
    bottom: 4.75rem;
    left: 0.5rem;
  }

  .action-status {
    right: 0.5rem;
    bottom: 4.75rem;
    left: 0.5rem;
  }
}

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

@media (forced-colors: active) {
  .topic-group:hover,
  .message-state {
    box-shadow: none;
  }

  .bookmark-toggle[aria-pressed="true"] {
    border-width: 3px;
  }
}
