:root {
  color-scheme: light;
  --blue: #1165a8;
  --blue-dark: #0a3f6b;
  --sky: #eaf5fb;
  --ink: #17212b;
  --muted: #647381;
  --line: #d7e1e8;
  --paper: #fff;
  --canvas: #f3f6f8;
  --shadow: 0 18px 50px rgba(26, 54, 75, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); scroll-behavior: smooth; }
body { overflow-x: hidden; margin: 0; min-width: 320px; color: var(--ink); background: linear-gradient(180deg, #fff 0 9rem, var(--canvas) 22rem); }
a { color: var(--blue); text-underline-offset: .18em; }
img { display: block; max-width: 100%; height: auto; }

.skip-link { position: fixed; z-index: 20; top: -5rem; left: 1rem; padding: .75rem 1rem; color: #fff; background: var(--blue-dark); }
.skip-link:focus { top: 1rem; }

.site-header { color: #fff; background: linear-gradient(120deg, #092f4e, #1165a8 62%, #258cc4); box-shadow: 0 2px 14px rgba(8, 41, 66, .22); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: min(1180px, calc(100% - 2rem)); min-height: 92px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; }
.brand > span:last-child { display: grid; }
.brand strong { font-size: 1.15rem; letter-spacing: .01em; }
.brand small { margin-top: .1rem; color: #bce3f7; font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.brand-mark { position: relative; display: block; width: 43px; height: 48px; border: 2px solid rgba(255,255,255,.92); border-radius: 3px; }
.brand-mark::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(255,255,255,.6); transform: translateX(-50%); }
.brand-mark i { position: absolute; top: 5px; bottom: 5px; width: 13px; background: rgba(255,255,255,.92); }
.brand-mark i:first-child { left: 5px; }
.brand-mark i:last-child { right: 5px; }
.primary-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.primary-nav a { padding: .7rem .75rem; border-radius: .25rem; color: #eef9ff; font-size: .84rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: #fff; background: rgba(255,255,255,.13); }

.notice { overflow-wrap: anywhere; width: min(1180px, calc(100% - 2rem)); margin: 1rem auto 0; padding: .7rem 1rem; color: #314452; background: var(--sky); border: 1px solid #c9e6f4; border-radius: .35rem; font-size: .82rem; line-height: 1.5; text-align: center; }
.site-main { width: min(1180px, calc(100% - 2rem)); margin: 1rem auto 2rem; }
.content-card { overflow: hidden; min-height: 28rem; background: var(--paper); border: 1px solid var(--line); border-radius: .45rem; box-shadow: var(--shadow); }
.page-heading { position: relative; overflow: hidden; padding: clamp(1.7rem, 5vw, 3.4rem) clamp(1.25rem, 5vw, 3.4rem); color: #fff; background: linear-gradient(125deg, var(--blue-dark), var(--blue)); }
.page-heading::after { content: ""; position: absolute; width: 280px; height: 280px; right: -80px; top: -170px; border: 42px solid rgba(255,255,255,.08); border-radius: 50%; }
.eyebrow { margin: 0 0 .45rem; color: #bde5f8; font-size: .73rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.page-heading h1 { position: relative; z-index: 1; max-width: 920px; margin: 0; overflow-wrap: anywhere; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.025em; }
.archive-content { overflow: hidden; min-width: 0; padding: clamp(1.25rem, 5vw, 3.5rem); overflow-wrap: anywhere; }
.archive-content * { min-width: 0; }
.archive-content > :first-child { margin-top: 0; }
.archive-content > :last-child { margin-bottom: 0; }
.archive-content h2, .archive-content h3, .archive-content h4 { color: #153a55; line-height: 1.25; }
.archive-content h2 { margin-top: 1.8rem; font-size: clamp(1.35rem, 3vw, 1.85rem); }
.archive-content h3 { margin-top: 1.4rem; font-size: 1.2rem; }
.archive-content p, .archive-content li, .archive-content td { color: #33434f; font-size: 1rem; line-height: 1.75; }
.archive-content ul, .archive-content ol { padding-left: 1.4rem; }
.archive-content blockquote { margin: 1.5rem 0; padding: .75rem 1.2rem; border-left: 4px solid var(--blue); background: var(--sky); }
.archive-content img { margin: 1.4rem auto; border: 1px solid var(--line); border-radius: .35rem; background: #eef3f6; box-shadow: 0 10px 24px rgba(23, 55, 75, .09); }
.archive-content table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; }
.archive-content td, .archive-content th { padding: .6rem .7rem; border: 1px solid var(--line); }
.archive-content a { overflow-wrap: anywhere; }
.archive-content .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.archive-content .gallery img { width: 100%; margin: 0; aspect-ratio: 4 / 3; object-fit: cover; }
.button { display: inline-block; padding: .7rem 1rem; border-radius: .3rem; color: #fff !important; background: var(--blue); text-decoration: none; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem 2rem; width: min(1180px, calc(100% - 2rem)); margin: 0 auto 2rem; padding: 1.3rem 1.5rem; color: #d4e4ee; background: #102f44; border-radius: .4rem; }
.site-footer > div { display: grid; gap: .2rem; }
.site-footer span, .site-footer small { color: #9eb8c9; font-size: .75rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.site-footer a { color: #d8edf8; font-size: .8rem; text-decoration: none; }

@media (max-width: 900px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: .6rem; padding: 1rem 0; }
  .primary-nav { justify-content: flex-start; gap: .2rem; }
  .primary-nav a { padding: .5rem .55rem; font-size: .78rem; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-inner, .notice, .site-main, .site-footer { width: min(100% - 1rem, 1180px); }
  .brand-mark { width: 36px; height: 40px; }
  .brand strong { font-size: 1rem; }
  .primary-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .primary-nav a { border: 1px solid rgba(255,255,255,.13); }
  .notice { font-size: .76rem; }
  .archive-content { padding: 1.1rem; }
  .archive-content p, .archive-content li, .archive-content td { font-size: .95rem; line-height: 1.68; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
