@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --red: #D51522;
  --red-600: #B0101B;
  --navy: #17273B;
  --navy-700: #22384F;
  --apricot: #FFE2B5;
  --page: #F6FAFF;
  --card: #FFFFFF;
  --toolbar: #F4F4F4;
  --line: #E2E2E2;
  --muted: #405572;
  --head-h: 100px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  padding-top: var(--head-h);
  padding-bottom: 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(23, 39, 59, 0.90);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
.site-head__bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.site-head__bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 30px; }
.site-head__bar p {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
}
.site-head__bar strong { color: #fff; font-weight: 600; }
.site-head__row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}
.brand span b { color: var(--apricot); font-weight: 800; }

.head-nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.head-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.head-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.head-nav a.is-active { color: #fff; border-bottom-color: var(--red); }

.head-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(213, 21, 34, 0.28); }
.btn--red:hover { background: var(--red-600); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, 0.10); color: #fff; border-color: rgba(255, 255, 255, 0.26); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* dropdown */
.dropdown { position: relative; }
.dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.dropdown__trigger:hover { background: rgba(255, 255, 255, 0.16); }
.dropdown__trigger i { font-size: 17px; }
.dropdown__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 430px;
  display: none;
  background: rgba(23, 39, 59, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 24px 50px rgba(9, 18, 30, 0.38);
}
.dropdown.is-open .dropdown__panel { display: block; }
.dropdown__panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.dropdown__panel a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13.5px;
  font-weight: 500;
}
.dropdown__panel a:hover { background: rgba(213, 21, 34, 0.9); color: #fff; text-decoration: none; }
.dropdown__panel a i { font-size: 15px; color: var(--apricot); }
.dropdown__panel a:hover i { color: #fff; }
.dropdown__foot {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- mobile bottom sheet nav ---------- */
.sheet-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(23, 39, 59, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.sheet-bar ul { list-style: none; margin: 0; padding: 0; display: flex; }
.sheet-bar li { flex: 1; }
.sheet-bar a, .sheet-bar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-height: 50px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
}
.sheet-bar i { font-size: 19px; }
.sheet-bar a.is-active, .sheet-bar a:hover, .sheet-bar button:hover { color: #fff; text-decoration: none; }
.sheet-bar a.is-active { color: var(--apricot); }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}
.sheet.is-open { display: block; }
.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 30, 0.5);
  border: 0;
  padding: 0;
  width: 100%;
}
.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 86vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(23, 39, 59, 0.96);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
  color: #fff;
  animation: sheetUp 0.24s ease-out;
}
@keyframes sheetUp { from { transform: translateY(18px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
.sheet__grip { width: 42px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.3); margin: 4px auto 12px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sheet__head h2 { font-family: var(--font-head); font-size: 16px; margin: 0; color: #fff; }
.sheet__close {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.10);
  color: #fff; font-size: 19px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.sheet__group { margin-top: 16px; }
.sheet__group h3 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 8px;
  font-weight: 700;
}
.sheet__group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sheet__group a {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 10px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff; font-size: 13.5px; font-weight: 500;
}
.sheet__group a:hover { background: rgba(255, 255, 255, 0.16); text-decoration: none; }
.sheet__group a i { font-size: 15px; color: var(--apricot); }
.sheet__cta { margin-top: 18px; display: grid; gap: 8px; }
.sheet__cta .btn { width: 100%; }
.sheet__note { margin: 12px 0 0; font-size: 11.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.5; }

/* ---------- article page ---------- */
.page { padding: 26px 0 64px; }

.breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: '/'; color: #B7C2D0; }
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current] { color: var(--navy); font-weight: 600; }

.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 36px 38px;
  max-width: 860px;
  box-shadow: 0 2px 10px rgba(23, 39, 59, 0.05);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(213, 21, 34, 0.09);
  color: var(--red);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 6px;
}
.article h1 {
  font-family: var(--font-head);
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 14px 0 0;
  color: var(--navy);
}
.lede {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0 0;
}
.article figure { margin: 24px 0; }
.article figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.article figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.article h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 32px 0 10px;
  color: var(--navy);
  scroll-margin-top: 130px;
}
.article h3 {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--navy);
}
.article p { margin: 0 0 14px; color: #23384F; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; color: #23384F; }
.article li { margin-bottom: 7px; }
.article li::marker { color: var(--red); }
.article a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; text-decoration-color: rgba(213, 21, 34, 0.4); }
.article a:hover { text-decoration-color: var(--red); }
.article strong { font-weight: 700; color: var(--navy); }

