/* ── Typography ─────────────────────────────────────────────── */
.aff-single,
.aff-single *:not(code):not(pre) {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.aff-content code,
.aff-content pre {
  font-family: 'Courier New', Courier, monospace;
}

/* ============================================================
   AFF — Single Firmware Post
   assets/single.css
   ============================================================ */

/* ── Layout ────────────────────────────────────────────────── */
.aff-single {
  background: var(--aff-bg);
  min-height: 60vh;
}

.aff-single__layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 72px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}

.aff-single__main {
  min-width: 0;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.aff-breadcrumb {
  background: var(--aff-dark);
  padding: 11px 24px;
}

.aff-breadcrumb__list {
  max-width: 1280px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.aff-breadcrumb__list li {
  color: rgba(255,255,255,.55);
}

.aff-breadcrumb__list li + li::before {
  content: '›';
  margin-right: 6px;
}

.aff-breadcrumb__list a {
  color: rgba(255,255,255,.60);
  text-decoration: none;
  transition: color .2s;
}

.aff-breadcrumb__list a:hover {
  color: var(--aff-sky);
}

.aff-breadcrumb__list [aria-current] {
  color: var(--aff-sky);
}

/* ── Hero ──────────────────────────────────────────────────── */
.aff-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  background: var(--aff-white);
  border: 1px solid var(--aff-border);
  border-radius: var(--aff-radius-lg);
  box-shadow: var(--aff-shadow);
  overflow: hidden;
  margin: 20px 0 0;
}

.aff-hero__img {
  background: linear-gradient(160deg, #e8f4fd 0%, #dbeafe 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 12px;
  flex-shrink: 0;
}

.aff-hero__img img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.aff-hero__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.aff-hero__title {
  font-size: clamp(16px, 1.9vw, 24px);
  font-weight: 800;
  color: var(--aff-slate);
  line-height: 1.3;
  margin: 0;
}

.aff-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.aff-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--aff-radius);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, background .2s, box-shadow .15s;
}

.aff-btn:hover {
  transform: translateY(-1px);
}

.aff-btn--primary {
  background: var(--aff-green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(21,128,61,.28);
}

.aff-btn--primary:hover {
  background: #15803d;
}

.aff-btn--ghost {
  background: transparent;
  color: var(--aff-slate);
  border: 2px solid var(--aff-border);
}

.aff-btn--ghost:hover {
  border-color: var(--aff-blue-lt);
  color: var(--aff-blue);
}

/* ── Meta bar ──────────────────────────────────────────────── */
.aff-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
  margin-bottom: 16px;
}

.aff-meta-bar__item {
  flex: 1 1 90px;
  min-width: 80px;
  max-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--aff-white);
  border: 1px solid var(--aff-border);
  border-radius: var(--aff-radius);
  padding: 10px 14px;
  box-shadow: 0 1px 4px rgba(15,23,42,.05);
  transition: box-shadow .2s;
}

.aff-meta-bar__item:hover {
  box-shadow: var(--aff-shadow);
}

.aff-meta-bar__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--aff-muted);
}

.aff-meta-bar__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--aff-slate);
  text-decoration: none;
}

.aff-meta-bar__value--brand {
  color: var(--aff-blue);
}

.aff-meta-bar__value--brand:hover {
  text-decoration: underline;
}

.aff-meta-bar__value--author {
  color: var(--aff-blue);
}

.aff-meta-bar__value--author:hover {
  text-decoration: underline;
}

.aff-meta-bar__value--dl {
  color: var(--aff-green);
}

/* ── TOC ───────────────────────────────────────────────────── */
.aff-toc {
  background: var(--aff-white);
  border: 1px solid var(--aff-border);
  border-left: 4px solid var(--aff-blue);
  border-radius: var(--aff-radius);
  margin-bottom: 20px;
}

.aff-toc__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--aff-slate);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.aff-toc__toggle::-webkit-details-marker {
  display: none;
}

.aff-toc__toggle:hover {
  background: #f8fafc;
}

