/* BORNA Thesis-to-Article Cluster 2026
   All rules are namespaced under .bthx. No global overrides. */
.bthx{
  --bthx-ink:#172132;
  --bthx-copy:#344054;
  --bthx-muted:#667085;
  --bthx-line:#e5e9ef;
  --bthx-soft:#f7f9fb;
  --bthx-deep:#1d2939;
  --bthx-radius:22px;
  direction:rtl;
  color:var(--bthx-ink);
}
.bthx *{box-sizing:border-box}
.bthx .bthx-quick{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  margin:0 0 30px;padding:18px 20px;border:1px solid var(--bthx-line);
  border-radius:var(--bthx-radius);background:var(--bthx-soft)
}
.bthx .bthx-quick-label{
  flex:0 0 auto;padding:6px 10px;border-radius:999px;background:#fff;
  border:1px solid var(--bthx-line);font-size:.82rem;color:var(--bthx-muted)
}
.bthx .bthx-quick strong{font-size:1rem;line-height:1.8}
.bthx .bthx-article h2{
  margin-top:2.4rem;padding-top:.2rem;font-size:clamp(1.35rem,2vw,1.72rem);line-height:1.6
}
.bthx .bthx-article h3{margin-top:1.65rem;font-size:1.16rem;line-height:1.7}
.bthx .bthx-article p,.bthx .bthx-article li{line-height:2.05}
.bthx .bthx-article blockquote{
  margin:24px 0;padding:18px 20px;border-right:3px solid var(--bthx-deep);
  background:var(--bthx-soft);border-radius:14px;color:var(--bthx-copy)
}
.bthx .bthx-article table{
  width:100%;border-collapse:separate;border-spacing:0;margin:24px 0;
  border:1px solid var(--bthx-line);border-radius:18px;overflow:hidden
}
.bthx .bthx-article th,.bthx .bthx-article td{
  padding:13px 14px;text-align:right;vertical-align:top;border-bottom:1px solid var(--bthx-line)
}
.bthx .bthx-article th{background:var(--bthx-soft);font-weight:800}
.bthx .bthx-article tr:last-child td{border-bottom:0}
.bthx .bthx-context-link{
  color:inherit;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:#98a2b3
}
.bthx .bthx-context-link:hover{text-decoration-color:currentColor}
.bthx .bthx-service-path{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  margin:44px 0 30px;padding:24px;border:1px solid var(--bthx-line);
  border-radius:var(--bthx-radius);background:#fff
}
.bthx .bthx-service-path span{display:block;color:var(--bthx-muted);margin-bottom:5px}
.bthx .bthx-service-path strong{display:block;line-height:1.8}
.bthx .bthx-service-path>a{
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  min-height:46px;padding:10px 18px;border-radius:13px;background:var(--bthx-deep);
  color:#fff!important;text-decoration:none!important;font-weight:800
}
.bthx .bthx-related{
  margin:26px 0 12px;padding-top:22px;border-top:1px solid var(--bthx-line)
}
.bthx .bthx-related>strong{display:block;margin-bottom:12px}
.bthx .bthx-related>div{display:flex;flex-wrap:wrap;gap:8px}
.bthx .bthx-related a{
  display:inline-flex;padding:8px 11px;border:1px solid var(--bthx-line);
  border-radius:999px;color:var(--bthx-copy)!important;text-decoration:none!important;font-size:.88rem
}
.bthx .bthx-related a:hover{border-color:#98a2b3;background:var(--bthx-soft)}
/* Controlled page personalities */
.bthx-page-01 .bthx-quick{border-right:4px solid #344054}
.bthx-page-02 .bthx-quick{background:linear-gradient(90deg,#fff 0 49.5%,#f7f9fb 49.5% 100%)}
.bthx-page-03 .bthx-quick{border-radius:999px}
.bthx-page-04 .bthx-quick{outline:1px dashed #cfd5dd;outline-offset:5px}
.bthx-page-05 .bthx-quick{box-shadow:inset 0 -3px 0 #eef1f5}
.bthx-page-06 .bthx-quick{border-left:4px solid #98a2b3}
.bthx-page-07 .bthx-quick{background:linear-gradient(90deg,#f7f9fb 0 50%,#fff 50% 100%)}
.bthx-page-08 .bthx-quick{background:repeating-linear-gradient(135deg,#fff 0 26px,#f7f9fb 26px 52px)}
@media(max-width:760px){
  .bthx .bthx-quick,.bthx .bthx-service-path{align-items:flex-start;flex-direction:column}
  .bthx .bthx-service-path>a{width:100%}
  .bthx .bthx-article table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media(prefers-reduced-motion:reduce){
  .bthx *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
.bthx :focus-visible{outline:3px solid currentColor;outline-offset:3px}
