/* Premium blog article — ДОРТЕХНИКА B2B */
.dt-page-blog-article,
.page-blog-article.dt-page-blog-article {
  --ba-ink: #111315;
  --ba-panel: #16191E;
  --ba-panel-2: #1D2128;
  --ba-mist: #F4F5F7;
  --ba-line: #EAECF0;
  --ba-soft: #F7F8FA;
  --ba-white: #FFFFFF;
  --ba-accent: #FF5000;
  --ba-muted: #6B7280;
  --ba-body: #374151;
  font-family: "Golos Text", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--ba-ink);
  background: var(--ba-white);
}

.dt-page-blog-article .tabular-nums { font-variant-numeric: tabular-nums; }

/* Kill legacy bath/green leftovers if app.css still loads */
.dt-page-blog-article .blog-side-cta,
.dt-page-blog-article .blog-mobile-cta { display: none !important; }

/* —— Progress —— */
.ba-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.ba-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ba-accent);
  transition: width .08s linear;
}

/* —— Shell grid (CRITICAL) —— */
.ba__shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  padding: 1.25rem 0 3rem;
  min-width: 0;
}
@media (min-width: 1024px) {
  .ba__shell {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
  }
}
.ba__primary { min-width: 0; }

/* —— Header —— */
.ba-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: .82rem;
  color: var(--ba-muted);
}
.ba-crumbs li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  max-width: 100%;
}
.ba-crumbs li:not(:last-child)::after {
  content: "/";
  opacity: .45;
}
.ba-crumbs a { color: #4B5563; text-decoration: none; }
.ba-crumbs a:hover { color: var(--ba-ink); }
.ba-crumbs [aria-current="page"] {
  color: var(--ba-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(52vw, 420px);
}

.ba-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .55rem;
  margin: 0 0 .9rem;
  font-size: .84rem;
  color: var(--ba-muted);
  font-weight: 500;
}
.ba-meta__rubric {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: rgba(255, 80, 0, .1);
  color: var(--ba-accent);
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
}
.ba-meta__rubric:hover { background: rgba(255, 80, 0, .16); }
.ba-meta__dot { opacity: .55; }

.ba-hero h1 {
  margin: 0 0 .85rem;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--ba-ink);
}
.ba-lead {
  margin: 0 0 1.15rem;
  max-width: 75ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ba-body);
}

.ba-author-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1rem;
  margin: 0 0 1.35rem;
  padding: .85rem 0 0;
  border-top: 1px solid var(--ba-line);
}
.ba-author-row__who {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}
.ba-author-row__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ba-mist);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ba-author-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-author-row__mark {
  font-size: .72rem;
  font-weight: 700;
  color: var(--ba-accent);
}
.ba-author-row__name {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ba-ink);
}
.ba-author-row__check {
  margin: .15rem 0 0;
  font-size: .78rem;
  color: var(--ba-muted);
}
.ba-share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--ba-line);
  background: var(--ba-white);
  color: var(--ba-ink);
  border-radius: 999px;
  padding: .45rem .95rem;
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
}
.ba-share-btn:hover { border-color: rgba(255, 80, 0, .45); color: var(--ba-accent); }

/* —— Cover / TLDR —— */
.ba-cover {
  margin: 0 0 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--ba-mist);
  aspect-ratio: 1024 / 636;
  max-height: 420px;
}
@media (max-width: 720px) {
  .ba-cover { max-height: none; }
}
.ba-cover__zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.ba-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-cover figcaption {
  margin: .5rem 0 0;
  font-size: 13px;
  color: var(--ba-muted);
  text-align: center;
}

.ba-tldr {
  margin: 0 0 1.75rem;
  padding: 1.15rem 1.2rem;
  background: var(--ba-soft);
  border-left: 4px solid var(--ba-accent);
  border-radius: 0 1rem 1rem 0;
}
.ba-tldr__title {
  margin: 0 0 .75rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ba-ink);
}
.ba-tldr ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
}
.ba-tldr li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--ba-body);
}
.ba-tldr li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ba-accent);
}
.ba-tldr li strong { color: var(--ba-ink); font-weight: 700; }

/* —— Sidebar —— */
.ba-sidebar {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  align-self: start;
  position: sticky;
  top: 88px;
  min-width: 0;
  height: auto;
}
@media (min-width: 1024px) {
  .ba-sidebar { display: flex; }
}

