/* Advanced article template. Loaded after upgrade-editorial.css. */

.u-article-hero .u-hero-image {
  opacity: 1;
  object-position: 70% 32%;
}

.u-article-hero:after {
  background: linear-gradient(90deg, #041522f7 0%, #041522d4 32%, #04152266 60%, transparent 88%);
}

.rr-guide {
  max-width: none;
}

.rr-takeaways {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 22px 16px;
  margin: 4px 0 28px;
}

.rr-takeaways h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.rr-takeaways h2::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5 10 17.5 19 7.5'/></svg>") center / 13px no-repeat;
}

.rr-points,
.rr-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rr-points li,
.rr-check li {
  position: relative;
  padding: 8px 0 8px 30px;
  line-height: 1.55;
}

.rr-points li::before,
.rr-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5 10 17.5 19 7.5'/></svg>") center / 11px no-repeat;
}

.rr-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.rr-option-grid {
  display: grid;
  gap: 14px;
  margin: 18px 0 8px;
}

.rr-option-grid[data-cols="2"] {
  grid-template-columns: 1fr 1fr;
}

.rr-option {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  padding: 16px 16px 14px;
  background: #fff;
}

.rr-option h3 {
  margin-top: 0;
  font-size: 20px;
}

.rr-option p:last-child {
  margin-bottom: 0;
}

.u-article-layout,
.u-article-layout > article,
.u-article-layout > aside,
.rr-guide {
  min-width: 0;
  max-width: 100%;
}

.rr-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  margin: 16px 0 4px;
  -webkit-overflow-scrolling: touch;
}

.rr-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.rr-table th,
.rr-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 12px 12px;
}

.rr-table th {
  background: var(--soft);
  font-size: 13px;
  letter-spacing: 0;
}

.rr-table td:first-child,
.rr-table th:first-child {
  font-weight: 800;
}

.rr-figure {
  margin: 18px 0 8px;
}

.rr-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 0;
}

.rr-guide h2 {
  scroll-margin-top: 24px;
}

.u-prose details.rr-native-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  font-size: 16px;
  line-height: 1.4;
  list-style: none;
}

.u-prose details.rr-native-faq summary::-webkit-details-marker {
  display: none;
}

.u-prose details.rr-native-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.u-prose details.rr-native-faq[open] summary::after {
  content: "–";
}

.u-prose details.rr-native-faq summary:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}

.u-prose .rr-native-answer {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  padding: 0 36px 8px 0;
}

.rr-pull {
  margin: 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--blue);
}

.rr-pull p {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.rr-pull footer {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.u-toc a[aria-current="true"] {
  border-left-color: var(--action);
  color: var(--link);
  font-weight: 800;
}

.u-prose ol.process {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 10px;
}

.u-prose ol.process li {
  background: var(--soft);
  border-radius: 6px;
  padding: 12px 14px;
}

@media (max-width: 800px) {
  .rr-option-grid[data-cols="2"] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .u-article-hero .u-hero-image {
    opacity: 0.72;
    object-position: 72% 22%;
  }

  .u-article-hero:after {
    background: linear-gradient(180deg, #041522f2 0%, #041522c7 70%, #041522e8 100%);
  }

  .rr-pull {
    display: none;
  }

  .rr-table {
    font-size: 14px;
  }

  .rr-takeaways,
  .rr-option {
    padding: 16px;
  }
}
