/* =========================================================
   Simyak — Article Template System (shared styles)
   Used by every templates/article.<type>.json variant.
   Class prefix: smyk-art-*
   ========================================================= */

.smyk-art {
  --smyk-art-max: 1200px;
  --smyk-art-content-max: 760px;
  --smyk-art-gap: clamp(24px, 4vw, 48px);
  --smyk-art-radius: 12px;
  --smyk-art-border: 1px solid rgb(0 0 0 / 0.08);
  color: var(--color-foreground, #111);
}

.smyk-art__container {
  max-width: var(--smyk-art-max);
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* ---------- Hero (matches simyak-page-hero visual language) ---------- */
.smyk-art-ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf6e3 0%, #fef9f0 25%, #f5f0ff 60%, #e8dfff 100%);
  padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 5vw, 64px);
  text-align: center;
}
.smyk-art-ph__inner {
  position: relative;
  z-index: 1;
}
.smyk-art-ph__decor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Breadcrumb */
.smyk-art-ph__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 24px;
}
.smyk-art-ph__breadcrumb a {
  color: #222222;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.smyk-art-ph__breadcrumb a:hover { color: #e41d56; }
.smyk-art-ph__breadcrumb [aria-current="page"] { color: #64748b; }

/* Eyebrow */
.smyk-art-ph__eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e41d56;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
}

/* Heading */
.smyk-art-ph__heading {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #222222;
  margin: 0 auto 20px;
  line-height: 1.15;
  max-width: 920px;
  letter-spacing: -0.01em;
}

/* Byline */
.smyk-art-ph__byline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0 auto 32px;
}
.smyk-art-ph__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid rgba(10,22,40,0.08);
  flex-shrink: 0;
}
.smyk-art-ph__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.smyk-art-ph__avatar--placeholder {
  background: linear-gradient(135deg, #fed7aa, #ddd6fe);
}
.smyk-art-ph__author {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: #222222;
}
.smyk-art-ph__verified {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #2563eb; color: #fff;
}
.smyk-art-ph__sep { opacity: 0.4; }
.smyk-art-ph__meta { color: #4b5563; }

/* Hero image, sitting inside the gradient as a card */
.smyk-art-ph__image-wrap {
  position: relative;
  margin: 0 auto;
  max-width: 980px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(10,22,40,0.08);
  box-shadow: 0 18px 40px -20px rgba(10,22,40,0.18), 0 4px 12px -6px rgba(10,22,40,0.08);
  aspect-ratio: 16 / 9;
}
.smyk-art-ph__image {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

@media (max-width: 600px) {
  .smyk-art-ph { padding: 32px 0 40px; }
  .smyk-art-ph__byline { font-size: 0.82rem; gap: 6px 8px; }
  .smyk-art-ph__image-wrap { border-radius: 12px; aspect-ratio: 4 / 3; }
}

/* ---------- Layout: TOC + content ---------- */
.smyk-art-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--smyk-art-gap);
  padding-block: clamp(24px, 4vw, 48px);
}
@media (min-width: 1024px) {
  .smyk-art-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

/* ---------- TOC ---------- */
.smyk-art-toc {
  font-size: 14px;
}
.smyk-art-toc__title {
  font-weight: 600;
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(0 0 0 / 0.55);
}
.smyk-art-toc__nav { position: relative; }
@media (min-width: 1024px) {
  .smyk-art-toc {
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .smyk-art-toc__details > summary { display: none; }
  .smyk-art-toc__nav { display: block !important; }
}
.smyk-art-toc__details { border: var(--smyk-art-border); border-radius: 8px; }
.smyk-art-toc__details > summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.smyk-art-toc__details > summary::-webkit-details-marker { display: none; }
.smyk-art-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.smyk-art-toc__details[open] .smyk-art-toc__list { padding: 8px 16px 16px; }
.smyk-art-toc__item--h3 { padding-left: 16px; }
.smyk-art-toc__link {
  display: block;
  padding: 6px 8px;
  color: rgb(0 0 0 / 0.65);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 4px;
  line-height: 1.4;
}
.smyk-art-toc__link:hover { color: var(--color-foreground); background: rgb(0 0 0 / 0.04); }
.smyk-art-toc__link.is-active {
  color: var(--color-foreground);
  border-left-color: currentColor;
  font-weight: 600;
  background: rgb(0 0 0 / 0.04);
}

/* ---------- Body / typography ---------- */
.smyk-art-body { max-width: var(--smyk-art-content-max); }
.smyk-art-body > * + * { margin-top: 1.2em; }
.smyk-art-body h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.25;
  margin-top: 2em;
  font-weight: 700;
  scroll-margin-top: 100px;
}
.smyk-art-body h3 {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  margin-top: 1.6em;
  font-weight: 600;
  scroll-margin-top: 100px;
}
.smyk-art-body p, .smyk-art-body li { font-size: 17px; line-height: 1.7; }
.smyk-art-body ul, .smyk-art-body ol { padding-left: 1.5em; }
.smyk-art-body img { max-width: 100%; height: auto; border-radius: 8px; }

/* ---------- Lead paragraph ---------- */
.smyk-art-lead {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.6;
  font-weight: 500;
  color: rgb(0 0 0 / 0.85);
  border-left: 3px solid currentColor;
  padding-left: 18px;
  margin: 24px 0;
}

/* ---------- Key Takeaways ---------- */
.smyk-art-takeaways {
  background: rgb(0 0 0 / 0.04);
  border-radius: var(--smyk-art-radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.smyk-art-takeaways__title {
  margin: 0 0 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.smyk-art-takeaways__list { margin: 0; padding-left: 1.2em; }
.smyk-art-takeaways__list li { margin: 6px 0; }

/* ---------- Specs table ---------- */
.smyk-art-specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 16px 0;
  font-size: 16px;
}
.smyk-art-specs dt { font-weight: 600; color: rgb(0 0 0 / 0.6); }
.smyk-art-specs dd { margin: 0; }

/* ---------- Flag colors grid ---------- */
.smyk-art-colors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.smyk-art-color {
  border: var(--smyk-art-border);
  border-radius: var(--smyk-art-radius);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.smyk-art-color__swatch {
  width: 44px; height: 44px;
  border-radius: 8px;
  border: 1px solid rgb(0 0 0 / 0.08);
  flex-shrink: 0;
}
.smyk-art-color__name { margin: 0 0 2px; font-weight: 600; font-size: 16px; }
.smyk-art-color__hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; color: rgb(0 0 0 / 0.55);
}
.smyk-art-color__meaning { margin: 6px 0 0; font-size: 14px; color: rgb(0 0 0 / 0.75); }

/* ---------- CTA inline ---------- */
.smyk-art-cta-inline {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  border: var(--smyk-art-border);
  border-radius: var(--smyk-art-radius);
  padding: 18px 22px;
  margin: 32px 0;
  background: linear-gradient(135deg, #fdf6e3 0%, #f5f0ff 100%);
}
.smyk-art-cta-inline__image {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
}
.smyk-art-cta-inline__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.smyk-art-cta-inline__text { flex: 1 1 280px; min-width: 0; }
.smyk-art-cta-inline__heading { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.smyk-art-cta-inline__body { margin: 0; font-size: 14px; color: rgb(0 0 0 / 0.7); }
.smyk-art-cta-inline__btn {
  flex-shrink: 0;
  padding: 10px 18px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.smyk-art-cta-inline__btn:hover { background: #222; }

/* ---------- CTA banner (final) ---------- */
.smyk-art-cta-banner {
  margin: 48px 0 24px;
  padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 48px);
  border-radius: var(--smyk-art-radius);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  text-align: center;
}
.smyk-art-cta-banner__eyebrow {
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 12px; font-weight: 700;
  opacity: 0.7; margin: 0 0 12px;
}
.smyk-art-cta-banner__heading {
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 12px;
  font-weight: 700;
  line-height: 1.2;
}
.smyk-art-cta-banner__body {
  margin: 0 auto 20px;
  max-width: 560px;
  opacity: 0.85;
  font-size: 16px;
}
.smyk-art-cta-banner__btn {
  display: inline-block;
  padding: 14px 28px;
  background: #fff;
  color: #111;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.smyk-art-cta-banner__btn:hover { background: #f0f0f0; }

/* ---------- FAQ ---------- */
.smyk-art-faq { margin: 32px 0; }
.smyk-art-faq__title { margin: 0 0 16px; font-size: clamp(22px, 2.5vw, 28px); font-weight: 700; }
.smyk-art-faq__item {
  border-bottom: var(--smyk-art-border);
}
.smyk-art-faq__item > summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.smyk-art-faq__item > summary::-webkit-details-marker { display: none; }
.smyk-art-faq__item > summary::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.smyk-art-faq__item[open] > summary::after { transform: rotate(-135deg); }
.smyk-art-faq__answer { padding: 0 0 16px; color: rgb(0 0 0 / 0.75); line-height: 1.6; }

/* ---------- Similar flags ---------- */
.smyk-art-similar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.smyk-art-similar__card {
  border: var(--smyk-art-border);
  border-radius: var(--smyk-art-radius);
  padding: 12px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.smyk-art-similar__card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgb(0 0 0 / 0.08); }
.smyk-art-similar__img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px;
  border: 1px solid rgb(0 0 0 / 0.08);
}
.smyk-art-similar__name { font-weight: 600; font-size: 14px; }

/* ---------- Related articles ---------- */
.smyk-art-related { margin: 48px 0 24px; }
.smyk-art-related__title { margin: 0 0 20px; font-size: clamp(22px, 2.5vw, 28px); font-weight: 700; }
.smyk-art-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.smyk-art-related__card {
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 12px;
}
.smyk-art-related__img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--smyk-art-radius);
}
.smyk-art-related__name { font-weight: 600; font-size: 17px; line-height: 1.3; margin: 0; }
.smyk-art-related__meta { font-size: 13px; color: rgb(0 0 0 / 0.55); }

/* ---------- Section spacing ---------- */
.smyk-art-section { margin: 32px 0; }
.smyk-art-section > h2 { margin-top: 0; }
