:root {
  --bsdc-primary: #1b365d;
  --bsdc-primary-deep: #152846;
  --bsdc-accent-red: #d32f2f;
  --bsdc-accent-blue: #3498db;
  --bsdc-text: #2c3e50;
  --bsdc-subtle: #f8f9fa;
  --bsdc-white: #ffffff;
  --bsdc-border: #dbe3ed;
  --bsdc-shadow: 0 14px 34px rgba(17, 35, 62, 0.08);
}

html,
body {
  margin: 0;
  padding: 0;
}

body.bsdc-body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--bsdc-text);
  background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 280px);
  line-height: 1.65;
}

a {
  color: var(--bsdc-accent-blue);
  text-decoration-color: rgba(52, 152, 219, 0.35);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--bsdc-primary);
  text-decoration-color: rgba(27, 54, 93, 0.6);
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--bsdc-primary);
  line-height: 1.2;
}

h3,
h4,
h5,
h6 {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-weight: 600;
  color: var(--bsdc-primary);
}

.bsdc-main {
  min-height: 55vh;
}

.bsdc-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(27, 54, 93, 0.08);
  backdrop-filter: blur(10px);
}

.bsdc-header .navbar {
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

.bsdc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--bsdc-primary);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.bsdc-brand:hover {
  color: var(--bsdc-primary);
}

.bsdc-brand-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 1.6rem;
  border-radius: 0.35rem;
  background: var(--bsdc-primary);
  color: var(--bsdc-white);
  font-size: 0.72rem;
  line-height: 1;
}

.bsdc-brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.06rem;
}

.bsdc-nav-link {
  color: var(--bsdc-primary);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  position: relative;
}

