:root {
  --olive-leaf: #7cb518;
  --black-forest: #2b2d42;
  --cornsilk: #f8f9fa;
  --sunlit-clay: #ffca3a;
  --copperwood: #fb8500;
  --text-main: var(--black-forest);
  --page-bg: var(--cornsilk);
  --header-text: var(--cornsilk);
  --page-surface: rgba(255, 255, 255, 0.92);
  --page-surface-soft: rgba(255, 255, 255, 0.75);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--page-bg), color-mix(in srgb, var(--page-bg) 78%, #ffffff));
  color: var(--text-main);
  line-height: 1.6;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

header {
  background: linear-gradient(135deg, var(--olive-leaf), var(--black-forest));
  color: var(--cornsilk);
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(40, 54, 24, 0.15);
  margin-bottom: 1.5rem;
}

h1,
h2,
h3 {
  color: var(--text-main);
  margin-top: 1.5rem;
}

header h1 {
  color: var(--header-text);
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

header p {
  margin: 0;
  color: var(--header-text);
}

.site-footer {
  background: linear-gradient(135deg, var(--olive-leaf), var(--black-forest));
  color: var(--cornsilk);
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(40, 54, 24, 0.15);
  margin-top: 1.5rem;
  font-size: 0.86rem;
  line-height: 1.4;
}

.footer-meta {
  margin: 0 0 0.6rem;
  opacity: 0.95;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.8rem;
  align-items: center;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  color: var(--header-text);
  text-decoration: none;
  padding: 0.35rem 0.45rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  max-width: 100%;
}

.site-footer a:hover {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

.site-footer a:focus {
  outline: 3px solid color-mix(in srgb, var(--sunlit-clay) 40%, white);
  outline-offset: 1px;
}

.footer-logo-link {
  justify-content: center;
}

.footer-logo {
  display: block;
  max-width: 100%;
  height: auto;
  flex: 0 0 auto;
}

.footer-logo-msn {
  width: 122px;
}

.footer-logo-ams {
  width: 150px;
}

.footer-logo-ima {
  width: 174px;
}

.footer-logo-bmc {
  width: 32px;
  height: 32px;
}

.intro {
  background: var(--page-surface-soft);
  padding: 1rem 1.2rem;
  border-left: 5px solid var(--sunlit-clay);
  border-radius: 10px;
  margin-bottom: 1.2rem;
}

.search-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 250, 0.92));
  padding: 1rem 1.2rem;
  border-radius: 14px;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 18px rgba(40, 54, 24, 0.07);
  border-top: 4px solid var(--olive-leaf);
}

.search-panel-toggle {
  border: 0;
  padding: 0;
  background: none;
  color: var(--black-forest);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.search-panel-toggle:hover {
  text-decoration: underline;
}

.search-chevron {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.85em;
  transform: rotate(0deg);
  transition: transform 180ms ease;
}

.search-panel-toggle:focus {
  outline: 3px solid color-mix(in srgb, var(--olive-leaf) 24%, white);
  outline-offset: 2px;
  border-radius: 6px;
}

.search-panel-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: max-height 220ms ease, opacity 160ms ease, transform 220ms ease;
}

.search-panel:hover .search-panel-body,
.search-panel:focus-within .search-panel-body,
.search-panel.is-open .search-panel-body {
  max-height: 52rem;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  margin-top: 0.65rem;
}

.search-panel:hover .search-chevron,
.search-panel:focus-within .search-chevron,
.search-panel.is-open .search-chevron {
  transform: rotate(180deg);
}

.search-help {
  margin: 0 0 0.75rem;
}

.search-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.search-controls {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}

.search-input {
  width: 100%;
  flex: 1;
  border: 1px solid rgba(43, 45, 66, 0.18);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: white;
  color: var(--text-main);
  box-shadow: inset 0 1px 2px rgba(43, 45, 66, 0.04);
}

.search-input:focus {
  outline: 3px solid color-mix(in srgb, var(--olive-leaf) 24%, white);
  outline-offset: 1px;
  border-color: var(--olive-leaf);
}

