/*
 * Blog article page (resources/views/blogs/show.blade.php).
 * Implements the "Nocturne" blog redesign handoff: tokens below are copied from the design
 * system's styles.css. Everything is scoped under .tt-article so the site header, footer and
 * other pages keep the theme's own styles. Logical properties keep the Arabic (RTL) version right.
 */

.tt-article {
  --tt-bg: #161826;
  --tt-surface: #232532;
  --tt-text: #e9e9ed;
  --tt-accent: #9184d9;
  --tt-divider: rgba(233, 233, 237, 0.16);

  --tt-neutral-200: #e4e7f5;
  --tt-neutral-300: #cfd3e5;
  --tt-neutral-400: #b2b6ca;
  --tt-neutral-500: #9397ab;
  --tt-neutral-600: #75798c;
  --tt-neutral-700: #595d6c;
  --tt-neutral-800: #3f424d;

  --tt-accent-100: #f5f4ff;
  --tt-accent-200: #e7e5fe;
  --tt-accent-300: #d2cefd;
  --tt-accent-400: #b5abfc;
  --tt-accent-700: #5d5294;
  --tt-accent-900: #2b2741;

  --tt-section: #262a60;
  --tt-section-glow: #353b80;

  --tt-radius-sm: 4px;
  --tt-radius-md: 8px;
  --tt-radius-lg: 14px;
  --tt-shadow-sm: 0 0 0 1px #3f424d;
  --tt-shadow-md: 0 0 0 1px #595d6c, 0 6px 18px rgba(0, 0, 0, 0.55);

  --tt-font: "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --tt-fade-rule: linear-gradient(90deg, transparent, var(--tt-divider) 48px, var(--tt-divider) calc(100% - 48px), transparent);

  background: radial-gradient(900px 420px at 0% -10%, var(--tt-accent-900), transparent 70%), var(--tt-bg);
  color: var(--tt-text);
  font-family: var(--tt-font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

.tt-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 0;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.tt-hero__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tt-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--tt-neutral-300);
}

.tt-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--tt-radius-sm);
  background: var(--tt-accent-900);
  color: var(--tt-accent-300);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.tt-article .tt-title {
  margin: 0;
  font-family: var(--tt-font);
  font-weight: 500;
  color: var(--tt-text);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.tt-vs {
  color: var(--tt-neutral-500);
}

.tt-article .tt-dek {
  margin: 0;
  max-width: 640px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--tt-neutral-200);
  text-wrap: pretty;
}

/* The cover keeps its natural proportions (no cropping); "lighten" lets the dark parts
   of the photo melt into the page background. */
.tt-cover {
  margin: 0;
  mix-blend-mode: lighten;
}

.tt-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--tt-radius-lg);
}

/* split: text on one side, cover on the other (stacks on narrow screens) */
.tt-hero--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 40px;
  align-items: center;
}

.tt-hero--split .tt-title {
  font-size: clamp(30px, 5.2vw, 50px);
  line-height: 1.08;
}

/* wide: text block, then a full-width cover */
.tt-hero--wide .tt-hero__text {
  max-width: 820px;
}

.tt-hero--wide .tt-title {
  font-size: clamp(30px, 5.6vw, 56px);
  line-height: 1.06;
}

.tt-hero--wide .tt-cover,
.tt-hero--stacked .tt-cover {
  margin-top: 36px;
}

/* stacked: oversized "A vs B" title */
.tt-hero--stacked .tt-hero__text {
  max-width: 900px;
}

.tt-hero--stacked .tt-title {
  font-size: clamp(34px, 7vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
}

/* ── Body typography (styles the HTML the CMS produces) ────────────────── */

.tt-body {
  max-width: 720px;
  margin-top: 56px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--tt-neutral-200);
}

.tt-body--after {
  margin-top: 40px;
}

.tt-body > * {
  margin-top: 0;
  margin-bottom: 0;
}

.tt-body > * + * {
  margin-top: 18px;
}

/* The theme sets its own font, weight and size on p/li/span directly, so inheritance
   isn't enough: restate them on the elements themselves. */
.tt-article p,
.tt-article li,
.tt-article span,
.tt-article a,
.tt-article div,
.tt-article td,
.tt-article th,
.tt-article blockquote {
  font-family: var(--tt-font);
}

.tt-body p,
.tt-body li {
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  color: inherit;
  text-wrap: pretty;
}

.tt-body p {
  margin-bottom: 0;
}

