/*
 * BAT Software — Longpost / Guide Master Stylesheet
 * Version: 1.0
 *
 * Purpose
 * -------
 * A single, reusable stylesheet for BAT Software guides, SEO longposts,
 * regulatory explainers and downloadable-template articles.
 *
 * Implementation notes
 * --------------------
 * 1. Wrap the entire article in .bat-guide-page to keep styles scoped.
 * 2. The contents sidebar is deliberately non-sticky by default.
 * 3. All component classes use the bat- prefix to reduce Elementor conflicts.
 * 4. Optional components can be removed from the HTML without affecting layout.
 * 5. Poppins and Roboto should be loaded by the website/theme where available.
 */

/* ================================================================
   01. DESIGN TOKENS
   ================================================================ */

:root {
  --bat-blue: #007bc1;
  --bat-blue-bright: #009fe3;
  --bat-dark-blue: #065186;
  --bat-navy: #0f172a;
  --bat-heading: #111827;
  --bat-text: #243244;
  --bat-muted: #607084;
  --bat-light: #f6f9fc;
  --bat-light-blue: #eef8fe;
  --bat-border: #dfe8f1;
  --bat-white: #ffffff;

  --bat-success: #16794a;
  --bat-success-bg: #effaf4;
  --bat-warning: #b45309;
  --bat-warning-bg: #fff8eb;
  --bat-danger: #b42318;
  --bat-danger-bg: #fff3f2;

  --bat-max: 1180px;
  --bat-reading-width: 820px;
  --bat-sidebar-width: 230px;

  --bat-radius-sm: 10px;
  --bat-radius-md: 16px;
  --bat-radius-lg: 28px;
  --bat-radius-pill: 999px;

  --bat-shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.05);
  --bat-shadow-md: 0 12px 36px rgba(15, 23, 42, 0.07);
  --bat-shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.09);

  --bat-transition: 180ms ease;
}

/* ================================================================
   02. SCOPED RESET, BASE TYPE AND ACCESSIBILITY
   ================================================================ */

.bat-guide-page,
.bat-guide-page *,
.bat-guide-page *::before,
.bat-guide-page *::after {
  box-sizing: border-box;
}

.bat-guide-page {
  width: 100%;
  background:
    radial-gradient(circle at 7% 8%, rgba(0, 159, 227, 0.08), transparent 24rem),
    var(--bat-white);
  color: var(--bat-text);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.bat-guide-page img,
.bat-guide-page svg,
.bat-guide-page video,
.bat-guide-page iframe {
  display: block;
  max-width: 100%;
}

.bat-guide-page img {
  height: auto;
}

.bat-guide-page a {
  color: var(--bat-blue);
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--bat-transition), background var(--bat-transition), border-color var(--bat-transition), transform var(--bat-transition), box-shadow var(--bat-transition);
}

.bat-guide-page a:hover {
  color: var(--bat-dark-blue);
  text-decoration: underline;
}

.bat-guide-page a:focus-visible,
.bat-guide-page button:focus-visible,
.bat-guide-page summary:focus-visible {
  outline: 3px solid rgba(0, 123, 193, 0.28);
  outline-offset: 3px;
}

.bat-guide-page ::selection {
  background: rgba(0, 159, 227, 0.22);
  color: var(--bat-navy);
}

.bat-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ================================================================
   03. PAGE CONTAINER AND HERO
   ================================================================ */

.bat-guide-container {
  width: min(100%, var(--bat-max));
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.bat-guide-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 390px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 54px;
  padding: clamp(38px, 6vw, 72px);
  border-radius: var(--bat-radius-lg);
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.98), rgba(6, 81, 134, 0.94) 62%, rgba(0, 159, 227, 0.88));
  color: var(--bat-white);
  box-shadow: var(--bat-shadow-lg);
}

.bat-guide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000);
  mask-image: linear-gradient(to right, transparent, #000);
}

.bat-guide-hero__glow {
  position: absolute;
  z-index: -1;
  top: -180px;
  right: -100px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(8px);
}

