/* Asmorix single post — matches asmorix.com blog article layout */

html:has(body.ax-article-page) {
  overflow-x: clip;
  overflow-y: visible;
  scroll-behavior: auto;
}

body.ax-article-page {
  overflow: visible !important;
  background: #fff;
}

body.ax-article-page.loaded .loader-wrapper {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

body.ax-blog-page .ax-blog-header .rts-header__logo .site-logo img.logo-dark,
body.ax-blog-page .ax-blog-header .rts-header__logo .site-logo img.logo-white {
  height: 42px !important;
  width: auto !important;
  max-width: 190px !important;
  object-fit: contain !important;
}

body.ax-blog-page .ax-blog-header .rts-header__logo .site-logo img.logo-dark {
  display: block !important;
}

body.ax-blog-page .ax-blog-header .rts-header__logo .site-logo img.logo-white {
  display: none !important;
}

.asmorix-sp {
  --sp-title-font: "Nunito", "Plus Jakarta Sans", sans-serif;
  --sp-toc-top: 88px;
  --sp-ink: #071433;
  --sp-blue: #0c5adb;
  --sp-blue-soft: rgba(12, 90, 219, 0.1);
  --sp-border: rgba(12, 90, 219, 0.08);
  --sp-hero: #00008b;
  --sp-hero-ink: #ffffff;
  --sp-hero-muted: rgba(255, 255, 255, 0.72);
  --sp-hero-link: #e4c76a;
  --sp-muted: #5b6475;
  --sp-max: 1320px;
  color: var(--sp-ink);
}

/* ===== Hero (brand navy + patterns) ===== */
.asmorix-sp__hero {
  background: linear-gradient(145deg, #000066 0%, #00008b 52%, #000070 100%);
  padding: 96px 0 44px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.asmorix-sp__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(201, 162, 39, 0.18) 0%, transparent 58%),
    radial-gradient(ellipse 50% 40% at 8% 85%, rgba(147, 197, 253, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: spHeroGlow 14s ease-in-out infinite alternate;
}

.asmorix-sp__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.12) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Background pattern layer */
.asmorix-sp__hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.asmorix-sp__pattern {
  position: absolute;
  inset: 0;
  display: block;
}

.asmorix-sp__pattern--grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 20%, transparent 78%);
}

.asmorix-sp__pattern--wave {
  inset: -8% -6%;
  background-image: url("../images/banner/shared/banner__bg.svg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.14;
  animation: spHeroWave 20s ease-in-out infinite alternate;
}

/* Floating rings */
.asmorix-sp__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.18);
  animation: spHeroRing 10s ease-in-out infinite;
}

.asmorix-sp__ring--1 {
  width: 280px;
  height: 280px;
  top: -60px;
  right: 8%;
  animation-delay: 0s;
}

.asmorix-sp__ring--2 {
  width: 180px;
  height: 180px;
  bottom: 10%;
  left: 4%;
  border-color: rgba(255, 255, 255, 0.08);
  animation-delay: 1.5s;
  animation-duration: 12s;
}

.asmorix-sp__ring--3 {
  width: 120px;
  height: 120px;
  top: 35%;
  left: 38%;
  border-color: rgba(12, 90, 219, 0.25);
  animation-delay: 0.8s;
  animation-duration: 9s;
}

/* Glowing orbs */
.asmorix-sp__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  animation: spHeroOrb 8s ease-in-out infinite;
}

.asmorix-sp__orb--1 {
  width: 14px;
  height: 14px;
  top: 22%;
  left: 12%;
  background: #60a5fa;
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.85);
}

.asmorix-sp__orb--2 {
  width: 10px;
  height: 10px;
  top: 58%;
  left: 28%;
  background: #ffd43b;
  box-shadow: 0 0 20px rgba(255, 212, 59, 0.75);
  animation-delay: 1.2s;
  animation-duration: 9s;
}

.asmorix-sp__orb--3 {
  width: 12px;
  height: 12px;
  top: 18%;
  right: 22%;
  background: #0c5adb;
  box-shadow: 0 0 22px rgba(12, 90, 219, 0.8);
  animation-delay: 2s;
  animation-duration: 11s;
}