.tt-body h1,
.tt-body h2,
.tt-body h3,
.tt-body h4 {
  margin-bottom: 0;
  font-family: var(--tt-font);
  font-weight: 500;
  color: var(--tt-text);
  text-transform: none;
}

.tt-body h1,
.tt-body h2 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.tt-body > h1,
.tt-body > h2 {
  margin-top: 56px;
}

/* Heading-to-text gap: a little tighter than between paragraphs. */
.tt-body > h1 + *,
.tt-body > h2 + *,
.tt-body > h3 + *,
.tt-body > h4 + * {
  margin-top: 14px;
}

.tt-body h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.tt-body > h3 {
  margin-top: 36px;
}

.tt-body h4 {
  font-size: 18px;
  line-height: 1.35;
}

.tt-body > h4 {
  margin-top: 28px;
}

.tt-body > :first-child {
  margin-top: 0;
}

.tt-body strong,
.tt-body b {
  font-weight: 600;
  color: var(--tt-text);
}

.tt-body a {
  color: var(--tt-accent-300);
  text-decoration: underline;
  text-decoration-color: var(--tt-accent-700);
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.tt-body a:hover {
  color: var(--tt-accent-200);
  text-decoration-color: var(--tt-accent);
}

/* Lists: accent markers, no boxes. */
.tt-body ul,
.tt-body ol {
  margin-bottom: 0;
  padding-inline-start: 1.4em;
  list-style-position: outside;
  border: 0;
  background: none;
}

.tt-body ul {
  list-style-type: disc;
}

.tt-body ol {
  list-style-type: decimal;
}

.tt-body li {
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
}

/* The theme hides markers and recolors text on li/p (very specifically inside its accordion),
   so these few properties need !important to win inside the article. */
.tt-article .tt-body ul > li {
  display: list-item !important;
  list-style-type: disc !important;
}

.tt-article .tt-body ol > li {
  display: list-item !important;
  list-style-type: decimal !important;
}

.tt-article .tt-body ul.checklist > li {
  display: flex !important;
  list-style-type: none !important;
}

.tt-article .tt-body p,
.tt-article .tt-body li {
  color: var(--tt-neutral-200) !important;
}

.tt-article .tt-body strong,
.tt-article .tt-body b,
.tt-article .tt-body blockquote p {
  color: var(--tt-text) !important;
}

.tt-body li + li {
  margin-top: 8px;
}

.tt-body li::marker {
  color: var(--tt-accent);
  font-variant-numeric: tabular-nums;
}

.tt-body li p,
.tt-body li strong,
.tt-body li b {
  margin: 0;
}

.tt-body li p {
  color: inherit !important; /* older posts' custom-blog.css forced list text to black */
}

/* Check-icon list: <ul class="checklist"> */
.tt-body ul.checklist {
  list-style: none;
  padding-inline-start: 0;
}

.tt-body ul.checklist li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  margin: 0;
  border-top: 1px solid var(--tt-divider);
  font-size: 16px;
  line-height: 1.6;
}

.tt-body ul.checklist li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  background-color: var(--tt-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='black' stroke-width='20' stroke-linecap='round' stroke-linejoin='round' d='M40 144l56 56L224 72'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='black' stroke-width='20' stroke-linecap='round' stroke-linejoin='round' d='M40 144l56 56L224 72'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* "En bref" / "In short" summary box: <blockquote> */
.tt-body blockquote {
  margin-inline: 0;
  padding: 18px 20px;
  border: 0;
  border-radius: var(--tt-radius-md);
  background: var(--tt-surface);
  box-shadow: var(--tt-shadow-sm);
  color: var(--tt-text);
  font-size: 16.5px;
  font-style: normal;
}

.tt-body blockquote::before {
  content: var(--tt-short-label, "In short");
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tt-accent-300);
}

.tt-body blockquote p + p {
  margin-top: 10px;
}

/* Horizontal rule fades out at both ends. */
.tt-body hr {
  height: 1px;
  margin-block: 40px;
  border: 0;
  background: var(--tt-fade-rule);
  opacity: 1;
}

.tt-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--tt-radius-md);
}

/* Comparison table style. Scrolls sideways on small screens instead of squeezing. */
.tt-body table {
  display: block;
  width: 100%;
  max-width: 900px;
  overflow-x: auto;
  border-collapse: collapse;
  border-radius: var(--tt-radius-md);
  box-shadow: var(--tt-shadow-sm);
  background: none;
  font-size: 14.5px;
  line-height: 1.45;
}