.ba-toc--desktop {
  background: var(--ba-white);
  border: 1px solid var(--ba-line);
  border-radius: 1rem;
  padding: 1.15rem;
  height: auto;
}
.ba-toc__title {
  margin: 0 0 .7rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--ba-ink);
}
.ba-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .15rem;
}
.ba-toc a {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  padding: .45rem .55rem .45rem .65rem;
  border-left: 2px solid transparent;
  color: #4B5563;
  text-decoration: none;
  font-size: .84rem;
  line-height: 1.4;
  font-weight: 500;
  border-radius: 0 .5rem .5rem 0;
}
.ba-toc a.is-active,
.ba-toc a[aria-current="location"],
.ba-toc a:hover {
  color: var(--ba-ink);
  font-weight: 600;
  border-left-color: var(--ba-accent);
  background: rgba(255, 80, 0, .05);
}
.ba-toc__idx {
  flex: 0 0 auto;
  min-width: 1.25em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ba-accent);
  opacity: .85;
}
.ba-toc__bullet {
  width: 5px;
  height: 5px;
  margin: .45em .2em 0;
  border-radius: 50%;
  background: #9CA3AF;
  flex: 0 0 auto;
}
.ba-toc__l3 a { padding-left: 1.2rem; font-size: .8rem; }

.ba-toc--mobile {
  display: block;
  margin: 0 0 1.25rem;
  border: 1px solid var(--ba-line);
  border-radius: 1rem;
  background: var(--ba-white);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .ba-toc--mobile { display: none; }
}
.ba-toc--mobile > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .95rem 1rem;
  font-size: .95rem;
  font-weight: 600;
}
.ba-toc--mobile > summary::-webkit-details-marker { display: none; }
.ba-toc--mobile > summary em { font-style: normal; color: var(--ba-muted); font-weight: 500; }
.ba-toc--mobile ol { padding: 0 .75rem 1rem; }

.ba-side-cta {
  background: var(--ba-ink);
  color: #fff;
  border: 1px solid #262A30;
  border-radius: 1rem;
  padding: 1.15rem;
}
.ba-side-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .7rem;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(244, 245, 247, .72);
}
.ba-side-cta__badge span { color: var(--ba-accent); }
.ba-side-cta__title {
  margin: 0 0 .55rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.ba-side-cta__text {
  margin: 0 0 1rem;
  font-size: .84rem;
  line-height: 1.5;
  color: rgba(244, 245, 247, .72);
}
.ba-side-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: .75rem;
  background: var(--ba-accent);
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
.ba-side-cta__btn:hover { filter: brightness(1.05); }

.ba-side-share__label {
  margin: 0 0 .55rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ba-muted);
}

