/*
  orthodox-ronl docs — gedeelde look & feel (bron ↔ VSA-tooling).
  Spiegel dit bestand in beide repo's bij themawijzigingen.
*/

:root {
  /* Inktblauw — header/primary (geen default Material purple) */
  --og-primary: #1e3a4c;
  --og-primary-light: #2d5368;
  --og-primary-dark: #142936;
  /* Gedempt groen — accent/links hover */
  --og-accent: #3d6b5a;
  --og-accent-light: #4f8571;
  /* Tabs: lichte balk met donkere tekst (niet witte letters op grijs) */
  --og-tabs-bar: #e8eef1;
  --og-tabs-fg: #1a1a1a;
  --og-tabs-fg-muted: #3d4a52;

  --md-primary-fg-color: var(--og-primary);
  --md-primary-fg-color--light: var(--og-primary-light);
  --md-primary-fg-color--dark: var(--og-primary-dark);
  --md-accent-fg-color: var(--og-accent);
  --md-accent-fg-color--transparent: color-mix(in srgb, var(--og-accent) 10%, transparent);
  --md-typeset-a-color: var(--og-accent);
}

/* Logo in header: favicon-formaat */
.md-header__button.md-logo img {
  height: 1.6rem;
  width: auto;
}

/* Sister-site iconen rechtsboven (i.p.v. GitHub stars/forks) */
.md-header__social {
  display: flex;
  align-items: center;
  margin-left: .2rem;
  padding-right: .2rem;
}

.md-header__social .md-social {
  display: flex;
  align-items: center;
  gap: .15rem;
  padding: 0;
  margin: 0;
}

.md-header__social .md-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  color: var(--md-primary-bg-color);
  opacity: .85;
}

.md-header__social .md-social__link:hover,
.md-header__social .md-social__link:focus {
  opacity: 1;
  color: var(--md-primary-bg-color);
}

.md-header__social .md-social__link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

/* Footer: één regel datumstempels (Amsterdamse tijdzone via CI/plugin) */
.og-footer-stamps {
  margin: 0;
  padding: .4rem 0;
  font-size: .7rem;
  color: var(--md-footer-fg-color--lighter, rgba(255, 255, 255, .6));
  text-align: right;
  white-space: nowrap;
}

@media screen and (max-width: 44.984375em) {
  .og-footer-stamps {
    text-align: left;
    white-space: normal;
  }
}

/* Header-tabs: leesbaar contrast (donkere tekst op lichte balk) */
.md-header--lifted > .md-tabs,
.md-tabs {
  background-color: var(--og-tabs-bar);
  color: var(--og-tabs-fg);
}

.md-header--lifted .md-tabs__link,
.md-tabs__link {
  font-weight: 500;
  color: var(--og-tabs-fg-muted);
  opacity: 1;
}

.md-header--lifted .md-tabs__link--active,
.md-header--lifted .md-tabs__item--active > .md-tabs__link,
.md-tabs__link--active,
.md-tabs__item--active > .md-tabs__link {
  color: var(--og-primary);
  font-weight: 600;
  opacity: 1;
}

.md-header--lifted .md-tabs__link:focus,
.md-header--lifted .md-tabs__link:hover,
.md-tabs__link:focus,
.md-tabs__link:hover {
  color: var(--og-primary);
  opacity: 1;
}

/* TermRefs (TEv2/trrt): subtiel onderscheidbaar van gewone links */
a.og-termref {
  color: var(--og-accent);
  text-decoration: underline dotted;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--og-accent) 55%, transparent);
}

a.og-termref:hover,
a.og-termref:focus {
  color: var(--og-accent-light);
  text-decoration-color: var(--og-accent);
  background-color: color-mix(in srgb, var(--og-accent) 8%, transparent);
}
