/**
 * Single blog post — /resources/blogs/{slug}/.
 * Uses the homepage type scale and tokens from inner-shared.css (.ip-page);
 * related cards reuse .bl-card from inner-pages.css + blogs.css.
 */

html:has(.ar-page) {
  scroll-behavior: smooth;
}

.ar-page {
  --ar-title: var(--qt-text-h-text2, #160707);
  --ar-body: #2b313b;
  --ar-anchor-gap: calc(var(--ip-sticky-pad, 112px) + 16px);
  background: #fff;
}

.ar-rail {
  max-width: calc(1184px + 56px);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── reading progress ─────────────────────────────────────────────────── */

.ar-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10000;
  height: 3px;
  pointer-events: none;
}

.ar-progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8e0000 0%, #d01616 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ── header ───────────────────────────────────────────────────────────── */

/* Same red band as How it works on the homepage (.fp-how--red). */
.ar-head {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 48% at 88% 6%, rgba(255, 92, 72, 0.34), transparent 58%),
    radial-gradient(ellipse 70% 42% at 8% 94%, rgba(255, 60, 48, 0.22), transparent 55%),
    linear-gradient(168deg, #6e0101 0%, #9b0000 42%, #7a0101 68%, #52010a 100%);
}

.ar-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(122deg, transparent 0, transparent 11px, rgb(255 255 255 / 4%) 11px, rgb(255 255 255 / 0%) 12.2px);
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 40%, #000 0%, #000 35%, transparent 92%);
  mask-image: radial-gradient(ellipse 100% 90% at 50% 40%, #000 0%, #000 35%, transparent 92%);
}

.ar-head__rail {
  position: relative;
  z-index: 1;
  padding-top: 44px;
  padding-bottom: 40px;
}

.ar-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--fp-label);
  font-size: 13px;
  font-weight: 500;
  color: var(--fp-hint);
}

.ar-crumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ar-crumb li + li::before {
  content: "/";
  color: #c4c9d1;
}

.ar-crumb a {
  color: var(--fp-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.ar-crumb a:hover {
  color: var(--fp-red);
}

.ar-crumb [aria-current] {
  max-width: 34ch;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--fp-hint);
}

.ar-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 36px;
  font-family: var(--fp-label);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fp-dim);
}

.ar-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fp-red) 10%, #fff);
  color: var(--fp-red);
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.ar-chip:hover {
  background: var(--fp-red);
  color: #fff;
}

.ar-head__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ar-head__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ar-head__title {
  margin: 18px 0 0;
  max-width: 22ch;
  font-family: var(--fp-display);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.07;
  text-wrap: balance;
  color: var(--ar-title);
}

.ar-dek {
  margin: 22px 0 0;
  max-width: 62ch;
  font-family: var(--fp-sans);
  font-size: 20px;
  line-height: 1.6;
  color: var(--fp-muted);
  text-wrap: pretty;
}

.ar-head__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--fp-line);
}

.ar-author__avatar img {
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--fp-line);
}

.ar-byline__dates {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-family: var(--fp-label);
  font-size: 13.5px;
  color: var(--fp-hint);
}

.ar-byline__dates time {
  font-weight: 600;
  color: var(--fp-dim);
}

/* ── share ────────────────────────────────────────────────────────────── */

.ar-share {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ar-share__label {
  margin-right: 4px;
  font-family: var(--fp-label);
  font-size: 13px;
  font-weight: 600;
  color: var(--fp-dim);
}

.ar-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--fp-line);
  background: #fff;
  color: var(--fp-ink);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ar-share__btn:hover,
.ar-share__btn.is-copied {
  background: var(--fp-red);
  border-color: var(--fp-red);
  color: #fff;
  transform: translateY(-1px);
}

.ar-share__btn:focus-visible,
.ar-toc a:focus-visible,
.ar-faq__item summary:focus-visible {
  outline: 2px solid var(--fp-red);
  outline-offset: 3px;
}

.ar-share__status {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  font-family: var(--fp-label);
  font-size: 12px;
  font-weight: 600;
  color: #1f7a3a;
  white-space: nowrap;
}