.asmorix-sp__orb--4 {
  width: 8px;
  height: 8px;
  bottom: 22%;
  right: 14%;
  background: #93c5fd;
  box-shadow: 0 0 16px rgba(147, 197, 253, 0.7);
  animation-delay: 0.6s;
  animation-duration: 7s;
}

/* Geometric shapes */
.asmorix-sp__shape {
  position: absolute;
  opacity: 0.35;
  animation: spHeroShape 12s ease-in-out infinite;
}

.asmorix-sp__shape--plus {
  top: 30%;
  right: 6%;
  width: 28px;
  height: 28px;
  background:
    linear-gradient(#60a5fa, #60a5fa) center/2px 100% no-repeat,
    linear-gradient(#60a5fa, #60a5fa) center/100% 2px no-repeat;
  animation-delay: 0.4s;
}

.asmorix-sp__shape--diamond {
  bottom: 18%;
  left: 18%;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transform: rotate(45deg);
  animation-name: spHeroShapeDiamond;
  animation-delay: 1.8s;
}

.asmorix-sp__shape--hex {
  top: 68%;
  right: 32%;
  width: 26px;
  height: 15px;
  background: rgba(12, 90, 219, 0.35);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  animation-delay: 1s;
}

/* Floating tech chips — removed */

@keyframes spHeroGlow {
  0% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.03); }
}

@keyframes spHeroWave {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.1; }
  50% { transform: translate3d(-2%, 1.5%, 0) scale(1.04); opacity: 0.16; }
  100% { transform: translate3d(2%, -1%, 0) scale(1.06); opacity: 0.12; }
}

@keyframes spHeroRing {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.35; }
  50% { transform: translate3d(8px, -12px, 0) scale(1.04); opacity: 0.65; }
}

@keyframes spHeroOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate3d(14px, -20px, 0) scale(1.2); opacity: 1; }
}

@keyframes spHeroShape {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.25; }
  50% { transform: translate3d(-10px, 14px, 0) rotate(12deg); opacity: 0.55; }
}

@keyframes spHeroShapeDiamond {
  0%, 100% { transform: rotate(45deg) translate3d(0, 0, 0); opacity: 0.25; }
  50% { transform: rotate(45deg) translate3d(10px, -12px, 0); opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .asmorix-sp__hero::before,
  .asmorix-sp__pattern--wave,
  .asmorix-sp__ring,
  .asmorix-sp__orb,
  .asmorix-sp__shape {
    animation: none !important;
  }

  .asmorix-sp__ring,
  .asmorix-sp__orb {
    opacity: 0.4;
  }
}

@media (max-width: 991px) {
  .asmorix-sp__ring--3 {
    display: none;
  }
}

@media (max-width: 640px) {
  .asmorix-sp__shape--hex,
  .asmorix-sp__ring--1 {
    display: none;
  }
}

.asmorix-sp__hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  max-width: var(--sp-max);
  margin: 0 auto;
  padding: 0 15px;
}

.asmorix-sp__hero-copy {
  position: relative;
  z-index: 2;
}

.asmorix-sp__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--sp-hero-muted);
  margin-bottom: 14px;
}

.asmorix-sp__crumb a {
  color: var(--sp-hero-link);
  text-decoration: none;
  font-weight: 600;
}

.asmorix-sp__crumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.asmorix-sp__crumb span[aria-hidden="true"] {
  color: rgba(255, 255, 255, 0.45);
}

.asmorix-sp__title {
  font-family: var(--sp-title-font) !important;
  font-size: clamp(30px, 3.3vw, 40px) !important;
  line-height: 1.24 !important;
  font-weight: 600 !important;
  color: var(--sp-hero-ink);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  text-transform: none !important;
  max-width: 20em;
}

.asmorix-sp__dek {
  font-size: 17px;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 18px;
  max-width: 54ch;
}

.asmorix-sp__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--sp-hero-muted);
  font-weight: 500;
}

.asmorix-sp__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a227, #e4c76a);
  color: #000066;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.asmorix-sp__meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.asmorix-sp__hero-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 50, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
}

.asmorix-sp__hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ===== Body grid: TOC | Article ===== */
.asmorix-sp__body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
  max-width: var(--sp-max);
  margin: 0 auto;
  padding: 28px 15px 88px;
  overflow: visible;
}