.note {
  background: var(--apricot);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 22px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #4A3415;
}
.note strong { color: #3A280F; }
.note i { color: var(--red); }

.checklist {
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  background: #FBFDFF;
  padding: 18px 20px;
  margin: 22px 0;
}
.checklist h2, .checklist h3 { margin-top: 0; }
.checklist ol, .checklist ul { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; min-width: 520px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--toolbar); color: var(--navy); font-weight: 700; font-size: 12.5px; letter-spacing: 0.02em; }
td { color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }

.pager {
  max-width: 860px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--navy);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.pager a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(23, 39, 59, 0.08); border-color: #CBD6E2; }
.pager span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.pager strong { font-family: var(--font-head); font-size: 15px; font-weight: 700; line-height: 1.35; }
.pager a:last-child { text-align: right; align-items: flex-end; }

.related {
  max-width: 860px;
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.related h2 { font-family: var(--font-head); font-size: 15px; margin: 0 0 10px; color: var(--navy); }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.related a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.related a i { color: var(--red); font-size: 15px; }
.related a:hover { color: var(--red); }

.article-cta {
  max-width: 860px;
  margin-top: 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.article-cta p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.72); max-width: 480px; }
.article-cta strong { display: block; font-family: var(--font-head); font-size: 17px; color: #fff; margin-bottom: 3px; }
.article-cta .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 48px;
  padding: 44px 0 26px;
}
.site-foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}
.site-foot h2 {
  font-family: var(--font-head);
  font-size: 13px;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-foot p { font-size: 13px; line-height: 1.7; margin: 10px 0 0; max-width: 320px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot ul a { color: rgba(255, 255, 255, 0.72); font-size: 13px; }
.site-foot ul a:hover { color: #fff; }
.site-foot .brand { font-size: 18px; margin-bottom: 4px; }
.site-foot .brand__mark { width: 30px; height: 30px; font-size: 16px; border-radius: 9px; }
.site-foot__base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 30px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
}
.site-foot__base a { color: rgba(255, 255, 255, 0.72); }

#backtop {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 70;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(23, 39, 59, 0.16);
}
#backtop.is-visible { display: inline-flex; }

@media (max-width: 1080px) {
  .head-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-foot__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 860px) {
  :root { --head-h: 66px; }
  body { padding-top: var(--head-h); padding-bottom: calc(74px + env(safe-area-inset-bottom)); font-size: 15.5px; }
  .site-head__bar { display: none; }
  .site-head__row { min-height: 64px; gap: 8px; }
  .brand { font-size: 16px; }
  .brand__mark { width: 30px; height: 30px; font-size: 16px; }
  .head-actions .btn--ghost { display: none; }
  .btn { min-height: 42px; padding: 0 16px; font-size: 13.5px; }
  .sheet-bar { display: block; }
  .wrap { padding: 0 16px; }
  .page { padding: 14px 0 40px; }
  .article { padding: 22px 18px 26px; border-radius: 14px; }
  .article h1 { font-size: 26px; }
  .lede { font-size: 15px; }
  .article h2 { font-size: 19px; margin-top: 26px; }
  .article figure img { height: 200px; }
  .pager { grid-template-columns: 1fr; }
  .pager a:last-child { text-align: left; align-items: flex-start; }
  .article-cta { flex-direction: column; align-items: flex-start; }
  .site-foot { padding: 34px 0 20px; margin-bottom: 0; }
  .site-foot__grid { grid-template-columns: 1fr; gap: 22px; }
  #backtop { bottom: calc(84px + env(safe-area-inset-bottom)); right: 14px; width: 42px; height: 42px; }
  body.is-locked { overflow: hidden; }
}

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