:root {
  color-scheme: light;
  --ink: #15253a;
  --muted: #52637a;
  --navy: #0b1728;
  --teal: #4de4be;
  --line: #dce5ee;
  --width: 1160px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #2787eb; outline-offset: 5px; }
.wrap { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 8px 16px; background: #fff; color: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.top { background: var(--navy); color: #fff; border-bottom: 1px solid #ffffff20; }
.top-inner { min-height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; white-space: nowrap; }
.brand strong { font-size: 34px; letter-spacing: -.075em; line-height: 1; font-weight: 850; }
.brand strong span { color: var(--teal); }
.brand > span { font-size: 14px; font-weight: 650; }
nav { display: flex; justify-content: flex-end; gap: 30px; margin-left: auto; color: #d0dbe8; font-size: 14px; }
nav a:hover, .footer a:hover { color: var(--teal); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 48px; padding: 10px 18px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; font-size: 14px; }
.button-nav { min-height: 40px; border-color: #ffffff47; flex: none; }
.button-nav:hover, .button-quiet:hover { border-color: var(--teal); }

.hero { background: radial-gradient(ellipse at 82% 18%, #19394b 0%, #0b1728 62%); color: #fff; }
.hero-inner { min-height: 560px; display: grid; grid-template-columns: 1.17fr 1fr; align-items: center; gap: clamp(34px, 6vw, 88px); padding-block: 76px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #afe5d9; font-weight: 700; font-size: 15px; }
.eyebrow span { width: 18px; height: 2px; background: var(--teal); }
.hero h1 { font-size: clamp(34px, 4.5vw, 66px); margin: 15px 0 22px; letter-spacing: -.045em; line-height: 1.17; font-weight: 800; }
.hero h1 span { color: var(--teal); }
.intro { max-width: 31em; color: #c2d1e1; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.85; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button-primary { background: var(--teal); color: #09291f; }
.button-primary:hover { background: #9bf1db; }
.button-quiet { color: #fff; border-color: #ffffff46; }

.route-card { min-width: 0; padding: 22px; background: #142438; border: 1px solid #426072; border-radius: 20px; box-shadow: 0 26px 70px #020a1477; }
.route-head, .route-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #b1c4d6; font-size: 12px; }
.route-head { padding: 0 1px 18px; }
.route-head i { display: inline-block; vertical-align: 1px; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--teal); }
.route-step { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; padding: 13px; margin-bottom: 10px; border: 1px solid #365066; border-radius: 10px; background: #1a2d43; }
.route-step strong, .route-step small { display: block; }
.route-step strong { color: #f4f9ff; font-size: 15px; }
.route-step small { color: #b8cadb; font-size: 12px; }
.route-key { text-align: center; line-height: 40px; border-radius: 7px; background: #29445d; color: #e3f1ff; font: 650 14px/40px ui-monospace, monospace; }
.route-arrow { color: #aeccdf; padding-inline: 4px; }
.route-active { background: #143a3d; border-color: #4de4be8c; }
.route-active .route-key { background: #236456; color: #dcfff6; }
.route-foot { margin-top: 16px; }

.section { padding-block: 64px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 25px; }
.overline { font-size: 14px; font-weight: 750; color: #0c6c60; margin-bottom: 4px; }
h2 { font-size: clamp(24px, 3vw, 37px); line-height: 1.25; letter-spacing: -.025em; }
.text-link { font-size: 14px; color: #0a635b; font-weight: 750; white-space: nowrap; }
.text-link:hover, .card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.guide-card { display: flex; align-items: flex-start; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 15px; }
.guide-card:hover { border-color: #63ab9d; box-shadow: 0 10px 30px #143b3820; }
.tag { display: inline-flex; align-items: center; border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 750; }
.tag-blue { background: #e9f2ff; color: #165495; }
.tag-green { background: #dbf5ec; color: #155e4d; }
.tag-lilac { background: #f0ebff; color: #554396; }
.guide-card h3 { margin: 12px 0 5px; font-size: 19px; line-height: 1.35; }
.guide-card p { margin-bottom: 19px; font-size: 14px; color: var(--muted); }
.card-link { margin-top: auto; color: #0b6359; font-size: 14px; font-weight: 750; }
.topics { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.topics a { padding: 7px 11px; border-radius: 7px; border: 1px solid var(--line); background: #f7f9fc; font-size: 14px; }
.topics a:hover { color: #0b6359; border-color: #63ab9d; }
.resources { background: #f2f6fa; }
.resource-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }
.resource-list { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding-inline: 20px; }
.resource-list > a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 13px; }
.resource-list > a + a { border-top: 1px solid var(--line); }
.resource-list > a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.resource-list strong, .resource-list small { display: block; }
.resource-list small { color: var(--muted); }
.security { padding: 27px; border-radius: 15px; color: #fff; background: #153249; }
.security h3 { margin: 11px 0 5px; font-size: 25px; }
.security p { color: #c9d7e4; margin-bottom: 18px; }
.security .actions { margin-top: 16px; }
.security-button { background: #fff; color: #153249; }
.security-button:hover { background: #dffaf2; }
.footer { background: var(--navy); color: #c4d3e3; }
.footer-inner { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-inner > div { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; }

.article-shell { background: #f2f6fa; padding-block: 36px 64px; }
.article-head { padding-block: 24px; margin-bottom: 23px; }
.article-head h1 { font-size: clamp(28px, 5vw, 49px); line-height: 1.18; letter-spacing: -.04em; }
.article-head p { margin-top: 12px; color: var(--muted); }
.article { max-width: 810px; background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: clamp(18px, 5vw, 46px); }
.article h2 { margin: 23px 0 8px; font-size: 23px; }
.article p { margin-bottom: 12px; overflow-wrap: anywhere; }
.article ol, .article ul { padding-left: 24px; }
.article li + li { margin-top: 6px; }
.article a:not(.button) { text-decoration: underline; text-underline-offset: 3px; color: #0b6359; }
.article .actions { margin-top: 20px; }
.article-cta { padding: 17px 20px 20px; margin-block: 25px 6px; background: #eaf8f4; border: 1px solid #c9e8de; border-radius: 12px; }
.article-cta h2 { margin-top: 0; }
.breadcrumbs { color: #0b6359; font-size: 14px; padding-block: 4px; }
.breadcrumbs a:hover { text-decoration: underline; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.catalog-group + .catalog-group { margin-top: 34px; }
.catalog-group > h2 { font-size: 25px; margin-bottom: 14px; }

@media (max-width: 900px) {
  .top-inner { gap: 18px; }
  nav { gap: 16px; }
  .hero-inner { gap: 27px; }
  .guide-card { padding: 18px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .top-inner { min-height: 0; flex-wrap: wrap; gap: 10px 15px; padding-block: 13px; }
  .brand strong { font-size: 30px; }
  .button-nav { margin-left: auto; }
  nav { flex-basis: 100%; order: 1; justify-content: flex-start; margin-left: 0; gap: 20px; }
  nav a { display: inline-flex; align-items: center; min-height: 36px; }
  .hero-inner, .resource-grid, .card-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .hero-inner { min-height: 0; padding-block: 39px; gap: 31px; }
  .hero h1 { font-size: clamp(31px, 8.1vw, 55px); margin-block: 12px 14px; }
  .actions { gap: 8px; margin-top: 22px; }
  .section { padding-block: 39px; }
  .section-head { align-items: start; flex-wrap: wrap; margin-bottom: 18px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 22px; }
}
@media (max-width: 370px) {
  .top-inner { column-gap: 7px; }
  .button-nav { padding-inline: 9px; font-size: 12px; }
  .brand { gap: 6px; }
  .brand > span { font-size: 12px; }
  .route-card { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Refined portal home */
.home-brand { gap: 13px; }
.home-brand strong { font-size: 27px; letter-spacing: 0; font-weight: 800; }
.home-brand > span { padding-left: 13px; border-left: 1px solid #ffffff40; color: #a9bdcf; font-size: 13px; font-weight: 650; }
.portal-home { background: #fff; }
.portal-hero { position: relative; isolation: isolate; overflow: hidden; color: #f5f9ff; background: #081a2f; }
.portal-hero::before { position: absolute; z-index: -1; inset: 0; content: ""; opacity: .16; background-image: linear-gradient(#a7c4db18 1px, transparent 1px), linear-gradient(90deg, #a7c4db18 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent, #000 36%, #000); }
.portal-hero-inner { min-height: 570px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); align-items: start; align-content: center; gap: 56px; padding-block: 62px; }
.hero-copy { position: relative; z-index: 1; max-width: 620px; }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: #9ec6d3; font-size: 13px; font-weight: 750; }
.hero-kicker span { width: 24px; height: 2px; background: #44dfbd; }
.hero-copy h1 { max-width: 620px; margin: 20px 0 17px; font-size: 53px; line-height: 1.19; letter-spacing: 0; font-weight: 790; }
.hero-copy h1 em { display: block; color: #54e3c2; font-style: normal; }
.hero-lead { max-width: 570px; color: #bdcbd9; font-size: 16px; line-height: 1.9; }
.hero-search { max-width: 560px; margin: 25px 0 0; padding: 5px; border: 1px solid #5f768c; border-radius: 9px; background: #10273e; }
.hero-search input { padding: 10px 13px; color: #fff; border: 0; background: transparent; }
.hero-search input::placeholder { color: #9eafbf; }
.hero-search input:focus { outline: 2px solid #54e3c2; outline-offset: 2px; }
.hero-search .button { min-height: 42px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-actions .button { min-height: 44px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; padding-top: 18px; border-top: 1px solid #ffffff22; color: #aebdca; font-size: 12px; }
.hero-proof b { color: #f4f8fb; font-size: 13px; }
.hero-visual { min-width: 0; margin: 0; padding: 11px; border: 1px solid #50677e; border-radius: 11px; background: #10243a; box-shadow: 0 24px 54px #02091266; }
.visual-top { display: flex; align-items: center; justify-content: space-between; padding: 3px 4px 10px; color: #94a8bb; }
.visual-top > span { display: flex; gap: 5px; }
.visual-top i { width: 7px; height: 7px; border-radius: 50%; background: #62788c; }
.visual-top i:first-child { background: #ff746d; }
.visual-top i:nth-child(2) { background: #ffca69; }
.visual-top i:nth-child(3) { background: #5ed9ad; }
.visual-top small { font: 650 9px/1.2 ui-monospace, monospace; letter-spacing: 1.1px; }
/* End the preview after the complete DS918+ feature card. */
.hero-visual img { display: block; width: 100%; aspect-ratio: 1366 / 775; object-fit: cover; object-position: center top; border-radius: 5px; }
.hero-visual figcaption { display: flex; align-items: center; gap: 9px; padding: 10px 4px 1px; color: #d4e0e8; font-size: 11px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #52e1bb; box-shadow: 0 0 0 4px #52e1bb22; }
.hero-glow { position: absolute; z-index: -1; width: 1px; height: 1px; opacity: .28; box-shadow: 0 0 160px 95px #116e69; pointer-events: none; }
.hero-glow-one { top: 28%; left: 40%; }
.hero-glow-two { right: 4%; bottom: 8%; opacity: .16; box-shadow: 0 0 150px 90px #326c9c; }
.signal-row { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 22px; border-bottom: 1px solid var(--line); }
.signal-row > div { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-content: center; padding: 4px 22px; }
.signal-row > div + div { border-left: 1px solid var(--line); }
.signal-icon { grid-row: span 2; align-self: center; color: #11816f; font: 750 12px/30px ui-monospace, monospace; text-align: center; background: #e1f5ef; border-radius: 7px; }
.signal-row strong { font-size: 14px; }
.signal-row small { color: var(--muted); font-size: 12px; }
.spotlight { padding-block: 65px 55px; }
.spotlight-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.spotlight-head h2, .guide-section h2, .resources h2 { margin-top: 3px; font-size: 30px; letter-spacing: 0; }
.spotlight-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; }
.spotlight-main { min-height: 275px; display: flex; align-items: flex-start; flex-direction: column; padding: 30px; color: white; background: #123a3c; border-radius: 9px; }
.tag-coral { color: #9b332c; background: #ffebe7; }
.spotlight-main h3 { max-width: 660px; margin-top: 18px; font-size: 27px; line-height: 1.35; }
.spotlight-main p { max-width: 680px; margin-top: 10px; color: #d0e0df; font-size: 14px; line-height: 1.85; }
.spotlight-link { margin-top: auto; padding-top: 16px; color: #88f0d6; font-size: 13px; font-weight: 750; }
.spotlight-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.spotlight-side > a { display: flex; align-items: flex-start; flex-direction: column; gap: 7px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; }
.spotlight-side > a:hover { border-color: #65aa9b; background: #f1f8f6; }
.spotlight-side strong { font-size: 16px; }
.spotlight-side small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.spotlight-side > a > span:last-child { margin-top: auto; color: #12695e; font-size: 12px; font-weight: 750; }
.guide-section { padding-top: 34px; padding-bottom: 68px; }
.guide-section .section-head { align-items: end; }
.guide-section .topics a { padding: 8px 12px; background: #fff; }
.guide-section .guide-card { min-height: 202px; padding: 21px; border-radius: 9px; }
.guide-card-blue { background: #f4f8fc; }
.guide-card-green { background: #f3faf7; }
.guide-card-purple { background: #f7f6fb; }
.guide-section .guide-card h3 { font-size: 18px; }
.network-band { padding-block: 42px; color: #fff; background: #123144; }
.network-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.overline-light { color: #8be2cc; }
.network-band h2 { max-width: 670px; margin: 4px 0 8px; font-size: 29px; letter-spacing: 0; }
.network-band p:not(.overline) { max-width: 710px; color: #c5d4df; font-size: 14px; }
.network-actions { display: flex; flex: none; flex-direction: column; gap: 9px; }
.network-actions .button { min-width: 175px; min-height: 42px; }
.resources { padding-block: 62px; background: #f3f6f8; }
.resources .section-head { margin-bottom: 18px; }
.resource-list { border-radius: 9px; }
.security { border-radius: 9px; }
.home-brand:hover strong { color: #fff; }
.footer .home-brand > span { color: #a9bdcf; }

@media (max-width: 900px) {
  .portal-hero-inner { grid-template-columns: 1fr 0.88fr; gap: 28px; }
  .hero-copy h1 { font-size: 43px; }
  .hero-visual { padding: 8px; }
  .signal-row > div { padding-inline: 12px; }
  .spotlight-main { padding: 23px; }
}
@media (max-width: 700px) {
  .home-brand { gap: 9px; }
  .home-brand strong { font-size: 22px; }
  .home-brand > span { padding-left: 9px; font-size: 12px; }
  .portal-hero-inner { grid-template-columns: 1fr; gap: 27px; padding-block: 42px 38px; }
  .hero-copy h1 { max-width: 520px; font-size: 36px; }
  .hero-lead { font-size: 14px; }
  .hero-proof { gap: 8px 14px; margin-top: 20px; }
  .hero-visual { max-width: 560px; transform: none; }
  .signal-row { grid-template-columns: 1fr; padding-block: 8px; }
  .signal-row > div { padding: 12px 2px; }
  .signal-row > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .spotlight { padding-block: 42px 35px; }
  .spotlight-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .spotlight-head h2, .guide-section h2, .resources h2 { font-size: 25px; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .spotlight-main { min-height: 260px; padding: 21px; }
  .spotlight-main h3 { font-size: 22px; }
  .spotlight-side { grid-template-rows: auto; }
  .spotlight-side > a { min-height: 148px; }
  .guide-section { padding-top: 25px; padding-bottom: 42px; }
  .guide-section .section-head { align-items: flex-start; }
  .network-band { padding-block: 33px; }
  .network-band-inner { align-items: flex-start; flex-direction: column; gap: 20px; }
  .network-band h2 { font-size: 24px; }
  .network-actions { flex-direction: row; flex-wrap: wrap; }
  .network-actions .button { min-width: 0; }
  .resources { padding-block: 40px; }
}

.portal-home { background: #f8f5ef; }
.masthead { text-align: center; padding-block: clamp(28px, 5vw, 62px) 32px; }
.masthead h1 { font-size: clamp(42px, 8vw, 92px); letter-spacing: -.065em; line-height: 1.1; margin: 7px 0 14px; }
.masthead > p:last-of-type { color: var(--muted); }
.guide-search { display: flex; gap: 8px; max-width: 620px; margin: 22px auto 0; }
.guide-search input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid #c2cccb; border-radius: 9px; background: white; color: var(--ink); font: inherit; }
.guide-search .button { cursor: pointer; white-space: nowrap; background: #106355; color: white; }
.guide-search .button:hover { background: #0d4e43; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.front-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lead-story { display: flex; align-items: flex-start; flex-direction: column; gap: 13px; padding: clamp(21px, 4vw, 42px); border-radius: 18px; background: radial-gradient(ellipse at right top, #236259, #123b36 76%); color: #fff; }
.release-story { background: radial-gradient(ellipse at right top, #463a68, #24243d 76%); }
.lead-story h2 { font-size: clamp(25px, 3.1vw, 42px); line-height: 1.25; }
.lead-story p { color: #e0e7e4; }
.lead-link { margin-top: auto; padding-top: 9px; font-weight: 750; color: #c7f3e0; }
.release-story .lead-link { color: #e7dcff; }
.lead-story:hover .lead-link { text-decoration: underline; text-underline-offset: 4px; }
.story-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.story-tags span { padding: 2px 8px; border: 1px solid #ffffff55; border-radius: 5px; font-size: 12px; }
.front-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.front-list h2 { grid-column: 1 / -1; margin-top: 7px; font-size: 21px; }
.front-list a { display: flex; flex-direction: column; gap: 4px; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.front-list a:hover { border-color: #63ab9d; }
.front-list small { color: #106355; font-weight: 700; }
.portal-home .guide-card, .portal-home .topics a { background: #fff; }
.article-shell { background: #f8f5ef; }
.article-shell .guide-search { margin-inline: 0; }
.article > section > h2 { margin-top: 28px; }
.article-aside { padding: 20px; border: 1px solid var(--line); background: #fff; border-radius: 12px; }
.article-aside h2 { font-size: 19px; margin-bottom: 12px; }
.article-aside a { display: block; padding: 6px 0; color: #0b6359; }
.article-aside a:hover, .catalog-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.catalog-grid .guide-card { background: #fff; }
.catalog-list { list-style: none; margin: 0; padding: 0; }
.catalog-list li + li { border-top: 1px solid var(--line); }
.catalog-link { display: block; padding: 10px 0; color: #124e46; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.pagination a, .pagination span { padding: 6px 11px; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.pagination span { background: #106355; color: #fff; }
.search-results { margin-block: 18px 32px; }
@media (max-width: 700px) {
  .front-grid { grid-template-columns: 1fr; }
  .front-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

:root {
  --ink: #152344;
  --muted: #485875;
  --navy: #0d1831;
  --accent: #245be7;
  --line: #dbe3f1;
}
.portal-home, .article-shell { background: #f3f6fc; }
.top { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.top nav { color: #334564; }
.top nav a:hover { color: var(--accent); }
.top .brand strong span { color: var(--accent); }
.top .button-nav { color: #fff; background: var(--accent); border-color: var(--accent); }
.top .button-nav:hover, .guide-search .button:hover { background: #1948c4; }
.masthead { background: linear-gradient(180deg, #e8f0ff 0%, #f3f6fc 100%); border-radius: 0 0 28px 28px; }
.masthead h1 { font-size: clamp(42px, 6.2vw, 80px); }
.masthead > p:last-of-type { font-size: clamp(15px, 2vw, 19px); }
.overline, .text-link, .card-link, .front-list small { color: #1948bd; }
.guide-search input { border-color: #c5d3eb; }
.guide-search .button { background: var(--accent); }
.lead-story { background: linear-gradient(145deg, #173e91, #11234b); }
.release-story { background: linear-gradient(145deg, #433f86, #222543); }
.lead-story .lead-link { color: #e5eeff; }
.lead-story:hover { box-shadow: 0 12px 28px #1935602c; }
.front-list a, .guide-card, .article, .article-aside { box-shadow: 0 1px 2px #2037660a; }
.article-head { max-width: 900px; }
.article-head p { font-size: 17px; }
.article h2 { line-height: 1.45; }
.article p { line-height: 1.9; }
.article-cta { background: #eaf1ff; border-color: #cfddfb; }
.article-cta .button-primary { background: var(--accent); color: #fff; }
.article-cta .button-primary:hover { background: #1948c4; }
.article a:not(.button), .article-aside a, .catalog-link, .breadcrumbs { color: #1948bd; }
.security { background: #172a53; }
.resources { background: #eaf0fa; }

.reader-shell { background: #fff; }
.reader-shell > .wrap { width: min(800px, calc(100% - 64px)); }
.reader-shell .breadcrumbs { overflow-wrap: anywhere; }
.reader-shell .article-head { margin: 0 0 32px; padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
.reader-shell .article-head h1 { font-size: 39px; line-height: 1.28; letter-spacing: 0; text-wrap: balance; overflow-wrap: anywhere; }
.reader-shell .article-head p { margin-top: 14px; line-height: 1.75; }
.reader-shell .article { max-width: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; font-size: 17px; }
.reader-shell .article section + section { margin-top: 29px; }
.reader-shell .article h2 { margin: 0 0 8px; font-size: 23px; letter-spacing: 0; overflow-wrap: anywhere; }
.reader-shell .article li { overflow-wrap: anywhere; }
.reader-shell .article-cta { padding: 20px; border-radius: 8px; }
.reader-shell .article .catalog-list { padding-left: 0; }
.reader-shell .article section[id] { scroll-margin-top: 24px; }
.reader-shell .article-resources { padding-top: 22px; border-top: 1px solid var(--line); }
.reader-shell .article-resources a { display: inline-block; margin: 0 16px 8px 0; font-size: 14px; }
.article-sidebar { min-width: 0; margin-bottom: 26px; }
.sidebar-card { min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #f6f8fd; }
.sidebar-card h2 { margin-bottom: 8px; font-size: 16px; letter-spacing: 0; }
.article-toc { display: block; margin: 0; color: var(--ink); }
.article-toc ul { list-style: none; margin: 0; padding: 0 0 0 11px; border-left: 2px solid #ccd9f2; }
.article-toc a { display: block; padding: 4px 0; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.article-toc a:hover, .sidebar-more:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-related { display: none; margin-top: 14px; }
.article-related .catalog-list { margin: 0; padding: 0; }
.article-related .catalog-link { min-width: 0; padding: 8px 0; background: transparent; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.sidebar-more { display: inline-block; margin-top: 8px; color: #1948bd; font-size: 14px; font-weight: 700; }
.catalog-layout { display: grid; gap: 26px; }
.catalog-layout > * { min-width: 0; }
.catalog-layout .catalog-articles { max-width: none; padding: 12px clamp(16px, 3vw, 30px); }
.catalog-layout .catalog-articles .catalog-list { padding: 0; }
.catalog-layout .catalog-articles .catalog-link { padding-block: 12px; text-decoration: none; }
.catalog-layout .catalog-articles .catalog-link:hover { text-decoration: underline; }
.catalog-layout .catalog-link, .catalog-nav a span { overflow-wrap: anywhere; }
.catalog-sidebar { display: grid; gap: 14px; align-content: start; scroll-margin-top: 18px; }
.catalog-sidebar .sidebar-card { background: #fff; }
.catalog-nav { display: block; margin: 0; color: var(--ink); }
.catalog-nav ul { list-style: none; display: grid; gap: 3px; margin: 0; padding: 0; }
.catalog-nav a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 7px 9px; border-radius: 7px; }
.catalog-nav a small { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.catalog-nav a:hover, .catalog-nav a[aria-current] { background: #eaf1ff; color: #1948bd; }
.catalog-nav a[aria-current] { font-weight: 750; }
.catalog-featured .catalog-link { padding-block: 8px; font-size: 14px; line-height: 1.45; }
.catalog-sidebar-jump { display: inline-block; margin-bottom: 14px; color: #1948bd; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.top .home-brand > span { color: var(--muted); border-color: var(--line); }
.top .home-brand:hover strong { color: var(--accent); }

@media (min-width: 961px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr) 270px; align-items: start; }
  .catalog-sidebar-jump { display: none; }
  .reader-shell > .wrap { width: min(1100px, calc(100% - 64px)); }
  .reader-shell .article-head { max-width: none; width: calc(100% - 300px); }
  .reader-shell .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
  .reader-shell .article { grid-row: 1; grid-column: 1; min-width: 0; }
  .article-sidebar { grid-row: 1; grid-column: 2; margin: 0; }
  .article-related { display: block; }
  .article-related-inline { display: none; }
}

@media (min-width: 961px) and (min-height: 850px) {
  .article-sidebar { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
}

@media (max-width: 700px) {
  .reader-shell { padding-block: 22px 40px; }
  .reader-shell > .wrap { width: calc(100% - 32px); }
  .reader-shell .article-head { padding-block: 15px 20px; margin-bottom: 24px; }
  .reader-shell .article-head h1 { font-size: 29px; }
  .reader-shell .article-head p, .reader-shell .article { font-size: 16px; }
  .reader-shell .article h2 { font-size: 21px; }
}
