/*
  Theme styles matched to devtron.ai: colour, type, buttons, footer.
  Loads after every other stylesheet (see default.hbs), so it wins ties.
  "!important" appears only where an older rule in custom.css or home-page.css already uses it.
  The accent colour itself stays an Admin setting (Settings > Design > Brand); devtron.ai uses #2F1F9C.
*/

:root {
  --dt-brand: #2f1f9c;
  --dt-brand-hover: #24177f;
  --dt-heading: #111827;
  --dt-text: #1c1c1f;
  --dt-muted: #7c8798;
  --dt-line: #e6e8ee;
  --dt-wash: radial-gradient(ellipse 70% 90% at 50% 0%, #e8e6f4 0%, #f3f2fa 45%, #fff 100%);
}

/* ---------- Headings ---------- */

.f-custom-hero-content h1,
.f-posts-container .f-category-posts h2,
.f-go-to-demo-block-wrapper .f-block-content h2,
.f-article-content > h1,
.f-article-content > h2,
.f-article-content > h3,
.f-article-content > h4 {
  color: var(--dt-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.f-posts-container .f-category-posts .f-category-post-wrapper h2,
main.f-standard-container.no-home-page .f-post-card__title h2,
.f-custom-hero-content .f-latest-post__title {
  color: var(--dt-heading);
  font-weight: 600;
}

/* Cards without a feature image: Firma enlarges the title to 2.25rem but keeps a 29px line height, so lines overlap. */
.f-posts-container .f-category-posts .f-category-post-wrapper .f-post-card.no-image .f-post-card__title h2,
main.f-standard-container.no-home-page .f-post-card.no-image .f-post-card__title h2 {
  font-size: 22px;
  line-height: 29px;
}

/* ---------- Home: latest posts band ---------- */

.f-hero.f-custom-hero {
  background: var(--dt-wash);
}

/* ---------- Post tags: devtron.ai eyebrow labels ---------- */

.f-custom-hero-content .f-latest-post-slider .f-latest-post .f-latest-post__main-container .f-post-card__header .f-post-card__tag,
.f-posts-container .f-post-card__header .f-post-card__tag,
main.f-standard-container.no-home-page .f-post-card .f-post-card__tag {
  color: var(--dt-brand) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

a.btn-primary,
button.btn-primary,
.f-article-content a.btn-primary,
.f-article-content button.btn-primary,
.f-article__wrapper .f-article-content .kg-button-card .kg-btn {
  background: var(--dt-brand) !important;
  border-color: var(--dt-brand) !important;
  box-shadow: none !important;
  color: #f7f8f8;
  font-weight: 700;
  transition: background-color 0.15s ease;
}

a.btn-primary:hover,
button.btn-primary:hover,
.f-article-content a.btn-primary:hover,
.f-article-content button.btn-primary:hover,
.f-article__wrapper .f-article-content .kg-button-card .kg-btn:hover {
  background: var(--dt-brand-hover) !important;
  border-color: var(--dt-brand-hover) !important;
  color: #f7f8f8 !important;
}

/* "View all posts": devtron.ai secondary button in place of the grey full-width bar. */
.f-category-list-wrapper {
  padding: 8px 0 0;
  background: transparent;
}

.f-category-list-wrapper a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 19px;
  border: 1px solid var(--dt-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(47, 31, 156, 0.12);
  color: #181d31;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  transition: box-shadow 0.15s ease;
}

.f-category-list-wrapper a:hover {
  box-shadow: 0 10px 30px rgba(47, 31, 156, 0.24);
}

/* ---------- Article ---------- */

/* "Spread the word" buttons: devtron.ai secondary style. Firma fills them with the Admin accent,
   and the dark label is unreadable on a dark accent such as #2F1F9C. */
section.f-article-share:not(.f-article-author-info_block *) .f-article-share__button {
  background: #fff;
  border: 1px solid var(--dt-line);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(47, 31, 156, 0.08);
  color: #181d31;
}

section.f-article-share:not(.f-article-author-info_block *) .f-article-share__button:hover {
  filter: none;
  background: #f1f4ff;
}

section.f-article-share:not(.f-article-author-info_block *) .f-article-share__button__icon,
section.f-article-share:not(.f-article-author-info_block *) .f-article-share__button__label {
  color: #181d31;
  font-family: Manrope, sans-serif;
  font-weight: 600;
}

/* The compiled post.css points at /blog/assets/...; this path works at any site root. */
.f-toc__list-container .toc-link:has(+ .is-collapsible):not(:has(+ .is-collapsed))::after,
.f-toc__list-container .toc-link:has(+ .is-collapsible):has(+ .is-collapsed)::after {
  background-image: url("../images/down-chevron.svg");
}

/* ---------- Demo call to action ---------- */

.f-newsletter.f-custom-nesletter-section {
  background: var(--dt-wash);
}

.f-go-to-demo-block-wrapper .f-block-content h2 {
  font-size: 44px;
  line-height: 52px;
  text-wrap: balance;
}

.f-go-to-demo-block-wrapper .f-block-content p {
  color: var(--dt-muted);
  font-size: 18px;
  line-height: 30px;
}

@media (max-width: 1279px) {
  .f-go-to-demo-block-wrapper .f-block-content h2 {
    font-size: 32px;
    line-height: 40px;
  }
}

@media (max-width: 809px) {
  .f-go-to-demo-block-wrapper .f-block-content h2 {
    font-size: 28px;
    line-height: 36px;
  }
}

/* ---------- Footer (partials/footer.hbs) ---------- */

.dt-footer {
  background: var(--dt-brand);
  color: #fff;
  font-family: Manrope, sans-serif;
  -webkit-font-smoothing: antialiased;
}

:where(.dt-footer) ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(.dt-footer) a {
  color: #fff;
  text-decoration: none;
}

.dt-footer__inner {
  max-width: 1272px;
  margin: 0 auto;
  padding: 40px 36px 50px;
}

.dt-footer__columns {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 64px 20px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.dt-footer__col--wide {
  grid-column: span 2;
}

.dt-footer__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.dt-footer__col li {
  line-height: 22px;
}

.dt-footer__col li + li {
  margin-top: 9px;
}

.dt-footer__col a {
  font-size: 16px;
  line-height: 22px;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.dt-footer__col a:hover {
  opacity: 0.75;
}

.dt-footer__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 48px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.dt-footer__badges img {
  display: block;
  height: 96px;
  width: auto;
}

.dt-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 40px 20px 0;
}

.dt-footer__social {
  display: flex;
  gap: 16px;
}

.dt-footer__social a {
  display: flex;
  font-size: 18px;
  line-height: 1;
  transition: opacity 0.15s ease;
}

.dt-footer__social a:hover {
  opacity: 0.75;
}

.dt-footer__copyright {
  margin: 0;
  font-size: 14px;
  line-height: 17px;
}

@media (max-width: 1279px) {
  .dt-footer__inner { padding: 40px 50px 50px; }
  .dt-footer__columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dt-footer__bottom { padding: 40px 0 0; }
}

@media (max-width: 809px) {
  .dt-footer__inner { padding: 40px 24px 50px; }
  .dt-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 15px 48px;
  }
  .dt-footer__bottom {
    flex-direction: column;
    gap: 24px;
  }
}

/* ---------- Utilities ---------- */

/* Hides 1x1 tracking-pixel images (moved here from the retired mega-menu.css). */
img[referrerpolicy="no-referrer-when-downgrade"] {
  display: none !important;
}