.aff-toc__icon {
  font-size: 16px;
  color: var(--aff-blue);
}

.aff-toc__chevron {
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--aff-muted);
  border-bottom: 2px solid var(--aff-muted);
  transform: rotate(45deg);
  transition: transform .22s;
  flex-shrink: 0;
}

details[open].aff-toc .aff-toc__chevron {
  transform: rotate(-135deg);
}

.aff-toc__body {
  padding: 4px 18px 14px;
}

.aff-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aff-toc__item {
  border-top: 1px solid var(--aff-border);
}

.aff-toc__item:first-child {
  border-top: none;
}

.aff-toc__item a {
  display: block;
  padding: 9px 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--aff-blue);
  text-decoration: none;
  transition: color .15s, padding-left .15s;
}

.aff-toc__item a:hover {
  color: var(--aff-blue-lt);
  padding-left: 8px;
}

.aff-toc__item--h3 a {
  padding-left: 18px;
  font-size: 13px;
  color: var(--aff-muted);
  font-weight: 500;
}

.aff-toc__item--h3 a:hover {
  color: var(--aff-blue);
  padding-left: 24px;
}

/* ── Post content wrapper ──────────────────────────────────── */
.aff-content {
  background: var(--aff-white);
  border: 1px solid var(--aff-border);
  border-radius: var(--aff-radius-lg);
  padding: 32px 36px;
  margin-bottom: 18px;
  box-shadow: var(--aff-shadow);
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--aff-slate);
}

.aff-content h2,
.aff-content h3,
.aff-content h4 {
  font-weight: 800;
  color: var(--aff-slate);
  line-height: 1.35;
  margin: 1.8em 0 .6em;
  scroll-margin-top: calc(var(--aff-header-h) + 16px);
}

.aff-content h2 {
  font-size: 23px;
  border-bottom: 2px solid var(--aff-border);
  padding-bottom: 10px;
}

.aff-content h3 {
  font-size: 19px;
  margin-top: 1.4em;
}

.aff-content p {
  margin: 0 0 1em;
}

.aff-content a {
  color: var(--aff-blue);
}

.aff-content a:hover {
  color: var(--aff-blue-lt);
}

.aff-content code {
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  background: #f1f5f9;
  border: 1px solid var(--aff-border);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.aff-content pre {
  background: #1e293b;
  color: #e2e8f0;
  border-radius: var(--aff-radius);
  padding: 18px;
  overflow-x: auto;
  font-size: 13px;
  margin: 1em 0;
  line-height: 1.6;
}

.aff-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--aff-radius);
  margin: .8em 0;
}

/* ── Definition List ───────────────────────────────────────── */
.aff-content dl {
  display: grid;
  grid-template-columns: minmax(150px, 200px) 1fr;
  border: 1px solid var(--aff-border);
  border-radius: var(--aff-radius);
  overflow: hidden;
  font-size: 13.5px;
  margin: 1em 0;
}