/* Share icons */
.dt-page-blog-article .blog-share--icons {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.dt-page-blog-article .blog-share__btn {
  width: 40px;
  height: 40px;
  border-radius: .75rem;
  border: 1px solid var(--ba-line);
  background: var(--ba-white);
  color: var(--ba-ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.dt-page-blog-article .blog-share__btn:hover {
  border-color: rgba(255, 80, 0, .4);
  color: var(--ba-accent);
}
.dt-page-blog-article .blog-share__btn.is-copied {
  border-color: var(--ba-accent);
  color: var(--ba-accent);
}

/* —— Prose —— */
.article-prose,
.ba-prose {
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.7;
  color: var(--ba-body);
  min-width: 0;
}
.article-prose > p,
.article-prose > ul,
.article-prose > ol,
.ba-prose > p,
.ba-prose > ul,
.ba-prose > ol {
  max-width: 75ch;
}
.article-prose h2,
.ba-prose h2 {
  margin: 2.25rem 0 .875rem;
  font-size: 24px;
  font-weight: 700;
  color: var(--ba-ink);
  scroll-margin-top: 96px;
}
.article-prose h3,
.ba-prose h3 {
  margin: 1.5rem 0 .625rem;
  font-size: 18px;
  font-weight: 700;
  color: var(--ba-ink);
  scroll-margin-top: 96px;
}
.article-prose p,
.ba-prose p { margin: 0 0 1rem; }
.article-prose ul,
.article-prose ol,
.ba-prose ul,
.ba-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.article-prose li,
.ba-prose li { margin: 0 0 .4rem; }
.article-prose a,
.ba-prose a { color: var(--ba-accent); font-weight: 600; }
.article-prose strong,
.ba-prose strong { color: var(--ba-ink); }

.article-prose .table-responsive,
.ba-prose .table-responsive,
.article-prose .table-scroll,
.ba-prose .table-scroll {
  margin: 1.25rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ba-line);
  border-radius: .75rem;
  background: var(--ba-white);
}
.article-prose .table-responsive__hint,
.ba-prose .table-responsive__hint {
  display: none;
  margin: 0;
  padding: .55rem .85rem 0;
  font-size: .75rem;
  color: var(--ba-muted);
}
@media (max-width: 720px) {
  .article-prose .table-responsive__hint,
  .ba-prose .table-responsive__hint { display: block; }
}
.article-prose table,
.ba-prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: .88rem;
}
.article-prose thead th,
.ba-prose thead th {
  background: var(--ba-ink);
  color: #fff;
  text-align: left;
  padding: .7rem .85rem;
  font-weight: 600;
}
.article-prose tbody td,
.ba-prose tbody td {
  padding: .65rem .85rem;
  border-top: 1px solid var(--ba-line);
  vertical-align: top;
}
.article-prose tbody tr:nth-child(even) td,
.ba-prose tbody tr:nth-child(even) td {
  background: var(--ba-soft);
}

.article-prose .ba-callout,
.ba-prose .ba-callout,
.article-prose .callout,
.ba-prose .callout {
  margin: 1.5rem 0;
  padding: 1.15rem;
  background: var(--ba-mist);
  border: 1px solid var(--ba-line);
  border-radius: 1rem;
}
.article-prose .ba-inline-cta,
.ba-prose .ba-inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1rem;
  margin: 1.75rem 0;
  padding: 1.1rem 1.2rem;
  background: var(--ba-ink);
  color: #fff;
  border-radius: 1rem;
}
.article-prose .ba-inline-cta p,
.ba-prose .ba-inline-cta p {
  margin: 0;
  flex: 1 1 220px;
  font-size: .92rem;
  line-height: 1.45;
  color: rgba(244, 245, 247, .86);
}
.article-prose .ba-inline-cta a,
.ba-prose .ba-inline-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: .7rem;
  background: var(--ba-accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

/* —— FAQ / after —— */
.ba-faq {
  margin: 2.5rem 0 0;
}
.ba-faq > h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
}
.ba-faq__item {
  background: var(--ba-white);
  border: 1px solid var(--ba-line);
  border-radius: .75rem;
  margin: 0 0 .65rem;
  overflow: hidden;
}
.ba-faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding: .95rem 1rem;
  font-weight: 600;
  color: var(--ba-ink);
}
.ba-faq__item summary::-webkit-details-marker { display: none; }
.ba-faq__q {
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
}
.ba-faq__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.ba-faq__icon::before,
.ba-faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--ba-accent);
  transform: translate(-50%, -50%);
}
.ba-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.ba-faq__item[open] .ba-faq__icon::after { display: none; }
.ba-faq__a {
  padding: 0 1rem 1rem;
  color: var(--ba-body);
  font-size: .92rem;
  line-height: 1.6;
}

.ba-after {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
.ba-reaction,
.ba-author-card {
  background: var(--ba-soft);
  border: 1px solid var(--ba-line);
  border-radius: 1rem;
  padding: 1.35rem;
}
.ba-reaction__q {
  margin: 0 0 .65rem;
  font-weight: 700;
}
.ba-reaction__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: .75rem;
}
.ba-reaction__actions .ba-btn.is-on {
  outline: 2px solid var(--ba-ink);
  outline-offset: 2px;
}
.ba-reaction__good p { margin: 0 0 .55rem; }
.ba-reaction__hint {
  margin: 0 0 .55rem;
  font-size: .86rem;
  color: var(--ba-muted);
}
.ba-reaction__reasons {
  display: grid;
  gap: .35rem;
  margin: 0 0 .75rem;
  font-size: .86rem;
}
.ba-reaction__reasons label {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 500;
  cursor: pointer;
}
.ba-reaction__improve {
  display: grid;
  gap: .4rem;
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: .65rem;
}
.ba-reaction__improve textarea {
  width: 100%;
  border: 1px solid var(--ba-line);
  border-radius: .65rem;
  padding: .65rem .75rem;
  font: inherit;
  resize: vertical;
}