.asmorix-sp__toc-col {
  align-self: stretch;
  min-height: 0;
}

/* ===== Sticky TOC (left) — sticks until article column ends ===== */
.asmorix-sp__toc {
  position: sticky;
  top: var(--sp-toc-top);
  z-index: 20;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--sp-toc-top) - 20px);
  overflow: hidden;
  background: #f7f9fc;
  border: 1px solid #dbe4f0;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 16px 36px rgba(7, 20, 51, 0.06);
}

.asmorix-sp__toc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 13px;
  background: linear-gradient(135deg, #071433 0%, #0c1f3d 60%, #0a1628 100%);
  color: #fff;
}

.asmorix-sp__toc-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #93c5fd;
  flex: 0 0 28px;
}

.asmorix-sp__toc-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.asmorix-sp__toc-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fafc;
}

.asmorix-sp__toc-nav {
  padding: 12px 10px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  flex: 1 1 auto;
}

.asmorix-sp__toc-list {
  list-style: none;
  margin: 0;
  padding: 0 0 4px 8px;
  border-left: 2px solid #d7e2ef;
  counter-reset: toc;
}

.asmorix-sp__toc-list > li:not(.asmorix-sp__toc-item--sub) {
  counter-increment: toc;
}

.asmorix-sp__toc-list a {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-left: -9px;
  padding: 7px 10px 7px 14px;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  border-radius: 0 10px 10px 0;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.asmorix-sp__toc-list > li:not(.asmorix-sp__toc-item--sub) > a::before {
  content: counter(toc, decimal-leading-zero);
  flex: 0 0 auto;
  min-width: 18px;
  margin-top: 1px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #94a3b8;
}

.asmorix-sp__toc-list a:hover {
  background: rgba(12, 90, 219, 0.07);
  color: #0733b6;
}

.asmorix-sp__toc-list a.is-active {
  background: #fff;
  color: #0733b6;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(7, 20, 51, 0.06);
}

.asmorix-sp__toc-list a.is-active::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 99px;
  background: var(--sp-blue);
}

.asmorix-sp__toc-list a.is-active::before {
  color: var(--sp-blue);
}

.asmorix-sp__toc-item--sub a {
  padding-left: 34px;
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
}

.asmorix-sp__toc-extra {
  margin: 6px 10px 12px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e6eef7;
}

.asmorix-sp__toc-extra-title {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.asmorix-sp__toc-extra-text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--sp-ink);
}

.asmorix-sp__toc-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--sp-blue);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.asmorix-sp__toc-btn:hover {
  background: #0733b6;
}

.asmorix-sp__toc-more {
  margin: 0;
  font-size: 12px;
  text-align: center;
}

.asmorix-sp__toc-more a {
  color: var(--sp-blue);
  text-decoration: none;
  font-weight: 600;
}

/* ===== Article card (right) ===== */
.asmorix-sp__article {
  background: #fff;
  border: 1px solid var(--sp-border);
  border-radius: 22px;
  padding: 28px 28px 36px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 48px rgba(7, 20, 51, 0.06);
  min-width: 0;
}

/* Summarize AI row */
.asmorix-sp__summarize {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--sp-blue-soft);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 247, 251, 0.92) 52%, rgba(246, 248, 251, 0.98) 100%);
  box-shadow: 0 10px 28px rgba(7, 20, 51, 0.04);
}

.asmorix-sp__summarize-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--sp-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.asmorix-sp__summarize-label i {
  color: var(--sp-blue);
}

.asmorix-sp__summarize-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.asmorix-sp__ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--sp-blue-soft);
  background: #fff;
  color: transparent;
  font-size: 0;
  line-height: 0;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.asmorix-sp__ai-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: block;
}

.asmorix-sp__ai:hover {
  background: rgba(12, 90, 219, 0.06);
  border-color: rgba(12, 90, 219, 0.22);
}

/* Quick answer */
.asmorix-sp__quick {
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(12, 90, 219, 0.12);
  border-radius: 16px;
  background: rgba(238, 247, 251, 0.45);
}

.asmorix-sp__quick-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sp-blue);
  margin-bottom: 12px;
}