.tt-body th,
.tt-body td {
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid var(--tt-divider);
  text-align: start;
  vertical-align: top;
  color: var(--tt-neutral-300);
}

.tt-body th,
.tt-body thead td {
  padding-block: 12px;
  border-top: 0;
  background: var(--tt-surface);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tt-body td:first-child {
  color: var(--tt-text);
}

.tt-body th p,
.tt-body td p {
  color: inherit;
}

/* ── Rich blocks (resources/views/blogs/blocks/*) ──────────────────────── */

.tt-block {
  max-width: 720px;
  margin-top: 56px;
}

.tt-block--wide {
  max-width: none;
}

/* A text block, or an untitled checklist, usually continues the paragraph before it:
   keep it close. Blocks that open a new section (start with a heading) keep the 56px rhythm. */
.tt-block.tt-body,
.tt-checklist:not(:has(> .tt-block__title)) {
  margin-top: 24px;
}

.tt-block.tt-body:has(> :is(h1, h2):first-child) {
  margin-top: 56px;
}

.tt-article .tt-block__title {
  margin: 0 0 20px;
  font-family: var(--tt-font);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--tt-text);
}

.tt-article .tt-block__title--tight {
  margin-bottom: 8px;
}

.tt-article .tt-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tt-accent-300);
}

/* Summary ("En bref") */
.tt-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--tt-radius-md);
  background: var(--tt-surface);
  box-shadow: var(--tt-shadow-sm);
}

.tt-summary__text {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--tt-text);
}

/* Shared two-column card grid (comparison cards, "choose X if") */
.tt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}

.tt-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--tt-radius-lg);
  background: var(--tt-surface);
  box-shadow: var(--tt-shadow-sm);
}

.tt-panel--recommended {
  box-shadow: 0 0 0 1px var(--tt-accent-700);
}

.tt-panel__title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--tt-text);
}

.tt-pros-cons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--tt-neutral-200);
}

.tt-pro,
.tt-con {
  display: flex;
  gap: 10px;
}

/* The theme bolds some inline text; block body copy is regular weight in the design. */
.tt-article .tt-pro span,
.tt-article .tt-con span,
.tt-article .tt-flags__row span,
.tt-article .tt-checklist__list span,
.tt-article .tt-choose__item,
.tt-article .tt-callout__text,
.tt-article .tt-summary__text {
  font-weight: 400;
}

.tt-pro__mark {
  flex: none;
  color: var(--tt-accent);
}

.tt-con {
  color: var(--tt-neutral-400);
}

.tt-con__mark {
  flex: none;
}

/* Cost bar chart */
.tt-chart {
  max-width: 820px;
}

.tt-article .tt-chart__note {
  max-width: 620px;
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 400;
  color: var(--tt-neutral-400) !important;
}

.tt-chart__rows {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tt-chart__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.tt-chart__label {
  font-size: 13px;
  color: var(--tt-neutral-300);
}

.tt-chart__bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tt-chart__bar-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tt-chart__bar {
  height: 10px;
  min-width: 2px;
  border-radius: 5px;
}

.tt-chart__bar--a {
  background: var(--tt-neutral-600);
}

.tt-chart__bar--b {
  background: var(--tt-accent);
  box-shadow: 0 0 10px var(--tt-accent-700);
}

.tt-chart__value {
  font-size: 12px;
  white-space: nowrap;
  color: var(--tt-neutral-300);
}

.tt-chart__value--b {
  color: var(--tt-accent-200);
}

.tt-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-inline-start: 78px;
  font-size: 12px;
  color: var(--tt-neutral-300);
}

.tt-chart__legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tt-chart__swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.tt-chart__swatch--a {
  background: var(--tt-neutral-600);
}

.tt-chart__swatch--b {
  background: var(--tt-accent);
}

/* Checklist */
.tt-article .tt-checklist__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 0;
  background: none;
}

.tt-article .tt-checklist__list li {
  display: flex !important;
  gap: 14px;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--tt-divider);
  background: none;
  font-size: 16px;
  line-height: 1.6;
  list-style: none !important;
  color: var(--tt-neutral-200) !important;
}

.tt-checklist__list svg {
  flex: none;
  margin-top: 3px;
  color: var(--tt-accent);
}

