/* 360° Uniquizer — article reading system v2
   Loaded after the legacy article styles to provide one calm, readable layout. */

:root {
  --read-bg: #0d0d12;
  --read-surface: #14141a;
  --read-surface-soft: rgba(255, 255, 255, 0.035);
  --read-line: rgba(255, 255, 255, 0.10);
  --read-line-soft: rgba(255, 255, 255, 0.065);
  --read-text: #f4f2f6;
  --read-body: #c8c5cd;
  --read-muted: #8f8b98;
  --read-pink: #ff197d;
  --read-purple: #aa62ff;
  --read-column: 720px;
}

html {
  overflow-x: clip;
}

.article-page {
  background:
    radial-gradient(circle at 84% 7%, rgba(255, 25, 125, 0.11), transparent 27rem),
    radial-gradient(circle at 8% 34%, rgba(126, 69, 255, 0.07), transparent 31rem),
    var(--read-bg);
  background-attachment: scroll;
  animation: none;
  overflow-x: clip;
}

.article-page::before {
  top: -310px;
  right: -270px;
  width: 620px;
  height: 620px;
  opacity: 0.34;
  animation: none;
}

.article-page::after {
  display: none;
}

.article-nav {
  background: rgba(11, 11, 15, 0.88);
  border-bottom-color: var(--read-line-soft);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

.article-nav-inner {
  max-width: 1200px;
  min-height: 70px;
  padding: 12px 24px;
}

.article-reading-progress {
  position: fixed;
  z-index: 130;
  top: 69px;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: transparent;
}

.article-reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--read-pink), var(--read-purple));
  box-shadow: 0 0 14px rgba(255, 25, 125, 0.6);
  will-change: transform;
}

.article-page .container {
  width: min(100%, 1220px);
  max-width: 1220px;
  padding: 30px 32px 72px;
}

.article-breadcrumb {
  max-width: 1120px;
  margin: 0 auto 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--read-line-soft);
  color: var(--read-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.article-breadcrumb .current {
  max-width: 52ch;
  overflow: hidden;
  color: #aaa6b1;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(38px, 5vw, 76px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto 76px;
  padding: 28px 0 54px;
  border-bottom: 1px solid var(--read-line);
}

.article-header {
  min-width: 0;
  margin: 0;
}

.article-badge {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--read-pink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.article-badge::before {
  display: inline-block;
  width: 22px;
  height: 1px;
  margin: 0 10px 3px 0;
  background: currentColor;
  content: '';
}

.article-page h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--read-text);
  font-size: clamp(2.45rem, 4.5vw, 4.15rem);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: 24px;
  color: var(--read-muted);
  font-size: 0.82rem;
}

.article-date {
  display: inline-flex;
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.article-date::before {
  width: 5px;
  height: 5px;
  background: var(--read-pink);
}

.article-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-reading-time::before {
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: '';
  opacity: 0.75;
}

.article-cover {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 10;
  margin: 0;
  transform: none;
  border-color: var(--read-line);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.article-cover::after {
  background:
    linear-gradient(180deg, transparent 58%, rgba(7, 7, 10, 0.24)),
    linear-gradient(120deg, rgba(255, 25, 125, 0.07), transparent 45%);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-reading-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--read-column));
  gap: 52px;
  justify-content: center;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}

.article-toc {
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  padding: 0 18px 0 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 25, 125, 0.45) transparent;
}

