/* ── Feature image (floated right, flows with text) */
.ad-feature-img-wrap {
  float: right;
  margin: 0 0 1rem 1.25rem;
  width: min(100%, 340px);
  shape-outside: margin-box;
}
@media (min-width: 992px) {
  .ad-feature-img-wrap {
    width: clamp(220px, 38%, 380px);
  }
}
.ad-feature-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--bs-box-shadow);
  display: block;
}
@media (max-width: 575px) {
  .ad-feature-img-wrap {
    float: none;
    margin: 0 0 1.5rem 0;
    width: 100%;
  }
}

/* ── Page background ──────────────────────────── */
.ad-page {
  background: var(--tw-slate-50);
  min-height: 100vh;
}

/* ── Masthead (inline, inside nav row) ───────── */
.ad-masthead-icon {
  font-size: 1.1rem;
  color: var(--tw-indigo-500);
  opacity: .7;
  flex-shrink: 0;
}
.ad-masthead-rule { height: 1px; background: var(--tw-slate-800); opacity: .2; }
.ad-era-badge {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: .8rem;
  color: var(--tw-indigo-500);
  white-space: nowrap;
}

/* ── Nav cells (flanking the masthead) ────────── */
.ad-nav-cell { min-width: 90px; flex-shrink: 0; }

/* ── Surface card ─────────────────────────────── */
/* removed empty ad-surface */

/* ── Nav buttons ──────────────────────────────── */
.ad-nav-btn {
  font-size: .82rem;
  font-weight: 600;
  color: var(--tw-slate-600);
  text-decoration: none;
  padding: .35rem .85rem;
  border-radius: 999px;
  border: 1.5px solid var(--tw-slate-200);
  background: white;
  transition: all .18s;
  display: inline-flex;
  align-items: center;
}
.ad-nav-btn:hover {
  background: var(--tw-indigo-50);
  border-color: var(--tw-indigo-500);
  color: var(--tw-indigo-600);
}

/* ── Section label ────────────────────────────── */
.ad-section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tw-indigo-500);
  margin: 0;
}

/* ── Divider ──────────────────────────────────── */
.ad-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--tw-slate-800) 0%, var(--tw-indigo-500) 40%, transparent 100%);
  border-radius: 2px;
}

/* ── Headline ─────────────────────────────────── */
.ad-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--tw-slate-900);
}

/* ── Body text ────────────────────────────────── */
.ad-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--tw-slate-700);
}
.ad-body p { margin-bottom: 1.25rem; }
.ad-body p:last-child { margin-bottom: 0; }

/* ── Personalised LLM sections ────────────────── */
.ad-llm-section {
  background: linear-gradient(135deg, var(--tw-violet-50) 0%, var(--tw-indigo-50) 100%);
  border-left: 3px solid var(--tw-indigo-500);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.5rem;
}
.ad-llm-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--tw-slate-700);
}
.ad-llm-section p:last-child { margin-bottom: 0; }

/* ── Inline citation superscripts ────────────── */
.ad-citeref {
  font-size: 0.6em;
  line-height: 1;
  vertical-align: super;
  margin-left: 0.08em;
}
.ad-citeref a {
  color: var(--tw-slate-400);
  text-decoration: none;
  font-weight: 400;
}
.ad-citeref a:hover {
  color: var(--tw-slate-600);
  text-decoration: underline;
  text-underline-offset: 1px;
}