.bat-guide-hero__content {
  max-width: 920px;
}

.bat-guide-eyebrow,
.bat-guide-category {
  margin: 0 0 15px;
  color: #bfeaff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bat-guide-title {
  margin: 0;
  color: var(--bat-white);
  font-family: "Poppins", "Roboto", Arial, sans-serif;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.bat-guide-intro {
  max-width: 820px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.6;
}

.bat-guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.bat-guide-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bat-guide-topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.bat-guide-topic-row span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--bat-radius-pill);
  background: rgba(255, 255, 255, 0.09);
  color: #eefaff;
  font-size: 13px;
  font-weight: 650;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Optional image-backed hero. Add an inline --bat-hero-image URL. */
.bat-guide-hero--image {
  background-image:
    linear-gradient(110deg, rgba(15, 23, 42, 0.96), rgba(6, 81, 134, 0.82)),
    var(--bat-hero-image);
  background-position: center;
  background-size: cover;
}

/* ================================================================
   04. ARTICLE LAYOUT AND CONTENTS ASIDE
   ================================================================ */

.bat-guide-layout {
  display: grid;
  grid-template-columns: var(--bat-sidebar-width) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: start;
}

/* Deliberately non-sticky. Add --sticky only when explicitly required. */
.bat-guide-sidebar,
.bat-guide-toc {
  position: static;
  min-width: 0;
}

.bat-guide-sidebar--sticky {
  position: sticky;
  top: 30px;
}

.bat-toc,
.bat-guide-toc {
  padding: 22px 20px;
  border: 1px solid var(--bat-border);
  border-radius: var(--bat-radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--bat-shadow-md);
}

.bat-toc__title,
.bat-guide-toc h2,
.bat-guide-toc h3 {
  margin: 0 0 13px;
  color: var(--bat-navy);
  font-family: "Poppins", "Roboto", Arial, sans-serif;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.3;
}

.bat-toc ul,
.bat-toc ol,
.bat-guide-toc ul,
.bat-guide-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bat-toc li,
.bat-guide-toc li {
  position: relative;
  margin: 0;
  padding: 0;
  border-top: 1px solid #edf2f7;
  line-height: 1.35;
}

.bat-toc li:first-child,
.bat-guide-toc li:first-child {
  border-top: 0;
}

.bat-toc a,
.bat-guide-toc a {
  display: block;
  padding: 9px 0;
  color: #405065;
  font-size: 13px;
  font-weight: 600;
}

.bat-toc a:hover,
.bat-guide-toc a:hover {
  color: var(--bat-dark-blue);
  text-decoration: none;
}

.bat-toc-sub a,
.bat-guide-toc .bat-toc-sub a {
  padding-left: 14px;
  color: var(--bat-muted);
  font-size: 12.5px;
  font-weight: 500;
}

.bat-guide-content {
  min-width: 0;
  max-width: 100%;
}

.bat-guide-content > :first-child {
  margin-top: 0;
}

.bat-guide-content > p:first-child,
.bat-guide-lead {
  color: #334155;
  font-size: 20px;
  line-height: 1.72;
}

.bat-guide-content p {
  margin: 0 0 21px;
}

.bat-guide-content h2,
.bat-guide-content h3,
.bat-guide-content h4 {
  font-family: "Poppins", "Roboto", Arial, sans-serif;
  text-wrap: balance;
}

