/* =============================================
   GUÍA COMPLETA TDM — icaria Technology
   Professional Ebook / Print-Ready Styling
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400;1,600&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* Brand Colors */
  --icaria-green: #4DB848;
  --icaria-green-light: #E8F5E7;
  --icaria-green-dark: #3A8A36;
  --icaria-teal: #0099A8;
  --icaria-teal-light: #E0F4F6;
  --icaria-blue: #0066CC;
  --icaria-blue-light: #E5F0FF;
  --icaria-gold: #FFD700;
  --icaria-dark: #2D2D2D;
  --icaria-gray: #555555;
  --icaria-gray-light: #999999;
  --white: #FFFFFF;
  --bg-light: #F7F8FA;
  --bg-warm: #FFFBEB;
  --bg-danger: #FFF5F5;
  --border-light: #E5E7EB;

  /* Gradients */
  --gradient-brand: linear-gradient(90deg, #0066CC 0%, #4DB848 50%, #FFD700 100%);
  --gradient-dark: linear-gradient(135deg, #0f1923 0%, #162a3a 30%, #1a3a4a 60%, #0f3460 100%);
  --gradient-green: linear-gradient(135deg, #4DB848 0%, #0099A8 100%);
  --gradient-cover: linear-gradient(160deg, #0f1923 0%, #13293d 35%, #1a3a4a 65%, #0f3460 100%);

  /* Typography */
  --font-main: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 11pt;
  --line-height: 1.75;
}

/* ---- Page Setup for Print ---- */
@page {
  size: A4;
  margin: 22mm 20mm 25mm 20mm;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

body {
  font-family: var(--font-main);
  color: var(--icaria-dark);
  line-height: var(--line-height);
  background: #E8E8E8;
}

a {
  color: var(--icaria-teal);
  text-decoration: none;
}

/* ---- Screen Container ---- */
@media screen {
  .guide-container {
    max-width: 210mm;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 2px 60px rgba(0,0,0,0.18);
  }
}

/* ==========================================================
   COVER PAGE
   ========================================================== */
.cover-page {
  min-height: 297mm;
  background: var(--gradient-cover);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40mm 28mm;
  position: relative;
  overflow: hidden;
  page-break-after: always;
}

/* Decorative background circles */
.cover-page::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -25%;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,184,72,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cover-page::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -15%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,153,168,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cover-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover-logo {
  font-size: 26pt;
  font-weight: 300;
  letter-spacing: 6px;
  margin-bottom: 56px;
  text-transform: lowercase;
}

.cover-logo .logo-highlight {
  color: var(--icaria-green);
  font-weight: 700;
}

.cover-logo-img {
  width: 320px;
  height: auto;
  margin-bottom: 56px;
  filter: brightness(0) invert(1);
}

.cover-badge {
  display: inline-block;
  padding: 7px 22px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  font-size: 8pt;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 36px;
  color: rgba(255,255,255,0.8);
}

.cover-title {
  font-size: 38pt;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 12px;
  max-width: 580px;
}

.cover-title .highlight {
  color: var(--icaria-green);
}

.cover-gradient-line {
  width: 180px;
  height: 4px;
  background: var(--gradient-brand);
  border-radius: 2px;
  margin: 20px auto;
}

.cover-subtitle {
  font-size: 13pt;
  font-weight: 300;
  line-height: 1.7;
  max-width: 480px;
  opacity: 0.85;
  margin-bottom: 20px;
}

.cover-edition {
  font-size: 9pt;
  opacity: 0.5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 8px;
}

.cover-footer {
  position: absolute;
  bottom: 28mm;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 1;
}

.cover-company {
  font-size: 10pt;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  opacity: 0.7;
}

.cover-tagline {
  font-size: 8.5pt;
  opacity: 0.45;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.cover-tagline a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cover-tagline a:hover {
  opacity: 1;
}

/* ==========================================================
   TABLE OF CONTENTS
   ========================================================== */
.toc-page {
  padding: 48px 40px;
  page-break-after: always;
}

.toc-header {
  text-align: center;
  margin-bottom: 44px;
}

.toc-header h2 {
  font-size: 22pt;
  font-weight: 700;
  color: var(--icaria-dark);
  margin-bottom: 12px;
  border: none;
}

.toc-header .gradient-line {
  width: 100px;
  height: 3px;
  background: var(--gradient-brand);
  margin: 0 auto;
  border-radius: 2px;
}

.toc-list {
  list-style: none;
  max-width: 520px;
  margin: 0 auto;
}

.toc-item {
  display: flex;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dotted var(--border-light);
  color: var(--icaria-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.toc-item:hover {
  color: var(--icaria-green);
}

.toc-number {
  font-size: 13pt;
  font-weight: 700;
  color: var(--icaria-green);
  min-width: 44px;
}

.toc-title {
  font-size: 11pt;
  font-weight: 600;
  flex: 1;
}

.toc-sub {
  padding-left: 44px;
}

.toc-sub .toc-number {
  font-size: 9.5pt;
  color: var(--icaria-teal);
  min-width: 36px;
}

.toc-sub .toc-title {
  font-weight: 400;
  font-size: 9.5pt;
}

.toc-link {
  display: flex;
  align-items: baseline;
  width: 100%;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.toc-link:hover {
  color: var(--icaria-green);
}

/* ==========================================================
   CHAPTER PAGES
   ========================================================== */
.chapter {
  padding: 44px 40px;
  page-break-before: always;
}

.chapter-header {
  margin-bottom: 36px;
  position: relative;
}

.chapter-number {
  display: block;
  font-size: 72pt;
  font-weight: 800;
  color: rgba(77, 184, 72, 0.10);
  line-height: 1;
  margin-bottom: -24px;
  user-select: none;
}

.chapter-title {
  font-size: 24pt;
  font-weight: 700;
  color: var(--icaria-dark);
  line-height: 1.2;
  position: relative;
  padding-bottom: 16px;
}

.chapter-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 4px;
  background: var(--gradient-brand);
  border-radius: 2px;
}

.chapter-intro {
  font-size: 12pt;
  color: var(--icaria-gray);
  font-weight: 300;
  line-height: 1.8;
  margin-top: 20px;
  max-width: 92%;
}

/* ---- Section Headers ---- */
h2 {
  font-size: 16pt;
  font-weight: 700;
  color: var(--icaria-dark);
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--icaria-green);
}

h3 {
  font-size: 13pt;
  font-weight: 700;
  color: var(--icaria-teal);
  margin-top: 28px;
  margin-bottom: 10px;
}

h4 {
  font-size: 11pt;
  font-weight: 700;
  color: var(--icaria-dark);
  margin-top: 20px;
  margin-bottom: 8px;
}

/* ---- Body Text ---- */
p {
  margin-bottom: 12px;
  line-height: var(--line-height);
}

strong {
  font-weight: 700;
  color: var(--icaria-dark);
}

em {
  font-style: italic;
  color: var(--icaria-gray);
}

/* ---- Lists ---- */
ul, ol {
  margin: 12px 0 16px 0;
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
  line-height: 1.65;
}

ul li::marker {
  color: var(--icaria-green);
  font-weight: 700;
}

ol li::marker {
  color: var(--icaria-green);
  font-weight: 700;
}

/* Green check list */
.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--icaria-green);
  font-weight: 700;
  font-size: 13pt;
}

/* ==========================================================
   CALLOUT BOXES
   ========================================================== */

/* -- Stat Callout (single impressive stat) -- */
.callout-stat {
  background: var(--bg-light);
  border-left: 4px solid var(--icaria-green);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 24px 0;
  page-break-inside: avoid;
}

.callout-stat .stat-value {
  font-size: 30pt;
  font-weight: 800;
  color: var(--icaria-green);
  line-height: 1;
}

.callout-stat .stat-text {
  font-size: 10.5pt;
  color: var(--icaria-gray);
  margin-top: 6px;
  line-height: 1.5;
}

/* -- Stats Grid (multiple stat cards) -- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
  page-break-inside: avoid;
}

.stats-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.stat-card {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  border-top: 3px solid var(--icaria-green);
  page-break-inside: avoid;
}

.stat-card .stat-value {
  font-size: 26pt;
  font-weight: 800;
  color: var(--icaria-green);
  display: block;
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 8.5pt;
  color: var(--icaria-gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 6px;
  line-height: 1.4;
}

/* -- Tip Callout -- */
.callout-tip {
  background: var(--icaria-teal-light);
  border-left: 4px solid var(--icaria-teal);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 20px 0;
  page-break-inside: avoid;
}

.callout-tip .callout-icon {
  font-size: 14pt;
  margin-right: 6px;
}

.callout-tip .callout-title {
  font-weight: 700;
  color: var(--icaria-teal);
  margin-bottom: 6px;
  font-size: 9.5pt;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* -- Warning Callout (antipatterns) -- */
.callout-warning {
  background: var(--bg-warm);
  border-left: 4px solid #F59E0B;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 20px 0;
  page-break-inside: avoid;
}

.callout-warning .callout-title {
  font-weight: 700;
  color: #B45309;
  margin-bottom: 6px;
  font-size: 9.5pt;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* -- Danger / Alert Callout -- */
.callout-danger {
  background: var(--bg-danger);
  border-left: 4px solid #EF4444;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 20px 0;
  page-break-inside: avoid;
}

.callout-danger .callout-title {
  font-weight: 700;
  color: #DC2626;
  margin-bottom: 6px;
  font-size: 9.5pt;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* -- Key Insight Callout -- */
.callout-key {
  background: var(--icaria-green-light);
  border-left: 4px solid var(--icaria-green);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 20px 0;
  page-break-inside: avoid;
}

.callout-key .callout-title {
  font-weight: 700;
  color: var(--icaria-green-dark);
  margin-bottom: 6px;
  font-size: 9.5pt;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* -- Blue Info Callout -- */
.callout-info {
  background: var(--icaria-blue-light);
  border-left: 4px solid var(--icaria-blue);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 20px 0;
  page-break-inside: avoid;
}

.callout-info .callout-title {
  font-weight: 700;
  color: var(--icaria-blue);
  margin-bottom: 6px;
  font-size: 9.5pt;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* -- Quote Block -- */
.quote-block {
  border-left: 4px solid var(--icaria-green);
  padding: 24px 28px;
  margin: 28px 0;
  background: var(--bg-light);
  border-radius: 0 10px 10px 0;
  position: relative;
  page-break-inside: avoid;
}

.quote-block::before {
  content: '\201C';
  font-size: 54pt;
  color: rgba(77, 184, 72, 0.18);
  position: absolute;
  top: -2px;
  left: 14px;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
}

.quote-text {
  font-style: italic;
  font-size: 12.5pt;
  color: var(--icaria-gray);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.quote-author {
  display: block;
  margin-top: 10px;
  font-size: 9pt;
  font-style: normal;
  font-weight: 600;
  color: var(--icaria-dark);
  letter-spacing: 0.3px;
}

/* ==========================================================
   FEATURE CARDS
   ========================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.feature-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid.cols-4 {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 22px 20px;
  page-break-inside: avoid;
  border: 1px solid var(--border-light);
}

.feature-card .card-icon {
  font-size: 26pt;
  margin-bottom: 10px;
  display: block;
}

.feature-card .card-title {
  font-size: 11pt;
  font-weight: 700;
  color: var(--icaria-dark);
  margin-bottom: 8px;
}

.feature-card .card-text {
  font-size: 9.5pt;
  color: var(--icaria-gray);
  line-height: 1.6;
}

.feature-card .card-text ul {
  margin: 6px 0 0 0;
  padding-left: 16px;
}

.feature-card .card-text li {
  font-size: 9pt;
  margin-bottom: 3px;
}

/* Full-width highlight card */
.highlight-card {
  background: var(--icaria-green-light);
  border: 1px solid rgba(77,184,72,0.2);
  border-left: 4px solid var(--icaria-green);
  border-radius: 0 10px 10px 0;
  padding: 22px 24px;
  margin: 20px 0;
  page-break-inside: avoid;
}

.highlight-card .card-title {
  font-weight: 700;
  color: var(--icaria-green-dark);
  margin-bottom: 6px;
}

/* ==========================================================
   PROCESS STEPS
   ========================================================== */
.process-steps {
  margin: 24px 0;
  counter-reset: step-counter;
}

.process-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  page-break-inside: avoid;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--gradient-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14pt;
  margin-top: 2px;
}

.step-content h4 {
  margin-top: 6px;
  margin-bottom: 4px;
  color: var(--icaria-dark);
}

.step-content p {
  font-size: 10pt;
  color: var(--icaria-gray);
  margin-bottom: 4px;
}

.step-content ul {
  margin-top: 4px;
  font-size: 9.5pt;
}

/* ==========================================================
   MATURITY TABLE
   ========================================================== */
.maturity-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 9.5pt;
  page-break-inside: avoid;
}

.maturity-table th {
  background: var(--icaria-dark);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 8.5pt;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.maturity-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  line-height: 1.5;
}

.maturity-table tr:nth-child(even) {
  background: var(--bg-light);
}

.maturity-level {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 8.5pt;
  color: white;
  white-space: nowrap;
}

.level-1 { background: #EF4444; }
.level-2 { background: #F59E0B; }
.level-3 { background: #3B82F6; }
.level-4 { background: var(--icaria-teal); }
.level-5 { background: var(--icaria-green); }

/* ==========================================================
   CI/CD FLOW DIAGRAM
   ========================================================== */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 28px 0;
  page-break-inside: avoid;
  flex-wrap: wrap;
}

.flow-step {
  background: var(--bg-light);
  border: 2px solid var(--border-light);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
  min-width: 90px;
  max-width: 120px;
}

.flow-step.highlight {
  background: var(--icaria-green-light);
  border-color: var(--icaria-green);
}

.flow-step .flow-icon {
  font-size: 22pt;
  display: block;
  margin-bottom: 4px;
}

.flow-step .flow-label {
  font-size: 7.5pt;
  font-weight: 600;
  color: var(--icaria-dark);
  line-height: 1.3;
}

.flow-arrow {
  font-size: 18pt;
  color: var(--icaria-gray-light);
  margin: 0 6px;
  flex-shrink: 0;
}

/* ==========================================================
   GENERAL TABLES
   ========================================================== */
table:not(.maturity-table) {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 9.5pt;
  page-break-inside: avoid;
}

table:not(.maturity-table) th {
  background: var(--icaria-dark);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 8.5pt;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

table:not(.maturity-table) td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
}

table:not(.maturity-table) tr:nth-child(even) {
  background: var(--bg-light);
}

/* ==========================================================
   SECTION DIVIDER
   ========================================================== */
.section-divider {
  border: none;
  height: 1px;
  background: var(--border-light);
  margin: 32px 0;
}

.section-divider.gradient {
  height: 2px;
  background: var(--gradient-brand);
  margin: 36px 0;
}

/* ==========================================================
   BACK COVER / CTA PAGE
   ========================================================== */
.back-cover {
  min-height: 297mm;
  background: var(--gradient-cover);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40mm 30mm;
  page-break-before: always;
  position: relative;
  overflow: hidden;
}

.back-cover::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,184,72,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.back-content {
  position: relative;
  z-index: 1;
  max-width: 440px;
}

.back-cover h2 {
  color: white;
  font-size: 24pt;
  border: none;
  margin-bottom: 12px;
  line-height: 1.3;
}

.back-cover .back-subtitle {
  font-size: 12pt;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 300;
}

.back-cover .cta-button {
  display: inline-block;
  background: var(--icaria-green);
  color: white;
  padding: 14px 40px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 11pt;
  text-decoration: none;
  letter-spacing: 0.5px;
  margin-bottom: 48px;
  transition: transform 0.2s;
}

.back-cover .cta-button:hover {
  transform: translateY(-2px);
}

.back-cover .gradient-line-sm {
  width: 80px;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: 2px;
  margin: 0 auto 28px;
}

.back-cover .contact-info {
  font-size: 10pt;
  opacity: 0.6;
  line-height: 2;
}

.back-cover .contact-info a {
  color: var(--icaria-green);
  text-decoration: none;
  font-weight: 600;
  opacity: 1;
}

.back-cover .back-logo {
  font-size: 20pt;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 40px;
  text-transform: lowercase;
}

.back-cover .back-logo .logo-highlight {
  color: var(--icaria-green);
  font-weight: 700;
}

.back-cover .back-logo-img {
  width: 240px;
  height: auto;
  margin-bottom: 40px;
  filter: brightness(0) invert(1);
}

/* ==========================================================
   UTILITY CLASSES
   ========================================================== */
.text-center { text-align: center; }
.text-green { color: var(--icaria-green); }
.text-teal { color: var(--icaria-teal); }
.text-gray { color: var(--icaria-gray); }
.text-small { font-size: 9pt; }
.text-bold { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.no-break { page-break-inside: avoid; }

/* ==========================================================
   PRINT OVERRIDES
   ========================================================== */
@media print {
  body {
    background: white;
    font-size: 10.5pt;
  }

  .guide-container {
    box-shadow: none;
    max-width: none;
  }

  .cover-page,
  .back-cover {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .chapter {
    page-break-before: always;
  }

  h2, h3, h4 {
    page-break-after: avoid;
  }

  .callout-stat, .callout-tip, .callout-warning,
  .callout-danger, .callout-key, .callout-info,
  .feature-card, .stat-card, .process-step,
  .quote-block, .highlight-card {
    page-break-inside: avoid;
  }

  a {
    color: var(--icaria-dark);
    text-decoration: none;
  }
}

/* ==========================================================
   RESPONSIVE (screen viewing)
   ========================================================== */
@media screen and (max-width: 768px) {
  .cover-page {
    padding: 20mm 16mm;
  }

  .cover-title {
    font-size: 26pt;
  }

  .chapter {
    padding: 28px 20px;
  }

  .toc-page {
    padding: 32px 20px;
  }

  .feature-grid,
  .feature-grid.cols-3,
  .feature-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flow-diagram {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .chapter-number {
    font-size: 48pt;
  }

  .chapter-title {
    font-size: 20pt;
  }
}

/* ==========================================================
   LUCIDE ICONS STYLING
   ========================================================== */

/* Base styling for all Lucide icons */
[data-lucide] {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 1.5;
}

/* Card icons (feature-card) - inline with title */
.card-icon[data-lucide] {
  width: 28px;
  height: 28px;
  stroke: var(--icaria-green);
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}

/* Flow diagram icons (CI/CD) - centered */
.flow-icon[data-lucide] {
  width: 40px;
  height: 40px;
  stroke: var(--icaria-dark);
  stroke-width: 2;
  display: block;
  margin: 0 auto 4px auto;
}

/* Callout title icons */
.callout-title [data-lucide] {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
  stroke-width: 2;
}

/* Stat value icons (when used in stat-value class) - centered */
.stat-value[data-lucide] {
  width: 64px;
  height: 64px;
  stroke: var(--icaria-green);
  stroke-width: 1.5;
  margin: 0 auto 8px auto;
  display: block;
}

/* Stat icon - smaller icon for warning/alert stat cards */
.stat-icon[data-lucide] {
  width: 40px;
  height: 40px;
  stroke: var(--icaria-green);
  stroke-width: 2;
}

/* Highlight card title icons */
.highlight-card .card-title [data-lucide] {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
  stroke: var(--icaria-green);
  stroke-width: 2;
}

/* Print adjustments */
@media print {
  [data-lucide] {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
