:root {
  --blue-900: #002147;
  --blue-800: #0b2f5b;
  --blue-100: #e8eef6;
  --gold-500: #d4af37;
  --gray-900: #1b1f24;
  --gray-700: #3a4552;
  --gray-600: #4d596a;
  --gray-200: #d8dee6;
  --gray-100: #f3f5f8;
  --white: #ffffff;
  --link: #0b4f9f;
  --link-hover: #083a73;
  --accent: var(--gold-500);
  --border: var(--gray-200);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Public Sans", "Source Sans 3", "Noto Sans", Arial, sans-serif;
  background: var(--gray-100);
  color: var(--gray-900);
  line-height: 1.6;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.page {
  min-height: 100vh;
  background: var(--gray-100);
}

.site-header {
  background: var(--blue-900);
  color: var(--white);
  border-bottom: 3px solid #00162f;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-family: "Merriweather", Georgia, serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
}

.brand__descriptor {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d7e3f5;
}

.site-body {
  display: flex;
  min-height: calc(100vh - 80px);
}

.site-footer {
  background: var(--blue-900);
  color: var(--white);
  border-top: 3px solid #00162f;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
  font-size: 0.85rem;
  color: #d7e3f5;
}

.site-footer a {
  color: #d7e3f5;
}

.site-footer a:hover {
  color: #ffffff;
}

.flag-glyph {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.flag-glyph svg {
  width: 28px;
  height: 18px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.sidebar {
  width: 260px;
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
}

.nav__title {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 8px 10px;
  border-left: 3px solid transparent;
  color: var(--gray-900);
  border-radius: 2px;
}

.nav__link:hover {
  background: var(--gray-100);
  text-decoration: none;
  color: var(--blue-900);
}

.nav__link.is-active {
  border-left-color: var(--blue-900);
  background: #eef2f7;
  font-weight: 600;
}

.content {
  flex: 1;
  background: var(--white);
  padding: 32px 40px 64px;
}

.content__inner {
  max-width: 980px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--gray-600);
}

.breadcrumb__sep {
  margin: 0 6px;
}

.page-intro {
  animation: fade-up 0.45s ease-out;
}

.entity-intro {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 12px;
}

.entity-mark {
  height: 140px;
}

.entity-mark--logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 8px;
}

h1 {
  font-family: "Merriweather", Georgia, serif;
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

h2 {
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 12px;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-700);
  margin-top: 20px;
  margin-bottom: 8px;
}

p {
  margin-bottom: 14px;
}

.lead {
  font-size: 1.08rem;
  color: var(--gray-700);
  max-width: 720px;
}

.section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  animation: fade-up 0.5s ease-out;
}

.list {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.panel {
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 16px;
  margin-top: 16px;
}

.link-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.link-list a {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-900);
  background: #fbfcfe;
  color: var(--gray-900);
}

.link-list a:hover {
  text-decoration: none;
  background: var(--blue-100);
}

.button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 2px;
  background: var(--blue-900);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 8px;
}

.button:hover {
  text-decoration: none;
  background: #001a36;
  color: var(--white);
}

.data-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 16px;
  margin-top: 12px;
}

.data-list dt {
  font-weight: 600;
  color: var(--gray-700);
}

.data-list dd {
  margin: 0;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.standard-card {
  border: 1px solid var(--border);
  padding: 12px;
  background: var(--white);
}

.standard-card__image {
  width: 100%;
  max-width: 180px;
  height: 140px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.placeholder {
  height: 140px;
  border: 2px dashed var(--border);
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--gray-600);
  font-size: 0.85rem;
  padding: 8px;
}

.standard-card figcaption {
  margin-top: 10px;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.swatch-grid {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.swatch-group {
  border: 1px solid var(--border);
  padding: 12px;
  background: #fbfcfe;
}

.swatch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.swatch__chip {
  width: 36px;
  height: 36px;
  border: 1px solid #0000001a;
}

.swatch__meta {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.motto {
  font-family: "Merriweather", Georgia, serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gray-900);
}

.theme-commerce {
  --accent: #3f7f4c;
  --link: #154734;
  --link-hover: #123b2c;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-intro,
  .section {
    animation: none;
  }
}

@media (max-width: 900px) {
  .site-body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .nav__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .content {
    padding: 28px 24px 56px;
  }

  .entity-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-header__inner {
    padding: 12px 18px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .data-list {
    grid-template-columns: 1fr;
  }
}