.aff-content dt {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--aff-slate);
  padding: 10px 14px;
  border-top: 1px solid var(--aff-border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.aff-content dd {
  padding: 10px 14px;
  border-top: 1px solid var(--aff-border);
  margin: 0;
  color: var(--aff-slate);
  line-height: 1.6;
}

.aff-content dt:first-of-type,
.aff-content dd:first-of-type {
  border-top: none;
}

/* ── Warning boxes ─────────────────────────────────────────── */
.aff-content div[style*="border-left"] {
  border-radius: var(--aff-radius) !important;
  margin: 1.4em 0 !important;
  font-size: 14px;
  line-height: 1.7;
}

/* ── Details / summary ─────────────────────────────────────── */
.aff-content details {
  border: 1px solid var(--aff-border);
  border-left: 4px solid var(--aff-sky);
  border-radius: var(--aff-radius);
  margin: 1.2em 0;
  background: var(--aff-white);
}

.aff-content summary {
  padding: 13px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: var(--aff-slate);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.aff-content summary::-webkit-details-marker {
  display: none;
}

.aff-content summary::after {
  content: '▸';
  margin-left: auto;
  color: var(--aff-muted);
  font-size: 14px;
  transition: transform .2s;
}

.aff-content details[open] > summary::after {
  transform: rotate(90deg);
}

.aff-content summary:hover {
  background: #f8fafc;
}

.aff-content details > *:not(summary) {
  padding: 0 16px 16px;
}

/* ── FAQ items ─────────────────────────────────────────────── */
.aff-faq-item {
  border: 1px solid var(--aff-border);
  border-radius: var(--aff-radius);
  margin: 8px 0;
  background: var(--aff-white);
  overflow: hidden;
  transition: box-shadow .2s;
}

.aff-faq-item[open] {
  box-shadow: 0 2px 12px rgba(15,23,42,.08);
  border-color: #bfdbfe;
}

.aff-faq-q {
  padding: 15px 18px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--aff-slate);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  user-select: none;
  line-height: 1.4;
}

.aff-faq-q::-webkit-details-marker {
  display: none;
}

.aff-faq-q::before {
  content: 'Q';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--aff-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.aff-faq-q::after {
  content: '+';
  margin-left: auto;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 300;
  color: var(--aff-muted);
  transition: transform .22s;
  line-height: 1;
}

.aff-faq-item[open] .aff-faq-q::after {
  transform: rotate(45deg);
  color: var(--aff-blue);
}

.aff-faq-q:hover {
  background: #f8fafc;
}

.aff-faq-a {
  padding: 0 18px 18px 54px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--aff-slate);
  border-top: 1px solid var(--aff-border);
}

.aff-faq-a p {
  margin: .8em 0;
}

/* ── Step list ─────────────────────────────────────────────── */
.aff-content ol.aff-steps {
  list-style: none;
  padding: 0;
  margin: 1em 0;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aff-content ol.aff-steps > li {
  counter-increment: step-counter;
  position: relative;
  display: block;
  padding: 14px 16px 14px 58px;
  background: var(--aff-white);
  border: 1px solid var(--aff-border);
  border-radius: var(--aff-radius);
  box-shadow: 0 1px 4px rgba(15,23,42,.05);
  transition: box-shadow .2s;
}

.aff-content ol.aff-steps > li:hover {
  box-shadow: 0 3px 12px rgba(15,23,42,.10);
}

.aff-content ol.aff-steps > li::before {
  content: counter(step-counter);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 28px;
  height: 28px;
  background: var(--aff-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Checklist ─────────────────────────────────────────────── */
.aff-content ul.aff-checklist {
  list-style: none;
  padding: 0;
  margin: 1em 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aff-content ul.aff-checklist > li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--aff-radius);
  font-size: 14px;
  line-height: 1.6;
}

.aff-content ul.aff-checklist > li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--aff-green);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ── Regular lists ─────────────────────────────────────────── */
.aff-content ol:not(.aff-steps) {
  padding-left: 0;
  margin: .8em 0;
  list-style: none;
  counter-reset: ol-counter;
}

.aff-content ol:not(.aff-steps) > li {
  counter-increment: ol-counter;
  padding: 6px 0 6px 32px;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.aff-content ol:not(.aff-steps) > li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--aff-blue);
  font-size: 13px;
}

.aff-content ul:not(.aff-checklist) {
  list-style: none;
  padding: 0;
  margin: .8em 0;
}

.aff-content ul:not(.aff-checklist) > li {
  padding: 5px 0 5px 20px;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.aff-content ul:not(.aff-checklist) > li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--aff-blue);
  font-size: 12px;
  top: 7px;
}

/* ── Post meta footer strip ────────────────────────────────── */
.aff-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 18px;
  background: var(--aff-white);
  border: 1px solid var(--aff-border);
  border-radius: var(--aff-radius);
  font-size: 12px;
  color: var(--aff-muted);
  font-weight: 600;
  margin-bottom: 20px;
}

.aff-post-meta__cat {
  color: var(--aff-blue);
  text-decoration: none;
  font-weight: 700;
}