.bat-guide-content h2 {
  scroll-margin-top: 28px;
  margin: 64px 0 19px;
  padding-top: 4px;
  color: var(--bat-navy);
  font-size: clamp(29px, 4vw, 40px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.bat-guide-content h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin-top: 14px;
  border-radius: var(--bat-radius-pill);
  background: linear-gradient(90deg, var(--bat-blue), var(--bat-blue-bright));
}

.bat-guide-content h3 {
  scroll-margin-top: 28px;
  margin: 38px 0 13px;
  color: var(--bat-dark-blue);
  font-size: 23px;
  font-weight: 750;
  line-height: 1.3;
}

.bat-guide-content h4 {
  margin: 28px 0 10px;
  color: var(--bat-heading);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.4;
}

.bat-guide-content strong {
  color: var(--bat-heading);
}

.bat-guide-content hr {
  height: 1px;
  margin: 48px 0;
  border: 0;
  background: var(--bat-border);
}

.bat-guide-content blockquote {
  margin: 34px 0;
  padding: 24px 26px;
  border-left: 5px solid var(--bat-blue);
  background: var(--bat-light-blue);
  color: var(--bat-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.6;
}

.bat-guide-content blockquote p:last-child {
  margin-bottom: 0;
}

.bat-guide-content code {
  padding: 0.15em 0.35em;
  border: 1px solid var(--bat-border);
  border-radius: 5px;
  background: var(--bat-light);
  color: var(--bat-dark-blue);
  font-size: 0.9em;
}

/* ================================================================
   05. STANDARD LISTS AND LIST PANELS
   ================================================================ */

.bat-guide-content > ul,
.bat-guide-content > ol {
  margin: 0 0 28px 22px;
  padding: 0;
}

.bat-guide-content > ul li,
.bat-guide-content > ol li {
  margin: 0 0 9px;
  padding-left: 3px;
}

.bat-guide-content > ul li::marker {
  color: var(--bat-blue);
}

.bat-guide-content > ol li::marker {
  color: var(--bat-dark-blue);
  font-weight: 800;
}

.bat-list-panel,
.bat-card,
.bat-checklist {
  margin: 25px 0 32px;
  padding: 22px 24px;
  border: 1px solid var(--bat-border);
  border-radius: var(--bat-radius-md);
  background: var(--bat-light);
}

.bat-list-panel + .bat-list-panel {
  margin-top: -33px;
  border-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.bat-list-panel ul,
.bat-list-panel ol,
.bat-card ul,
.bat-card ol,
.bat-checklist ul,
.bat-checklist ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bat-list-panel li,
.bat-card li,
.bat-checklist li {
  position: relative;
  margin: 0;
  padding: 10px 8px 10px 31px;
  line-height: 1.5;
}

.bat-list-panel li::before,
.bat-card li::before,
.bat-checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bat-blue);
  box-shadow: 0 0 0 5px rgba(0, 123, 193, 0.1);
}

.bat-list-panel li p,
.bat-card li p,
.bat-checklist li p {
  margin: 0;
}

.bat-list-grid ul,
.bat-list-grid ol,
.bat-card-grid ul,
.bat-card-grid ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bat-list-grid li,
.bat-card-grid li {
  min-height: 58px;
  padding: 15px 15px 15px 43px;
  border: 1px solid #e2ebf3;
  border-radius: 12px;
  background: var(--bat-white);
}

.bat-list-grid li::before,
.bat-card-grid li::before {
  left: 17px;
  top: 23px;
}

.bat-list-three ul,
.bat-list-three ol {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bat-list-three li {
  display: flex;
  min-height: 105px;
  align-items: flex-end;
  padding: 54px 18px 17px;
  border-color: #cfe7f5;
  background: linear-gradient(145deg, var(--bat-white), #eff9ff);
  color: var(--bat-dark-blue);
  font-size: 18px;
  font-weight: 750;
}

.bat-list-three li::before {
  left: 19px;
  top: 19px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
}

.bat-list-warning {
  border-color: #f3dfb6;
  background: var(--bat-warning-bg);
}

.bat-list-warning li {
  border-color: #f0dfbd;
}

.bat-list-warning li::before {
  background: var(--bat-warning);
  box-shadow: 0 0 0 5px rgba(180, 83, 9, 0.1);
}

.bat-list-compact {
  padding: 14px 20px;
  background: #fbfdff;
}

.bat-list-compact li {
  padding-top: 7px;
  padding-bottom: 7px;
}

.bat-checklist {
  background: var(--bat-white);
  box-shadow: var(--bat-shadow-sm);
}

.bat-checklist h3,
.bat-checklist h4 {
  margin-top: 0;
}

.bat-checklist li::before {
  content: "✓";
  top: 8px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--bat-light-blue);
  color: var(--bat-dark-blue);
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
}

.bat-stat-list {
  padding: 30px;
  border: 0;
  background: linear-gradient(130deg, var(--bat-navy), var(--bat-dark-blue));
  color: var(--bat-white);
  text-align: center;
  box-shadow: var(--bat-shadow-lg);
}

.bat-stat-list li {
  padding: 0;
  color: var(--bat-white);
  font-family: "Poppins", "Roboto", Arial, sans-serif;
  font-size: clamp(27px, 5vw, 46px);
  font-weight: 800;
}

.bat-stat-list li::before {
  display: none;
}

/* ================================================================
   06. CALLOUTS AND EMPHASIS
   ================================================================ */

.bat-callout {
  position: relative;
  overflow: hidden;
  margin: 34px 0;
  padding: 25px 27px 25px 31px;
  border: 1px solid #cfe7f5;
  border-left: 5px solid var(--bat-blue);
  border-radius: 0 var(--bat-radius-md) var(--bat-radius-md) 0;
  background: linear-gradient(135deg, #f3faff, var(--bat-white));
  box-shadow: 0 10px 28px rgba(0, 123, 193, 0.07);
}

.bat-callout::after {
  content: "“";
  position: absolute;
  right: 18px;
  top: -21px;
  color: rgba(0, 123, 193, 0.09);
  font-family: Georgia, serif;
  font-size: 110px;
  line-height: 1;
  pointer-events: none;
}

.bat-callout > :first-child {
  margin-top: 0;
}

.bat-callout > :last-child {
  margin-bottom: 0;
}

.bat-callout h3,
.bat-callout h4 {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.bat-callout--warning {
  border-color: #f3dfb6;
  border-left-color: var(--bat-warning);
  background: var(--bat-warning-bg);
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.07);
}

.bat-callout--warning::after {
  color: rgba(180, 83, 9, 0.08);
}

.bat-callout--success {
  border-color: #bfe4ce;
  border-left-color: var(--bat-success);
  background: var(--bat-success-bg);
  box-shadow: 0 10px 28px rgba(22, 121, 74, 0.07);
}

.bat-callout--success::after {
  color: rgba(22, 121, 74, 0.08);
}

.bat-callout--danger {
  border-color: #f3c9c5;
  border-left-color: var(--bat-danger);
  background: var(--bat-danger-bg);
  box-shadow: 0 10px 28px rgba(180, 35, 24, 0.06);
}

.bat-key-point {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 30px 0;
  padding: 22px 24px;
  border: 1px solid var(--bat-border);
  border-radius: var(--bat-radius-md);
  background: var(--bat-white);
  box-shadow: var(--bat-shadow-sm);
}

.bat-key-point__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--bat-light-blue);
  color: var(--bat-dark-blue);
  font-weight: 900;
}

.bat-key-point > div > :first-child {
  margin-top: 0;
}

.bat-key-point > div > :last-child {
  margin-bottom: 0;
}

/* ================================================================
   07. CARDS, GRIDS AND PROCESS STEPS
   ================================================================ */

.bat-grid,
.bat-two-column,
.bat-three-column,
.bat-related-grid {
  display: grid;
  gap: 18px;
  margin: 30px 0;
}

.bat-grid,
.bat-two-column,
.bat-related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bat-three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bat-feature,
.bat-column-card,
.bat-link-card,
.bat-related-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--bat-border);
  border-radius: var(--bat-radius-md);
  background: var(--bat-white);
  box-shadow: var(--bat-shadow-sm);
}

