.pm-home {
  --pm-panel: #181a1e;
  --pm-raised: #23262b;
  --pm-border: #454851;
  --pm-text: #f5f6f8;
  --pm-muted: #c5c9d1;
  --pm-accent: #f5ff32;
  background: #111216;
  color: var(--pm-text);
}

.pm-home .v8-heroscreen {
  background: radial-gradient(ellipse at 76% 42%, #272a20 0%, #15171b 55%, #111216 85%);
}

.pm-home .v8-heroscreen__info-title {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
}

.pm-home .pm-header-nav {
  color: var(--pm-text);
}

.pm-home .pm-header-more ul {
  background: var(--pm-panel);
  border-color: var(--pm-border);
}

.pm-home .pm-header-nav [aria-current="page"],
.pm-home :is(.pm-reference, .pm-regional-notice, .pm-toc, .pm-footer) a {
  color: var(--pm-accent);
}

.pm-home :is(.pm-reference, .pm-regional-notice, .pm-toc, .pm-footer) {
  color: var(--pm-text);
}

.pm-home .pm-regional-notice {
  gap: .75rem 1.25rem;
}

.pm-home .pm-regional-notice p,
.pm-home .pm-reference p {
  color: var(--pm-muted);
  overflow-wrap: anywhere;
}

.pm-home .pm-reference :is(h2, h3, h4) {
  color: var(--pm-text);
  line-height: 1.25;
}

.pm-home .pm-reference h2 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  margin-bottom: .65rem;
}

.pm-home :is(.pm-toc details, .pm-languages, .pm-reference details) {
  background: var(--pm-panel);
  border-color: var(--pm-border);
}

.pm-home summary {
  min-height: 32px;
  align-content: center;
}

.pm-home summary::marker {
  color: var(--pm-accent);
}

.pm-home .pm-home-tools {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-block: 1.5rem 2rem;
}

.pm-home .pm-home-tools > .pm-reference {
  min-width: 0;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  background: var(--pm-panel);
  border: 1px solid var(--pm-border);
  border-radius: 1rem;
}

.pm-home #pm-interactive {
  border-top: 3px solid var(--pm-accent);
}

.pm-home .pm-calc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  margin-top: 1rem;
}

.pm-home .pm-calc label,
.pm-home .pm-match-filters label {
  font-weight: 600;
}

.pm-home .pm-calc input,
.pm-home .pm-match-filters select {
  width: 100%;
  min-height: 44px;
  background: #101114;
  color: var(--pm-text);
  border-color: #888d98;
  color-scheme: dark;
}

.pm-home #pm-calc-out {
  margin: 1rem 0 0;
  padding: .85rem 1rem;
  border-radius: .5rem;
  background: #30351a;
  color: #f5ff87;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.pm-home .pm-match-filters:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  margin-top: 1rem;
}

.pm-home .pm-match-filters label:first-child {
  display: grid;
  min-width: 0;
}

.pm-home .pm-match-filters input {
  accent-color: var(--pm-accent);
  width: 1.15rem;
  height: 1.15rem;
}

.pm-home .pm-match-archive ul {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  margin: 1rem 0 0;
}

.pm-home .pm-match-archive li {
  background: var(--pm-raised);
  border-color: var(--pm-border);
  overflow-wrap: anywhere;
}

.pm-home .pm-match-archive li :is(time, span) {
  color: var(--pm-muted);
}

.pm-home .pm-reference .pm-table-wrap th {
  background: var(--pm-raised);
  color: var(--pm-text);
}

.pm-home .pm-reference .pm-table-wrap td {
  background: var(--pm-panel);
  color: var(--pm-text);
}

.pm-home .pm-bars meter::-webkit-meter-optimum-value {
  background: var(--pm-accent);
}

.pm-home .pm-bars meter::-moz-meter-bar {
  background: var(--pm-accent);
}

.pm-home :is(.pm-header-nav, .pm-toc, .pm-languages, .pm-reference) :focus-visible {
  outline: 2px solid var(--pm-accent);
  outline-offset: 3px;
}

@media (max-width: 850px) {
  .pm-home .pm-home-tools {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pm-region-home {
  --line-main: #555964;
  --line-secondary: #454851;
  --text-main: var(--pm-text);
  --text-secondary: var(--pm-muted);
}

.pm-region-home .v8-heroscreen__info-title {
  color: var(--pm-text);
  max-width: 20ch;
  overflow-wrap: anywhere;
}

.pm-region-home .v8-heroscreen__info-description {
  max-width: 58ch;
  color: var(--pm-muted);
  line-height: 1.65;
}

.pm-region-home .pm-regional-notice {
  padding-block: .55rem;
  border-block: 1px solid var(--pm-border);
}

.pm-region-home .pm-languages {
  margin-block: .25rem;
}

.pm-region-home .pm-toc ol {
  columns: 16rem 3;
  column-gap: 2rem;
}

.pm-region-home .pm-toc li {
  break-inside: avoid;
  overflow-wrap: anywhere;
}

.pm-region-home .pm-match-filters label:not(:first-child) {
  align-self: stretch;
  align-content: center;
}

.pm-region-home .v7-review__item {
  border-color: var(--pm-border);
}

.pm-region-home .v7-faq__list-item {
  padding-inline: clamp(.7rem, 2vw, 1.1rem);
  background: var(--pm-panel);
  border: 1px solid var(--pm-border);
  border-radius: .7rem;
}

.pm-region-home .v7-faq__list-item summary {
  color: var(--pm-text);
  min-height: 44px;
}

.pm-region-home .v7-faq__list-item[open] {
  background: var(--pm-raised);
}

.pm-region-home .v7-faq__list-item :is(summary, a):focus-visible {
  outline: 2px solid var(--pm-accent);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .pm-region-home .pm-toc ol {
    columns: 1;
  }
}
