:root {
  --primary: #24344d;
  --primary-strong: #172033;
  --primary-soft: #eef3f8;
  --accent: #14b8a6;
  --accent-strong: #0f766e;
  --warning: #f59e0b;
  --ink: #172033;
  --muted: #64748b;
  --line: #d9e2ec;
  --surface: #ffffff;
  --page: #f5f7fb;
  --focus: #facc15;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--ink);
  line-height: 1.62;
}

a {
  color: var(--accent-strong);
}

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

.page-wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow-wrap {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: var(--primary);
  color: #ffffff;
  padding: 18px 0;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  border-radius: 10px;
  background: #ffffff;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.hero {
  padding: 52px 0 22px;
}

.article-layout {
  padding: 34px 0 58px;
}

.article-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 46px);
  box-shadow: 0 18px 54px rgba(36, 52, 77, 0.08);
}

.eyebrow,
.card-kicker {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 820px;
  color: var(--primary);
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin: 34px 0 10px;
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 22px 0 6px;
  font-size: 1.02rem;
  color: var(--ink);
}

p {
  margin: 0 0 14px;
}

.lead {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: #f0fdfa;
  border-radius: 6px;
}

.quick-summary {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--primary-soft);
}

.quick-summary h2 {
  margin-top: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}

.summary-item {
  min-height: 104px;
  padding: 14px;
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  background: #ffffff;
}

.summary-item dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-item dd {
  margin: 0;
  color: var(--primary-strong);
  font-weight: 700;
}

.conversion-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 26px 0;
  padding: 24px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
}

.conversion-panel.secondary {
  background: #0f766e;
}

.conversion-panel h2 {
  margin: 0 0 6px;
  color: #ffffff;
}

.conversion-panel p {
  margin: 0;
  color: #e5f3ff;
}

.conversion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #062f2d;
}

.btn.light {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--primary);
}

.content-nav {
  margin: 30px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.content-nav p {
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 800;
}

.content-nav ul,
.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-nav a,
.related-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.topic-section {
  scroll-margin-top: 22px;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.faq-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.faq-item h3 {
  margin-top: 0;
}

.related-box {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--primary-soft);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px 0 46px;
}

.listing-card {
  min-height: 240px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 46px rgba(36, 52, 77, 0.07);
}

.listing-card h2,
.listing-card h3 {
  margin-top: 0;
}

.listing-card h2 a,
.listing-card h3 a {
  color: var(--primary);
  text-decoration: none;
}

.listing-card h2 a:hover,
.listing-card h3 a:hover {
  color: var(--accent-strong);
}

.site-footer {
  padding: 28px 0;
  background: #e9eef5;
  color: var(--muted);
}

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

@media (max-width: 900px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .conversion-panel,
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .conversion-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .page-wrap,
  .narrow-wrap {
    width: min(100% - 28px, 1080px);
  }

  .article-layout {
    padding-top: 24px;
  }

  .article-shell,
  .quick-summary,
  .conversion-panel {
    padding: 18px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .btn,
  .header-link {
    width: 100%;
  }
}