.asmorix-sp__quick ul {
  margin: 0;
  padding-left: 1.15rem;
}

.asmorix-sp__quick li {
  margin-bottom: 8px;
  line-height: 1.6;
  font-size: 15px;
  color: var(--sp-ink);
}

.asmorix-sp__quick li:last-child {
  margin-bottom: 0;
}

/* Main content */
.asmorix-sp__content {
  font-size: 16px;
  line-height: 1.92;
  color: #334155;
}

.asmorix-sp__content h2 {
  font-family: var(--sp-title-font) !important;
  font-size: 24px !important;
  line-height: 1.32 !important;
  font-weight: 600 !important;
  text-transform: none !important;
  color: var(--sp-ink) !important;
  margin: 36px 0 14px;
  padding: 0 0 10px 14px;
  border-left: 3px solid var(--sp-blue);
  border-bottom: 1px solid #e8eef6;
  letter-spacing: -0.02em;
  scroll-margin-top: 110px;
}

.asmorix-sp__content h2:first-child {
  margin-top: 0;
}

.asmorix-sp__content h3 {
  font-family: var(--sp-title-font) !important;
  text-transform: none !important;
  font-size: 19px !important;
  line-height: 1.38 !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin: 24px 0 10px;
  padding-left: 0;
  letter-spacing: -0.015em;
  scroll-margin-top: 110px;
}

.asmorix-sp__content h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  margin-bottom: 2px;
  border-radius: 2px;
  background: var(--sp-blue);
  vertical-align: middle;
}

.asmorix-sp__content p {
  margin: 0 0 16px;
  line-height: 1.92;
}

.asmorix-sp__content ul,
.asmorix-sp__content ol {
  margin: 0 0 18px;
  padding-left: 1.25rem;
}

.asmorix-sp__content li {
  margin-bottom: 8px;
}

.asmorix-sp__content a {
  color: var(--sp-blue);
  font-weight: 600;
  text-decoration: none;
}

.asmorix-sp__content a:hover {
  text-decoration: underline;
}

.asmorix-sp__content code {
  font-size: 0.92em;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.asmorix-sp__content .ax-article__table-wrap,
.asmorix-sp__table-wrap {
  overflow: auto;
  margin: 24px 0 28px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 139, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f7f8ff 100%);
  box-shadow: 0 22px 48px rgba(0, 0, 139, 0.08);
  -webkit-overflow-scrolling: touch;
}

.asmorix-sp__content .ax-article__table,
.asmorix-sp__content table,
.asmorix-sp__table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.55;
  background: transparent;
}

.asmorix-sp__content .ax-article__table thead th,
.asmorix-sp__content table thead th,
.asmorix-sp__table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 14px 18px;
  text-align: left;
  vertical-align: middle;
  background: linear-gradient(135deg, #000066 0%, #00008b 55%, #000070 100%);
  color: #fff;
  font-family: var(--sp-title-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(201, 162, 39, 0.55);
  white-space: nowrap;
}

.asmorix-sp__content .ax-article__table tbody td,
.asmorix-sp__content table tbody td,
.asmorix-sp__table tbody td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  color: #334155;
  border-bottom: 1px solid rgba(0, 0, 139, 0.08);
  background: #fff;
  transition: background 0.18s ease;
}

.asmorix-sp__content .ax-article__table tbody tr:nth-child(even) td,
.asmorix-sp__content table tbody tr:nth-child(even) td,
.asmorix-sp__table tbody tr:nth-child(even) td {
  background: rgba(0, 0, 139, 0.025);
}

.asmorix-sp__content .ax-article__table tbody tr:hover td,
.asmorix-sp__content table tbody tr:hover td,
.asmorix-sp__table tbody tr:hover td {
  background: rgba(0, 0, 139, 0.06);
}

.asmorix-sp__content .ax-article__table tbody tr:last-child td,
.asmorix-sp__content table tbody tr:last-child td,
.asmorix-sp__table tbody tr:last-child td {
  border-bottom: none;
}

.asmorix-sp__content .ax-article__table tbody td:first-child,
.asmorix-sp__content table tbody td:first-child,
.asmorix-sp__table tbody td:first-child {
  font-weight: 600;
  color: #071433;
}