.article-toc__label {
  display: block;
  margin-bottom: 17px;
  color: var(--read-text);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.article-toc ol {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.article-toc li {
  counter-increment: toc;
}

.article-toc a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border: 0;
  color: var(--read-muted);
  font-size: 0.76rem;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.18s ease;
}

.article-toc a::before {
  color: #5f5b66;
  content: counter(toc, decimal-leading-zero);
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.article-toc a:hover,
.article-toc a[aria-current='true'] {
  color: var(--read-text);
}

.article-toc a[aria-current='true']::before {
  color: var(--read-pink);
}

.article-toc-mobile {
  display: none;
}

.article-content {
  width: 100%;
  max-width: var(--read-column);
  margin: 0;
  color: var(--read-body);
  font-size: 1.055rem;
  line-height: 1.78;
  letter-spacing: -0.005em;
  counter-reset: article-section;
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content p {
  margin: 0 0 1.45em;
}

.article-content strong {
  color: #ebe8ee;
  font-weight: 680;
}

.article-lead {
  margin: 0 0 56px;
  padding: 24px 8px 27px 26px;
  border: 0;
  border-top: 1px solid var(--read-line);
  border-bottom: 1px solid var(--read-line);
  border-left: 2px solid var(--read-pink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #dfdce3;
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.74;
}

.article-content h2 {
  counter-increment: article-section;
  scroll-margin-top: 104px;
  margin: 3.15em 0 1.05em;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--read-line);
  color: var(--read-text);
  font-size: clamp(1.72rem, 3vw, 2.18rem);
  font-weight: 730;
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.article-content h2::before {
  display: block;
  margin-bottom: 10px;
  color: var(--read-pink);
  content: '0' counter(article-section);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
}

.article-content h3 {
  scroll-margin-top: 104px;
  margin: 2.2em 0 0.72em;
  color: var(--read-text);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.article-content h4 {
  margin: 1.9em 0 0.65em;
  color: var(--read-text);
  font-size: 1.04rem;
  font-weight: 700;
}

.article-content ul,
.article-content ol {
  margin: 1.45em 0 2em;
  padding: 0;
}

.article-content ul {
  list-style: none;
}

.article-content ul li {
  position: relative;
  margin: 0;
  padding: 14px 4px 14px 29px;
  border: 0;
  border-bottom: 1px solid var(--read-line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.article-content ul li:first-child {
  border-top: 1px solid var(--read-line-soft);
}

.article-content ul li:hover {
  border-color: var(--read-line-soft);
  background: transparent;
}

.article-content ul li::before {
  top: 1.62em;
  left: 5px;
  width: 6px;
  height: 6px;
  transform: none;
  background: var(--read-pink);
  box-shadow: none;
}

.article-content ol {
  display: grid;
  gap: 15px;
  list-style: none;
  counter-reset: ordered-step;
}

.article-content ol li {
  position: relative;
  min-height: 42px;
  margin: 0;
  padding: 7px 0 7px 52px;
  counter-increment: ordered-step;
}

.article-content ol li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 25, 125, 0.36);
  border-radius: 50%;
  color: var(--read-pink);
  content: counter(ordered-step, decimal-leading-zero);
  font-size: 0.65rem;
  font-weight: 800;
}

.article-block,
.article-tip,
.article-content blockquote {
  margin: 2em 0;
  padding: 22px 24px;
  border: 1px solid var(--read-line);
  border-left: 2px solid var(--read-pink);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(255, 25, 125, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: none;
  color: #d9d6dd;
}

.article-content a {
  color: #ff4c99;
  text-decoration-color: rgba(255, 76, 153, 0.36);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content a:hover {
  border: 0;
  color: #ff78b3;
  text-decoration-color: currentColor;
}

.article-content .faq-section {
  display: block;
  margin: 1.4em 0 3.2em;
  padding: 0;
  border-top: 1px solid var(--read-line);
}

.article-content .faq-item {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--read-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.article-content .faq-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 20px;
  align-items: center;
  padding: 21px 0;
  color: var(--read-text);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 690;
  line-height: 1.42;
  letter-spacing: -0.015em;
  list-style: none;
  text-wrap: pretty;
}

.article-content .faq-question::-webkit-details-marker {
  display: none;
}

.article-content .faq-question::marker {
  content: '';
}

.article-content .faq-question:focus {
  outline: none;
}

.article-content .faq-question:focus-visible {
  border-radius: 8px;
  outline: 2px solid rgba(255, 25, 125, 0.72);
  outline-offset: 5px;
}

.faq-question__icon {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  border: 1px solid var(--read-line);
  border-radius: 50%;
  transition: border-color 180ms ease, background-color 180ms ease, transform 220ms ease;
}

.faq-question__icon::before,
.faq-question__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--read-pink);
  content: '';
  transform: translate(-50%, -50%);
  transition: transform 220ms ease, opacity 180ms ease;
}

.faq-question__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.article-content .faq-item[open] .faq-question {
  color: #fff;
}

.article-content .faq-item[open] .faq-question__icon {
  border-color: rgba(255, 25, 125, 0.5);
  background: rgba(255, 25, 125, 0.09);
  transform: rotate(180deg);
}

.article-content .faq-item[open] .faq-question__icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.article-content .faq-answer {
  padding: 0 58px 24px 0;
  color: var(--read-body);
  animation: faq-answer-reveal 220ms ease-out both;
}

.article-content .faq-answer p:last-child {
  margin-bottom: 0;
}

@keyframes faq-answer-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-content img,
.article-content video,
.article-content iframe {
  border: 1px solid var(--read-line);
  border-radius: 14px;
}

.article-editorial-update h2 {
  counter-increment: none;
  padding: 0;
  border: 0;
}

.article-editorial-update h2::before {
  display: none;
  content: none;
}

.article-editorial-update__checklist li:first-child {
  border-top: 0;
}

.article-editorial-update__checklist li::before {
  top: auto;
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
}

/* Durable editorial/SEO support block injected into every article. */
.article-reviewed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 42px 0 0 !important;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #8f8f9c;
  font-size: 12px !important;
}

.article-reviewed span::before {
  content: '✓';
  margin-right: 8px;
  color: #ff197d;
  font-weight: 800;
}

.article-resources {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(260px,.92fr);
  gap: clamp(28px,5vw,64px);
  margin: 46px 0;
  padding: 34px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.article-resources h2,
.article-product-path h2 {
  margin: 0 0 12px !important;
  font-size: clamp(23px,3vw,32px) !important;
}

.article-resources h2::before,
.article-product-path h2::before {
  display: none !important;
}

.article-resources p {
  margin: 0 0 14px;
  color: #92929e;
  font-size: 13px;
}

.article-resources ul {
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.article-resources li {
  margin: 0 !important;
  padding: 11px 0 !important;
  border-top: 1px solid rgba(255,255,255,.075) !important;
  background: none !important;
}

.article-resources li::before {
  display: none !important;
}

.article-resources a {
  display: inline-flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.article-resources a::after {
  content: '↗';
  color: #ff197d;
}

.article-product-path {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: clamp(24px,5vw,72px);
  margin: 46px 0 12px;
  padding: clamp(26px,4vw,42px);
  border: 1px solid rgba(255,25,125,.28);
  border-radius: 22px;
  background: linear-gradient(120deg,rgba(255,25,125,.11),rgba(166,62,255,.08) 54%,rgba(15,15,20,.75));
}

.article-product-path p {
  max-width: 680px;
  margin: 0 !important;
  color: #b8b8c2;
  font-size: 14px;
}

.article-product-path > a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 13px;
  background: linear-gradient(110deg,#ff0b72,#bd2ce3);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 16px 42px rgba(255,11,114,.2);
}

.article-seo-faq {
  margin-top: 44px !important;
}

.article-cta:not(div) {
  min-height: 52px;
  margin: 54px auto 0;
  padding: 0 24px;
  border-color: rgba(255, 25, 125, 0.34);
  border-radius: 12px;
  background: linear-gradient(110deg, rgba(255, 25, 125, 0.15), rgba(170, 98, 255, 0.10));
  color: #fff;
}

.article-footer,
.related-articles {
  max-width: var(--read-column);
  margin-right: auto;
  margin-left: auto;
}

.related-articles {
  margin-top: 64px;
  padding-top: 34px;
}

.related-articles-list {
  gap: 0;
}

.related-articles-list a {
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid var(--read-line-soft);
  border-radius: 0;
  background: transparent;
  color: var(--read-body);
}

.related-articles-list a:first-child {
  border-top: 1px solid var(--read-line-soft);
}

.related-articles-list a:hover {
  padding-left: 8px;
  border-color: var(--read-line-soft);
  background: transparent;
  color: #fff;
}

@media (max-width: 1050px) {
  .article-reading-layout {
    grid-template-columns: 190px minmax(0, var(--read-column));
    gap: 34px;
  }
}

@media (max-width: 900px) {
  .article-page .container {
    padding-right: 24px;
    padding-left: 24px;
  }

  .article-hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.76fr);
    gap: 30px;
  }

  .article-page h1 {
    font-size: clamp(2.25rem, 5.6vw, 3.35rem);
  }

  .article-reading-layout {
    display: block;
    max-width: var(--read-column);
  }

  .article-toc {
    display: none;
  }

  .article-toc-mobile {
    display: block;
    margin: 0 0 38px;
    border-top: 1px solid var(--read-line);
    border-bottom: 1px solid var(--read-line);
  }

  .article-toc-mobile summary {
    padding: 16px 0;
    color: var(--read-text);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    list-style: none;
    text-transform: uppercase;
  }

  .article-toc-mobile summary::-webkit-details-marker {
    display: none;
  }

  .article-toc-mobile summary::after {
    float: right;
    color: var(--read-pink);
    content: '+';
    font-size: 1rem;
  }

  .article-toc-mobile[open] summary::after {
    content: '−';
  }

  .article-toc-mobile ol {
    display: grid;
    gap: 0;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    counter-reset: mobile-toc;
  }

  .article-toc-mobile li {
    counter-increment: mobile-toc;
  }

  .article-toc-mobile a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 0;
    border-top: 1px solid var(--read-line-soft);
    color: var(--read-body);
    font-size: 0.84rem;
    line-height: 1.45;
    text-decoration: none;
  }

  .article-toc-mobile a::before {
    color: var(--read-pink);
    content: counter(mobile-toc, decimal-leading-zero);
    font-size: 0.66rem;
  }
}

@media (max-width: 720px) {
  .article-reading-progress {
    top: calc(57px + env(safe-area-inset-top, 0px));
  }

  .article-page .container {
    width: 100%;
    padding: 20px max(17px, env(safe-area-inset-right, 0px)) calc(54px + env(safe-area-inset-bottom, 0px)) max(17px, env(safe-area-inset-left, 0px));
  }

  .article-breadcrumb {
    margin-bottom: 18px;
    padding-bottom: 14px;
  }

  .article-breadcrumb .current {
    display: none;
  }

  .article-hero-shell {
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: stretch;
    margin-bottom: 48px;
    padding: 16px 0 34px;
  }

  .article-header {
    order: 1;
  }

  .article-cover {
    order: 2;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  }

  .article-page h1 {
    max-width: none;
    font-size: clamp(2rem, 9.3vw, 2.75rem);
    line-height: 1.04;
  }

  .article-meta {
    margin-top: 18px;
  }

  .article-content {
    font-size: 1rem;
    line-height: 1.72;
  }

  .article-lead {
    margin-bottom: 42px;
    padding: 19px 2px 21px 18px;
    font-size: 1.02rem;
    line-height: 1.68;
  }

  .article-content h2 {
    margin-top: 2.7em;
    padding-top: 20px;
    font-size: clamp(1.55rem, 7vw, 1.9rem);
  }

  .article-content h3 {
    font-size: 1.18rem;
  }

  .article-content ul li {
    padding: 12px 0 12px 25px;
  }

  .article-content ul li::before {
    left: 3px;
  }

  .article-content ol li {
    padding-left: 46px;
  }

  .article-block,
  .article-tip,
  .article-content blockquote {
    padding: 18px;
    border-radius: 10px;
  }

  .article-editorial-update {
    margin: 38px 0;
  }

  .article-content .faq-section {
    margin-bottom: 2.7em;
  }

  .article-content .faq-question {
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 14px;
    padding: 17px 0;
    font-size: 1rem;
    line-height: 1.38;
  }

  .faq-question__icon {
    width: 32px;
    height: 32px;
  }

  .article-content .faq-answer {
    padding: 0 0 20px;
    font-size: 0.95rem;
    line-height: 1.68;
  }
}

@media (max-width: 720px) {
  .article-reviewed {
    align-items: flex-start;
    margin-top: 30px !important;
  }

  .article-resources,
  .article-product-path {
    grid-template-columns: 1fr;
  }

  .article-resources {
    gap: 30px;
    margin: 34px 0;
    padding: 26px 0;
  }

  .article-product-path {
    margin-top: 34px;
    padding: 24px 20px;
    border-radius: 18px;
  }

  .article-product-path > a {
    width: 100%;
  }
}

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