/* Numbered criteria + sticky side index */
.tt-criteria__layout {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.tt-criteria__index {
  position: sticky;
  top: 110px; /* clears the site's fixed header */
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.tt-criteria__index-label {
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tt-neutral-400);
}

.tt-article .tt-criteria__index a {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--tt-divider);
  font-weight: 400;
  line-height: 1.4;
  color: var(--tt-neutral-300);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease;
}

.tt-article .tt-criteria__index a:hover {
  color: var(--tt-text);
  border-inline-start-color: var(--tt-accent);
}

.tt-criteria__index a span {
  color: var(--tt-accent);
  font-variant-numeric: tabular-nums;
}

.tt-criteria__items {
  flex: 1;
  min-width: 0;
  max-width: 720px;
}

.tt-criterion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 32px;
  scroll-margin-top: 110px;
}

.tt-criterion:first-child {
  padding-top: 0;
}

.tt-criterion__number {
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--tt-accent-700);
  font-variant-numeric: tabular-nums;
}

.tt-article .tt-criterion__title {
  margin: 0;
  font-family: var(--tt-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--tt-text);
}

.tt-article .tt-criterion__text {
  margin: 0;
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--tt-neutral-200) !important;
  text-wrap: pretty;
}

.tt-callout {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--tt-radius-md);
  background: var(--tt-accent-900);
  font-size: 15px;
  line-height: 1.55;
}

.tt-callout .tt-label {
  flex: none;
  padding-top: 3px;
}

.tt-callout__text {
  color: var(--tt-accent-100);
}

@media (max-width: 760px) {
  .tt-criteria__index {
    display: none;
  }
}

/* Red flags */
.tt-flags {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--tt-radius-lg);
  background: var(--tt-surface);
  box-shadow: var(--tt-shadow-sm);
}

.tt-article .tt-flags__title {
  margin: 0;
  font-family: var(--tt-font);
  font-size: 22px;
  font-weight: 500;
  color: var(--tt-text);
}

.tt-flags__row {
  display: flex;
  gap: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--tt-neutral-200);
}

.tt-flags__row svg {
  flex: none;
  margin-top: 5px;
  color: var(--tt-neutral-400);
}

/* "Choose X if" cards */
.tt-choose {
  gap: 12px;
}

.tt-choose__label {
  font-size: 13px;
  color: var(--tt-neutral-300);
}

.tt-choose__name {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--tt-text);
}

.tt-choose__rule {
  width: 32px;
  height: 1px;
  background: var(--tt-accent);
}

.tt-choose__item {
  font-size: 15px;
  line-height: 1.55;
  color: var(--tt-neutral-200);
}

/* Comparison table with a winner mark per row */
.tt-score {
  max-width: 900px;
}

.tt-score__scroll {
  overflow-x: auto;
  border-radius: var(--tt-radius-md);
  box-shadow: var(--tt-shadow-sm);
}

.tt-article .tt-score__table {
  width: 100%;
  min-width: 560px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: none;
  font-size: 14.5px;
  line-height: 1.45;
}

.tt-score__table col:first-child,
.tt-score__table th:first-child {
  width: 36%;
}

.tt-article .tt-score__table th,
.tt-article .tt-score__table td {
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid var(--tt-divider);
  background: none;
  text-align: start;
  vertical-align: baseline;
  font-weight: 400;
  color: var(--tt-neutral-300);
}

.tt-article .tt-score__table thead th {
  padding-block: 12px;
  border-top: 0;
  background: var(--tt-surface);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tt-neutral-300);
}

.tt-article .tt-score__table tbody th {
  color: var(--tt-text);
}

.tt-article .tt-score__table td.is-winner {
  color: var(--tt-text);
}