/* ── Further Reading / References ────────────── */
.ad-references {
  border-top: 1px solid var(--tw-slate-200);
  padding-top: .75rem;
}
.ad-references-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--tw-slate-400);
  margin-bottom: .5rem;
}
.ad-references-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.ad-references-list li {
  font-size: 0.875rem;
  display: flex;
  align-items: baseline;
  gap: .3rem;
  color: var(--tw-slate-600);
}
.ad-ref-num {
  font-size: 0.65em;
  vertical-align: super;
  font-weight: 600;
  color: var(--tw-slate-500);
  flex-shrink: 0;
  min-width: 0.9em;
}
.ad-references-list a {
  color: var(--bs-link-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ad-references-list a:hover {
  color: var(--bs-link-hover-color);
  text-decoration-thickness: 2px;
}
.ad-cite-back {
  color: var(--tw-slate-400);
  text-decoration: none;
  font-size: 0.75em;
  flex-shrink: 0;
  line-height: 1;
}
.ad-cite-back:hover {
  color: var(--tw-slate-600);
}

/* ── FAQ section ──────────────────────────────── */
.article-faq {
  margin-top: 2.5rem;
  border-top: 1px solid var(--tw-slate-200);
  padding-top: 1.25rem;
}
.faq-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tw-slate-400);
  margin-bottom: 1rem;
}
.faq-item {
  padding: .9rem 1.1rem;
  border: 1px solid var(--bs-border-color, var(--tw-slate-200));
  border-radius: .5rem;
  background: var(--bs-body-bg);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  margin-bottom: .6rem;
}
/* Bold + underline question — targets both current (.faq-question) and
   legacy articles where <h4> was stripped to a plain <p> by assemble_article */
.faq-question,
.faq-item > p:first-of-type {
  font-weight: 600;
  font-size: .975rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--tw-slate-400);
  margin-bottom: .5rem;
  color: var(--tw-slate-800);
}
.faq-answer,
.faq-item > p:last-of-type {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--tw-slate-600);
  margin-bottom: 0;
}

/* ── Footer disclaimers ───────────────────────── */
.ad-disclaimers {
  border-top: 1px solid var(--tw-slate-200);
  padding-top: .75rem;
  color: var(--tw-slate-400);
  line-height: 1.5;
}
.ad-disclaimers p,
.ad-disclaimers p em {
  font-size: 0.7rem;
  margin-bottom: 0;
}

/* Markdown headings */
.ad-body h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--tw-slate-900);
  margin-top: 2.25rem;
  margin-bottom: .5rem;
  line-height: 1.25;
}
.ad-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--tw-slate-900);
  margin-top: 2rem;
  margin-bottom: .5rem;
  line-height: 1.3;
}
.ad-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--tw-slate-800);
  margin-top: 1.75rem;
  margin-bottom: .4rem;
  line-height: 1.35;
}


/* ── Tables ───────────────────────────────────── */
.ad-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: .92rem;
  table-layout: auto;
}
.ad-body table thead th {
  padding: .65rem 1rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
  background: var(--tw-violet-200);
  border-bottom: 2px solid var(--tw-violet-400);
  color: var(--tw-slate-900);
}
/* First column: fixed width, allows wrapping */
.ad-body table thead th:first-child,
.ad-body table tbody td:first-child {
  width: 27%;
  min-width: 110px;
}
.ad-body table tbody td:first-child > i.bi {
  float: left;
  margin-top: .15em;
}
.ad-body table tbody tr {
  border-bottom: 1px solid var(--tw-slate-200);
  transition: background .12s;
}
.ad-body table tbody tr:last-child { border-bottom: none; }
.ad-body table tbody tr:nth-child(even) { background: var(--tw-slate-50); }
.ad-body table tbody tr:hover { background: var(--tw-indigo-50); }
.ad-body table tbody td {
  padding: .75rem 1rem;
  vertical-align: top;
  color: var(--tw-slate-700);
  line-height: 1.6;
  border: none;
}
.ad-body table tbody td:first-child {
  font-weight: 700;
  color: var(--tw-slate-800);
  background: rgba(var(--tw-indigo-500-rgb),.07) !important;
}
.ad-body table tbody td:nth-child(2) {
  background: rgba(var(--tw-red-500-rgb),.06) !important;
  border-left: 2px solid rgba(var(--tw-red-500-rgb),.25);
}
.ad-body table tbody td:nth-child(3) {
  background: rgba(var(--tw-emerald-500-rgb),.08) !important;
  border-left: 2px solid rgba(var(--tw-emerald-500-rgb),.35);
}
/* Wrap table on mobile */
@media (max-width: 575px) {
  .ad-body table { display: block; overflow-x: auto; }
}

/* Markdown: lists */
.ad-body ul,
.ad-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.ad-body li {
  margin-bottom: .6rem;
  line-height: 1.75;
}
.ad-body li:last-child { margin-bottom: 0; }