.bat-feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bat-feature strong {
  display: block;
  color: var(--bat-dark-blue);
  font-family: "Poppins", "Roboto", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.35;
}

.bat-column-card {
  background: var(--bat-light);
}

.bat-column-card h3,
.bat-column-card h4,
.bat-link-card h3,
.bat-link-card h4,
.bat-related-card h3,
.bat-related-card h4 {
  margin-top: 0;
}

.bat-column-card > :last-child,
.bat-link-card > :last-child,
.bat-related-card > :last-child,
.bat-feature > :last-child {
  margin-bottom: 0;
}

.bat-link-card:hover,
.bat-related-card:hover {
  border-color: #b8ddef;
  transform: translateY(-2px);
  box-shadow: var(--bat-shadow-md);
}

.bat-steps {
  counter-reset: bat-step;
  margin: 32px 0;
}

.bat-step {
  position: relative;
  counter-increment: bat-step;
  margin: 0 0 18px;
  padding: 24px 24px 24px 78px;
  border: 1px solid var(--bat-border);
  border-radius: var(--bat-radius-md);
  background: var(--bat-white);
}

.bat-step::before {
  content: counter(bat-step);
  position: absolute;
  top: 22px;
  left: 22px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bat-blue), var(--bat-blue-bright));
  color: var(--bat-white);
  font-family: "Poppins", "Roboto", Arial, sans-serif;
  font-weight: 800;
}