.asmorix-sp__content .ax-article__table tbody tr:last-child td:first-child,
.asmorix-sp__content table tbody tr:last-child td:first-child,
.asmorix-sp__table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 17px;
}

.asmorix-sp__content .ax-article__table tbody tr:last-child td:last-child,
.asmorix-sp__content table tbody tr:last-child td:last-child,
.asmorix-sp__table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 17px;
}

@media (max-width: 640px) {
  .asmorix-sp__content .ax-article__table-wrap,
  .asmorix-sp__table-wrap {
    margin: 18px -4px 22px;
    border-radius: 14px;
  }

  .asmorix-sp__content .ax-article__table thead th,
  .asmorix-sp__content table thead th,
  .asmorix-sp__table thead th,
  .asmorix-sp__content .ax-article__table tbody td,
  .asmorix-sp__content table tbody td,
  .asmorix-sp__table tbody td {
    padding: 11px 12px;
    font-size: 13px;
  }

  .asmorix-sp__content .ax-article__table,
  .asmorix-sp__content table,
  .asmorix-sp__table {
    min-width: 460px;
  }
}

/* FAQ */
.asmorix-sp__faq {
  margin-top: 36px;
}

.asmorix-sp__faq > h2 {
  font-family: var(--sp-title-font) !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  color: var(--sp-ink) !important;
  margin: 0 0 16px;
  padding: 0 0 10px 14px;
  border-left: 3px solid var(--sp-blue);
  border-bottom: 1px solid #e8eef6;
  letter-spacing: -0.015em;
  scroll-margin-top: 110px;
}