.aff-post-meta__cat:hover {
  text-decoration: underline;
}

/* ── Author box ───────────────────────────────────────────── */
.aff-author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--aff-white);
  border: 1px solid var(--aff-border);
  border-radius: var(--aff-radius-lg);
  padding: 22px;
  margin: 18px 0 20px;
  box-shadow: var(--aff-shadow);
}

.aff-author-box__avatar {
  flex-shrink: 0;
}

.aff-author-box__avatar img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: block;
  border: 3px solid #e2e8f0;
}

.aff-author-box__body {
  min-width: 0;
  flex: 1;
}

.aff-author-box__title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--aff-muted);
  margin: 0 0 6px;
}

.aff-author-box__name {
  font-size: 18px;
  font-weight: 800;
  color: var(--aff-slate);
  margin: 0 0 8px;
}

.aff-author-box__bio {
  font-size: 14px;
  line-height: 1.75;
  color: var(--aff-slate);
  margin: 0 0 12px;
}

.aff-author-box__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--aff-blue);
  text-decoration: none;
}

.aff-author-box__link:hover {
  text-decoration: underline;
}

/* ── Comments collapsible wrapper ─────────────────────────── */
.aff-comments-wrap {
  background: var(--aff-white);
  border: 1px solid var(--aff-border);
  border-radius: var(--aff-radius-lg);
  margin-bottom: 24px;
  overflow: hidden;
}

.aff-comments-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--aff-slate);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.aff-comments-toggle::-webkit-details-marker {
  display: none;
}

.aff-comments-toggle:hover {
  background: #f8fafc;
}

.aff-comments-toggle__icon {
  font-size: 18px;
}

.aff-comments-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 99px;
}

.aff-comments-toggle__chevron::after {
  content: '▾';
  font-size: 12px;
  color: var(--aff-muted);
  margin-left: auto;
}

details[open] .aff-comments-toggle__chevron::after {
  content: '▴';
}

.aff-comments-body {
  padding: 0 22px 22px;
  border-top: 1px solid var(--aff-border);
}

/* ── Comment list ─────────────────────────────────────────── */
.aff-comments {
  padding-top: 4px;
}

.aff-comments__header {
  padding: 16px 0 4px;
}

.aff-comments__title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.aff-comments__title span {
  color: #2563eb;
}

.aff-comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aff-comment {
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 0;
}

.aff-comment:last-child {
  border-bottom: none;
}

.aff-comment.depth-2 {
  margin-left: 32px;
}

.aff-comment.depth-3 {
  margin-left: 56px;
}

.aff-comment.depth-4 {
  margin-left: 72px;
}

.aff-comment__inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.aff-comment__avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #f1f5f9;
}

.aff-comment__body {
  flex: 1;
  min-width: 0;
}

.aff-comment__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.aff-comment__author {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.aff-comment__time {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 11.5px;
  color: #94a3b8;
}

.aff-comment__pending {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: #d97706;
  background: #fef3c7;
  padding: 2px 7px;
  border-radius: 99px;
}

.aff-comment__text {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.7;
}

.aff-comment__text p {
  margin: 0 0 8px;
}

.aff-comment__text p:last-child {
  margin: 0;
}

.aff-comment__text a {
  color: #2563eb;
}

.aff-comment__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.aff-comment__reply-link {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  transition: color .15s;
}

.aff-comment__reply-link:hover {
  color: #1d4ed8;
}

.aff-comment__edit a {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
}

.aff-comment__pingback {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12.5px;
  color: #64748b;
  padding: 8px 0;
}

/* ── Comment form ───────────────────────────────────────────── */
.aff-comment-form-wrap {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1.5px solid #f1f5f9;
}

.aff-cf-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
}

#cancel-comment-reply-link {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  margin-left: 10px;
}

#cancel-comment-reply-link:hover {
  color: #ef4444;
}

.aff-cf-logged-in {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12.5px;
  color: #64748b;
  margin: 0 0 16px;
  padding: 10px 14px;
  background: #f8f9fb;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.aff-cf-logged-in strong {
  color: #0f172a;
}