.bat-step h3,
.bat-step h4 {
  margin-top: 0;
}

.bat-step > :last-child {
  margin-bottom: 0;
}

/* ================================================================
   08. TABLES
   ================================================================ */

.bat-table-wrap {
  width: 100%;
  margin: 32px 0;
  overflow-x: auto;
  border: 1px solid var(--bat-border);
  border-radius: var(--bat-radius-md);
  background: var(--bat-white);
  box-shadow: var(--bat-shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.bat-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.55;
}

.bat-table caption {
  padding: 16px 18px;
  color: var(--bat-muted);
  font-size: 13px;
  text-align: left;
}

.bat-table th,
.bat-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--bat-border);
  text-align: left;
  vertical-align: top;
}

.bat-table th {
  background: var(--bat-navy);
  color: var(--bat-white);
  font-family: "Poppins", "Roboto", Arial, sans-serif;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.bat-table tbody tr:nth-child(even) td {
  background: #f9fbfd;
}

.bat-table tbody tr:hover td {
  background: var(--bat-light-blue);
}

.bat-table tr:last-child td {
  border-bottom: 0;
}

.bat-table td:first-child {
  color: var(--bat-heading);
  font-weight: 700;
}

/* ================================================================
   09. IMAGES, VIDEO AND PLACEHOLDERS
   ================================================================ */

.bat-guide-image,
.bat-guide-video {
  margin: 42px 0 48px;
}

.bat-guide-image img,
.bat-guide-video iframe,
.bat-guide-video video {
  width: 100%;
  border: 0;
  border-radius: var(--bat-radius-md);
  box-shadow: var(--bat-shadow-lg);
}

.bat-guide-image img {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.bat-guide-image--natural img {
  aspect-ratio: auto;
  object-fit: initial;
}

.bat-guide-image--portrait img {
  max-width: 680px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
}

.bat-guide-video {
  position: relative;
  aspect-ratio: 16 / 9;
}

.bat-guide-video iframe,
.bat-guide-video video {
  position: absolute;
  inset: 0;
  height: 100%;
}

.bat-guide-image figcaption,
.bat-guide-video + figcaption,
.bat-media-caption {
  margin-top: 10px;
  color: var(--bat-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.bat-image-placeholder__inner {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 30px;
  border: 2px dashed #9dcce7;
  border-radius: var(--bat-radius-md);
  background:
    linear-gradient(135deg, rgba(0, 123, 193, 0.08), rgba(0, 159, 227, 0.03)),
    var(--bat-light);
  color: var(--bat-dark-blue);
  text-align: center;
}

.bat-image-placeholder__number {
  padding: 4px 9px;
  border-radius: var(--bat-radius-pill);
  background: var(--bat-blue);
  color: var(--bat-white);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.bat-image-placeholder__inner strong {
  max-width: 560px;
  font-family: "Poppins", "Roboto", Arial, sans-serif;
  font-size: 20px;
}

.bat-image-placeholder__inner span:last-child {
  color: var(--bat-muted);
  font-size: 14px;
}

/* ================================================================
   10. BUTTONS, DOWNLOAD CARDS AND ACTIONS
   ================================================================ */

.bat-actions,
.bat-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.bat-button,
.bat-template-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--bat-blue);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--bat-blue), var(--bat-blue-bright));
  color: var(--bat-white) !important;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(0, 123, 193, 0.2);
}

.bat-button:hover,
.bat-template-button:hover {
  border-color: var(--bat-dark-blue);
  background: var(--bat-dark-blue);
  color: var(--bat-white) !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(6, 81, 134, 0.24);
}

.bat-button--secondary,
.bat-template-button.secondary {
  border-color: var(--bat-blue);
  background: var(--bat-white);
  color: var(--bat-blue) !important;
  box-shadow: none;
}

.bat-button--secondary:hover,
.bat-template-button.secondary:hover {
  background: var(--bat-light-blue);
  color: var(--bat-dark-blue) !important;
}

.bat-button--dark {
  border-color: var(--bat-navy);
  background: var(--bat-navy);
}

.bat-button--small {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 13px;
}

.bat-template-downloads,
.bat-download-card {
  margin: 30px 0;
  padding: 22px 24px;
  border: 1px solid var(--bat-border);
  border-left: 4px solid var(--bat-blue);
  border-radius: 0 var(--bat-radius-md) var(--bat-radius-md) 0;
  background: var(--bat-white);
  box-shadow: var(--bat-shadow-sm);
}

.bat-template-downloads h3,
.bat-download-card h3,
.bat-download-card h4 {
  margin-top: 0;
}

.bat-template-downloads > :last-child,
.bat-download-card > :last-child {
  margin-bottom: 0;
}

/* ================================================================
   11. EXPANDABLE TOGGLES / FAQ / EMBEDDED TEMPLATES
   ================================================================ */

.bat-template-toggle,
.bat-toggle,
.bat-faq-item {
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--bat-border);
  border-radius: var(--bat-radius-md);
  background: var(--bat-white);
  box-shadow: var(--bat-shadow-sm);
}

