/* DCC microsite additions layered on top of Fig v2 site.css */

/* Tables rendered inside long-form blog articles. */
.article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 22px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.article thead th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.article tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
}
.article tbody tr:last-child td { border-bottom: 0; }
.article tbody td strong { color: var(--text); }

.article .prose-table-wrap {
  overflow-x: auto;
}

/* Ordered lists for the numbered phases in the articles. */
.article ol {
  margin-top: 18px;
  padding-left: 22px;
}
.article ol li { margin-top: 8px; }

/* Article hero back-link + meta line. */
.article-meta {
  color: var(--text-faint);
  font-size: 14px;
  margin-top: 10px;
}

/* Blog card hover affordance. */
.card h3 a { color: inherit; text-decoration: none; }

/* Breadcrumb navigation on article / pricing / author pages. */
.breadcrumbs {
  font-family: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover {
  color: var(--text);
}
.breadcrumbs span[aria-current="page"] {
  color: var(--text);
  max-width: 44ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumbs-separator {
  color: var(--text-faint);
  opacity: 0.6;
}

/* "About the author" card at the bottom of each blog post. */
.author-bio {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: var(--surface);
}
.author-bio img {
  border-radius: 50%;
  width: 96px;
  height: 96px;
  object-fit: cover;
  flex: 0 0 auto;
}
.author-bio h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}
.author-bio-role {
  margin: 4px 0 10px;
  font-family: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.author-bio p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.author-bio-links {
  margin-top: 14px;
  display: flex;
  gap: 18px;
  font-size: 14px;
}
.author-bio-links a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.author-bio-links a:hover {
  text-decoration-color: var(--text);
}
@media (max-width: 640px) {
  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .author-bio-links {
    justify-content: center;
  }
}

/* Inline prose links - keep within the site's muted palette instead of browser default blue. */
.article p a,
.article li a,
.article td a,
.article th a,
.pricing-note a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.article p a:hover,
.article li a:hover,
.article td a:hover,
.article th a:hover,
.pricing-note a:hover {
  text-decoration-color: var(--text);
}

/* Direct contact lines on the Contact page - keep email/phone in body text colour. */
.contact-lines a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-lines a:hover {
  color: var(--accent);
}

/* Stack the L0 CTA and its legal disclaimer as a clean flex column. */
.stat-panel-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.purchase-disclaimer {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
.purchase-disclaimer a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 2px;
}
.purchase-disclaimer a:hover {
  text-decoration-color: var(--text);
}

/* Buy now button enhancements */
.buy-now-button {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  box-shadow: 0 4px 12px rgba(28,36,36,0.2);
  transition: all 0.3s ease;
}
.buy-now-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28,36,36,0.3);
}
.buy-now-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.buy-now-button:hover::before {
  left: 100%;
}

/* Anchor offset so TOC jumps don't hide behind the sticky nav. */
.article h2,
.article h3 {
  scroll-margin-top: 110px;
}

/* Glossy metal bezel card for app screenshots. Matches the Fig v2
   .glossy / .glossy-inner / .screenshot-img treatment from
   /Web Design/Fig v2/fig-website.html. Use as:
   <div class="glossy"><div class="glossy-inner"><img class="screenshot-img" .../></div></div> */
.glossy {
  position: relative;
  border-radius: 10px;
  background:
    linear-gradient(145deg, #d2d5d8 0%, #9ea3a8 42%, #747a80 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 2px;
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.glossy-inner {
  position: relative;
  background: #1D2422;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.screenshot-img {
  display: block;
  width: 100%;
  height: auto;
}


/* Article TL;DR quick-answer block. Placed at the top of every blog post so a
   reader (and an AI assistant) can see the direct answer before the prose. The
   `.lead` class inside makes it the target of the article's SpeakableSpecification. */
.article-tldr {
  margin: 0 0 40px;
  padding: 24px 28px;
  border-left: 3px solid var(--accent, #8DBB8E);
  background: var(--surface, rgba(28, 36, 36, 0.03));
  border-radius: 0 12px 12px 0;
}
.article-tldr .lead {
  margin: 0;
  max-width: none;
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
}
.article-byline {
  max-width: 620px;
}