.ba-sources {
  margin: 2.25rem 0 0;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--ba-line);
  border-radius: 1rem;
  background: var(--ba-soft);
}
.ba-sources h2 {
  margin: 0 0 .75rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.ba-sources ol {
  margin: 0 0 .85rem;
  padding-left: 1.2rem;
  display: grid;
  gap: .45rem;
}
.ba-sources a { color: var(--ba-accent); font-weight: 600; }
.ba-sources__note { color: var(--ba-muted); font-size: .86rem; }
.ba-sources__checked {
  margin: 0;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--ba-muted);
}

.ba-final-cta {
  margin: 1.5rem 0 0;
}
.ba-final-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: 1rem;
  background: var(--ba-mist);
  border: 1px solid var(--ba-line);
}
.ba-final-cta__title {
  margin: 0 0 .35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ba-ink);
}
.ba-final-cta__text {
  margin: 0;
  max-width: 52ch;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ba-body);
}
.ba-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.ba-final-cta__fallback {
  background: var(--ba-white);
}

.ba-topic-links { padding: 0 0 3rem; }
.ba-topic-links__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .ba-topic-links__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ba-topic-link {
  display: grid;
  gap: .45rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--ba-line);
  border-radius: 1rem;
  background: var(--ba-white);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color .15s ease, transform .15s ease;
}
.ba-topic-link:hover {
  border-color: rgba(255, 80, 0, .45);
  transform: translateY(-1px);
}
.ba-topic-link__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ba-ink);
}
.ba-topic-link__text {
  font-size: .86rem;
  line-height: 1.45;
  color: var(--ba-muted);
}
.ba-topic-link__cta {
  margin-top: .25rem;
  font-size: .84rem;
  font-weight: 700;
  color: var(--ba-accent);
}

.ba-author-card__head {
  display: flex;
  gap: .85rem;
  align-items: center;
  margin-bottom: .75rem;
}
.ba-author-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ba-mist);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ba-author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-author-card__label {
  margin: 0;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ba-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ba-author-card__name {
  margin: .15rem 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.ba-author-card__name a {
  color: inherit;
  text-decoration: none;
}
.ba-author-card__name a:hover { color: var(--ba-accent); }
.ba-author-card__job {
  margin: 0;
  font-size: .84rem;
  color: var(--ba-muted);
}
.ba-author-card__bio {
  margin: 0 0 1rem;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ba-body);
}
.ba-author-card__bio p {
  margin: 0 0 .65rem;
}
.ba-author-card__bio p:last-child { margin-bottom: 0; }
.ba-author-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.ba-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: .7rem;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.ba-btn--orange {
  background: var(--ba-accent);
  color: #fff;
  border-color: var(--ba-accent);
}
.ba-btn--orange:hover { filter: brightness(1.05); color: #fff; }
.ba-btn--ghost {
  background: transparent;
  color: var(--ba-ink);
  border-color: var(--ba-line);
}
.ba-btn--ghost:hover { border-color: rgba(255, 80, 0, .45); color: var(--ba-accent); }
.ba-btn--sm { min-height: 36px; font-size: .82rem; padding: 0 .8rem; }

/* —— Products / related —— */
.ba-products,
.ba-related {
  padding: 0 0 3rem;
}
.ba-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.15rem;
}
.ba-section-head h2,
.ba-section-head__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ba-ink);
  line-height: 1.25;
}
.ba-section-head__link {
  color: var(--ba-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: .9rem;
}
.ba-products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .ba-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ba-products__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ba-product {
  border: 1px solid var(--ba-line);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--ba-white);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ba-product__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--ba-mist);
  overflow: hidden;
}
.ba-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-product__body {
  padding: .9rem 1rem 1rem;
  display: grid;
  gap: .4rem;
  flex: 1;
}
.ba-product__title {
  margin: 0;
  font-size: .95rem;
  line-height: 1.35;
  font-weight: 700;
}
.ba-product__title a {
  color: var(--ba-ink);
  text-decoration: none;
}
.ba-product__title a:hover { color: var(--ba-accent); }
.ba-product__price {
  margin: 0;
  font-weight: 700;
  font-size: .95rem;
}
.ba-product__stock {
  margin: 0 0 .35rem;
  font-size: .78rem;
  color: var(--ba-muted);
}
.ba-product__stock.is-in { color: #15803D; }

.ba-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .ba-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.dt-page-blog-article .blog-card {
  border: 1px solid var(--ba-line);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--ba-white);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.dt-page-blog-article .blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--ba-mist);
  overflow: hidden;
  position: relative;
}
.dt-page-blog-article .blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dt-page-blog-article .blog-card__badge {
  position: absolute;
  left: .7rem;
  top: .7rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(255, 80, 0, .12);
  color: var(--ba-accent);
  font-size: .72rem;
  font-weight: 600;
}
.dt-page-blog-article .blog-card__body {
  padding: .9rem 1rem 1rem;
  display: grid;
  gap: .4rem;
}
.dt-page-blog-article .blog-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}
.dt-page-blog-article .blog-card__title a {
  color: var(--ba-ink);
  text-decoration: none;
}
.dt-page-blog-article .blog-card__title a:hover { color: var(--ba-accent); }
.dt-page-blog-article .blog-card__excerpt {
  margin: 0;
  font-size: .86rem;
  color: var(--ba-muted);
  line-height: 1.45;
}

