:root {
  color-scheme: light;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --panel-blue: #d6e1ea;
  --footer: #3c485d;
  --text: #1f3042;
  --muted: #5a6b7e;
  --line: #d5dbe2;
  --brand: #1d78ba;
  --brand-deep: #11263f;
  --chip: #f7fafc;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: #2b74b8;
}

.container {
  width: min(1120px, 94vw);
  margin: 0 auto;
}

.site-header {
  background: #f5f5f6;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--brand-deep);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-icon {
  width: 54px;
  height: 54px;
  border-radius: 2px;
  position: relative;
  background: linear-gradient(150deg, #123f6d 0%, #2397e1 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.brand-icon::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  left: 10px;
  bottom: -8px;
  background: rgba(191, 211, 13, 0.95);
  z-index: -1;
}

.brand-text {
  font-size: 1.06rem;
}

.top-nav {
  display: inline-flex;
  gap: 1.3rem;
  font-size: 0.95rem;
}

.top-nav a {
  text-decoration: none;
  color: #17253b;
}

.hero-banner {
  min-height: 212px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 37, 63, 0.84), rgba(17, 37, 63, 0.35)),
    linear-gradient(135deg, #20344d 0%, #2c5884 46%, #405c81 100%);
}

.hero-banner h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
}

.breadcrumb-row {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #59697d;
  font-size: 0.82rem;
  padding: 0.8rem 0;
}

.intro-row {
  background: #fff;
  padding: 1.45rem 0 1.65rem;
}

.intro-inner {
  display: grid;
  grid-template-columns: 145px 1fr;
  align-items: center;
  gap: 1rem;
}

.intro-logo {
  width: 120px;
  height: 78px;
  border-radius: 2px;
  background: linear-gradient(145deg, #123f6d 0%, #1b8ed9 100%);
  position: relative;
}

.intro-logo::after {
  content: "";
  position: absolute;
  width: 55px;
  height: 55px;
  right: -9px;
  bottom: -10px;
  background: rgba(191, 211, 13, 0.95);
  z-index: -1;
}

.intro-row h2 {
  margin: 0;
  font-size: 2rem;
  color: #2f4055;
}

.intro-row p {
  margin: 0.7rem 0 0;
  line-height: 1.6;
  color: #2f4258;
}

.content-section {
  background: var(--panel-blue);
  padding: 1rem 0 2.3rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

.panel,
.light-panel {
  background: #fff;
  border: 1px solid #cad7e4;
  border-radius: 2px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.light-panel {
  background: transparent;
  border: 0;
  padding: 0;
}

.panel h3,
.light-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  font-weight: 500;
  color: #394b5e;
}

.panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.panel li {
  margin-bottom: 0.45rem;
  color: #2d4259;
}

.is-hidden {
  display: none;
}

.search-head {
  margin-bottom: 0.8rem;
}

.search-head label {
  font-size: 0.9rem;
  color: #4d6178;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  border: 1px solid #9db2c9;
  border-radius: 999px;
  background: var(--chip);
  color: #24415e;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 110ms ease;
}

.chip:hover {
  border-color: #8ca9ca;
  background: #ebf3fb;
}

.chip.active {
  background: #3c4c61;
  color: #fff;
  border-color: #3c4c61;
}

#search {
  width: 100%;
  padding: 0.62rem 0.66rem;
  border-radius: 3px;
  border: 1px solid #b2c1d1;
  background: #fff;
  font-size: 0.94rem;
}

#search:focus {
  outline: 2px solid #d4e5f8;
  border-color: #87a9cd;
}

.results-list {
  display: grid;
  gap: 0;
}

.result {
  border: 0;
  border-top: 1px solid #d7e2ee;
  border-radius: 0;
  padding: 0.95rem 0;
  margin: 0;
  background: transparent;
}

.result:first-child {
  border-top: 0;
}

.result h3 {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
}

.result p {
  margin: 0.35rem 0 0;
  color: #354d64;
}

.result-meta {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.result-meta span {
  font-size: 0.74rem;
  border: 1px solid #bfd0e2;
  background: #f8fbfe;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  color: #315170;
}

.result-links {
  margin-top: 0.55rem;
  font-size: 0.85rem;
}

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

.filters-column {
  position: sticky;
  top: 1rem;
}

.filters-panel h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

#summary {
  margin: 0.55rem 0 0;
  font-size: 0.84rem;
  color: #55687e;
}

.site-footer {
  margin-top: auto;
  background: var(--footer);
  color: #f3f7fc;
}

.footer-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
  font-size: 0.83rem;
}

.footer-links a,
.footer-copy,
.footer-social a {
  color: #f3f7fc;
  text-decoration: none;
}

.footer-social {
  display: inline-flex;
  gap: 0.35rem;
}

.footer-social a {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  font-size: 0.73rem;
}

@media (max-width: 1050px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .filters-column {
    position: static;
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.7rem 0;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

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

  .intro-row h2,
  .panel h3,
  .light-panel h3 {
    font-size: 1.8rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}