/* ── header on the red band ───────────────────────────────────────────── */

.ar-head .ar-crumb ol,
.ar-head .ar-crumb [aria-current] {
  color: rgba(255, 255, 255, 0.6);
}

.ar-head .ar-crumb li + li::before {
  color: rgba(255, 255, 255, 0.35);
}

.ar-head .ar-crumb a {
  color: rgba(255, 255, 255, 0.82);
}

.ar-head .ar-crumb a:hover {
  color: #ffb4a8;
}

.ar-head .ar-head__meta {
  color: rgba(255, 255, 255, 0.72);
}

.ar-head .ar-chip {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ar-head .ar-chip:hover {
  background: #fff;
  color: var(--fp-red);
}

.ar-head .ar-head__title {
  color: #fff;
}

.ar-head .ar-dek {
  color: rgba(255, 255, 255, 0.78);
}

.ar-head .ar-head__foot {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.ar-head .ar-share__label {
  color: rgba(255, 255, 255, 0.72);
}

.ar-head .ar-byline__dates {
  color: rgba(255, 255, 255, 0.66);
}

.ar-head .ar-byline__dates time {
  color: #fff;
}

.ar-head .ar-share__btn {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.ar-head .ar-share__btn:hover,
.ar-head .ar-share__btn.is-copied {
  border-color: #fff;
  background: #fff;
  color: var(--fp-red);
}

.ar-head .ar-share__btn:focus-visible {
  outline-color: #fff;
}

.ar-head .ar-share__status {
  color: #c9f7d6;
}

/* ── header with side image ───────────────────────────────────────────── */

.ar-head--media .ar-head__rail {
  padding-bottom: 56px;
}

.ar-head--media .ar-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 56px;
}

.ar-head--media .ar-head__title {
  max-width: 20ch;
  font-size: clamp(32px, 3.7vw, 50px);
}

.ar-head--media .ar-dek {
  font-size: 18.5px;
}

.ar-hero {
  min-width: 0;
  margin: 36px 0 0;
}

/* The frame follows the image's own aspect ratio. Width shrinks with the
   height cap so the photo fills the box and nothing is painted around it. */
.ar-hero__frame {
  --ar-max-h: 620px;
  position: relative;
  overflow: hidden;
  width: min(100%, calc(var(--ar-max-h) * var(--ar-ratio, 1.3333)));
  max-height: var(--ar-max-h);
  aspect-ratio: var(--ar-ratio, 4 / 3);
  border-radius: 22px;
  margin-left: auto;
}

.ar-hero__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ar-hero figcaption {
  margin-top: 12px;
  font-family: var(--fp-label);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

/* ── layout ───────────────────────────────────────────────────────────── */

.ar-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 280px;
  justify-content: space-between;
  gap: 64px;
  align-items: start;
  padding-top: 60px;
  padding-bottom: 96px;
}

.ar-main {
  min-width: 0;
}

/* The aside spans the article's height so the guide + promo can stick inside it. */
.ar-aside {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 18px;
}

.ar-aside__sticky {
  position: sticky;
  top: calc(var(--ip-sticky-pad, 112px) + 8px);
  display: grid;
  gap: 18px;
}

/* ── article details ──────────────────────────────────────────────────── */

.ar-facts {
  padding: 20px;
  border: 1px solid var(--fp-line);
  border-radius: 18px;
  background: var(--fp-wash);
}

.ar-facts__head {
  margin: 0 0 14px;
  font-family: var(--fp-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--fp-hint);
}

.ar-facts__list {
  margin: 0;
}

.ar-facts__list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--fp-line);
}

.ar-facts__list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ar-facts__list dt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--fp-label);
  font-size: 13px;
  font-weight: 500;
  color: var(--fp-dim);
}

.ar-facts__list dt i {
  width: 14px;
  font-size: 13px;
  text-align: center;
  color: var(--fp-red);
}

.ar-facts__list dd {
  margin: 0;
  font-family: var(--fp-label);
  font-size: 13.5px;
  font-weight: 600;
  text-align: right;
  color: var(--fp-ink);
}

