:root {
  color-scheme: light;
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-subtle: #f4f7fa;
  --fg: #182230;
  --muted: #526070;
  --border: #c6d0dc;
  --border-strong: #8b9aab;
  --brand-bg: #26384b;
  --brand-text: #ffffff;
  --link: #1f5f99;
  --link-hover: #174a78;
  --action-bg: #1f5f99;
  --action-bg-hover: #174a78;
  --action-text: #ffffff;
  --accent-soft: #e4eff8;
  --danger: #b42318;
  --focus: #c06b00;
  --shadow: 0 10px 28px rgb(24 34 48 / 10%);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --container: 1120px;
  --step--1: clamp(0.94rem, 0.9rem + 0.18vw, 1rem);
  --step-0: clamp(1.05rem, 1rem + 0.25vw, 1.18rem);
  --step-2: clamp(1.55rem, 1.35rem + 0.8vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e151d;
    --surface: #17222d;
    --surface-subtle: #1f2c38;
    --fg: #eef4f8;
    --muted: #b8c2cd;
    --border: #445566;
    --border-strong: #718296;
    --brand-bg: #111e2a;
    --brand-text: #f7fafc;
    --link: #7dc1f4;
    --link-hover: #a8d8fa;
    --action-bg: #2f78b7;
    --action-bg-hover: #25689f;
    --action-text: #ffffff;
    --accent-soft: #1c3449;
    --danger: #ff9188;
    --focus: #ffd166;
    --shadow: 0 12px 34px rgb(0 0 0 / 30%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-shell {
  width: min(var(--container), calc(100% - 2rem));
  min-height: 100svh;
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--action-bg);
  color: var(--action-text);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--brand-bg);
  color: var(--brand-text);
  box-shadow: var(--shadow);
}

.header-content {
  min-height: 108px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--brand-text);
  text-decoration: none;
}

.brand:hover {
  color: var(--brand-text);
  text-decoration: none;
}

.brand img {
  width: 96px;
  height: 72px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 2px solid rgb(255 255 255 / 40%);
  border-radius: 12px;
}

.brand-copy {
  min-width: 0;
}

.brand-kicker {
  margin: 0 0 0.1rem;
  color: #cdd8e4;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand h1 {
  margin: 0;
  color: var(--brand-text);
  font-size: var(--step-2);
  line-height: 1.2;
}

.primary-action,
button {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  padding: 0.65rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--action-bg);
  color: var(--action-text);
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 80ms ease;
}

.primary-action:hover,
button:hover {
  background: var(--action-bg-hover);
  color: var(--action-text);
  text-decoration: none;
}

.primary-action:active,
button:active {
  transform: translateY(1px);
}

.site-main {
  flex: 1;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.news-list {
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.news-item {
  position: relative;
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item.latest {
  border-left: 5px solid var(--action-bg);
  background: var(--accent-soft);
}

.news-date {
  color: var(--muted);
  font-weight: 750;
}

.news-date time {
  display: block;
}

.news-badge {
  width: fit-content;
  margin-top: 0.4rem;
  padding: 0.12rem 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--fg);
  background: var(--surface);
  font-size: 0.78em;
  font-weight: 750;
}

.news-text {
  min-width: 0;
}

.document-links {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.document-link {
  min-height: 42px;
  padding: 0.35rem 0.75rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--link);
  font-size: var(--step--1);
  font-weight: 750;
  text-decoration: none;
}

.document-link::before {
  content: "↗";
  margin-right: 0.4rem;
  font-size: 0.9em;
}

.document-link:hover {
  border-color: var(--link);
  background: var(--surface-subtle);
  text-decoration: underline;
}

.site-footer {
  margin-top: auto;
  padding: 1.5rem clamp(1rem, 4vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--brand-bg);
  color: #dce5ee;
  text-align: center;
}

.site-footer p {
  max-width: 860px;
  margin: 0.45rem auto;
  font-size: var(--step--1);
}

.site-footer a {
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 1rem, var(--container));
    padding-block: 0.5rem;
  }

  .header-content {
    min-height: 92px;
    padding: 0.8rem;
    gap: 0.75rem;
  }

  .brand {
    gap: 0.7rem;
  }

  .brand img {
    width: 70px;
    height: 58px;
  }

  .brand-kicker {
    display: none;
  }

  .brand h1 {
    max-width: 11rem;
    font-size: clamp(1.1rem, 4.6vw, 1.4rem);
  }

  .primary-action {
    min-height: 46px;
    padding-inline: 0.85rem;
    font-size: 0.95rem;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 1.1rem;
  }

  .news-date {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .news-badge {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .header-content {
    align-items: stretch;
    flex-direction: column;
  }

  .brand h1 {
    max-width: none;
  }

  .primary-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  :root {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #ffffff;
    --fg: #000000;
    --muted: #333333;
    --border: #777777;
  }

  .site-shell {
    width: 100%;
  }

  .site-header,
  .site-footer,
  .document-links {
    display: none;
  }

  .news-list {
    box-shadow: none;
  }
}