.search-button {
  border: 0;
  border-radius: 10px;
  padding: 0 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--cornsilk);
  background: linear-gradient(135deg, var(--olive-leaf), color-mix(in srgb, var(--olive-leaf) 70%, var(--black-forest)));
  cursor: pointer;
  min-width: 7rem;
}

.search-button:hover {
  filter: brightness(1.05);
}

.search-button:focus {
  outline: 3px solid color-mix(in srgb, var(--olive-leaf) 26%, white);
  outline-offset: 1px;
}

.search-results {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.search-empty,
.search-status {
  margin: 0;
  color: rgba(43, 45, 66, 0.78);
}

.search-result {
  display: block;
  background: white;
  border-left: 4px solid var(--copperwood);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  box-shadow: 0 4px 12px rgba(40, 54, 24, 0.06);
}

.search-result:hover {
  text-decoration: none;
  border-left-color: var(--olive-leaf);
}

.search-result-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.2rem;
}

.search-result-title {
  font-weight: 700;
  color: var(--black-forest);
}

.search-result-kind {
  font-size: 0.82rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sunlit-clay) 22%, white);
  color: var(--black-forest);
}

.search-result-summary {
  margin: 0;
  color: rgba(43, 45, 66, 0.84);
}

@media (max-width: 700px) {
  .search-controls {
    flex-direction: column;
  }

  .search-button {
    min-height: 2.75rem;
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer a {
    justify-content: center;
    white-space: normal;
  }
}

.section {
  background: var(--page-surface);
  padding: 1.2rem 1.3rem;
  border-radius: 14px;
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px rgba(40, 54, 24, 0.07);
  border-top: 4px solid var(--sunlit-clay);
}

.section h2 {
  margin-top: 0;
  border-bottom: 2px solid rgba(96, 108, 56, 0.2);
  padding-bottom: 0.35rem;
  font-size: 1.3rem;
}

.topic {
  margin: 0.9rem 0 0.7rem;
  padding: 0.8rem 0.95rem;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--sunlit-clay) 26%, white),
    color-mix(in srgb, var(--copperwood) 14%, white)
  );
  border-left: 4px solid var(--copperwood);
  border-radius: 8px;
  color: var(--black-forest);
}

.topic h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: inherit;
}

.subtopic {
  margin: 0.55rem 0 0.55rem 1rem;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--olive-leaf);
  background: color-mix(in srgb, var(--olive-leaf) 10%, white);
  border-radius: 6px;
  color: var(--black-forest);
}

.card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  border-top: 4px solid var(--sunlit-clay);
  box-shadow: 0 6px 16px rgba(40, 54, 24, 0.08);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb-separator {
  color: var(--copperwood);
  font-weight: 700;
}

.subtopic-link {
  margin: 0.75rem 0;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--copperwood);
  background: color-mix(in srgb, var(--sunlit-clay) 18%, white);
  border-radius: 8px;
}

.specific-topic {
  margin: 0.75rem 0;
  padding: 0.75rem 0.85rem;
  border-left: 3px solid var(--olive-leaf);
  background: color-mix(in srgb, var(--olive-leaf) 10%, white);
  border-radius: 8px;
}

.specific-topic h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.specific-topic p {
  margin: 0;
}

.specific-topic h4 {
  margin: 0.55rem 0 0.25rem;
  font-size: 0.92rem;
  color: var(--black-forest);
}

.specific-topic ul {
  margin: 0 0 0.2rem 1rem;
  padding-left: 0.9rem;
}

.specific-topic .section-label {
  margin: 0.65rem 0 0.25rem;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--copperwood);
}

.specific-topic .meta-list {
  margin-top: 0;
}

ul {
  margin: 0.4rem 0 0.4rem 1.1rem;
  padding-left: 1rem;
}

li {
  margin-bottom: 0.25rem;
}

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

a:hover {
  text-decoration: underline;
}

code {
  background: color-mix(in srgb, var(--black-forest) 10%, white);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  color: var(--text-main);
}

.note {
  color: var(--copperwood);
  font-weight: 600;
  font-size: 0.95rem;
}