.bsdc-nav-link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 999px;
  background: var(--bsdc-accent-red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.bsdc-nav-link:hover::after,
.bsdc-nav-link.active::after {
  transform: scaleX(1);
}

.bsdc-nav-link.active {
  color: var(--bsdc-primary);
}

.bsdc-btn {
  border: 0;
  border-radius: 999px;
  background: var(--bsdc-accent-red);
  color: var(--bsdc-white);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  box-shadow: 0 10px 22px rgba(211, 47, 47, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.bsdc-btn:hover {
  color: var(--bsdc-white);
  background: #b82020;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(211, 47, 47, 0.36);
}

.bsdc-btn-small {
  padding: 0.62rem 1.2rem;
}

.nav-context {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.content-wrap {
  padding: 2rem 0 3.5rem;
}

.content-panel {
  background: var(--bsdc-white);
  border: 1px solid var(--bsdc-border);
  border-radius: 0.5rem;
  box-shadow: var(--bsdc-shadow);
  margin: 0 auto;
  max-width: 58rem;
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.content-category {
  max-width: 72rem;
}

.content-panel h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}

.content-lead {
  color: #5e7188;
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
}

.content-prose {
  overflow-wrap: anywhere;
}

.content-prose h2,
.content-prose h3 {
  margin-top: 1.8rem;
}

.content-prose img,
.block-image img {
  border-radius: 0.5rem;
  height: auto;
  max-width: 100%;
}

.content-toc {
  background: #f4f7fb;
  border: 1px solid var(--bsdc-border);
  border-radius: 0.5rem;
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.2rem;
}

.content-toc ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.table-scroll {
  margin: 1.25rem 0;
  max-width: 100%;
  overflow-x: auto;
}

.table-scroll table {
  min-width: 42rem;
}

.content-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  margin-top: 1.6rem;
}

.content-card-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}

.content-card {
  border: 1px solid var(--bsdc-border);
  border-radius: 0.5rem;
  background: #fff;
  padding: 1.1rem;
}

.content-card h2 {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.35;
}

.content-card img {
  border-radius: 0.45rem;
  height: auto;
  margin-bottom: 0.9rem;
  max-width: 100%;
}

.content-card--horizontal {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
}

.content-card--horizontal img {
  margin-bottom: 0;
}

.content-card--minimal {
  background: #f8f9fa;
}

.content-more {
  font-weight: 700;
}

.bsdc-hero {
  position: relative;
  color: var(--bsdc-white);
  text-align: center;
  padding: 6.4rem 0 5.8rem;
  background:
    linear-gradient(rgba(16, 36, 64, 0.84), rgba(16, 36, 64, 0.7)),
    radial-gradient(circle at 15% 20%, rgba(52, 152, 219, 0.25), transparent 48%),
    radial-gradient(circle at 86% 10%, rgba(211, 47, 47, 0.2), transparent 42%),
    var(--bsdc-primary);
}

.bsdc-hero h1 {
  color: var(--bsdc-white);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  margin-bottom: 1.1rem;
}

.bsdc-hero p {
  max-width: 52rem;
  margin: 0 auto 2rem;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  opacity: 0.93;
}

.bsdc-breadcrumb-wrap {
  border-top: 1px solid #e5ebf3;
  border-bottom: 1px solid #e5ebf3;
  background: #ffffff;
  padding: 0.75rem 0;
}

.bsdc-breadcrumb-wrap .breadcrumb {
  font-size: 0.86rem;
}

.bsdc-breadcrumb-wrap a {
  color: var(--bsdc-primary);
}

.bsdc-page-title {
  margin-bottom: 1.1rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.bsdc-panel {
  background: var(--bsdc-white);
  border-radius: 1rem;
  padding: 1.8rem;
  border: 1px solid var(--bsdc-border);
  box-shadow: var(--bsdc-shadow);
}

.bsdc-panel-home {
  padding: 2.1rem;
}

.bsdc-panel-table-heavy {
  border-top: 4px solid var(--bsdc-accent-blue);
}

.bsdc-panel-media {
  border-top: 4px solid var(--bsdc-accent-red);
}

.bsdc-kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bsdc-accent-blue);
}

.bsdc-paragraph {
  margin-bottom: 1.05rem;
  font-size: 1rem;
}

.bsdc-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.bsdc-list li {
  margin-bottom: 0.45rem;
}

.bsdc-table thead th {
  background: #edf3fb;
  color: var(--bsdc-primary);
  border-color: #d7e4f3;
}

.bsdc-table td,
.bsdc-table th {
  vertical-align: top;
}

.bsdc-quote {
  border-left: 4px solid var(--bsdc-accent-blue);
  background: #f3f8fd;
  border-radius: 0.6rem;
}

.bsdc-code {
  margin: 0;
  padding: 1rem;
  border-radius: 0.6rem;
  background: #14263f;
  color: #e8eff9;
  overflow-x: auto;
}

.bsdc-list-item h3 {
  margin-bottom: 0.4rem;
}

.bsdc-list-item a {
  color: var(--bsdc-primary);
}

.bsdc-listing-card a {
  color: var(--bsdc-primary);
}

.bsdc-separator {
  border-top: 1px solid #d6e0ec;
  opacity: 1;
}

.bsdc-hero-image img {
  box-shadow: var(--bsdc-shadow);
}

.bsdc-sidebar {
  position: sticky;
  top: 6.3rem;
}

.bsdc-side-list li {
  margin-bottom: 0.7rem;
}

.bsdc-side-list a {
  color: var(--bsdc-primary);
  text-decoration: none;
}

.bsdc-side-list a:hover {
  color: var(--bsdc-accent-blue);
}

.bsdc-footer {
  background: var(--bsdc-primary);
  color: rgba(255, 255, 255, 0.88);
  padding: 4.4rem 0 2rem;
}

.bsdc-brand-footer .bsdc-brand-name {
  color: var(--bsdc-white);
}

.bsdc-brand-footer .bsdc-brand-box {
  background: var(--bsdc-white);
  color: var(--bsdc-primary);
}

.bsdc-footer-title {
  color: var(--bsdc-white);
  margin-bottom: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bsdc-footer-text {
  max-width: 27rem;
  opacity: 0.82;
}

.bsdc-footer-links li {
  margin-bottom: 0.6rem;
  opacity: 0.85;
}

.bsdc-footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.bsdc-footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.bsdc-copyright {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.75;
}

@media (max-width: 991.98px) {
  .bsdc-nav-link {
    font-size: 0.93rem;
    letter-spacing: 0.03em;
    text-transform: none;
  }

  .bsdc-nav-link::after {
    display: none;
  }

  .bsdc-sidebar {
    position: static;
  }

  .bsdc-panel,
  .bsdc-panel-home {
    padding: 1.3rem;
  }

  .bsdc-hero {
    padding: 5rem 0 4.4rem;
  }
}

@media (max-width: 575.98px) {
  .bsdc-hero h1 {
    font-size: 2.05rem;
  }

  .bsdc-hero p {
    font-size: 0.98rem;
  }

  .bsdc-btn {
    width: 100%;
    max-width: 320px;
  }
}

@media print {
  .bsdc-header,
  .bsdc-footer,
  .bsdc-breadcrumb-wrap,
  .bsdc-sidebar,
  .bsdc-btn,
  .btn {
    display: none !important;
  }

  .bsdc-panel {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
