*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  line-height: 1.5;
  padding-top: 52px;
  /* Light gray → off-white (legacy bootstrap .jumbotron on erf.ngo) */
  background-color: #f4f4f4;
  background-image: linear-gradient(to bottom, #f4f4f4 0%, #fcfcfc 100%);
  background-repeat: no-repeat;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #222;
  border-bottom: 1px solid #111;
}

.site-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  flex-wrap: wrap;
  gap: 8px;
}

.site-brand {
  color: #9d9d9d;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  margin-left: 10px;
  transform: scaleX(0.9);
  transform-origin: left;
}

.site-brand:hover,
.site-brand:focus {
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
}

.lang-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-picker {
  position: relative;
}

.lang-picker > summary {
  list-style: none;
}

.lang-picker > summary::-webkit-details-marker {
  display: none;
}

.lang-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  background: #333;
  color: #ebebeb;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.lang-picker-trigger:hover,
.lang-picker-trigger:focus {
  border-color: #888;
  outline: none;
}

.lang-picker-trigger:focus-visible {
  outline: 2px solid #ebebeb;
  outline-offset: 2px;
}

.lang-globe {
  display: flex;
  align-items: center;
  color: inherit;
}

.lang-globe svg {
  display: block;
}

.lang-abbr {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}

.lang-picker-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 200;
  box-sizing: border-box;
  width: fit-content;
  min-width: max(100%, 220px);
  max-width: calc(100vw - 24px);
  padding: 4px 0;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.lang-select-list {
  list-style: none;
  margin: 0;
  padding: 2px 0 4px;
  box-sizing: border-box;
  width: 100%;
}

.lang-option {
  display: block;
  padding: 6px 10px;
  color: #e0e0e0;
  text-decoration: none;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
}

.lang-option:hover,
.lang-option:focus {
  background: #333;
  color: #fff;
  text-decoration: none;
  outline: none;
}

.lang-option.is-selected {
  font-weight: 600;
  color: #fff;
}

/* Body */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  background: linear-gradient(to bottom right, #f8f8f8, #f4f4f4);
}

.body-content {
  margin-top: 20px;
  padding-bottom: 24px;
}

.content-text-pad {
  padding-left: 40px;
}

main {
  min-height: 40vh;
}

/* Jumbotron (minimal, matches legacy Site.css + bootstrap .jumbotron gradient area) */
.jumbotron {
  padding: 20px 0 8px;
  background: transparent;
}

.jumbotron .intro,
.jumbotron p {
  font-size: 16px;
  margin: 0 0 0.9rem;
}

.jumbotron .subtag {
  font-size: 14px;
  color: #888;
  margin: -6px 0 16px;
}

.img-logo {
  margin-bottom: 8px;
  margin-left: -40px;
}

.img-logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sect {
  font-size: 16px;
  font-weight: 700;
  color: #666666;
  padding: 10px 0 0;
  margin: 1rem 0 0.3rem;
}

.jumbotron ul,
main ul {
  margin: 0.3rem 0 1rem;
  margin-left: calc(1.2rem + 20px);
  padding: 0;
}

.jumbotron .topic-links,
.topic-links {
  list-style: disc;
  margin-left: calc(1.2rem + 20px);
}

.lead-note {
  margin-top: 1.5rem;
  font-size: 16px;
}

h1,
h2,
h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1.2rem 0 0.5rem;
  line-height: 1.3;
}

h1 {
  font-size: 1.5rem;
}

a {
  color: #5a8ca4;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

a.link-small,
.link-small {
  font-size: inherit;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 6px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 12px;
  background: #f8f8f8;
  color: #333;
  font-size: 14px;
}

.back-link:hover,
.back-link:focus {
  background: #eee;
  text-decoration: none;
  color: #000;
}

hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 1.2rem 0;
}

footer {
  font-size: 14px;
  color: #555;
  padding: 0 0 1rem;
}

footer p {
  margin: 0;
}

footer p + p {
  margin-top: -0.20rem;
}

/* Mobile */
@media (max-width: 768px) {
  .site-header-inner {
    padding: 6px 12px;
  }

  .lang-picker-panel {
    width: fit-content;
    min-width: max(100%, min(220px, calc(100vw - 24px)));
    max-width: calc(100vw - 24px);
  }

  .body-content {
    margin-top: 12px;
  }

  .content-text-pad {
    padding-left: 10px;
  }

  .img-logo {
    margin-left: -10px;
  }

  .container {
    background: linear-gradient(to bottom right, #fafafa, #e8e8e8);
  }
}