.bat-template-toggle summary,
.bat-toggle summary,
.bat-faq-item summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 18px 60px 18px 20px;
  background: var(--bat-white);
  color: var(--bat-heading);
}

.bat-template-toggle summary::-webkit-details-marker,
.bat-toggle summary::-webkit-details-marker,
.bat-faq-item summary::-webkit-details-marker {
  display: none;
}

.bat-template-toggle summary::after,
.bat-toggle summary::after,
.bat-faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #b8ddef;
  border-radius: 50%;
  background: var(--bat-light-blue);
  color: var(--bat-blue);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform var(--bat-transition), background var(--bat-transition), color var(--bat-transition);
}

.bat-template-toggle[open] summary,
.bat-toggle[open] summary,
.bat-faq-item[open] summary {
  border-bottom: 1px solid var(--bat-border);
  background: #fbfdff;
}

.bat-template-toggle[open] summary::after,
.bat-toggle[open] summary::after,
.bat-faq-item[open] summary::after {
  background: var(--bat-blue);
  color: var(--bat-white);
  transform: translateY(-50%) rotate(45deg);
}

.bat-template-title-wrap {
  min-width: 0;
}

.bat-template-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--bat-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bat-template-toggle h2,
.bat-template-toggle h3,
.bat-toggle h3,
.bat-faq-item h3 {
  margin: 0;
  color: var(--bat-heading);
  font-family: "Poppins", "Roboto", Arial, sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  line-height: 1.3;
}

.bat-toggle-chip {
  color: var(--bat-blue);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.bat-toggle-icon {
  display: none;
}

.bat-toggle-content,
.bat-faq-answer {
  padding: 22px 20px 8px;
}

.bat-toggle-content > :first-child,
.bat-faq-answer > :first-child {
  margin-top: 0;
}

.bat-toggle-content > :last-child,
.bat-faq-answer > :last-child {
  margin-bottom: 14px;
}

.bat-toggle-download-card {
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--bat-border);
}

