:root {
  color-scheme: light;
  --navy: #06234a;
  --navy-2: #0b3768;
  --blue: #057fba;
  --cyan: #18c0dc;
  --mint: #96edd0;
  --paper: #ffffff;
  --soft: #f1f7fc;
  --line: #c8deee;
  --muted: #4d6784;
  --warning: #fff7dc;
  --warning-line: #c98900;
  --shadow: 0 18px 48px rgba(6, 35, 74, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(200, 222, 238, 0.85);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner,
.content-shell,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
}

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.main-nav a,
.language-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.language-nav a:hover,
.language-nav a:focus-visible,
.language-nav a[aria-current="page"] {
  background: #e8f6fc;
  color: #006b9c;
  outline: none;
}

.language-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.language-nav a {
  min-width: 44px;
}

.portal-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 11px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.content-shell {
  padding: 34px 0 72px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-underline-offset: 3px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid #75cae8;
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(24, 192, 220, 0.17), transparent 30%),
    linear-gradient(135deg, #fff 0%, #f4fffc 100%);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: #007dab;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.hero-lede {
  max-width: 850px;
  margin-bottom: 0;
  color: #274f72;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}

.update-line {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  margin-top: 28px;
}

.article-main {
  min-width: 0;
}

.content-card {
  margin-bottom: 20px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 10px 34px rgba(6, 35, 74, 0.05);
}

.content-card h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.content-card p,
.content-card li,
.content-table {
  font-size: 15.5px;
}

.content-card ul,
.content-card ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.content-card li + li {
  margin-top: 9px;
}

.notice {
  border-left: 5px solid var(--warning-line);
  background: var(--warning);
}

.notice strong {
  display: block;
  margin-bottom: 5px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.content-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}

.content-table th,
.content-table td {
  padding: 15px 17px;
  border-bottom: 1px solid #dbe8f2;
  text-align: left;
  vertical-align: top;
}

.content-table th {
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.content-table tr:last-child td {
  border-bottom: 0;
}

.side-panel {
  position: sticky;
  top: 104px;
  align-self: start;
  padding: 22px;
  border: 1px solid #78d5e6;
  border-radius: 20px;
  background: linear-gradient(145deg, #092954, #061b38);
  color: #fff;
  box-shadow: var(--shadow);
}

.side-panel h2 {
  font-size: 21px;
  line-height: 1.25;
}

.side-panel p {
  color: #d8ebf7;
  font-size: 14px;
}

.button-stack {
  display: grid;
  gap: 10px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid #65d7ef;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  color: #04264e;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: #fff;
}

.related {
  margin-top: 34px;
}

.related h2 {
  font-size: 28px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
}

.related-card strong {
  font-size: 18px;
  line-height: 1.35;
}

.related-card span {
  color: #007ba9;
  font-size: 14px;
  font-weight: 850;
}

.site-footer {
  padding: 44px 0;
  background: #061b38;
  color: #d8ebf7;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(190px, 0.8fr) minmax(220px, 1fr);
  gap: 28px;
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  font-size: 14px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 4px;
}

.footer-links h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 3px;
}

@media (max-width: 1040px) {
  .main-nav {
    display: none;
  }

  .language-nav {
    margin-left: auto;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 76px;
  }

  .header-inner,
  .content-shell,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 68px;
    gap: 8px;
  }

  .brand span,
  .portal-link {
    display: none;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .language-nav a {
    padding-inline: 8px;
  }

  .content-shell {
    padding-top: 20px;
  }

  .page-hero {
    border-radius: 20px;
  }

  h1 {
    font-size: 36px;
  }

  .content-card {
    border-radius: 18px;
  }

  .related-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .side-panel {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 9px 12px;
    border: 0;
    border-radius: 0;
  }

  .side-panel h2,
  .side-panel p {
    display: none;
  }

  .button-stack {
    display: contents;
  }

  .button {
    min-height: 52px;
  }
}
