:root {
  --bg: #f5f8fc;
  --card: #ffffff;
  --text: #12324d;
  --muted: #58728b;
  --primary: #123f66;
  --accent: #2fa3e6;
  --border: #d7e4f1;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eff5fb 0%, #f8fbff 100%);
  line-height: 1.65;
  overflow-x: clip;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 24px; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215,228,241,.72);
}
.topbar .wrap {
  max-width: 1280px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:0 32px;
  min-height: 80px;
}
.topbar-inner { min-height: 80px; }
.guide-main-nav {
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 24px;
  min-width: 0;
  flex: 1 1 auto;
}
.guide-main-nav > a {
  color: #4D6A82;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: color .16s ease;
}
.guide-main-nav > a:hover {
  color: var(--primary);
}
.topbar-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin-left:auto;
}
.topbar-actions > * + * {
  position: relative;
  margin-left: 0;
}
.topbar-actions > * + *::before {
  display: none;
}
.brand { display:flex; align-items:center; gap:12px; font-weight:800; letter-spacing:.2px; }
.topbar .brand span {
  display: inline;
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.brand img { height:48px; width:auto; object-fit: contain; }
.btn {
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 12px; padding: 10px 16px; font-weight:600;
  border:1px solid var(--border); background:#fff;
}
.topbar .btn {
  min-height: 40px;
  border: 1px solid #c4d8ea;
  background: #fff;
  border-radius: 16px;
  color: var(--primary);
  padding: 8px 20px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(18,63,102,.08);
}
.topbar .btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18,63,102,.24);
}
.topbar .btn:hover {
  color: var(--primary);
  border-color: #afcbe4;
  background: #f6fbff;
}
.topbar .btn-primary:hover {
  color: #fff;
  border-color: #0f3557;
  background: #0f3557;
}
.guide-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #4D6A82;
  cursor: pointer;
}
.guide-menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.guide-menu-toggle:hover,
.guide-menu-toggle[aria-expanded="true"] {
  background: #f4f9ff;
  color: var(--primary);
}
.guide-mobile-menu {
  border-top: 1px solid rgba(215,228,241,.72);
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 32px rgba(18,63,102,.12);
  padding: 12px 24px 18px;
}
.guide-mobile-menu[hidden] { display: none; }
.guide-mobile-menu a {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 4px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
}
.guide-mobile-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.guide-mobile-actions .btn {
  justify-content: center;
  padding: 10px 14px;
}
.btn.primary { background: var(--primary); border-color: var(--primary); color:#fff; }
.btn.primary:hover { background:#0f3557; color:#fff; }
.hero {
  margin-top: 24px;
  display:grid; grid-template-columns: 1.2fr .8fr; gap:24px;
  background: rgba(255,255,255,.75);
  border:1px solid var(--border);
  border-radius: 20px; overflow:hidden;
  box-shadow: 0 18px 45px rgba(18,63,102,.08);
}
.hero .copy { padding: 34px; }
.hero h1 { margin: 0 0 14px; font-size: 2.15rem; line-height:1.12; }
.hero p { margin:0; color:var(--muted); }
.hero .meta { margin-top: 18px; display:flex; gap:10px; flex-wrap:wrap; }
.pill { background:#eaf4ff; color:#1b4c74; border:1px solid #c6ddf0; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:600; }
.hero .cover img {
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}
.category-selector-wrap {
  position: relative;
  z-index: 36;
  background: transparent;
  border: 0;
}
.category-selector-row {
  display: block;
  padding: 0;
}
.category-menu {
  position: relative;
  z-index: 2;
}
.guide-nav-category {
  flex: 0 0 auto;
  margin-left: 2px;
  padding-left: 18px;
  border-left: 1px solid #d7e4f1;
}
.category-trigger {
  appearance: none;
  min-width: 0;
  min-height: 40px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 0;
  background: transparent;
  color: #4D6A82;
  border-radius: 10px;
  padding: 8px 6px;
  font: inherit;
  cursor: pointer;
  box-shadow: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.category-trigger:hover,
.category-trigger[aria-expanded="true"] {
  color: var(--primary);
  background: transparent;
  box-shadow: none;
}
.category-trigger:focus {
  outline: none;
}
.category-trigger:focus-visible {
  outline: 2px solid rgba(47,163,230,.22);
  outline-offset: 2px;
}
.category-trigger-kicker {
  grid-column: 1;
  color: #2a9adf;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1;
  text-transform: uppercase;
}
.category-trigger-label {
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.category-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 999px;
  background: transparent;
  position: relative;
}
.category-chevron::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.category-trigger[aria-expanded="true"] .category-chevron::before {
  top: 7px;
  transform: rotate(225deg);
}
.category-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(318px, calc(100vw - 48px));
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(18,63,102,.12);
}
.category-option {
  appearance: none;
  width: 100%;
  display: grid;
  gap: 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: 11px 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.category-option strong {
  color: var(--primary);
  font-size: 14px;
  line-height: 1.2;
}
.category-option span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.category-option:hover,
.category-option.is-active {
  background: #eff7ff;
}
.category-option.is-active strong {
  color: #0f3557;
}
.guide-section[hidden] { display: none; }
.guide-section { margin-top: 28px; }
.guide-section + .guide-section { margin-top: 42px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.section-head h2 {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 1.55rem;
  line-height: 1.15;
}
.section-head p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
}
.section-tag {
  flex: 0 0 auto;
  border: 1px solid #c6ddf0;
  background: #eaf4ff;
  color: #1b4c74;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:18px; }
.card {
  background:#fff; border:1px solid var(--border); border-radius:16px; overflow:hidden;
  box-shadow:0 8px 22px rgba(18,63,102,.06);
  display:flex; flex-direction:column;
}
.card img {
  width:100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}
.card .body { padding:16px; }
.card h3 { margin:0 0 8px; font-size:1.15rem; line-height:1.3; }
.card p { margin:0 0 12px; color:var(--muted); }
.read { display:inline-flex; gap:8px; align-items:center; font-weight:700; }
.article {
  max-width: 940px; margin: 22px auto; background:#fff; border:1px solid var(--border);
  border-radius: 16px; box-shadow:0 10px 28px rgba(18,63,102,.08); overflow:hidden;
}
.article .head { padding: 28px 30px 0; }
.article .cover { margin:18px 30px 0; border-radius: 14px; overflow:hidden; border:1px solid var(--border); }
.article .cover img { width:100%; height:420px; object-fit:cover; display:block; }
.article .content { padding: 26px 30px 32px; }
.article h1 { margin: 0 0 10px; line-height:1.15; }
.article h2 { margin: 28px 0 10px; }
.article h3 { margin: 20px 0 8px; }
.article p, .article li { color:#2f4d68; }
.article p, .article li, .article h1, .article h2, .article h3, .small { overflow-wrap: anywhere; }
.article ul, .article ol { padding-left: 22px; }
.note {
  border:1px solid #c8dcf0; background:#eff7ff; border-radius:12px; padding:12px 14px; color:#274b6b;
}
.screen-figure {
  margin: 24px 0;
  border: 1px solid #c8dcf0;
  border-radius: 14px;
  overflow: hidden;
  background: #f6fbff;
  box-shadow: 0 10px 26px rgba(18,63,102,.08);
}
.screen-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.screen-figure figcaption {
  border-top: 1px solid #d7e6f3;
  padding: 10px 14px;
  color: #58728b;
  font-size: .92rem;
  line-height: 1.45;
  background: #fff;
}
.steps {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
  counter-reset: sidnej-step;
}
.steps li {
  counter-increment: sidnej-step;
  position: relative;
  padding: 12px 12px 12px 54px;
  border: 1px solid #d7e6f3;
  border-radius: 12px;
  background: #f8fbff;
  min-height: 54px;
}
.steps li::before {
  content: counter(sidnej-step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #123f66;
  color: #fff;
  font-weight: 800;
  line-height: 1;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin: 16px 0;
}
.feature-grid > div {
  border: 1px solid #d7e6f3;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
}
.feature-grid strong {
  display: block;
  color: #123f66;
  margin-bottom: 4px;
}
.tbl { width:100%; border-collapse: collapse; margin: 14px 0; }
.tbl th, .tbl td { border:1px solid #dbe8f4; padding:10px; text-align:left; vertical-align:top; }
.tbl th { background:#f2f8ff; }
.kicker { color:#2a9adf; font-size:12px; font-weight:800; letter-spacing:.9px; text-transform:uppercase; }
.small { color: #6a8198; font-size: .92rem; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .topbar .wrap { flex-wrap: wrap; gap: 12px; padding: 10px 24px; }
  .topbar-inner { min-height: 72px; }
  .guide-main-nav { display: none; }
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .guide-menu-toggle { display: none; }
  .category-selector-wrap { flex: 1 1 210px; min-width: 0; }
  .category-menu, .category-trigger { width: 100%; }
  .category-trigger { min-width: 0; }
  .category-menu-list { left: 0; right: auto; width: 100%; }
  .section-head { display: block; }
  .section-tag { display: inline-flex; margin-top: 10px; }
  .article .cover img { height:300px; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .topbar .wrap { gap: 10px; padding: 0 16px; }
  .brand img { height:42px; }
  .topbar-actions { gap: 0; }
  .topbar-actions > * + * {
    margin-left: 10px;
  }
  .topbar-actions > * + *::before {
    left: -5px;
    top: 8px;
    bottom: 8px;
  }
  .category-selector-wrap { flex-basis: 0; }
  .category-trigger {
    min-height: 44px;
    justify-content: flex-start;
    padding: 9px 4px;
  }
  .category-trigger-kicker { display: none; }
  .category-trigger-label {
    font-size: 13px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .category-chevron {
    grid-row: 1;
    align-self: center;
  }
  .topbar-actions .btn {
    min-height: 44px;
    padding: 9px 11px;
    font-size: 14px;
    line-height: 1.1;
    white-space: nowrap;
  }
  .category-menu-list {
    width: min(290px, calc(100vw - 48px));
  }
}

.crumbs {
  max-width: 1080px;
  margin: 18px auto 0;
  padding: 0 24px;
  color: #6a8198;
  font-size: .92rem;
}
.crumbs a { color: #4d6b88; }
.article-layout {
  max-width: 1180px;
  margin: 10px auto 24px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(260px, 300px);
  gap: 24px;
  align-items: start;
}
.article-layout aside,
.article-layout .guide-sidebar {
  min-width: 0;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #b9cfe3 transparent;
}
.article {
  max-width: none;
  margin: 0;
}
.sidebar-box {
  position: static;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 20px rgba(18,63,102,.06);
  overflow: hidden;
}
.sidebar-box + .sidebar-box { margin-top: 12px; }
.sidebar-box h4 {
  margin: 0 0 10px;
  font-size: .95rem;
  color: #123f66;
}
.guide-toc-box {
  border-color: #cfe0ef;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.guide-toc-box h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: .86rem;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.guide-toc-box h4::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2fa3e6;
  box-shadow: 0 0 0 5px rgba(47,163,230,.12);
}
.toc-list, .mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc-list li, .mini-list li { margin: 0 0 8px; }
.guide-toc-box .toc-list li:last-child { margin-bottom: 0; }
.toc-list a, .mini-list a {
  color: #355875;
  font-size: .9rem;
  line-height: 1.4;
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
}
.guide-toc-box .toc-list a {
  color: #274b6b;
  font-weight: 650;
}
.mini-list a:hover, .toc-list a:hover {
  color: #2fa3e6;
  background: #f3f9ff;
}
.toc-list {
  max-height: min(50vh, 420px);
  overflow: auto;
  padding-right: 2px;
}
.mini-list {
  max-height: min(36vh, 320px);
  overflow: auto;
  padding-right: 2px;
}
.cta-mini {
  border: 1px solid #cfe2f2;
  border-radius: 12px;
  background: #f4f9ff;
  padding: 12px;
}
.cta-mini p { margin: 0 0 10px; color: #32526f; font-size: .9rem; }
.more-articles {
  margin-top: 24px;
  border-top: 1px solid #deebf6;
  padding-top: 20px;
}
.more-articles h3 { margin: 0 0 12px; color: #123f66; }
.more-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
.more-card {
  border: 1px solid #dce9f5;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.more-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}
.more-card .b { padding: 10px; }
.more-card .b a {
  font-weight: 700;
  color: #123f66;
  font-size: .9rem;
  display: block;
  min-height: 2.7em;
}
.more-card .b p { margin: 5px 0 0; color: #56718a; font-size: .82rem; line-height: 1.35; }
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 2px;
}
.meta-pill {
  border: 1px solid #d5e5f2;
  border-radius: 999px;
  background: #f4f9ff;
  color: #345b7a;
  font-size: .8rem;
  padding: 4px 10px;
}
.guide-footer {
  margin-top: 42px;
  border-top: 1px solid #d7e4f1;
  background: linear-gradient(180deg, rgba(255,255,255,.72), #edf5fc);
  color: #385b78;
}
.guide-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 24px;
}
.guide-footer-brand {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(166, 196, 222, .55);
}
.guide-footer-brand img {
  width: 160px;
  height: auto;
  display: block;
}
.guide-footer-brand p {
  margin: 0;
  max-width: 760px;
  color: #486a85;
  line-height: 1.6;
}
.guide-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 24px 0;
}
.guide-footer-nav h2 {
  margin: 0 0 10px;
  color: #123f66;
  font-size: .82rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.guide-footer-nav a {
  display: block;
  width: fit-content;
  margin: 7px 0;
  color: #365f81;
  font-weight: 650;
  line-height: 1.35;
}
.guide-footer-nav a:hover { color: #2a9adf; }
.guide-footer-note {
  border: 1px solid #cddfed;
  border-radius: 14px;
  background: rgba(255,255,255,.68);
  padding: 14px 16px;
  color: #526f88;
  font-size: .86rem;
  line-height: 1.55;
}
.guide-footer-note strong { color: #123f66; }
.guide-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  color: #607d96;
  font-size: .84rem;
}
@media (max-width: 1100px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-layout aside {
    order: -1;
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .more-grid { grid-template-columns: 1fr; }
  .toc-list, .mini-list { max-height: none; }
}
@media (max-width: 760px) {
  .guide-footer { margin-top: 30px; }
  .guide-footer-inner { padding: 28px 24px 22px; }
  .guide-footer-brand {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .guide-footer-brand img { width: 142px; }
  .guide-footer-nav {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .guide-footer-bottom {
    display: grid;
    gap: 6px;
  }
}
