/* ===== BODY.CSS - PURE WHITE • CLEAN • ELEGANT ===== */
/* Last updated for technical documentation (Cisco show version style) */

:root {
  --primary:       #2563eb;       /* main blue */
  --primary-dark:  #1d4ed8;
  --success:       #10b981;

  --text-title:    #0f172a;
  --text-body:     #334155;
  --text-light:    #64748b;

  --bg:            #ffffff;
  --bg-soft:       #f8fafc;
  --border:        #e2e8f0;

  --radius-lg:     20px;
  --radius-md:     12px;
  --radius-sm:     8px;

  --shadow-sm:     0 6px 16px rgba(0,0,0,0.04);
  --shadow-md:     0 10px 28px rgba(0,0,0,0.06);

  --transition:    0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  color: var(--text-body);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.ad-wrapper {
  max-width: 1180px;
  margin: 48px auto;
  padding: 0 24px;
}

.main-content {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.wrapper {
  padding: 0 56px;
}

.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 64px 0;
}

/* ─────── Headings ─────── */
h1 {
  font-size: 3.3rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 5px;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.35s ease;
}

h1:hover::after {
  width: 110px;
}

h2 {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 20px 0 32px;
  position: relative;
  display: inline-block;
}

h2::before {
  content: '◆';
  position: absolute;
  left: -28px;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: bold;
  top: 4px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

h2:hover::after {
  width: 100%;
}

h3 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-title);
  margin: 48px 0 24px;
}

/* Paragraphs & Lead */
p {
  font-size: 1.125rem;
  margin-bottom: 28px;
  color: var(--text-body);
}

p.lead {
  font-size: 1.24rem;
  font-weight: 500;
  background: var(--bg-soft);
  padding: 28px;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--primary);
}

/* Lists */
ul, ol {
  margin: 32px 0;
  padding-left: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-body);
}

ul li::before,
ol li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.3rem;
  line-height: 1;
  font-weight: bold;
  top: 3px;
}

/* Code & Pre */
code {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  background: var(--bg-soft);
  color: #1e40af;
  padding: 0.25em 0.55em;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 0.96rem;
}

pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 28px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 32px 0;
  box-shadow: var(--shadow-md);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37,99,235,0.22);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  margin-top: 48px;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(37,99,235,0.32);
}

/* Highlight / Callout */
.highlight {
  background: var(--bg-soft);
  border-left: 5px solid var(--primary);
  padding: 28px 32px;
  margin: 40px 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ─────── TABLES ─────── Technical content optimized */
table {
  width: 100%;
  margin: 2rem 0;
  font-size: 1rem;
  line-height: 1.55;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

table th,
table td {
  padding: 1.1rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-bottom: none;
}

table td {
  color: var(--text-body);
}

/* First column - usually keys / field names */
table td:first-child {
  font-weight: 600;
  color: var(--text-title);
  background: var(--bg-soft);
  min-width: 180px;
}

/* Code inside table cells */
table code {
  background: #f1f5f9;
  color: #1e40af;
  padding: 0.18em 0.42em;
  border-radius: 5px;
  font-size: 0.92rem;
  border: 1px solid #e2e8f0;
}

/* Multi-line output / examples in cells */
table pre {
  margin: 0.6rem 0 0.3rem 0;
  padding: 1rem 1.2rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Row hover */
tbody tr {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

tbody tr:hover {
  background-color: #f0f7ff;
  transform: translateY(-1px);
}

/* Subtle zebra */
tbody tr:nth-child(even) {
  background-color: rgba(248, 250, 252, 0.6);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive tables */
@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Very small screens - semi-stacked */
  @media (max-width: 560px) {
    table th,
    table td {
      padding: 0.9rem 1.1rem;
    }

    table td:first-child {
      font-weight: 700;
      background: var(--bg-soft);
      border-bottom: 2px solid var(--border);
      padding-bottom: 0.4rem;
    }

    table td:not(:first-child) {
      padding-top: 0.3rem;
      border-bottom: 1px solid var(--border);
    }

    table td:last-child {
      border-bottom: none;
      padding-bottom: 1.1rem;
    }
  }
}

/* Responsive typography & layout */
@media (max-width: 1024px) {
  .wrapper { padding: 0 32px; }
  h1 { font-size: 2.9rem; }
  h2 { font-size: 1.95rem; }
}

@media (max-width: 768px) {
  .wrapper { padding: 0 24px; }
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.8rem; }
  h2::before { left: -24px; }
  .btn { width: 100%; max-width: 360px; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    transform: none !important;
  }
}