.aff-cf-logged-in a {
  color: #2563eb;
}

.aff-cf {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aff-cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.aff-cf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.aff-cf-field--full {
  grid-column: 1 / -1;
}

.aff-cf-label {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.aff-cf-required {
  color: #ef4444;
}

.aff-cf-input,
.aff-cf-textarea {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13.5px;
  color: #0f172a;
  background: #f8f9fb;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  padding: 10px 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.aff-cf-input:focus,
.aff-cf-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
  background: #fff;
}

.aff-cf-textarea {
  resize: vertical;
  min-height: 120px;
}

.aff-cf-field--cookie {
  flex-direction: row;
  align-items: center;
}

.aff-cf-cookie-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12.5px;
  color: #64748b;
  cursor: pointer;
}

.aff-cf-cookie-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.aff-cf-submit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.aff-cf-submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: background .18s, box-shadow .18s;
}

.aff-cf-submit:hover {
  background: #1e40af;
  box-shadow: 0 4px 14px rgba(15,23,42,.2);
}

/* ── Comments closed ───────────────────────────────────────── */
.aff-comments-closed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13.5px;
  color: #94a3b8;
}

.aff-comments-closed span {
  font-size: 18px;
}

.aff-comments-closed p {
  margin: 0;
}

/* ── Comment pagination ────────────────────────────────────── */
.aff-comments-pagination {
  margin: 16px 0;
}

.aff-comments-pagination .page-numbers {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.aff-comments-pagination .page-numbers a,
.aff-comments-pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}

.aff-comments-pagination .page-numbers a:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.aff-comments-pagination .page-numbers .current {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

/* ── Protected post ────────────────────────────────────────── */
.aff-comments-protected {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13.5px;
  color: #64748b;
  padding: 16px 0;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.aff-sidebar {
  position: sticky;
  top: calc(var(--aff-header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aff-sidebar-box {
  background: var(--aff-white);
  border: 1px solid var(--aff-border);
  border-radius: var(--aff-radius-lg);
  padding: 20px;
  box-shadow: var(--aff-shadow);
  overflow: hidden;
}

.aff-sidebar-box--tip {
  border: none;
  padding: 0;
  overflow: hidden;
  background: #0f172a;
  border-radius: var(--aff-radius-lg);
  box-shadow: 0 4px 18px rgba(15,23,42,.22);
}

.aff-sidebar-box--tip::before {
  content: '⚠  IMPORTANT WARNING';
  display: block;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 16px;
}

.aff-tip-icon {
  font-size: 36px;
  margin: 18px 16px 0;
  display: block;
  text-align: center;
}

.aff-tip-title {
  font-size: 14px;
  font-weight: 800;
  color: #f1f5f9;
  margin: 10px 16px 6px;
  line-height: 1.3;
  text-align: center;
}

.aff-tip-text {
  font-size: 12.5px;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 16px 14px;
  text-align: center;
}

.aff-tip-link {
  display: block;
  margin: 0 16px 18px;
  padding: 9px 14px;
  text-align: center;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #60a5fa;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.aff-tip-link:hover {
  background: #334155;
  color: #93c5fd;
}

.aff-sidebar-box--related {
  border-top: 3px solid var(--aff-blue);
}

.aff-sidebar-box--brands {
  border-top: 3px solid var(--aff-sky);
}

.aff-sidebar-box__title {
  font-size: 12px;
  font-weight: 800;
  color: var(--aff-slate);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--aff-border);
  display: flex;
  align-items: center;
  gap: 7px;
}

.aff-sidebar-box__title-icon {
  font-size: 15px;
}

/* Related list */
.aff-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aff-sidebar-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--aff-slate);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  transition: background .15s, color .15s, transform .15s;
}

.aff-sidebar-link:hover {
  background: #eff6ff;
  color: var(--aff-blue);
  transform: translateX(2px);
}

.aff-sidebar-view-all {
  display: block;
  margin-top: 12px;
  text-align: center;
  padding: 9px 12px;
  background: var(--aff-blue);
  color: #fff;
  border-radius: var(--aff-radius);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}

.aff-sidebar-view-all:hover {
  background: var(--aff-blue-lt);
}

/* Brand chips */
.aff-brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aff-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: var(--aff-bg);
  color: var(--aff-slate);
  border: 1px solid var(--aff-border);
  transition: background .18s, color .18s, border-color .18s;
}

.aff-brand-chip:hover {
  background: var(--aff-blue);
  color: #fff;
  border-color: var(--aff-blue);
}

.aff-brand-chip__count {
  font-size: 10px;
  background: rgba(0,0,0,.08);
  border-radius: 99px;
  padding: 1px 6px;
  font-weight: 800;
}

.aff-brand-chip:hover .aff-brand-chip__count {
  background: rgba(255,255,255,.20);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .aff-single__layout {
    grid-template-columns: 1fr;
  }

  .aff-sidebar {
    display: none;
  }
}

@media (max-width: 680px) {
  .aff-single__layout {
    padding: 0 14px 48px;
  }

  .aff-hero {
    grid-template-columns: 1fr;
  }

  .aff-hero__img {
    min-height: 180px;
    max-height: 220px;
    padding: 10px;
  }

  .aff-hero__body {
    padding: 18px;
  }

  .aff-hero__title {
    font-size: 17px;
  }

  .aff-content {
    padding: 18px 16px;
    font-size: 15px;
  }

  .aff-content h2 {
    font-size: 18px;
  }

  .aff-content dl {
    grid-template-columns: 1fr;
  }

  .aff-content dt {
    border-top: 1px solid var(--aff-border);
    padding-bottom: 2px;
  }

  .aff-content dd {
    border-top: none;
    padding-top: 4px;
  }

  .aff-faq-a {
    padding-left: 18px;
  }

  .aff-meta-bar__item {
    min-width: 80px;
  }

  .aff-fw-grid {
    grid-template-columns: 1fr;
  }

  .aff-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .aff-author-box__link {
    justify-content: center;
  }
}

/* ── Fallback table styling ─────────────────────────────────── */
.aff-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.4em 0;
  border: 1px solid var(--aff-border);
  border-radius: var(--aff-radius);
  background: var(--aff-white);
}

