/* Shared custom classes for the sub-pages under /products/.
   The homepage keeps its own copy inline in index.html. */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 22px;
  color: #fff;
  flex: none;
  box-shadow: 0 8px 20px -8px rgba(2, 6, 23, .45);
}

.card {
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -24px rgba(250, 86, 0, .45);
}

/* "Đọc bài →" on the blog cards */
.read-more-ic {
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.read-more:hover .read-more-ic,
.read-more:focus-visible .read-more-ic {
  transform: translateX(3px);
}

/* FAQ built on <details>, so it needs no JS */
.faq {
  transition: border-color .3s ease, box-shadow .3s ease;
}
.faq[open] {
  border-color: rgba(250, 86, 0, .35);
  box-shadow: 0 18px 40px -28px rgba(2, 6, 23, .45);
}
.faq[open] .faq-ic {
  transform: rotate(135deg);
}
.faq-ic {
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.faq > summary {
  list-style: none;
  cursor: pointer;
}
.faq > summary::-webkit-details-marker {
  display: none;
}

/* `interpolate-size` lets the panel animate to its natural height, and `allow-discrete` keeps
   the element rendered while it collapses. Browsers without ::details-content support simply
   snap open, exactly as before. */
:root {
  interpolate-size: allow-keywords;
}
.faq::details-content {
  block-size: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    block-size .34s cubic-bezier(.2, .8, .2, 1),
    opacity .26s ease,
    content-visibility .34s allow-discrete;
}
.faq[open]::details-content {
  block-size: auto;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .card, .faq, .faq-ic, .read-more-ic { transition: none; }
  .faq::details-content { transition: none; }
}

/* ===== Article body (blog) ===== */
.prose-z { color: #334155; line-height: 1.75; }
.dark .prose-z { color: #cbd5e1; }

.prose-z h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #0f172a;
  scroll-margin-top: 5rem;
}
.prose-z h3 {
  margin: 2rem 0 .75rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  scroll-margin-top: 5rem;
}
.dark .prose-z h2, .dark .prose-z h3 { color: #f1f5f9; }

.prose-z p { margin: 1rem 0; }
.prose-z strong { font-weight: 700; color: #0f172a; }
.dark .prose-z strong { color: #f1f5f9; }

.prose-z ul, .prose-z ol { margin: 1rem 0; padding-left: 1.35rem; }
.prose-z ul { list-style: disc; }
.prose-z ol { list-style: decimal; }
.prose-z li { margin: .45rem 0; }
.prose-z li::marker { color: #FA5600; }

.prose-z a { color: #E64A00; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dark .prose-z a { color: #fdba74; }

/* inline code */
.prose-z code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .875em;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: .1em .35em;
  color: #0f172a;
}
.dark .prose-z code { background: #1e293b; border-color: #334155; color: #e2e8f0; }

/* code block */
.prose-z pre {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: auto;
  font-size: .84rem;
  line-height: 1.6;
  border: 1px solid #1e293b;
}
.prose-z pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

.prose-z blockquote {
  margin: 1.5rem 0;
  padding: .85rem 1.15rem;
  border-left: 4px solid #FA5600;
  background: #fff7ed;
  border-radius: 0 12px 12px 0;
  font-weight: 600;
  color: #7c2d12;
}
.dark .prose-z blockquote { background: rgba(250, 86, 0, .08); color: #fed7aa; }

.prose-z table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; font-size: .9rem; }
.prose-z th, .prose-z td { border: 1px solid #e2e8f0; padding: .6rem .75rem; text-align: left; }
.prose-z th { background: #f8fafc; font-weight: 800; color: #0f172a; }
.dark .prose-z th, .dark .prose-z td { border-color: #334155; }
.dark .prose-z th { background: #1e293b; color: #f1f5f9; }

.prose-z figure { margin: 1.5rem 0; }
.prose-z figcaption { margin-top: .5rem; font-size: .8rem; color: #64748b; text-align: center; }

/* wide content must scroll inside itself, never the page */
.prose-z .table-wrap { overflow-x: auto; }

/* Every block in the article shares one measure: the width of the article container. Text,
   headings, code, tables, figures and blockquotes all line up on the same left and right
   edges — no narrower column for running text. Text stays left-aligned; do not centre it. */
.prose-z > * {
  max-width: none;
}