.ar-facts__list dd a {
  color: var(--fp-red);
  text-decoration: none;
}

.ar-facts__list dd a:hover {
  text-decoration: underline;
}

.ar-facts__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--fp-line);
  list-style: none;
}

.ar-facts__tags a {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--fp-line);
  background: #fff;
  font-family: var(--fp-label);
  font-size: 12px;
  font-weight: 600;
  color: var(--fp-dim);
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.ar-facts__tags a:hover {
  border-color: var(--fp-red);
  color: var(--fp-red);
}

/* ── table of contents ────────────────────────────────────────────────── */

.ar-toc__head {
  display: block;
  margin-bottom: 14px;
  font-family: var(--fp-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-hint);
}

.ar-toc__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--fp-line);
}

/* Sidebar: dark card, H2s only. */
.ar-toc--side {
  padding: 22px 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 90% 55% at 0% 0%, rgba(190, 22, 22, 0.22) 0%, transparent 60%),
    #0b0d12;
  box-shadow: 0 24px 46px -30px rgba(11, 13, 18, 0.55);
}

.ar-toc--side .ar-toc__head {
  color: #ff7a6b;
  letter-spacing: 0.1em;
}

.ar-toc--side .ar-toc__list {
  max-height: calc(100vh - var(--ip-sticky-pad, 112px) - 250px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-left-color: rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.ar-toc--side .ar-toc__item a {
  padding: 8px 4px 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.66);
}

.ar-toc--side .ar-toc__item a:hover {
  color: #fff;
}

.ar-toc--side .ar-toc__item a.is-active {
  color: #fff;
  font-weight: 700;
}

.ar-toc--side .ar-toc__item a.is-active::before {
  background: #ff4b3a;
}

.ar-toc__item a {
  position: relative;
  display: block;
  padding: 7px 0 7px 16px;
  font-family: var(--fp-sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--fp-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.ar-toc__item a::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: -1px;
  width: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background-color 0.18s ease;
}

.ar-toc__item a:hover {
  color: var(--fp-ink);
}

.ar-toc__item a.is-active {
  color: var(--fp-ink);
  font-weight: 600;
}

.ar-toc__item a.is-active::before {
  background: var(--fp-red);
}

.ar-toc--inline {
  display: none;
  margin-bottom: 32px;
  border: 1px solid var(--fp-line);
  border-radius: 16px;
  background: var(--fp-wash);
}

.ar-toc--inline summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-family: var(--fp-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fp-ink);
  cursor: pointer;
  list-style: none;
}

.ar-toc--inline summary::-webkit-details-marker {
  display: none;
}

.ar-toc--inline summary::after {
  content: "\f107";
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "FontAwesome";
  font-weight: 900;
  font-size: 13px;
  color: var(--fp-dim);
  transition: transform 0.2s ease;
}

.ar-toc--inline[open] summary::after {
  transform: rotate(180deg);
}

.ar-toc--inline nav {
  padding: 0 20px 16px;
}

/* ── promo card ───────────────────────────────────────────────────────── */

.ar-promo {
  padding: 22px 20px;
  border: 1px solid var(--fp-line);
  border-radius: 18px;
  background: var(--fp-wash);
}

.ar-promo__kicker {
  display: block;
  font-family: var(--fp-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-red);
}

.ar-promo__title {
  margin: 8px 0 16px;
  font-family: var(--fp-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--fp-ink);
}

.ar-promo .ip-btn {
  box-sizing: border-box;
  width: 100%;
}

/* ── key takeaways ────────────────────────────────────────────────────── */

.ar-takeaways {
  margin-bottom: 40px;
  padding: 24px 26px 22px;
  border: 1px solid color-mix(in srgb, var(--fp-red) 18%, var(--fp-line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--fp-red) 4%, #fff);
}

.ar-takeaways__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--fp-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-red);
}

.ar-takeaways ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ar-takeaways li {
  position: relative;
  padding-left: 28px;
  font-family: var(--fp-sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--fp-ink);
}