/* Toast / modal */
.ba-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 80;
  background: var(--ba-ink);
  color: #fff;
  padding: .7rem 1rem;
  border-radius: .75rem;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.ba-toast[hidden] { display: none !important; }

.ba-ask-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 2rem);
}
.ba-ask-modal::backdrop { background: rgba(17, 19, 21, .55); }
.ba-ask-modal__panel {
  width: min(440px, 100%);
  background: var(--ba-white);
  border-radius: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--ba-line);
}
.ba-ask-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
}
.ba-ask-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ba-muted);
}
.ba-ask-modal label {
  display: grid;
  gap: .3rem;
  margin-bottom: .7rem;
  font-size: .84rem;
  font-weight: 600;
}
.ba-ask-modal input,
.ba-ask-modal textarea {
  width: 100%;
  border: 1px solid var(--ba-line);
  border-radius: .65rem;
  padding: .65rem .75rem;
  font: inherit;
}

@media (max-width: 1023px) {
  .ba__shell { padding-top: 1rem; }
}

/* —— Prose slots: comparison table + engineer callout (AEO) —— */
.ba-prose .ba-table-wrap,
.ba-prose .table-responsive {
  margin: 1.25rem 0 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ba-line);
  border-radius: .85rem;
  background: var(--ba-white);
}
.ba-prose .ba-table-wrap table,
.ba-prose .table-responsive table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .9rem;
}
.ba-prose .ba-table-wrap th,
.ba-prose .ba-table-wrap td,
.ba-prose .table-responsive th,
.ba-prose .table-responsive td {
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--ba-line);
  text-align: left;
  vertical-align: top;
}
.ba-prose .ba-table-wrap thead th,
.ba-prose .table-responsive thead th {
  background: var(--ba-mist);
  font-weight: 700;
  color: var(--ba-ink);
}
.ba-callout {
  margin: 1.35rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid #FFD7C4;
  border-left: 4px solid var(--ba-accent);
  border-radius: .85rem;
  background: #FFF7F2;
}
.ba-callout__title {
  margin: 0 0 .35rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ba-ink);
}
.ba-callout p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--ba-body);
}

@media (prefers-reduced-motion: reduce) {
  .ba-progress > span,
  .ba-topic-link,
  .ba-side-cta__btn,
  .ba-btn {
    transition: none !important;
  }
}

@media print {
  .ba-progress,
  .ba-sidebar,
  .ba-side-cta,
  .ba-side-share,
  .ba-share-btn,
  .ba-reaction,
  .ba-final-cta,
  .ba-ask-modal,
  .ba-toast,
  .site-header,
  .dt-header,
  footer,
  .site-footer {
    display: none !important;
  }
  .ba__shell {
    display: block !important;
  }
  .ba-cover {
    max-height: none;
    break-inside: avoid;
  }
  .article-prose a[href]::after {
    content: " (" attr(href) ")";
    font-size: .85em;
    color: #444;
  }
}
