/* PMF shared component chrome. Page-specific CSS may layer on top. */

a {
  color: var(--fg-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: var(--color-accent-red-700);
  text-decoration-thickness: 2px;
}

.masthead-nav,
.pmf-primary-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 22px;
  padding-top: 13px;
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

.masthead-nav a,
.pmf-primary-nav a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.masthead-nav a:nth-child(2),
.pmf-primary-nav a:nth-child(2) {
  justify-self: center;
  text-align: center;
}

.masthead-nav a:last-child,
.pmf-primary-nav a:last-child {
  justify-self: end;
  text-align: right;
}

.masthead-nav a[aria-current="page"],
.pmf-primary-nav a[aria-current="page"] {
  color: var(--fg-accent);
}

.masthead-nav a:hover,
.masthead-nav a:focus-visible,
.pmf-primary-nav a:hover,
.pmf-primary-nav a:focus-visible {
  color: var(--fg-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.red-rule,
.pmf-red-rule {
  height: 4px;
  margin-top: 14px;
  background: var(--fg-accent);
}

.btn-thin,
.pmf-btn-thin {
  border: 1px solid #111;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 8px 14px;
  text-transform: uppercase;
}

.btn-thin.solid,
.pmf-btn-thin.solid {
  background: #111;
  color: #fff;
}

.btn-thin:hover,
.btn-thin:focus-visible,
.pmf-btn-thin:hover,
.pmf-btn-thin:focus-visible {
  background: #111;
  color: #fff;
}

.btn-thin.solid:hover,
.btn-thin.solid:focus-visible,
.pmf-btn-thin.solid:hover,
.pmf-btn-thin.solid:focus-visible {
  background: #000;
}

.pmf-site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  border-top: var(--border-4);
  color: var(--fg-muted);
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-top: 32px;
  padding: 20px 0 0;
  text-transform: uppercase;
}

.pmf-site-footer a {
  color: var(--fg);
  text-decoration: none;
}

.pmf-site-footer a:hover,
.pmf-site-footer a:focus-visible {
  color: var(--fg-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pmf-site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

@media (max-width: 864px) {
  .masthead-nav,
  .pmf-primary-nav {
    grid-template-columns: 1fr;
    gap: 7px;
    text-align: center;
  }

  .masthead-nav a:nth-child(2),
  .masthead-nav a:last-child,
  .pmf-primary-nav a:nth-child(2),
  .pmf-primary-nav a:last-child {
    justify-self: center;
    text-align: center;
  }
}