.ar-takeaways li::before {
  content: "\f00c";
  position: absolute;
  top: 4px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fp-red);
  color: #fff;
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "FontAwesome";
  font-weight: 900;
  font-size: 9px;
}

/* ── prose ────────────────────────────────────────────────────────────── */

.ar-prose {
  font-family: var(--fp-sans);
  font-size: 18px;
  line-height: 1.78;
  color: var(--ar-body);
  overflow-wrap: break-word;
}

.ar-prose > *:first-child {
  margin-top: 0;
}

.ar-prose > p:first-child {
  font-size: 20px;
  line-height: 1.7;
  color: var(--fp-ink);
}

.ar-prose :is(h2, h3, h4) {
  scroll-margin-top: var(--ar-anchor-gap);
  font-family: var(--fp-display);
  font-weight: 800;
  color: var(--ar-title);
  text-wrap: balance;
}

.ar-prose h2 {
  margin: 2.1em 0 0.6em;
  font-size: clamp(26px, 2.6vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.ar-prose h3 {
  margin: 1.8em 0 0.5em;
  font-size: 22px;
  letter-spacing: -0.022em;
  line-height: 1.28;
}

.ar-prose h4 {
  margin: 1.6em 0 0.4em;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.ar-prose p,
.ar-prose ul,
.ar-prose ol,
.ar-prose dl {
  margin: 0 0 1.2em;
}

.ar-prose strong {
  font-weight: 700;
  color: var(--fp-ink);
}

.ar-prose a {
  color: var(--fp-red);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--fp-red) 40%, transparent);
  transition: text-decoration-color 0.18s ease;
}

.ar-prose a:hover {
  text-decoration-color: currentColor;
}

.ar-prose ul,
.ar-prose ol {
  padding-left: 1.4em;
}

.ar-prose li {
  margin-bottom: 0.5em;
  padding-left: 0.3em;
}

.ar-prose li::marker {
  color: var(--fp-red);
  font-weight: 700;
}

.ar-prose blockquote,
.ar-prose .wp-block-quote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--fp-red);
  font-family: var(--fp-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.45;
  color: var(--fp-ink);
}

.ar-prose blockquote p:last-child {
  margin-bottom: 0;
}

.ar-prose blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--fp-label);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  color: var(--fp-dim);
}

.ar-prose .wp-block-pullquote {
  margin: 2.4em 0;
  padding: 32px 0;
  border-top: 1px solid var(--fp-line);
  border-bottom: 1px solid var(--fp-line);
  text-align: center;
}

.ar-prose .wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 26px;
}

/* Media never outgrows the reading column, whatever width the editor or an
   embed provider writes into the markup (classic captions set an inline width). */
.ar-prose :is(img, video, iframe, embed, object, svg, canvas) {
  max-width: 100%;
}

.ar-prose img {
  height: auto;
  border-radius: 14px;
}

.ar-prose video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: #0b0d12;
}

.ar-prose iframe {
  border: 0;
}

.ar-prose :is(figure, .wp-caption, .wp-block-image, .wp-block-embed, .wp-block-video, .wp-block-gallery, .alignwide, .alignfull) {
  max-width: 100% !important;
  box-sizing: border-box;
}

.ar-prose figure,
.ar-prose .wp-caption {
  margin: 2em 0;
}

.ar-prose :is(figure, .wp-caption) img {
  display: block;
}

.ar-prose img.aligncenter {
  display: block;
}

.ar-prose .aligncenter,
.ar-prose .aligncenter img {
  margin-right: auto;
  margin-left: auto;
}

.ar-prose .alignleft {
  float: left;
  max-width: 50% !important;
  margin: 0.35em 1.6em 1em 0;
}

.ar-prose .alignright {
  float: right;
  max-width: 50% !important;
  margin: 0.35em 0 1em 1.6em;
}

.ar-prose::after {
  content: "";
  display: table;
  clear: both;
}

.ar-prose .wp-block-embed__wrapper {
  position: relative;
}

