:root {
  --navy: #001040;
  --blue: #0080f0;
  --blue-dark: #006dcc;
  --blue-pale: #eaf5fe;
  --green: #06c755;
  --text: #25365a;
  --muted: #667493;
  --line: #dce8f5;
  --white: #fff;
  --shadow: 0 12px 32px rgba(0, 16, 64, 0.09);
  --blog-header-height: 68px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  background: #f8fbff;
  font-family: "M PLUS Rounded 1c", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--blue-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(0, 128, 240, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 16, 64, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  width: min(1160px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  display: block;
  width: 150px;
  height: 50px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 24px;
}

.desktop-nav a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a[aria-current="page"] {
  color: var(--blue);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 6px 18px rgba(0, 128, 240, 0.26);
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.header-cta {
  padding: 10px 18px;
  font-size: 13px;
  white-space: nowrap;
}

.header-cta:hover,
.button:hover {
  color: var(--white);
  background: var(--blue-dark);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  color: var(--blue);
  background: var(--blue-pale);
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}

.mobile-menu {
  width: min(100% - 32px, 440px);
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--blue);
  background: var(--blue-pale);
}

.page-hero {
  padding: 66px 20px 54px;
  background: linear-gradient(145deg, #f7fbff, var(--blue-pale));
}

.page-hero-inner {
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.page-hero h1,
.article-header h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.title-phrase-nowrap {
  white-space: nowrap;
}

.page-hero p {
  max-width: 700px;
  margin: 18px auto 0;
  color: var(--text);
  font-size: 16px;
  line-height: 2;
}

.content-shell {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.section-title {
  margin: 0 0 24px;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.5;
}

.category-list {
  display: flex;
  margin: 0 0 42px;
  padding: 0;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.category-list a,
.category-chip {
  display: inline-flex;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-pale);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 16, 64, 0.06);
}

.post-card > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.post-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.post-card-body {
  padding: 22px;
}

.post-card h2 {
  margin: 13px 0 10px;
  font-size: 20px;
  line-height: 1.6;
}

.post-card p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.85;
}

.post-meta {
  display: flex;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  padding: 36px 24px;
  border: 1px dashed #b9cbe0;
  border-radius: 18px;
  color: var(--muted);
  background: var(--white);
  text-align: center;
}

.breadcrumbs {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.breadcrumbs ol {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 7px;
  content: "›";
}

.article-layout {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 80px;
}

.article-header {
  margin-bottom: 28px;
  text-align: center;
}

.article-header .category-chip {
  margin-bottom: 18px;
}

.article-header .post-meta {
  justify-content: center;
  margin-top: 18px;
  font-size: 13px;
}

.article-eyecatch {
  display: block;
  width: 100%;
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.article-body {
  padding: 42px clamp(20px, 6vw, 70px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 17px;
  line-height: 2;
}

.article-body h2 {
  margin: 2.6em 0 0.9em;
  padding: 0 0 0.45em;
  border-bottom: 3px solid var(--blue-pale);
  color: var(--navy);
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.55;
  scroll-margin-top: calc(var(--blog-header-height) + 18px);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin: 2em 0 0.75em;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
  color: var(--navy);
  font-size: clamp(20px, 3vw, 24px);
  line-height: 1.6;
}

.article-body p {
  margin: 0 0 1.6em;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.8em;
  padding-left: 1.5em;
}

.article-body li + li {
  margin-top: 0.45em;
}

.article-body a {
  font-weight: 700;
}

.article-body blockquote {
  margin: 1.8em 0;
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: var(--blue-pale);
}

.article-body img {
  display: block;
  max-width: 100%;
  margin: 1.8em auto;
  border-radius: 16px;
}

.article-body pre {
  overflow-x: auto;
  margin: 1.8em 0;
  padding: 20px;
  border-radius: 14px;
  color: #eef5ff;
  background: #071535;
  font: 14px/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  tab-size: 2;
}

.article-body :not(pre) > code {
  padding: 0.15em 0.42em;
  border-radius: 5px;
  color: #004f94;
  background: var(--blue-pale);
  font: 0.9em/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.article-body hr {
  margin: 2.6em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article-toc {
  min-width: 0;
  margin: 32px 0;
  border: 1px solid #cfe2f3;
  border-radius: 18px;
  color: #3f5266;
  background: #f5faff;
}

.article-toc summary {
  display: flex;
  min-height: 52px;
  padding: 13px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #3f5266;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  cursor: pointer;
}

.article-toc summary::marker {
  color: #06c755;
}

.article-toc .toc-toggle-label {
  flex: 0 0 auto;
  color: #3a7ca5;
  font-size: 14px;
  font-weight: 700;
}

.article-toc .toc-toggle-closed {
  display: none;
}

.article-toc details:not([open]) .toc-toggle-open {
  display: none;
}

.article-toc details:not([open]) .toc-toggle-closed {
  display: inline;
}

.article-toc ol {
  margin: 0;
  padding: 4px 18px 16px 42px;
}

.article-toc li {
  min-width: 0;
}

.article-toc li + li {
  margin-top: 2px;
}

.article-toc a {
  display: flex;
  min-height: 44px;
  padding: 8px 2px;
  align-items: center;
  color: #3a7ca5;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.reading-progress {
  position: fixed;
  top: var(--blog-header-height);
  left: 0;
  z-index: 49;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #06c755;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.article-visual-image {
  width: 100%;
  max-width: 1200px;
  margin: 32px auto;
}

.article-body .article-visual-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 16px;
}

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

.article-visual {
  min-width: 0;
  margin: 1.8em 0 2.2em;
  padding: 24px;
  border: 1px solid #cfe2f3;
  border-radius: 20px;
  color: var(--text);
  background: #f7fbff;
}

.article-visual *,
.article-visual *::before,
.article-visual *::after {
  box-sizing: border-box;
}

.article-body .article-visual p {
  margin: 0;
}

.article-body .article-visual li + li {
  margin-top: 0;
}

.visual-title {
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
}

.visual-note {
  margin-top: 6px !important;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.visual-icon,
.check-icon,
.visual-badge {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--blue-dark);
  background: var(--blue-pale);
  font-weight: 800;
  line-height: 1;
}

.visual-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
}

.visual-badge {
  min-width: 42px;
  height: 32px;
  padding: 0 9px;
  border-radius: 10px;
  font-size: 14px;
}

.visual-badge-green {
  color: #057335;
  background: #e6f8ee;
}

.visual-flow-list,
.article-body .visual-flow-list {
  display: grid;
  margin: 18px 0 0;
  padding: 0;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.visual-flow-list li {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 126px;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  justify-content: flex-start;
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.visual-flow-list li:not(:last-child)::after {
  position: absolute;
  top: 24px;
  right: -11px;
  z-index: 1;
  color: var(--blue);
  content: "›";
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.comparison-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.comparison-card,
.media-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.visual-card-title {
  margin-top: 12px !important;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.55;
}

.comparison-card dl,
.media-card dl {
  margin: 14px 0 0;
}

.comparison-card dl > div,
.media-card dl > div {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.comparison-card dt,
.media-card dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.comparison-card dd,
.media-card dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.visual-checklist {
  border-color: #c8e2f7;
  background: var(--blue-pale);
}

.visual-checklist-list,
.article-body .visual-checklist-list {
  display: grid;
  margin: 16px 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  list-style: none;
}

.visual-checklist-list li {
  display: flex;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 128, 240, 0.16);
  border-radius: 12px;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #057335;
  background: #dff7e9;
  font-size: 14px;
}

.visual-prohibited {
  border-color: #cce7d8;
  background: #f5fbf8;
}

.visual-guide {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.article-body .visual-koala {
  width: 108px;
  height: auto;
  margin: 0;
  border-radius: 0;
  flex: 0 0 auto;
  object-fit: contain;
}

.prohibited-grid,
.article-body .prohibited-grid {
  display: grid;
  margin: 18px 0 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.prohibited-grid li {
  display: flex;
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid #d5e9de;
  border-radius: 13px;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  background: var(--white);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.media-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.media-card-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.article-body .media-card-heading .visual-card-title {
  margin-top: 0 !important;
}

.optin-visual {
  position: relative;
  min-width: 0;
  margin: 40px 0;
  padding: 24px;
  border: 1px solid #cfe2f3;
  border-radius: 16px;
  color: #3f5266;
  background: #f5faff;
  overflow: hidden;
}

.optin-visual *,
.optin-visual *::before,
.optin-visual *::after {
  box-sizing: border-box;
}

.article-body .optin-visual h3 {
  margin: 0;
  padding: 0;
  border: 0;
  color: #3f5266;
  font-size: 21px;
  line-height: 1.55;
}

.article-body .optin-visual h4 {
  margin: 0;
  color: #3f5266;
  font-size: 16px;
  line-height: 1.55;
}

.article-body .optin-visual p {
  margin: 0;
}

.optin-visual-heading > p {
  margin-top: 8px !important;
  font-size: 16px;
  line-height: 1.75;
}

.optin-story-intro {
  display: flex;
  width: min(100%, 760px);
  margin: 0 auto;
  align-items: center;
  gap: 18px;
}

.article-body .optin-story-intro h3 {
  flex: 1 1 auto;
}

.article-body .optin-guide-koala {
  display: block;
  width: 88px;
  height: auto;
  margin: 0;
  border-radius: 0;
  flex: 0 0 auto;
  object-fit: contain;
}

.relationship-flow,
.article-body .relationship-flow {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 900px;
  margin: 30px auto 0;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  list-style: none;
}

.relationship-step {
  position: relative;
  min-width: 0;
}

.relationship-step-card {
  display: flex;
  min-height: 150px;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  border: 1px solid rgba(58, 124, 165, 0.22);
  border-radius: 12px;
  background: #fff;
  text-align: center;
  flex-direction: column;
  gap: 12px;
}

.relationship-step-card .relationship-step-content {
  padding: 0;
  border: 0;
}

.relationship-step-card .relationship-step-content p {
  white-space: normal;
}

.relationship-step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -13px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #3a7ca5;
  border-right: 2px solid #3a7ca5;
  transform: translateY(-50%) rotate(45deg);
  content: "";
}

.relationship-step-marker {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #3a7ca5;
  box-shadow: 0 0 0 2px #3a7ca5;
}

.relationship-step.advertiser .relationship-step-marker {
  background: #06c755;
  box-shadow: 0 0 0 2px #06c755;
}

.relationship-step-content {
  min-width: 0;
}

.relationship-step-content p {
  margin-top: 4px !important;
  color: #5d6d7e;
  font-size: 16px;
  line-height: 1.7;
}

.optin-story-note {
  display: flex;
  width: min(100%, 900px);
  margin: 26px auto 0 !important;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border-left: 3px solid #06c755;
  color: #3f5266;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}

.optin-story-note p {
  flex: 1 1 auto;
}

.article-body .optin-story-note .optin-guide-koala {
  width: 76px;
  height: 92px;
  object-fit: contain;
  object-position: bottom center;
  flex: 0 0 auto;
}

/* Legacy declarations below are intentionally kept scoped for other article visuals. */
.relationship-step:not(.relationship-step-card) {
  min-width: 0;
  padding: 0 0 34px;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
}

.relationship-step:last-child {
  padding-bottom: 0;
}

.relationship-step:not(:last-child)::after {
  position: absolute;
  top: 24px;
  bottom: 6px;
  left: 15px;
  width: 2px;
  background: #b7d4e7;
  content: "";
}

.relationship-step-marker {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin: 5px auto 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #3a7ca5;
  box-shadow: 0 0 0 2px #3a7ca5;
}

.relationship-step.advertiser .relationship-step-marker {
  background: #06c755;
  box-shadow: 0 0 0 2px #06c755;
}

.relationship-step-content {
  min-width: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(58, 124, 165, 0.16);
}

.relationship-step:last-child .relationship-step-content {
  padding-bottom: 0;
  border-bottom: 0;
}

.relationship-step-content p {
  margin-top: 4px !important;
  color: #5d6d7e;
  font-size: 16px;
  line-height: 1.7;
}

.optin-story-note {
  width: min(100%, 680px);
  margin: 30px auto 0 !important;
  padding: 14px 0 14px 18px;
  border-left: 3px solid #06c755;
  color: #3f5266;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}

.optin-status-timeline {
  display: flex;
  width: min(100%, 680px);
  margin: 28px auto 0;
  align-items: center;
  flex-direction: column;
}

.optin-status-step {
  width: 100%;
  min-width: 0;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(58, 124, 165, 0.22);
  color: #3f5266;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

.optin-status-arrow {
  flex: 0 0 auto;
  color: #3a7ca5;
}

.optin-status-fork {
  display: flex;
  width: min(100%, 680px);
  margin: 10px auto 0;
  align-items: center;
  gap: 14px;
  color: #5d6d7e;
  font-size: 16px;
  font-weight: 700;
}

.optin-status-fork::before,
.optin-status-fork::after {
  height: 1px;
  flex: 1 1 auto;
  background: #cfe2f3;
  content: "";
}

.optin-status-branches {
  display: grid;
  width: min(100%, 760px);
  margin: 20px auto 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.optin-status-path {
  display: flex;
  min-width: 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid #3f5266;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: #3f5266;
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.optin-status-approved {
  border-left-color: #06c755;
}

.optin-status-path strong,
.optin-status-path span {
  font-size: 17px;
}

.optin-check-list,
.article-body .optin-check-list {
  width: min(100%, 760px);
  margin: 22px auto 0;
  padding: 0;
  border: 1px solid #dbe8f2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  list-style: none;
  overflow: hidden;
}

.optin-check-list li {
  display: flex;
  min-width: 0;
  min-height: 62px;
  padding: 15px 18px;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  line-height: 1.7;
}

.optin-check-list li + li {
  border-top: 1px solid rgba(58, 124, 165, 0.14);
}

.optin-check-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: #06c755;
  font-size: 16px;
  font-weight: 800;
}

.optin-check-list li > span:last-child {
  color: #3f5266;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.65;
}

.cta-box {
  margin: 30px 0;
  padding: 28px;
  border: 2px solid #cfe7fb;
  border-radius: 22px;
  background: linear-gradient(145deg, #f8fcff, var(--blue-pale));
  text-align: center;
}

.cta-box h2,
.article-body .cta-box h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 22px;
}

.cta-box p {
  margin: 10px 0 18px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
}

.cta-box .cta-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.optin-cta-text-link {
  color: var(--blue-dark);
  font-size: 16px;
  font-weight: 700;
}

.optin-cta-actions {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

.optin-cta-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-secondary {
  border: 1px solid #3a7ca5;
  color: #3f5266;
  background: #fff;
}

.button {
  padding: 14px 26px;
  font-size: 16px;
}

.related {
  margin-top: 48px;
}

.related h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.article-share {
  margin-top: 34px;
  padding: 20px;
  border: 1px solid #cfe2f3;
  border-radius: 12px;
  color: #3f5266;
  background: #fff;
}

.article-share h2 {
  margin: 0 0 16px;
  color: #3f5266;
  font-size: 20px;
  line-height: 1.5;
}

.share-buttons {
  display: grid;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.share-action {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  height: 46px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #3a7ca5;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #3f5266;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.share-action:hover {
  color: #3f5266;
  background: #f5faff;
}

.share-action:active {
  transform: translateY(1px);
}

.share-action-share,
.share-action-copy {
  border-color: #3a7ca5;
}

.share-action-x {
  border-color: #3f5266;
  color: #172536;
}

.share-action-line {
  border-color: #06c755;
  color: #16713b;
}

.share-action-line:hover {
  color: #16713b;
  background: #f1fbf5;
}

.share-x-mark {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
}

.share-status {
  margin: 12px 0 0;
  color: #28764c;
  font-size: 14px;
  font-weight: 700;
}

.share-status[hidden] {
  display: none;
}

.back-link {
  margin-top: 36px;
  text-align: center;
}

.site-footer {
  padding: 50px 20px 28px;
  color: #b9c4da;
  background: var(--navy);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: inline-flex;
  min-width: 48px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #cfe2f3;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #3f5266;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(0, 16, 64, 0.16);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top:hover {
  color: #3a7ca5;
  border-color: #3a7ca5;
}

.floating-toc-button {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 45;
  display: inline-flex;
  min-width: 68px;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid #3a7ca5;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #3f5266;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 22px rgba(0, 16, 64, 0.13);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.floating-toc-button[hidden] {
  display: none;
}

.floating-toc-button:hover {
  color: #3a7ca5;
  background: #f5faff;
}

.toc-drawer {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #3f5266;
  background: transparent;
}

.toc-drawer[open] {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.toc-drawer::backdrop {
  background: rgba(0, 16, 64, 0.34);
}

.toc-drawer-panel {
  display: flex;
  width: min(720px, calc(100% - 32px));
  max-height: 78vh;
  max-height: 78dvh;
  border: 1px solid #3a7ca5;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  flex-direction: column;
  background: #fff;
  animation: toc-drawer-in 0.2s ease-out;
}

@keyframes toc-drawer-in {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toc-drawer-header {
  display: flex;
  min-height: 62px;
  padding: 10px 14px 10px 20px;
  border-bottom: 1px solid #dce8f5;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toc-drawer-header h2 {
  margin: 0;
  color: #3f5266;
  font-size: 20px;
  line-height: 1.4;
}

.toc-drawer-close {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #cfe2f3;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #3f5266;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.toc-drawer-close:hover {
  background: #f5faff;
}

.toc-drawer-nav {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 14px calc(18px + env(safe-area-inset-bottom));
}

.toc-drawer-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-drawer-nav li + li {
  margin-top: 2px;
}

.toc-drawer-nav a {
  display: flex;
  min-height: 44px;
  padding: 9px 12px;
  border-left: 4px solid transparent;
  border-radius: 6px;
  align-items: center;
  color: #3f5266;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.toc-drawer-nav a:hover {
  background: #f5faff;
}

.toc-drawer-nav a[aria-current="location"] {
  border-left-color: #06c755;
  background: #f0faf5;
}

body.toc-drawer-open {
  overflow: hidden;
}

.footer-inner {
  display: grid;
  width: min(1100px, 100%);
  margin: 0 auto 32px;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(140px, 1fr));
  gap: 32px;
}

.footer-logo {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--white);
}

.footer-logo img {
  display: block;
  width: 150px;
  height: 50px;
  object-fit: contain;
}

.footer-copy {
  max-width: 420px;
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.8;
}

.footer-links h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 14px;
}

.footer-links a {
  display: flex;
  min-height: 40px;
  margin: 0;
  align-items: center;
  color: #b9c4da;
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.copyright {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #7e8ba7;
  font-size: 12px;
  text-align: center;
}

.not-found {
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0;
  text-align: center;
}

.not-found strong {
  display: block;
  color: var(--blue);
  font-size: clamp(64px, 16vw, 120px);
  line-height: 1;
}

.not-found h1 {
  margin: 18px 0 12px;
  font-size: clamp(28px, 6vw, 40px);
}

.not-found p {
  margin: 0 0 28px;
  color: var(--text);
  line-height: 1.9;
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .header-cta {
    margin-left: 0;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .footer-inner > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --blog-header-height: 62px;
  }

  .header-inner {
    width: calc(100% - 28px);
    min-height: 62px;
    gap: 10px;
  }

  .brand img {
    width: 112px;
    height: 38px;
  }

  .header-cta {
    display: none;
  }

  .page-hero {
    padding: 46px 20px 40px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .article-header h1 {
    font-size: clamp(27px, 7vw, 30px);
  }

  .page-hero p {
    font-size: 15px;
    line-height: 1.9;
  }

  .content-shell {
    width: calc(100% - 32px);
    padding: 40px 0 60px;
  }

  .category-list {
    margin-bottom: 32px;
    gap: 8px;
  }

  .category-list a {
    font-size: 12px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .post-card-body {
    padding: 19px;
  }

  .breadcrumbs,
  .article-layout {
    width: calc(100% - 32px);
  }

  .breadcrumbs {
    padding: 16px 0;
  }

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

  .article-breadcrumbs .article-breadcrumb-category::after {
    display: none;
  }

  .article-layout {
    padding-top: 10px;
  }

  .article-header {
    margin-bottom: 22px;
    text-align: left;
  }

  .article-header .post-meta {
    justify-content: flex-start;
  }

  .article-eyecatch {
    margin-bottom: 20px;
    border-radius: 16px;
  }

  .article-body {
    padding: 28px 20px;
    border-radius: 18px;
    font-size: 16px;
    line-height: 1.8;
  }

  .article-body h2 {
    margin-top: 2.2em;
    font-size: 23px;
  }

  .article-body h3 {
    font-size: 20px;
  }

  .article-toc {
    margin: 28px 0;
    border-radius: 16px;
  }

  .article-toc summary {
    min-height: 52px;
    padding: 12px 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    font-size: 16px;
  }

  .article-toc ol {
    padding: 2px 14px 14px 38px;
  }

  .article-share {
    margin-top: 28px;
    padding: 18px 14px;
    border-radius: 10px;
  }

  .share-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .share-action {
    padding: 8px 10px;
  }

  .article-visual {
    width: 100%;
    max-width: none;
    margin: 1.6em 0 2em;
    padding: 18px 16px;
    border-radius: 16px;
  }

  .article-visual-image {
    width: 100%;
    max-width: none;
  }

  .article-visual-image picture {
    display: block;
    width: 100%;
  }

  .article-visual-image[data-article-visual="overview-image"],
  .article-visual-image[data-article-visual="line-affiliate-vs-line"],
  .article-visual-image[data-article-visual="flow"],
  .article-visual-image[data-article-visual="conversion-status-flow"],
  .article-visual-image[data-article-visual="affiliate-type-comparison"],
  .article-visual-image[data-article-visual="line-affiliate-checklist"],
  .article-visual-image[data-article-visual="koalaasp-prohibited-check"] {
    display: none;
  }

  .article-visual-mobile {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 32px 0;
    padding: 18px 16px;
    border: 1px solid #cfe2f3;
    border-radius: 16px;
    color: var(--text);
    background: #f7fbff;
  }

  .article-visual-mobile *,
  .article-visual-mobile *::before,
  .article-visual-mobile *::after {
    box-sizing: border-box;
  }

  .article-body .article-visual-mobile p {
    margin: 0;
  }

  .mobile-visual-title {
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.55;
  }

  .mobile-step-list,
  .article-body .mobile-step-list,
  .mobile-path-list,
  .article-body .mobile-path-list {
    display: grid;
    margin: 14px 0 0;
    padding: 0;
    gap: 10px;
    list-style: none;
  }

  .mobile-step-list li {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    align-items: center;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    background: var(--white);
    font-size: 14px;
    line-height: 1.55;
  }

  .mobile-step-list li > span {
    display: inline-grid;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    place-items: center;
    color: var(--white);
    background: var(--blue);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
  }

  .mobile-step-list li:not(:last-child)::after,
  .mobile-path-list li:not(:last-child)::after {
    position: absolute;
    bottom: -14px;
    left: 25px;
    z-index: 1;
    color: var(--blue);
    content: "↓";
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
  }

  .mobile-visual-note {
    margin-top: 14px !important;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--navy);
    background: var(--blue-pale);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
  }

  .mobile-compare-stack {
    display: grid;
    margin-top: 14px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mobile-compare-stack > article {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--white);
  }

  .mobile-compare-stack > .mobile-card-accent {
    border-color: #bde9cf;
    background: #f5fbf8;
  }

  .mobile-card-title {
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.55;
  }

  .mobile-path-list li {
    position: relative;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 10px;
    background: var(--blue-pale);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
  }

  .mobile-path-list li:not(:last-child)::after {
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
  }

  .mobile-status-branches {
    display: grid;
    margin-top: 14px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mobile-status-branches article {
    display: flex;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--white);
    font-size: 14px;
    line-height: 1.55;
  }

  .mobile-status-branches .mobile-status-approved {
    border-color: #bde9cf;
    background: #f5fbf8;
  }

  .mobile-status-branches strong {
    color: var(--navy);
    font-size: 16px;
  }

  .visual-flow-list,
  .article-body .visual-flow-list,
  .comparison-grid,
  .visual-checklist-list,
  .article-body .visual-checklist-list,
  .prohibited-grid,
  .article-body .prohibited-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .visual-flow-list {
    gap: 12px;
  }

  .visual-flow-list li {
    min-height: 0;
    padding: 12px 14px;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    text-align: left;
  }

  .visual-flow-list li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -15px;
    left: 26px;
    content: "↓";
    font-size: 17px;
  }

  .comparison-card,
  .media-card {
    padding: 16px;
  }

  .visual-guide {
    align-items: flex-start;
    gap: 12px;
  }

  .article-body .visual-koala {
    width: 76px;
  }

  .prohibited-grid li {
    align-items: center;
    flex-direction: row;
    text-align: left;
  }

  .optin-visual {
    margin: 32px 0;
    padding: 16px;
    border-radius: 16px;
  }

  .article-body .optin-visual h3 {
    font-size: 20px;
  }

  .optin-story-intro {
    align-items: center;
    gap: 14px;
  }

  .article-body .optin-guide-koala {
    width: 72px;
  }

  .relationship-flow,
  .article-body .relationship-flow {
    margin-top: 26px;
  }

  .relationship-step {
    padding-bottom: 32px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 13px;
  }

  .relationship-step:not(:last-child)::after {
    left: 13px;
  }

  .optin-story-note {
    margin-top: 26px !important;
    padding-left: 15px;
  }

  .optin-status-timeline {
    margin-top: 24px;
  }

  .optin-status-branches {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .optin-status-path {
    padding-left: 16px;
  }

  .optin-check-list li {
    min-height: 0;
    padding: 16px 14px;
  }

  .optin-cta-actions {
    flex-direction: column;
  }

  .cta-box {
    margin: 26px -4px;
    padding: 24px 18px;
    border-radius: 18px;
  }

  .button {
    width: 100%;
    padding: 14px 18px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-inner > :first-child {
    grid-column: auto;
  }

  .footer-links a {
    min-height: 44px;
  }

  .site-footer {
    padding-top: 38px;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
  }

  .back-to-top span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .floating-toc-button {
    right: 12px;
    bottom: 70px;
    width: 50px;
    min-width: 50px;
    min-height: 50px;
    padding: 6px 4px;
    border-radius: 14px;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    line-height: 1.1;
  }

  .toc-drawer-panel {
    width: 100%;
    max-height: 78vh;
    max-height: 78dvh;
    border-right: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
  }

  .toc-drawer-nav {
    padding-right: 12px;
    padding-left: 12px;
  }
}

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

  .reading-progress span,
  .back-to-top,
  .share-action,
  .toc-drawer-panel {
    transition: none;
  }

  .toc-drawer-panel {
    animation: none;
  }

  .share-action:active {
    transform: none;
  }
}

/* Opt-in value explanation: three-card desktop flow, one-column mobile flow. */
.article-body .optin-flow-relationship .relationship-flow {
  display: grid;
  width: 100%;
  max-width: 900px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-body .optin-flow-relationship .relationship-step {
  display: block;
  min-width: 0;
  padding: 0;
}

.article-body .optin-flow-relationship .relationship-step-card {
  display: flex;
  min-height: 150px;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 22px 16px;
  border: 1px solid rgba(58, 124, 165, 0.22);
  border-radius: 12px;
  background: #fff;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.article-body .optin-flow-relationship .relationship-step-card .relationship-step-content {
  padding: 0;
  border: 0;
}

.article-body .optin-flow-relationship .relationship-step:not(:last-child)::after {
  top: 50%;
  right: -12px;
  bottom: auto;
  left: auto;
  width: 9px;
  height: 9px;
  border-top: 2px solid #3a7ca5;
  border-right: 2px solid #3a7ca5;
  background: transparent;
  transform: translateY(-50%) rotate(45deg);
}

.article-body .optin-flow-relationship .relationship-step-marker {
  margin: 0;
}

.article-body .optin-flow-relationship .optin-story-note {
  display: flex;
  width: min(100%, 900px);
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
}

.article-body .optin-flow-relationship .optin-story-note p {
  flex: 1 1 auto;
}

.article-body .optin-flow-relationship .optin-story-note .optin-guide-koala {
  width: 76px;
  height: 92px;
  margin: 0;
  object-fit: contain;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .article-body .optin-flow-relationship .relationship-flow {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-body .optin-flow-relationship .relationship-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -18px;
    left: 50%;
    border-top: 0;
    border-right: 2px solid #3a7ca5;
    border-bottom: 2px solid #3a7ca5;
    transform: translateX(-50%) rotate(45deg);
  }

  .article-body .optin-flow-relationship .optin-story-note {
    align-items: flex-start;
  }

  .article-body .optin-flow-relationship .optin-story-note .optin-guide-koala {
    width: 64px;
    height: 78px;
  }
}

/* Opt-in safety checklist: cards on desktop, stacked cards on mobile. */
.article-body .optin-checklist .optin-check-list {
  display: grid;
  width: 100%;
  max-width: 900px;
  margin-top: 24px;
  border: 0;
  background: transparent;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
}

.article-body .optin-checklist .optin-check-list li {
  display: flex;
  min-height: 170px;
  padding: 18px 14px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(58, 124, 165, 0.2);
  border-radius: 12px;
  background: #fff;
  flex-direction: column;
}

.article-body .optin-checklist .optin-check-list li + li {
  border-top: 1px solid rgba(58, 124, 165, 0.2);
}

.article-body .optin-checklist .optin-check-list h4 {
  margin: 0;
  color: #3f5266;
  font-size: 16px;
  line-height: 1.55;
}

.article-body .optin-checklist .optin-check-list p {
  margin: 7px 0 0 !important;
  color: #3a7ca5;
  font-size: 15px;
  line-height: 1.65;
}

.article-body .optin-check-guide {
  display: flex;
  max-width: 900px;
  margin: 18px auto 0;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  color: #3f5266;
  font-size: 16px;
  line-height: 1.7;
}

.article-body .optin-check-guide p {
  margin: 0 !important;
}

.article-body .optin-check-guide img {
  width: 64px;
  height: 86px;
  margin: 0;
  object-fit: contain;
}

@media (max-width: 768px) {
  .article-body .optin-checklist .optin-check-list {
    grid-template-columns: 1fr;
  }

  .article-body .optin-checklist .optin-check-list li {
    min-height: 0;
  }

  .article-body .optin-check-guide {
    align-items: flex-start;
  }
}

/* Make the status decision a clear visual branch after condition review. */
.article-body .optin-status-fork {
  position: relative;
  width: min(100%, 760px);
  margin: 24px auto 0;
  justify-content: center;
  color: #3f5266;
}

.article-body .optin-status-fork span {
  position: relative;
  z-index: 1;
  padding: 5px 14px;
  border: 1px solid #3a7ca5;
  border-radius: 999px;
  background: #f5faff;
  font-size: 16px;
}

.article-body .optin-status-fork::before,
.article-body .optin-status-fork::after {
  display: none;
}

.article-body .optin-status-fork::marker {
  content: none;
}

.article-body .optin-status-branches {
  position: relative;
  margin-top: 28px;
}

.article-body .optin-status-branches::before {
  position: absolute;
  top: -14px;
  right: 25%;
  left: 25%;
  height: 1px;
  background: #9fc4d8;
  content: "";
}

.article-body .optin-status-path {
  position: relative;
  padding-top: 12px;
}

.article-body .optin-status-path::before {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 1px;
  height: 14px;
  background: #9fc4d8;
  content: "";
}

@media (max-width: 768px) {
  .article-body .optin-status-branches {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-body .optin-status-branches::before {
    display: none;
  }

  .article-body .optin-status-path::before {
    top: -13px;
    height: 13px;
  }
}

/* Opt-in four-party relationship diagram. */
.article-body .optin-relationship-flow {
  display: grid;
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.article-body .optin-relationship-step {
  position: relative;
  min-width: 0;
}

.article-body .optin-relationship-card {
  min-height: 132px;
  padding: 20px 12px;
  border: 1px solid rgba(58, 124, 165, 0.22);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.article-body .optin-relationship-card h4 {
  margin: 0;
  color: #3f5266;
  font-size: 17px;
}

.article-body .optin-relationship-card p {
  margin: 10px 0 0 !important;
  color: #3a7ca5;
  font-size: 16px;
  line-height: 1.6;
}

.article-body .optin-relationship-step:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -9px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #06c755;
  border-right: 2px solid #06c755;
  transform: translateY(-50%) rotate(45deg);
  content: "";
}

@media (max-width: 768px) {
  .article-body .optin-relationship-flow {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-body .optin-relationship-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -17px;
    left: 50%;
    border-top: 0;
    border-right: 2px solid #06c755;
    border-bottom: 2px solid #06c755;
    transform: translateX(-50%) rotate(45deg);
  }
}