/* ── Sticky sidebar ───────────────────────────── */
.ad-sticky {
  position: sticky;
  top: 1.5rem;
}

/* ── Base tile ────────────────────────────────── */
.ad-tile {
  padding: 1.25rem 1.4rem;
}
.ad-tile > *:not(.nexus-watermark) { position: relative; z-index: 1; }

/* Removed watermark pseudo-elements, now handled by nexus-watermark in HTML */

.ad-tile-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .75rem;
  opacity: .65;
}

.ad-tile-quote {
  background: linear-gradient(135deg, var(--tw-purple-900) 0%, var(--tw-purple-700) 100%);
  border: none;
  color: var(--tw-purple-100);
}
.ad-tile-quote .ad-tile-eyebrow { color: var(--tw-purple-300); opacity: 1; }
.ad-quote-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--tw-purple-100);
  margin: 0 0 .65rem 0;
  padding-left: .75rem;
  border-left: 3px solid var(--tw-purple-500);
}

.ad-tile-nugget {
  background: var(--tw-amber-50);
  border-top: 4px solid var(--tw-amber-500);
}
.ad-tile-nugget .ad-tile-eyebrow { color: var(--tw-amber-600); opacity: 1; }
.ad-nugget-text {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--tw-stone-900);
}
.ad-nugget-text p { margin-bottom: .6rem; }
.ad-nugget-text p:last-child { margin-bottom: 0; }


.ad-tile-story {
  background: linear-gradient(135deg, var(--tw-indigo-50) 0%, var(--tw-indigo-100) 100%);
  border-top: 4px solid var(--tw-indigo-500);
  padding: .9rem 1.1rem;
}
.ad-tile-story .ad-tile-eyebrow { color: var(--tw-indigo-600); opacity: 1; }
.ad-story-text {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--tw-indigo-950);
}
.ad-story-text p { font-size: .9rem; line-height: 1.7; margin-bottom: .5rem; }
.ad-story-text p:last-child { margin-bottom: 0; }

/* ── Premium gate ─────────────────────────────── */
.premium-gate {
  position: relative;
}
.premium-first-line {
  position: relative;
  z-index: 1;
}
.premium-blur {
  max-height: 180px;
  overflow: hidden;
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  margin-top: .25rem;
}
.premium-overlay {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  margin-top: -100px;
}
.premium-card {
  background: white;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  box-shadow: var(--bs-box-shadow-lg);
  max-width: 440px;
  width: 100%;
}
.premium-lock-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tw-indigo-600) 0%, var(--tw-violet-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  box-shadow: 0 4px 16px rgba(var(--tw-slate-800-rgb),.3);
}
.premium-card-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tw-slate-900);
  margin-bottom: .65rem;
}
.premium-card-body {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--tw-slate-500);
  margin-bottom: 1.5rem;
}
.premium-cta-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--tw-indigo-600) 0%, var(--tw-violet-600) 100%);
  color: white;
  font-size: .9rem;
  font-weight: 700;
  padding: .75rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(var(--tw-indigo-500-rgb),.4);
  transition: opacity .18s, transform .18s;
}
.premium-cta-btn:hover {
  color: white;
  opacity: .9;
  transform: translateY(-2px);
}
.premium-card-note {
  font-size: .78rem;
  color: var(--tw-slate-400);
}
.premium-signin-link {
  color: var(--tw-indigo-500);
  text-decoration: none;
  font-weight: 600;
}
.premium-signin-link:hover { text-decoration: underline; }

/* ── Traits card (bullet_points rendered in article body) ── */
.article-traits-card { border-left: 3px solid var(--tw-violet-500); }

.article-traits-list { display: flex; flex-direction: column; gap: .75rem; }

.bullet-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  line-height: 1.5;
}

.bullet-icon {
  flex-shrink: 0;
  font-size: .9rem;
  color: var(--tw-violet-500);
  position: relative;
  top: .05em;
}

.bullet-label {
  font-weight: 600;
  color: var(--bs-body-color);
  white-space: nowrap;
  margin-right: .15rem;
}