.ar-prose figcaption,
.ar-prose .wp-element-caption {
  margin-top: 10px;
  font-family: var(--fp-label);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fp-hint);
  text-align: center;
}

.ar-prose .wp-block-table {
  overflow-x: auto;
}

.ar-prose table {
  width: 100%;
  margin: 0 0 1.4em;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--fp-line);
  border-radius: 14px;
  overflow: hidden;
  font-size: 15.5px;
  line-height: 1.5;
}

.ar-prose th,
.ar-prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--fp-line);
  text-align: left;
  vertical-align: top;
}

.ar-prose th {
  background: var(--fp-wash);
  font-family: var(--fp-display);
  font-weight: 700;
  color: var(--fp-ink);
}

.ar-prose tr:last-child td {
  border-bottom: 0;
}

.ar-prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--fp-chip);
  font-size: 0.88em;
  color: var(--fp-ink);
}

.ar-prose pre {
  margin: 0 0 1.4em;
  padding: 20px 22px;
  border-radius: 14px;
  background: #0b0d12;
  color: #e9ecf1;
  font-size: 14.5px;
  line-height: 1.65;
  overflow-x: auto;
}

.ar-prose pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.ar-prose hr,
.ar-prose .wp-block-separator {
  margin: 2.6em 0;
  border: 0;
  border-top: 1px solid var(--fp-line);
}

.ar-prose .is-type-video .wp-block-embed__wrapper iframe,
.ar-prose iframe:is([src*="youtube"], [src*="youtu.be"], [src*="vimeo"], [src*="wistia"], [src*="loom.com"]) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
}

/* Social embeds (Instagram, TikTok, X) size themselves; just keep them centred. */
.ar-prose :is(.instagram-media, .tiktok-embed, .twitter-tweet) {
  max-width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.ar-prose .wp-block-button__link {
  display: inline-flex;
  padding: 14px 26px;
  border-radius: 8px;
  background: linear-gradient(180deg, #b40606 0%, #8e0000 100%);
  color: #fff;
  font-family: var(--fp-display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.ar-faq {
  margin-top: 56px;
}

.ar-faq__title {
  scroll-margin-top: var(--ar-anchor-gap);
  margin: 0 0 18px;
  font-family: var(--fp-display);
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ar-title);
}

.ar-faq__item {
  border-bottom: 1px solid var(--fp-line);
}

.ar-faq__item:first-of-type {
  border-top: 1px solid var(--fp-line);
}

.ar-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}

.ar-faq__item summary::-webkit-details-marker {
  display: none;
}

.ar-faq__item summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--fp-chip);
  font-family: var(--fp-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--fp-ink);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ar-faq__item[open] summary::after {
  transform: rotate(45deg);
  background: var(--fp-red);
  color: #fff;
}

.ar-faq__item h3 {
  margin: 0;
  font-family: var(--fp-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.35;
  color: var(--fp-ink);
}

.ar-faq__item p {
  margin: -4px 0 22px;
  max-width: 64ch;
  font-family: var(--fp-sans);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--fp-muted);
}

/* ── end of article ───────────────────────────────────────────────────── */

.ar-end {
  display: grid;
  gap: 28px;
  margin-top: 56px;
}

.ar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ar-tags a {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--fp-line);
  background: #fff;
  font-family: var(--fp-label);
  font-size: 13px;
  font-weight: 600;
  color: var(--fp-dim);
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.ar-tags a:hover {
  border-color: var(--fp-red);
  color: var(--fp-red);
}

.ar-end__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--fp-line);
  border-bottom: 1px solid var(--fp-line);
}

.ar-end__stamp {
  margin: 0;
  font-family: var(--fp-label);
  font-size: 13.5px;
  color: var(--fp-hint);
}

.ar-end__stamp time {
  font-weight: 600;
  color: var(--fp-dim);
}

.ar-author {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--fp-line);
  border-radius: 20px;
  background: var(--fp-wash);
}

.ar-author__avatar {
  flex: none;
}

.ar-author__avatar img {
  width: 72px;
  height: 72px;
}