.tt-score__cell {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tt-article .tt-score__cell span {
  font-weight: 400;
}

.tt-score__mark {
  flex: none;
  width: 8px;
  color: var(--tt-accent);
}

.tt-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Accordion (older posts' "dropdown" groups) ────────────────────────── */

.tt-accordion {
  max-width: 720px;
  margin-top: 56px;
}

.tt-article .tt-accordion .accordion-box {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tt-article .tt-accordion h2 {
  margin: 40px 0 16px;
  font-family: var(--tt-font);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--tt-text);
}

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

.tt-article .tt-accordion .accordion {
  margin: 0 0 8px;
  border: 0;
  border-radius: var(--tt-radius-md);
  background: var(--tt-surface);
  box-shadow: var(--tt-shadow-sm);
  overflow: hidden;
}

.tt-article .tt-accordion .acc-btn {
  position: relative;
  padding: 16px 52px 16px 20px;
  padding-inline: 20px 52px;
  border: 0;
  background: none;
  font-family: var(--tt-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--tt-text);
  cursor: pointer;
  transition: color 150ms ease;
}

.tt-article .tt-accordion .acc-btn:hover,
.tt-article .tt-accordion .acc-btn.active {
  color: var(--tt-accent-200) !important;
  background: none !important;
}

/* Font Awesome's JS swaps the <div class="icon"> for an <svg>, so target both. */
.tt-article .tt-accordion .acc-btn .icon,
.tt-article .tt-accordion .acc-btn.active .icon,
.tt-article .tt-accordion .acc-btn svg {
  color: var(--tt-accent) !important;
  background: none !important;
}

.tt-article .tt-accordion .acc-btn .icon {
  position: absolute;
  top: 50%;
  inset-inline-end: 20px;
  inset-inline-start: auto;
  transform: translateY(-50%);
  color: var(--tt-accent);
  font-size: 16px;
  background: none;
  transition: transform 150ms ease;
}

.tt-article .tt-accordion .acc-btn.active .icon {
  transform: translateY(-50%) rotate(180deg);
}

.tt-article .tt-accordion .acc-content {
  display: none;
  padding: 0 20px 18px;
  border: 0;
  background: none;
}

.tt-article .tt-accordion .acc-content.current {
  display: block;
}

.tt-article .tt-accordion .acc-content .tt-body {
  margin-top: 0;
  font-size: 15.5px;
}

/* ── CTA band ─────────────────────────────────────────────────────────── */

.tt-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 820px;
  margin-top: 72px;
  padding: 28px;
  border-radius: var(--tt-radius-lg);
  background: radial-gradient(600px 200px at 0% 0%, var(--tt-section-glow), transparent 70%), var(--tt-section);
}

.tt-cta__title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--tt-text);
}

.tt-cta__sub {
  font-size: 15px;
  color: var(--tt-accent-200);
}

.tt-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* Buttons are outlined, never filled. */
.tt-article .tt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--tt-radius-md);
  background: transparent;
  font-family: var(--tt-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.tt-article .tt-btn--primary {
  color: var(--tt-accent);
  border-color: var(--tt-accent);
}

.tt-article .tt-btn--primary:hover {
  color: var(--tt-accent-200);
  background: rgba(145, 132, 217, 0.12);
}

.tt-article .tt-btn--primary:active {
  color: var(--tt-accent-400);
  background: rgba(145, 132, 217, 0.22);
}

.tt-article .tt-btn--secondary {
  color: var(--tt-text);
  border-color: var(--tt-divider);
}

.tt-article .tt-btn--secondary:hover {
  color: var(--tt-text);
  background: rgba(233, 233, 237, 0.07);
}

/* ── Related posts ────────────────────────────────────────────────────── */

.tt-related {
  margin-top: 88px;
  padding-bottom: 88px;
}

.tt-rule {
  height: 1px;
  margin-bottom: 28px;
  background: var(--tt-fade-rule);
}

.tt-article .tt-related__title {
  margin: 0 0 16px;
  font-family: var(--tt-font);
  font-size: 20px;
  font-weight: 500;
  color: var(--tt-text);
}

.tt-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

.tt-article .tt-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--tt-radius-md);
  background: var(--tt-surface);
  text-decoration: none;
  transition: box-shadow 150ms ease;
}

.tt-article .tt-card:hover {
  box-shadow: var(--tt-shadow-md);
}

.tt-card__kicker {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tt-accent);
}

.tt-card__title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--tt-text);
}

.tt-card__meta {
  font-size: 11px;
  color: rgba(233, 233, 237, 0.5);
}

/* ── Focus & RTL ──────────────────────────────────────────────────────── */

.tt-article a:focus-visible,
.tt-article .acc-btn:focus-visible {
  outline: 2px solid var(--tt-accent);
  outline-offset: 2px;
}

[dir="rtl"] .tt-article,
[dir="rtl"] .tt-body,
[dir="rtl"] .tt-cta {
  text-align: right;
}

[dir="rtl"] .tt-article .tt-title,
[dir="rtl"] .tt-body h1,
[dir="rtl"] .tt-body h2,
[dir="rtl"] .tt-body h3,
[dir="rtl"] .tt-body h4 {
  letter-spacing: 0;
}

[dir="rtl"] .tt-cta {
  background: radial-gradient(600px 200px at 100% 0%, var(--tt-section-glow), transparent 70%), var(--tt-section);
}