.aff-content table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  min-width: 640px;
  font-size: 14px;
  line-height: 1.6;
}

.aff-content table th,
.aff-content table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--aff-border);
  vertical-align: top;
  text-align: left;
}

.aff-content table th {
  background: #f8fafc;
  font-weight: 800;
  color: var(--aff-slate);
  white-space: nowrap;
}

.aff-content table td {
  color: var(--aff-slate);
}

.aff-content table tr:last-child th,
.aff-content table tr:last-child td {
  border-bottom: none;
}

.aff-content table a {
  word-break: break-word;
}

/* ── More Card styling ─────────────────────────────────── */
.aff-fw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 1.4em 0;
}

.aff-fw-card {
  background: var(--aff-white);
  border: 1px solid var(--aff-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15,23,42,.06);
  transition: box-shadow .22s, transform .22s;
}

.aff-fw-card:hover {
  box-shadow: 0 8px 28px rgba(15,23,42,.12);
  transform: translateY(-2px);
}

.aff-fw-card__accent {
  height: 4px;
  width: 100%;
}

.aff-fw-card__body {
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aff-fw-card__model {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--aff-slate);
  line-height: 1.3;
  word-break: break-word;
}

.aff-fw-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.aff-fw-spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f8fafc;
  border: 1px solid var(--aff-border);
  border-radius: 6px;
  padding: 6px 9px;
}

.aff-fw-spec__k {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--aff-muted);
}

.aff-fw-spec__v {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--aff-slate);
  word-break: break-word;
  line-height: 1.35;
}

.aff-fw-card__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--aff-border);
}

.aff-fw-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.aff-fw-card__service {
  font-size: 13px;
  font-weight: 600;
  color: var(--aff-muted);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aff-fw-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  flex-shrink: 0;
}