/* TYTEN Insights — listing + article shared styles. */

.ins-main { padding-top: 0; }

/* HERO */
.ins-hero {
  background: #1a1a1c;
  padding: 180px 48px 80px;
  border-bottom: 1px solid #2a2a2e;
  position: relative;
  overflow: hidden;
}
.ins-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 70% 0%, rgba(221,238,170,.08), transparent 70%),
    radial-gradient(40% 30% at 0% 100%, rgba(221,238,170,.05), transparent 60%);
  pointer-events: none;
}
.ins-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.ins-eyebrow {
  display: inline-block;
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: #DDEEAA;
  margin-bottom: 18px;
}
.ins-h1 {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0 0 18px;
  background: linear-gradient(270deg, #DDEEAA 0.1%, #FFF 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ins-sub {
  color: #aaa;
  font-size: 18px;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 0 36px;
}
.ins-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ins-tag {
  background: transparent;
  color: #ccc;
  border: 1px solid #2a2a2e;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.ins-tag:hover { border-color: rgba(221,238,170,.5); color: #fff; }
.ins-tag.is-active {
  background: #DDEEAA;
  color: #1a1a1c;
  border-color: #DDEEAA;
}

/* LIST */
.ins-list {
  background: #1a1a1c;
  padding: 80px 48px;
}
.ins-list-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

/* CARDS */
.ins-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #1e1e20;
  border: 1px solid #2a2a2e;
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.ins-card:hover {
  border-color: rgba(221,238,170,.5);
  transform: translateY(-2px);
}
.ins-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ins-card-cover {
  background: linear-gradient(135deg, #22241e 0%, #1a1a1c 100%);
  border-right: 1px solid #2a2a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 300px;
}
.ins-card-cover svg { width: 100%; height: auto; max-width: 480px; }
.ins-card-body {
  padding: 48px 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ins-card-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ins-pill {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}
.ins-pill.is-primary {
  background: #DDEEAA;
  color: #1a1a1c;
}
.ins-pill.is-ghost {
  border: 1px solid #2a2a2e;
  color: #aaa;
}
.ins-card-title {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}
.ins-card-excerpt {
  color: #bbb;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}
.ins-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 13px;
  color: #888;
  margin-top: auto;
  padding-top: 8px;
}
.ins-card-dot { color: #555; }
.ins-card-arrow {
  margin-left: auto;
  color: #DDEEAA;
  font-weight: 700;
  transition: transform .2s;
}
.ins-card:hover .ins-card-arrow { transform: translateX(4px); }

/* Secondary cards row (two real articles below the featured one). */
.ins-secondary-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 4px;
}
.ins-card-secondary {
  display: grid;
  grid-template-rows: auto 1fr;
}
.ins-card-cover-sm {
  border-right: 0;
  border-bottom: 1px solid #2a2a2e;
  min-height: 180px;
  padding: 18px;
}
.ins-card-cover-sm svg { max-width: 320px; }
.ins-card-title-sm {
  font-size: clamp(20px, 2vw, 26px) !important;
}
.ins-card-secondary .ins-card-body {
  padding: 28px 28px 24px;
}

/* "Coming next" placeholders */
.ins-empty-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.ins-empty-card {
  background: rgba(255,255,255,0.02);
  border: 1px dashed #2a2a2e;
  border-radius: 16px;
  padding: 28px;
}
.ins-empty-eyebrow {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(221,238,170,.7);
  margin-bottom: 12px;
}
.ins-empty-title {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #ddd;
  line-height: 1.3;
  margin: 0 0 10px;
}
.ins-empty-body {
  color: #888;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* CTA strip */
.ins-cta {
  background: #1e1e20;
  padding: 100px 48px;
  border-top: 1px solid #2a2a2e;
  text-align: center;
}
.ins-cta-inner { max-width: 700px; margin: 0 auto; }
.ins-cta-h {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0 0 14px;
}
.ins-cta-sub {
  color: #bbb;
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 32px;
}
.ins-cta .btn-demo {
  display: inline-block;
  background: #DDEEAA;
  color: #111;
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
}
.ins-cta .btn-demo:hover { opacity: .9; }


/* ─────────────────────── ARTICLE ─────────────────────── */

/* Top-level horizontal containment: the article HTML does not load
   mobile-responsive.css, so wide ASCII <pre> children would otherwise
   stretch the document and clip body text on mobile. */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }

.art-shell {
  background: #1a1a1c;
  padding: 140px 24px 100px;
  position: relative;
  overflow: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}
.art-inner { max-width: 760px; margin: 0 auto; position: relative; min-width: 0; }
.art-body, .art-hero-art, .art-ascii, .art-table, .art-stat-row { min-width: 0; max-width: 100%; }
.art-shell::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 40% at 80% 0%, rgba(221,238,170,.07), transparent 70%);
  pointer-events: none;
}
.art-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aaa;
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 28px;
  font-family: 'Wix Madefor Display', sans-serif;
}
.art-back:hover { color: #DDEEAA; }
.art-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.art-h1 {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin: 0 0 22px;
  color: #fff;
}
.art-deck {
  font-size: 20px;
  line-height: 1.6;
  color: #d2d2d2;
  margin: 0 0 28px;
  font-weight: 400;
}
.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  color: #888;
  font-size: 14px;
  font-family: 'Wix Madefor Display', sans-serif;
  border-top: 1px solid #2a2a2e;
  border-bottom: 1px solid #2a2a2e;
  padding: 16px 0;
}
.art-meta strong { color: #ddd; font-weight: 600; }
.art-meta-dot { color: #444; }

/* Hero artwork inside the article */
.art-hero-art {
  margin: 36px 0 0;
  background: linear-gradient(135deg, #22241e 0%, #1a1a1c 100%);
  border: 1px solid #2a2a2e;
  border-radius: 18px;
  padding: 36px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  contain: layout inline-size;   /* don't let pre content stretch parents */
}
.art-hero-art svg { width: 100%; height: auto; display: block; max-height: 320px; }
.art-hero-art pre {
  margin: 0;
  white-space: pre;
}
@media (max-width: 720px) {
  .art-hero-art { padding: 16px 12px; }
  .art-hero-art pre { font-size: 8.5px !important; line-height: 1.3 !important; }
}
@media (max-width: 460px) {
  .art-hero-art { padding: 14px 10px; }
  .art-hero-art pre { font-size: 6.5px !important; line-height: 1.25 !important; }
}

/* Body */
.art-body {
  padding: 56px 0 0;
  font-size: 18px;
  line-height: 1.85;
  color: #d2d2d2;
}
.art-body > p { margin: 0 0 22px; }
.art-body h2 {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  margin: 56px 0 18px;
  line-height: 1.2;
}
.art-body h2 + p { margin-top: 0; }
.art-body strong { color: #fff; font-weight: 700; }
.art-body a { color: #DDEEAA; text-decoration: underline; text-underline-offset: 3px; }

/* Pull-quote */
.art-quote {
  margin: 36px 0;
  padding: 28px 32px;
  border-left: 3px solid #DDEEAA;
  background: rgba(221,238,170,.05);
  border-radius: 0 16px 16px 0;
}
.art-quote-text {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  font-style: normal;
  margin: 0 0 14px;
}
.art-quote-attr {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 12px;
  color: rgba(221,238,170,.85);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Stat callout */
.art-stat {
  margin: 32px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  background: #1e1e20;
  border: 1px solid rgba(221,238,170,.25);
  border-radius: 16px;
}
.art-stat-num {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  color: #DDEEAA;
  line-height: 1;
  letter-spacing: -.02em;
}
.art-stat-lbl {
  font-size: 17px;
  line-height: 1.5;
  color: #ddd;
}

/* Stat row */
.art-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 32px 0;
}
.art-stat-row .art-stat {
  display: block;
  margin: 0;
  text-align: center;
}
.art-stat-row .art-stat-num { display: block; margin-bottom: 8px; }
.art-stat-row .art-stat-lbl { font-size: 14px; color: #aaa; }

/* Notes / editor block */
.art-notes {
  margin: 56px 0 0;
  padding: 28px 32px;
  background: rgba(255,255,255,.03);
  border: 1px solid #2a2a2e;
  border-radius: 16px;
}
.art-notes-eyebrow {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(221,238,170,.75);
  margin-bottom: 12px;
}
.art-notes p { color: #aaa; font-size: 15px; line-height: 1.7; margin: 0 0 12px; }
.art-notes p:last-child { margin-bottom: 0; }

/* Section divider */
.art-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #2a2a2e 50%, transparent 100%);
  margin: 56px 0;
  border: 0;
}

/* Inline ASCII-art block (used by comparison articles).
   Lives inside .art-body. Keeps a monospace stack so the diagram aligns.

   Box constraints: must clip its <pre> child on narrow viewports.
   max-width:100% + box-sizing:border-box stops the box from expanding
   to fit pre content; overflow-x then provides a horizontal scrollbar. */
.art-ascii {
  margin: 32px 0;
  padding: 24px 26px;
  background: #16181a;
  border: 1px solid #2a2a2e;
  border-radius: 14px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
/* Scroll-hint: a soft fade on the right edge when the content overflows.
   On wider viewports where the content fits, the fade is harmless. */
.art-ascii::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 36px;
  background: linear-gradient(90deg, transparent 0%, #16181a 90%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.art-ascii.is-scrollable::after { opacity: 1; }
.art-ascii pre {
  margin: 0;
  font-family: 'Menlo', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.5;
  color: #DDEEAA;
  white-space: pre;
  letter-spacing: 0;
}
.art-ascii .art-ascii-cap {
  display: block;
  margin-top: 14px;
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(221,238,170,.6);
}
@media (max-width: 720px) {
  .art-ascii { padding: 18px 16px; }
  .art-ascii pre { font-size: 9px; line-height: 1.45; }
}
@media (max-width: 420px) {
  .art-ascii pre { font-size: 8px; line-height: 1.4; }
}

/* Comparison table block. Used inside .art-body for like-for-like grids. */
.art-table {
  margin: 32px 0;
  border: 1px solid #2a2a2e;
  border-radius: 14px;
  overflow: hidden;
}
.art-table-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  border-bottom: 1px solid #2a2a2e;
}
.art-table-row.is-2col { grid-template-columns: 1fr 1fr; }
.art-table-row.is-3col { grid-template-columns: 1.4fr 1fr 1fr; }
.art-table-row:last-child { border-bottom: 0; }
.art-table-row > div {
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #ccc;
  border-right: 1px solid #2a2a2e;
}
.art-table-row > div:last-child { border-right: 0; }
.art-table-head {
  background: rgba(221,238,170,.06);
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #DDEEAA;
}
.art-table-row .art-table-key {
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.02);
}
.art-table-row .art-table-best { color: #DDEEAA; font-weight: 700; }
@media (max-width: 720px) {
  .art-table-row { grid-template-columns: 1fr; }
  .art-table-row > div {
    border-right: 0;
    border-bottom: 1px dashed #2a2a2e;
    padding: 12px 18px;
  }
  .art-table-row > div:last-child { border-bottom: 0; }

  /* Hide the head row — its labels are reprojected onto each cell below. */
  .art-table-head { display: none; }

  /* Row leading key (e.g. "Time zone") becomes a section header. */
  .art-table-row .art-table-key {
    background: rgba(221,238,170,.06);
    color: #DDEEAA;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px;
    font-weight: 700;
    padding: 10px 18px;
  }

  /* Each value cell gets a label injected via data-label (set by tyten-insights.js).
     Stacked layout: label above (small caps muted), value below. Clearer than
     side-by-side on narrow viewports because long values cannot get clipped. */
  .art-table-row > div[data-label] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 18px;
    color: #fff;
    font-size: 15px;
    line-height: 1.45;
  }
  .art-table-row > div[data-label]::before {
    content: attr(data-label);
    font-family: 'Wix Madefor Display', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #888;
  }
  /* Preserve the "best/highlight" lime accent inside data-label cells. */
  .art-table-row > div[data-label].art-table-best {
    color: #DDEEAA;
    font-weight: 700;
  }
  /* Make the totals row visually distinct: stronger background + lime ring. */
  .art-table-row:has(> div.art-table-best:not(:only-child)) {
    background: rgba(221,238,170,.06);
    border-top: 1px solid rgba(221,238,170,.25);
    border-bottom: 1px solid rgba(221,238,170,.25);
  }

  /* 2-column tables (e.g. "Build if / Buy if") need the same data-label
     treatment so each cell still indicates its column on mobile. */
  .art-table-row.is-2col { grid-template-columns: 1fr; }
}

/* Footer CTA card */
.art-end-cta {
  margin: 64px 0 0;
  padding: 40px 32px;
  background: linear-gradient(135deg, #1e1e20 0%, #1a1c17 100%);
  border: 1px solid rgba(221,238,170,.3);
  border-radius: 20px;
  text-align: center;
}
.art-end-cta h3 {
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 12px;
}
.art-end-cta p {
  color: #bbb;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.art-end-cta .btn-demo {
  display: inline-block;
  background: #DDEEAA;
  color: #111;
  font-family: 'Wix Madefor Display', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
}

/* Mobile */
@media (max-width: 900px) {
  .ins-card-featured { grid-template-columns: 1fr; }
  .ins-card-cover { border-right: 0; border-bottom: 1px solid #2a2a2e; min-height: 220px; padding: 24px; }
  .ins-card-body { padding: 32px 24px; }
  .ins-secondary-row { grid-template-columns: 1fr; }
  .ins-empty-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ins-hero { padding: 120px 16px 56px; }
  .ins-list { padding: 48px 16px; }
  .ins-cta { padding: 64px 16px; }
  .art-shell { padding: 110px 16px 64px; }
  .art-stat { grid-template-columns: 1fr; gap: 8px; padding: 22px 22px; }
  .art-stat-row { grid-template-columns: 1fr; }
  .art-quote { padding: 22px 22px; }
  .art-end-cta { padding: 28px 22px; }
}