.bullet-desc {
  color: var(--bs-secondary-color);
  font-size: .93rem;
}

.bullet-desc::before { content: "– "; }

/* ── Quiz Factory CTA block ───────────────────────────────────────────────── */
.factory-quiz-cta {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(244, 63, 94, 0.04) 100%);
  border: 1px solid rgba(99, 102, 241, 0.12) !important;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px -4px rgba(99, 102, 241, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.factory-quiz-cta:hover {
  border-color: rgba(99, 102, 241, 0.25) !important;
  box-shadow: 0 8px 30px -8px rgba(99, 102, 241, 0.1);
}

.factory-quiz-cta p {
  margin: 0;
  line-height: 1.5;
}

/* ── Archetype bento grid (quiz factory articles) ─────────────────────────── */
.arch-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 1.5rem 0;
  border-radius: .75rem;
  overflow: hidden;
}

.arch-bento-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bs-secondary-bg);
}

/* 2×2 uniform grid — all images are 1:1 so equal cards look best */
@media (min-width: 576px) {
  .arch-bento-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.arch-bento-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.arch-bento-card:hover .arch-bento-img {
  transform: scale(1.04);
}

.arch-bento-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bs-secondary-bg);
}

.arch-bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: .75rem;
  pointer-events: none;
}

.arch-bento-name {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.2;
  letter-spacing: .01em;
}

.arch-bento-tagline {
  display: block;
  color: rgba(255,255,255,.8);
  font-size: .75rem;
  margin-top: .2rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .arch-bento-name { font-size: 1rem; }
  .arch-bento-tagline { font-size: .82rem; }
}

/* ── Share strip ─────────────────────────────────────────── */
.ad-share {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.ad-share-hook {
  font-size: 0.88rem;
  color: var(--bs-body-secondary-color, #6e6e73);
  margin: 0;
  line-height: 1.5;
}

.ad-share-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tw-indigo-500, #6366f1);
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  width: 100%;
}
.ad-share-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.ad-platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ad-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  transition: opacity 0.15s, transform 0.15s;
}
.ad-pill:hover { opacity: 0.85; transform: translateY(-1px); color: white; }
.ad-pill--wa    { background: var(--tw-green-500, #22c55e); }
.ad-pill--x     { background: var(--tw-zinc-950, #09090b); }
.ad-pill--fb    { background: var(--tw-blue-600, #2563eb); }
.ad-pill--th    { background: var(--tw-zinc-950, #09090b); }
.ad-pill--email { background: var(--tw-indigo-500, #6366f1); }

.ad-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bs-body-secondary-color, #6e6e73);
  background: none;
  border: 1.5px solid var(--bs-border-color, #dee2e6);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  width: 100%;
}
.ad-copy-btn:hover {
  border-color: var(--tw-indigo-500, #6366f1);
  color: var(--tw-indigo-500, #6366f1);
}

/* ── What's Next section ──────────────────────────── */
.wn-section { padding-bottom: 2rem; }

.wn-header { margin-bottom: 1.25rem; }
.wn-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--tw-slate-900);
  margin: 0 0 .2rem;
}
.wn-sub {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tw-indigo-500);
  margin: 0;
}

.wn-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 767px) {
  .wn-list { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .wn-list { grid-template-columns: repeat(2, 1fr); }
}

.wn-link { text-decoration: none; display: block; }

.wn-card {
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
}
.wn-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bs-box-shadow-lg);
}

.wn-thumb-wrap {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--tw-slate-100);
  flex-shrink: 0;
}
.wn-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.wn-card:hover .wn-thumb { transform: scale(1.05); }
.wn-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--tw-slate-300);
}

.wn-card-body {
  padding: .9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.wn-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tw-indigo-500);
  margin-bottom: .35rem;
  display: block;
}
.wn-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: .97rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--tw-slate-900);
  margin: 0 0 auto;
  padding-bottom: .65rem;
}
.wn-cta {
  font-size: .78rem;
  font-weight: 700;
  color: var(--tw-indigo-500);
  display: inline-flex;
  align-items: center;
  margin-top: .5rem;
}