.asmorix-sp__faq-item {
  border: 1px solid var(--sp-blue-soft);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

.asmorix-sp__faq-item[open] {
  border-color: rgba(12, 90, 219, 0.22);
  box-shadow: 0 10px 28px rgba(7, 20, 51, 0.05);
}

.asmorix-sp__faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
  color: var(--sp-ink);
  padding: 16px 18px;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.asmorix-sp__faq-item summary::-webkit-details-marker {
  display: none;
}

.asmorix-sp__faq-item summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  background: rgba(12, 90, 219, 0.08);
  color: var(--sp-blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.asmorix-sp__faq-item[open] summary::before {
  content: "–";
}

.asmorix-sp__faq-q {
  flex: 1 1 auto;
}

.asmorix-sp__faq-a {
  padding: 0 18px 18px 50px;
  font-size: 15px;
  line-height: 1.85;
  color: #475569;
}

.asmorix-sp__faq-a p {
  margin: 0 0 12px;
}

.asmorix-sp__faq-a p:last-child {
  margin-bottom: 0;
}

/* In-content CTA variants */
.asmorix-sp__cta {
  --cta-navy: #00008b;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 40px 0;
  border-radius: 22px;
}

.asmorix-sp__cta-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.asmorix-sp__cta-title {
  margin: 0 0 8px;
  font-family: var(--sp-title-font);
  font-size: 22px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.asmorix-sp__cta-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
}

.asmorix-sp__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.asmorix-sp__cta--banner {
  padding: 32px 30px 28px;
  background:
    radial-gradient(ellipse 80% 70% at 100% -10%, rgba(201, 162, 39, 0.22), transparent 52%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(147, 197, 253, 0.16), transparent 50%),
    linear-gradient(145deg, #000066 0%, #00008b 55%, #0a0a4d 100%);
  color: #fff;
  box-shadow: 0 24px 50px rgba(0, 0, 139, 0.22);
}

.asmorix-sp__cta--banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 0%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.asmorix-sp__cta--banner > * {
  position: relative;
  z-index: 1;
}

.asmorix-sp__cta--banner .asmorix-sp__cta-kicker { color: #e4c76a; }
.asmorix-sp__cta--banner .asmorix-sp__cta-title { color: #fff; }
.asmorix-sp__cta--banner .asmorix-sp__cta-text { color: rgba(255, 255, 255, 0.86); }

.asmorix-sp__cta--counsel {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px 26px 24px 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f7ff 100%);
  border: 1px solid rgba(0, 0, 139, 0.12);
  box-shadow: 0 20px 44px rgba(0, 0, 139, 0.08);
}

.asmorix-sp__cta--counsel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #c9a227, #00008b);
}

.asmorix-sp__cta-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #00008b;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0, 0, 139, 0.28);
}

.asmorix-sp__cta--counsel .asmorix-sp__cta-kicker { color: #00008b; }
.asmorix-sp__cta--counsel .asmorix-sp__cta-title { color: var(--sp-ink); }
.asmorix-sp__cta--counsel .asmorix-sp__cta-text { color: #475569; }

.asmorix-sp__cta--strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background:
    radial-gradient(ellipse 60% 120% at 100% 50%, rgba(201, 162, 39, 0.18), transparent 55%),
    linear-gradient(90deg, #000066, #00008b);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 139, 0.18);
}

.asmorix-sp__cta--strip .asmorix-sp__cta-title {
  font-size: 18px;
  margin-bottom: 4px;
  color: #fff;
}

.asmorix-sp__cta--strip .asmorix-sp__cta-text {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.asmorix-sp__cta--strip .asmorix-sp__btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.asmorix-sp__cta--proof {
  padding: 28px 28px 26px 32px;
  background:
    radial-gradient(ellipse 55% 80% at 100% 0%, rgba(0, 0, 139, 0.08), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7f8ff 100%);
  border: 1px solid rgba(0, 0, 139, 0.12);
  box-shadow: 0 24px 50px rgba(0, 0, 139, 0.1);
}

.asmorix-sp__cta--proof::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #c9a227, #00008b);
}

.asmorix-sp__cta--proof .asmorix-sp__cta-kicker { color: #00008b; }
.asmorix-sp__cta--proof .asmorix-sp__cta-title { color: #071433; }
.asmorix-sp__cta--proof .asmorix-sp__cta-text { color: #5b6475; }

.asmorix-sp__cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.asmorix-sp__cta-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 139, 0.12);
  color: #00008b;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 0, 139, 0.05);
}

.asmorix-sp__cta-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9a227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.asmorix-sp a.asmorix-sp__btn--solid,
.asmorix-sp a.asmorix-sp__btn--solid:visited {
  background: #00008b;
  color: #fff !important;
  border: 1px solid #00008b;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 139, 0.22);
}

.asmorix-sp a.asmorix-sp__btn--solid:hover {
  background: #000066;
  border-color: #000066;
  color: #fff !important;
}

.asmorix-sp a.asmorix-sp__btn--outline,
.asmorix-sp a.asmorix-sp__btn--outline:visited {
  background: transparent;
  color: #00008b !important;
  border: 1px solid rgba(0, 0, 139, 0.28);
  border-radius: 12px;
  padding: 12px 20px;
}

.asmorix-sp a.asmorix-sp__btn--outline:hover {
  background: rgba(0, 0, 139, 0.06);
  color: #00008b !important;
}

.asmorix-sp__cta--banner a.asmorix-sp__btn--primary,
.asmorix-sp__cta--banner a.asmorix-sp__btn--primary:visited,
.asmorix-sp__mid-cta a.asmorix-sp__btn--primary,
.asmorix-sp__mid-cta a.asmorix-sp__btn--primary:visited {
  background: #fff;
  color: #00008b !important;
  border-radius: 12px;
  padding: 12px 20px;
}

.asmorix-sp__cta--strip a.asmorix-sp__btn--solid,
.asmorix-sp__cta--strip a.asmorix-sp__btn--solid:visited,
.asmorix-sp__cta--strip a.asmorix-sp__btn--solid:hover {
  background: #fff;
  color: #00008b !important;
  border-color: #fff;
  box-shadow: none;
}

.asmorix-sp__btn--soft {
  background: #fff;
  color: #00008b;
  border: 1px solid rgba(0, 0, 139, 0.22);
}

.asmorix-sp__btn--soft:hover {
  background: #f6f7ff;
}

@media (max-width: 640px) {
  .asmorix-sp__cta--counsel,
  .asmorix-sp__cta--strip {
    flex-direction: column;
    align-items: stretch;
  }

  .asmorix-sp__cta-title {
    font-size: 20px;
  }
}

/* Mid CTA */
.asmorix-sp__mid-cta {
  position: relative;
  overflow: hidden;
  margin-top: 36px;
  padding: 32px 28px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(201, 162, 39, 0.2), transparent 50%),
    linear-gradient(145deg, #000066 0%, #00008b 58%, #0a0a4d 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 50px rgba(0, 0, 139, 0.22);
}

.asmorix-sp__mid-cta h2 {
  color: #fff !important;
  font-family: var(--sp-title-font) !important;
  font-size: 24px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  margin: 0 0 8px;
  text-transform: none !important;
}

.asmorix-sp__mid-cta p {
  margin: 0 0 16px;
  opacity: 0.92;
  font-size: 15px;
}

.asmorix-sp__mid-cta .asmorix-sp__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.asmorix-sp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.asmorix-sp a.asmorix-sp__btn--primary,
.asmorix-sp a.asmorix-sp__btn--primary:visited,
.asmorix-sp a.asmorix-sp__btn--primary:hover {
  background: #fff;
  color: #00008b !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.asmorix-sp a.asmorix-sp__btn--ghost,
.asmorix-sp a.asmorix-sp__btn--ghost:visited,
.asmorix-sp a.asmorix-sp__btn--ghost:hover {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.asmorix-sp__btn:hover {
  transform: translateY(-1px);
}

/* Trust note */
.asmorix-sp__note {
  margin-top: 24px;
  padding: 14px 16px;
  border-left: 3px solid var(--sp-blue);
  background: #f8fafc;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--sp-muted);
}

.asmorix-sp__note strong {
  color: var(--sp-ink);
}

/* Related articles */
.asmorix-sp__related {
  max-width: var(--sp-max);
  margin: 0 auto 24px;
  padding: 28px 18px 40px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(12, 90, 219, 0.06), transparent 55%),
    #f6f8fc;
  border: 1px solid #e4ebf4;
}

.asmorix-sp__related-head {
  margin-bottom: 22px;
}

.asmorix-sp__related-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-blue);
}

.asmorix-sp__related > h2,
.asmorix-sp__related-head > h2 {
  font-family: var(--sp-title-font) !important;
  font-size: 26px !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
  color: var(--sp-ink) !important;
  margin: 0;
  padding: 0 0 10px 14px;
  border-left: 3px solid var(--sp-blue);
}

.asmorix-sp__related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.asmorix-sp__related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e4ebf4;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  color: var(--sp-ink);
  min-height: 100%;
}

.asmorix-sp__related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(12, 90, 219, 0.22);
  box-shadow: 0 16px 32px rgba(7, 20, 51, 0.1);
}

.asmorix-sp__related-media {
  display: block;
  overflow: hidden;
}

.asmorix-sp__related-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.asmorix-sp__related-card:hover img {
  transform: scale(1.05);
}

.asmorix-sp__related-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
  flex: 1;
}

.asmorix-sp__related-cat {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(12, 90, 219, 0.08);
  color: #0733b6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.asmorix-sp__related-title {
  display: block;
  font-family: var(--sp-title-font);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--sp-ink);
  text-transform: none;
}

.asmorix-sp__related-more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--sp-blue);
}

.asmorix-sp__related-card:hover .asmorix-sp__related-more {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1100px) {
  .asmorix-sp__hero-inner {
    grid-template-columns: 1fr;
  }

  .asmorix-sp__hero-media {
    order: -1;
  }

  .asmorix-sp__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .asmorix-sp__body {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .asmorix-sp__toc-col {
    align-self: auto;
  }

  .asmorix-sp__toc {
    max-height: calc(100vh - var(--sp-toc-top) - 16px);
  }
}

@media (max-width: 640px) {
  .asmorix-sp__hero {
    padding: 84px 0 32px;
  }

  .asmorix-sp__title {
    font-size: 28px !important;
    max-width: none;
  }

  .asmorix-sp__content h2,
  .asmorix-sp__faq > h2 {
    font-size: 22px !important;
  }

  .asmorix-sp__content h3 {
    font-size: 18px !important;
  }

  .asmorix-sp__article {
    padding: 20px 16px 28px;
    border-radius: 16px;
  }

  .asmorix-sp__related-grid {
    grid-template-columns: 1fr;
  }

  .asmorix-sp__summarize {
    flex-direction: column;
    align-items: flex-start;
  }
}