/* ================================================================
   12. SOURCES, RELATED CONTENT AND CTA
   ================================================================ */

.bat-sources,
.bat-related {
  margin-top: 72px;
  padding-top: 6px;
}

.bat-sources > h2:first-child,
.bat-related > h2:first-child {
  margin-top: 0;
}

.bat-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.bat-source-list li {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px;
  border: 1px solid var(--bat-border);
  border-radius: 14px;
  background: var(--bat-white);
  box-shadow: var(--bat-shadow-sm);
}

.bat-source-list li::before {
  content: "Source";
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: var(--bat-radius-pill);
  background: #eaf7ff;
  color: var(--bat-dark-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bat-source-list a {
  color: var(--bat-navy);
  font-family: "Poppins", "Roboto", Arial, sans-serif;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
}

.bat-source-list span {
  color: var(--bat-muted);
  font-size: 14px;
  line-height: 1.55;
}

.bat-related {
  padding-top: 34px;
  border-top: 1px solid var(--bat-border);
}

.bat-related-grid {
  margin-top: 22px;
}

.bat-related-card p {
  color: var(--bat-muted);
}

.bat-final-cta,
.bat-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 64px 0 40px;
  padding: clamp(28px, 5vw, 46px);
  border-radius: var(--bat-radius-lg);
  background: linear-gradient(125deg, var(--bat-navy), var(--bat-dark-blue) 70%, var(--bat-blue));
  color: var(--bat-white);
  box-shadow: var(--bat-shadow-lg);
}

.bat-final-cta::after,
.bat-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -90px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.bat-final-cta h2,
.bat-final-cta h3,
.bat-final-cta p,
.bat-cta h2,
.bat-cta h3,
.bat-cta p {
  color: var(--bat-white);
}

.bat-final-cta h2,
.bat-cta h2 {
  margin-top: 0;
}

.bat-final-cta h2::after,
.bat-cta h2::after {
  background: rgba(255, 255, 255, 0.7);
}

.bat-final-cta > :last-child,
.bat-cta > :last-child {
  margin-bottom: 0;
}

/* ================================================================
   13. AUTHOR / REVIEW / DISCLOSURE STRIP
   ================================================================ */

.bat-review-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 34px;
  padding: 18px 20px;
  border: 1px solid var(--bat-border);
  border-radius: var(--bat-radius-md);
  background: #fbfdff;
  color: var(--bat-muted);
  font-size: 13px;
}

.bat-review-strip strong {
  display: block;
  margin-bottom: 2px;
  color: var(--bat-heading);
  font-size: 13px;
}