.ar-author__kicker {
  display: block;
  font-family: var(--fp-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-hint);
}

.ar-author__name {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--fp-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.022em;
  color: var(--fp-ink);
  text-decoration: none;
}

.ar-author__name:hover {
  color: var(--fp-red);
}

.ar-author p {
  margin: 8px 0 0;
  font-family: var(--fp-sans);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--fp-muted);
}

.ar-news {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 18px 28px;
  padding: 26px;
  border: 1px solid var(--fp-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 13, 18, 0.04);
}

.ar-news__title {
  margin: 0;
  font-family: var(--fp-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.25;
  color: var(--fp-ink);
}

.ar-news p {
  margin: 6px 0 0;
  font-family: var(--fp-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fp-muted);
}

.ar-news__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ar-news__form .ip-input {
  flex: 1 1 200px;
  min-width: 0;
}

.ar-news__form .ip-btn {
  flex: none;
}

.ar-news__msg {
  flex-basis: 100%;
  margin: 0;
  font-weight: 600;
}

.ar-news__msg--ok {
  color: #1f7a3a;
}

.ar-news__msg--err {
  color: var(--fp-red);
}

/* ── related ──────────────────────────────────────────────────────────── */

.ar-related {
  background: var(--fp-wash);
  border-top: 1px solid var(--fp-line);
  border-bottom: 1px solid var(--fp-line);
}

.ar-related__rail {
  padding-top: 88px;
  padding-bottom: 96px;
}

.ar-related__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.ar-related__title {
  margin: 14px 0 0;
  font-family: var(--fp-display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ar-title);
}

.ar-related__all {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--fp-line);
  background: #fff;
  font-family: var(--fp-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--fp-ink);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ar-related__all i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.ar-related__all:hover {
  background: var(--fp-red);
  border-color: var(--fp-red);
  color: #fff;
}

.ar-related__all:hover i {
  transform: translateX(3px);
}

/* ── responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .ar-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .ar-main {
    max-width: 760px;
  }

  .ar-aside {
    display: none;
  }

  .ar-toc--inline {
    display: block;
  }
}

@media (max-width: 991px) {
  .ar-rail {
    padding: 0 20px;
  }

  .ar-head--media .ar-head__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .ar-head--media .ar-head__title {
    max-width: 22ch;
    font-size: clamp(32px, 6vw, 46px);
  }

  .ar-hero {
    margin-top: 0;
  }

  .ar-hero__frame {
    --ar-max-h: 560px;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  .ar-head__rail {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .ar-head__meta {
    margin-top: 24px;
  }

  .ar-dek {
    font-size: 17.5px;
  }

  .ar-head__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .ar-head--media .ar-head__rail {
    padding-bottom: 36px;
  }

  .ar-hero__frame {
    --ar-max-h: 480px;
    border-radius: 16px;
  }

  .ar-layout {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .ar-prose {
    font-size: 17px;
    line-height: 1.72;
  }

  .ar-prose > p:first-child {
    font-size: 18px;
  }

  .ar-prose .alignleft,
  .ar-prose .alignright {
    float: none;
    max-width: 100% !important;
    margin: 2em 0;
  }

  .ar-prose blockquote,
  .ar-prose .wp-block-quote {
    font-size: 19px;
  }

  .ar-takeaways,
  .ar-author,
  .ar-news {
    padding: 20px;
  }

  .ar-author {
    flex-direction: column;
    gap: 14px;
  }

  .ar-news {
    grid-template-columns: minmax(0, 1fr);
  }

  .ar-news__form .ip-btn {
    width: 100%;
  }

  .ar-related__rail {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .ar-related__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.ar-page) {
    scroll-behavior: auto;
  }

  .ar-progress {
    display: none;
  }
}

@media print {
  .ar-progress,
  .ar-share,
  .ar-aside,
  .ar-toc--inline,
  .ar-news,
  .ar-related,
  .ar-page .ip-cta {
    display: none !important;
  }

  .ar-layout {
    display: block;
    padding: 24px 0;
  }

  .ar-prose a {
    text-decoration: underline;
  }
}
