:root {
  --ink: #08345c;
  --ink-soft: #35566f;
  --teal: #079ca5;
  --teal-dark: #057a83;
  --aqua: #e7f8fb;
  --sky: #f2fbfd;
  --line: #dbe8ec;
  --card: #ffffff;
  --muted: #6e8391;
  --footer: #07345a;
  --shadow: 0 18px 55px rgba(7, 52, 90, 0.1);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 232, 236, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  line-height: 1;
}

.brand-mark {
  width: 48px;
  height: 48px;
}

.brand strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--teal);
  font-size: 16px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: #173f5f;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover,
.section-heading a:hover,
.archive-list a:hover {
  color: var(--teal);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 9px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-cta,
.button-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 24px rgba(7, 156, 165, 0.22);
}

.button-secondary {
  border: 1px solid #9bd2d8;
  color: var(--teal-dark);
  background: #fff;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 44px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 500px;
  margin: 0 auto;
  padding: 34px 0 18px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(58px, 6vw, 82px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy h1 span {
  color: var(--teal);
}

.hero-copy p {
  max-width: 470px;
  margin: 20px 0 16px;
  color: #415f72;
  font-size: 21px;
  line-height: 1.35;
}

.hero-checks {
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  color: #2f5369;
  font-weight: 650;
  list-style: none;
}

.hero-checks li {
  position: relative;
  padding-left: 30px;
}

.hero-checks li::before {
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  content: "✓";
  font-size: 12px;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-media {
  position: relative;
  min-height: 450px;
}

.hero-media::before {
  position: absolute;
  inset: 34px 18px 0 42px;
  border-radius: 46% 54% 48% 52%;
  background: radial-gradient(circle at 30% 28%, #dff6fb 0 24%, transparent 25%), linear-gradient(135deg, #e9f9fd, #f8fdff);
  content: "";
}

.hero-media img {
  position: relative;
  z-index: 1;
  width: min(545px, 100%);
  margin-left: auto;
  filter: drop-shadow(0 22px 40px rgba(18, 72, 105, 0.16));
}

.notice-card {
  position: absolute;
  right: 0;
  bottom: 42px;
  z-index: 2;
  width: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.notice-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
}

.notice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.help-section,
.topic-index,
.listing-page,
.article-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.help-section {
  padding: 10px 0 26px;
}

.help-section h2,
.section-heading h2,
.topic-index h2,
.listing-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  text-align: center;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.help-card,
.post-card a {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(7, 52, 90, 0.05);
}

.help-card {
  padding: 24px;
}

.help-card .icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border-radius: 13px;
  color: var(--teal);
  border: 1px solid #b7e3e8;
  font-size: 28px;
  font-weight: 800;
}

.help-card h3 {
  margin: 0 0 8px;
  color: #143b5c;
  font-size: 18px;
  line-height: 1.2;
}

.help-card p {
  min-height: 72px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.help-card small,
.post-card em,
.section-heading a {
  color: var(--teal-dark);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, 100%);
  margin: 0 auto 26px;
}

.section-heading h2 {
  text-align: left;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.post-card {
  min-width: 0;
}

.post-card a {
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.post-card img {
  width: 100%;
  aspect-ratio: 1.9 / 1;
  object-fit: cover;
  background: #dff5f8;
}

.post-card-body {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 18px;
}

.post-card strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.post-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.post-card em {
  align-self: end;
}

.topic-index {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  align-items: center;
  padding: 56px 0;
}

.topic-index h2 {
  text-align: left;
}

.topic-index p,
.listing-header p {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.topic-pills a {
  border: 1px solid #a9dce2;
  border-radius: 999px;
  padding: 10px 17px;
  color: var(--teal-dark);
  background: #f8fdfe;
  font-weight: 800;
}

.site-footer {
  margin-top: 24px;
  background: var(--footer);
  color: #d7e9ef;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 28px;
}

.footer-brand span {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.05;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 7px 0;
  color: #d7e9ef;
  font-size: 14px;
}

.copyright {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 26px;
  color: #9fc5cf;
  font-size: 13px;
}

.listing-page {
  min-height: 58vh;
  padding: 54px 0 72px;
}

.listing-header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.listing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-list {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.archive-list article {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.archive-list a {
  display: block;
  color: var(--ink);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.2;
}

.archive-list span {
  color: var(--muted);
  font-size: 13px;
}

.archive-list p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.article-page {
  padding: 34px 0 76px;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 38px;
  align-items: center;
  min-height: 420px;
  margin-bottom: 42px;
  padding: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2fbfd 0%, #ffffff 64%);
  border: 1px solid #dbecef;
  box-shadow: 0 18px 50px rgba(7, 52, 90, 0.08);
}

.article-hero h1 {
  max-width: 780px;
  margin: 12px 0 16px;
  color: var(--ink);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.article-hero p {
  max-width: 680px;
  margin: 0;
  color: #476679;
  font-size: 20px;
}

.article-hero img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.back-link {
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 850;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.article-meta span {
  border: 1px solid #b7e3e8;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--teal-dark);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 58px;
  align-items: start;
  justify-content: center;
}

.article-content {
  color: #183f5b;
  font-size: 19px;
}

.article-content h2 {
  margin: 42px 0 12px;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.15;
}

.article-content p,
.article-content ul,
.article-content ol {
  margin: 0 0 20px;
}

.article-content li {
  margin: 8px 0;
}

.article-content strong {
  color: var(--ink);
}

.article-aside {
  position: sticky;
  top: 102px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(7, 52, 90, 0.07);
}

.article-aside h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.article-aside p {
  color: var(--muted);
  font-size: 14px;
}

.article-aside a {
  color: var(--teal-dark);
  font-weight: 850;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero,
  .topic-index,
  .article-hero,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 38px;
  }

  .hero-media {
    min-height: 430px;
  }

  .help-grid,
  .post-grid,
  .listing-grid,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-pills {
    justify-content: flex-start;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 24px, 1180px);
    min-height: 66px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand small {
    font-size: 14px;
  }

  .header-cta {
    display: none;
  }

  .hero,
  .help-section,
  .topic-index,
  .listing-page,
  .article-page {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy h1 {
    font-size: 58px;
  }

  .hero-copy p {
    font-size: 19px;
  }

  .hero-media {
    min-height: 350px;
  }

  .notice-card {
    right: 10px;
    bottom: 4px;
    width: min(230px, calc(100% - 20px));
  }

  .help-grid,
  .post-grid,
  .listing-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-hero {
    padding: 24px;
  }

  .article-content {
    font-size: 17px;
  }
}