.bat-disclaimer {
  margin: 30px 0;
  padding: 16px 18px;
  border-top: 1px solid var(--bat-border);
  border-bottom: 1px solid var(--bat-border);
  color: var(--bat-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ================================================================
   14. UTILITIES
   ================================================================ */

.bat-text-center { text-align: center; }
.bat-text-muted { color: var(--bat-muted); }
.bat-no-margin { margin: 0 !important; }
.bat-mt-0 { margin-top: 0 !important; }
.bat-mb-0 { margin-bottom: 0 !important; }
.bat-full-width { width: 100%; }
.bat-reading-width { max-width: var(--bat-reading-width); }
.bat-centered { margin-inline: auto; }
.bat-hide { display: none !important; }

/* ================================================================
   15. RESPONSIVE BEHAVIOUR
   ================================================================ */

@media (max-width: 980px) {
  .bat-guide-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .bat-guide-sidebar,
  .bat-guide-sidebar--sticky,
  .bat-guide-toc {
    position: static;
  }

  .bat-toc ul,
  .bat-toc ol,
  .bat-guide-toc ul,
  .bat-guide-toc ol {
    columns: 2;
    column-gap: 30px;
  }

  .bat-toc li,
  .bat-guide-toc li {
    break-inside: avoid;
  }

  .bat-three-column,
  .bat-review-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .bat-guide-page {
    font-size: 16px;
  }

  .bat-guide-container {
    padding: 24px 16px 56px;
  }

  .bat-guide-hero {
    min-height: 360px;
    margin-bottom: 30px;
    padding: 32px 23px;
    border-radius: 20px;
  }

  .bat-guide-title {
    font-size: clamp(36px, 11vw, 50px);
  }

  .bat-guide-intro {
    font-size: 18px;
  }

  .bat-guide-topic-row span {
    font-size: 12px;
  }

  .bat-toc ul,
  .bat-toc ol,
  .bat-guide-toc ul,
  .bat-guide-toc ol {
    columns: 1;
  }

  .bat-guide-content > p:first-child,
  .bat-guide-lead {
    font-size: 18px;
  }

  .bat-guide-content h2 {
    margin-top: 50px;
    font-size: 30px;
  }

  .bat-guide-content h3 {
    font-size: 21px;
  }

  .bat-grid,
  .bat-two-column,
  .bat-three-column,
  .bat-related-grid,
  .bat-list-grid ul,
  .bat-list-grid ol,
  .bat-list-three ul,
  .bat-list-three ol,
  .bat-card-grid ul,
  .bat-card-grid ol,
  .bat-source-list,
  .bat-review-strip {
    grid-template-columns: 1fr;
  }

  .bat-list-panel,
  .bat-card,
  .bat-checklist,
  .bat-callout,
  .bat-feature,
  .bat-column-card,
  .bat-link-card,
  .bat-related-card,
  .bat-key-point {
    padding: 19px;
  }

  .bat-list-panel li,
  .bat-card li,
  .bat-checklist li {
    padding-right: 6px;
  }

  .bat-step {
    padding: 70px 19px 20px;
  }

  .bat-step::before {
    top: 18px;
    left: 18px;
  }

  .bat-image-placeholder__inner {
    min-height: 190px;
  }

  .bat-actions,
  .bat-template-actions {
    display: grid;
  }

  .bat-button,
  .bat-template-button {
    width: 100%;
  }

  .bat-template-toggle summary,
  .bat-toggle summary,
  .bat-faq-item summary {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
  }

  .bat-toggle-chip {
    white-space: normal;
  }

  .bat-table-wrap {
    border-radius: 12px;
  }
}

/* ================================================================
   16. PRINT AND REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  .bat-guide-page *,
  .bat-guide-page *::before,
  .bat-guide-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .bat-guide-page {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .bat-guide-container {
    width: 100%;
    padding: 0;
  }

  .bat-guide-hero {
    min-height: 0;
    padding: 26px;
    background: #fff !important;
    color: #000;
    box-shadow: none;
    border: 1px solid #bbb;
  }

  .bat-guide-title,
  .bat-guide-eyebrow,
  .bat-guide-intro,
  .bat-guide-meta,
  .bat-guide-topic-row span {
    color: #000;
  }

  .bat-guide-layout {
    display: block;
  }

  .bat-guide-sidebar,
  .bat-guide-toc,
  .bat-actions,
  .bat-template-actions,
  .bat-final-cta,
  .bat-cta,
  .bat-related {
    display: none !important;
  }

  .bat-guide-page a {
    color: #000;
    text-decoration: underline;
  }

  .bat-guide-content h2,
  .bat-guide-content h3,
  .bat-guide-content h4,
  .bat-guide-image,
  .bat-table-wrap,
  .bat-callout,
  .bat-card,
  .bat-list-panel,
  .bat-template-toggle {
    break-inside: avoid;
  }

  .bat-template-toggle,
  .bat-toggle,
  .bat-faq-item {
    box-shadow: none;
  }

  .bat-template-toggle:not([open]) > :not(summary),
  .bat-toggle:not([open]) > :not(summary),
  .bat-faq-item:not([open]) > :not(summary) {
    display: block;
  }
}
