/* ============================================
   EBOOK STYLESHEET
   One CSS to rule the whole guide series.
   Change anything here → updates everywhere.
   ============================================ */

/* --- Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  xxxfont-family: 'Georgia', 'Times New Roman', serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #2c2c2c;
  background: #ffffff;   /* was   background: #fafaf8; */
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* --- Shared Guides Header --- */
.guides-header {
  max-width: 100%;
  margin: 0 auto;
  padding: 18px 24px 0;
}

.guides-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.guides-back-link,
.guides-home-link {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  color: #1a1a1a;
  text-decoration: none;
}

.guides-back-link {
  font-size: 0.95rem;
  font-weight: 600;
}

.guides-back-link:hover,
.guides-home-link:hover {
  text-decoration: underline;
}

.guides-logo {
  display: block;
  width: 200px;
  height: auto;
}

/* --- Page Container --- */
.guide {
  max-width: 680px;
  margin: 0 auto;
  padding: 0px 40px 80px;
}

/* --- Cover Page --- */
.cover {
  text-align: center;
  xxpadding: 50px 20px 80px;
  margin-bottom: 40px;
  border-bottom: 2px solid #333;
}

.cover-image {
  max-width: 80%;
  height: auto;
  xxmargin-bottom: 24px;
  border-radius: 12px;
  xxbox-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.bold{
font-weight: bold;
}

.cover h1 {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 2.4em;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: -15px;
  letter-spacing: -0.5px;
}

.cover .subtitle {
  font-style: italic;
  font-size: 1.15em;
  color: #555;
  margin-bottom: 30px;
}

.cover .author {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 0.95em;
  font-weight: 600;
  color: #444;
  padding-top: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.author {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 0.95em;
  font-weight: 600;
  color: #444;
  padding-top: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cover .toc span {
 padding: 4px;
  }
  
.cover .toc {
  display: grid;
  padding: 34px;
  grid-template-columns: 28px 1fr;
  gap: 9px 0px;
  text-align: left;
  max-width: 100%;
  margin: 40px auto 9px;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 1em;
  font-weight: 500;
  line-height: 1.5;
  color: #555;
  background-color: white;

}

.cover .toc .num {
  color: #999;

  text-align: right;
  background-color: #F5F4F2;
  border-left: solid 5px orange;
  paddinccg-left: 4px;
}

.cover .toc .title {
  color: #555;
  background-color: #F5F4F2;
  padding-right: 12px;
  padding-left: 14px;
}

.cover .toc a {
  display: contents;
  text-decoration: none;
}



.xcover .toc a .title {
  border-bottom: solid black 3px;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.cover .toc a:hover .num,
.cover .toc a:hover .title {
  xxxcolor: #007bff;
  text-decoration: underline;
}

xxa {color: green;}

/* --- Chapter Titles (h2) --- */
h2 {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 1.75em;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 60px;
  margin-bottom: 16px;
  line-height: 1.4;
  letter-spacing: -0.3px;
  scroll-margin-top: 30px;
}

.h2-small {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 1.4em;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 40px;
  margin-bottom: 10px;
  line-height: 2.4;
  letter-spacing: -0.3px;
}

.chapter-subtitle {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-style: italic;
  line-height: 1.4em;
  font-size: 1.2em;
  font-weight: bold;
  color: #666;
  margin-bottom: 28px;
}

/* --- Section Headings (h3) --- */
h3 {
  /* font-family: 'Helvetica Neue', 'Arial', sans-serif; */
  font-size: 1.2em;
  font-weight: 700;
  color: #333;
  margin-top: 36px;
  margin-bottom: 14px;
  line-height: 1.35;
}

/* --- Paragraphs --- */
p {
  margin-bottom: 16px;
}

/* --- Bold Text --- */
strong {
  font-weight: 700;
  color: #1a1a1a;
}

/* --- Italic --- */
em {
  font-style: italic;
}

/* --- Yellow Highlighter --- */
.highlight {
  background: #fff176;
  padding: 2px 4px;
}

/* --- Pricing Model Highlight --- */
.pricing-highlight {
  background: #CCE5EE;
  padding: 2px 4px;
}

/* --- Checkbox (larger) --- */
.checkbox {
  font-size: 1.7em;
  line-height: 1;
  display: inline-block;
  margin-right: 8px;
}

/* --- Normal weight text (for use inside bold contexts) --- */
.normal {
  font-weight: normal;
}

/* --- Unordered Lists --- */
ul {
  margin: 12px 0 20px 24px;
  padding: 0;
}

ul li {
  margin-bottom: 8px;
  padding-left: 4px;
}

/* --- Ordered Lists --- */
ol {
  margin: 12px 0 20px 24px;
  padding: 0;
}

ol li {
  margin-bottom: 8px;
  padding-left: 4px;
}

/* --- Exercise / Fill-in Boxes --- */
.exercise {
  background: #f5f3ee;
  border: 1px solid #ddd8cc;
  border-left: 4px solid #b08d57;
  border-radius: 4px;
  padding: 24px 28px;
  margin: 24px 0;
  font-size: 0.95em;
  line-height: 2.2;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

.exercise p {
  margin-bottom: 6px;
}

.exercise .blank {
  display: inline-block;
  border-bottom: 1px solid #999;
  min-width: 300px;
  margin-left: 4px;
}

.exercise .blank500 {
  display: inline-block;
  border-bottom: 1px solid #999;
  min-width: 500px;
  margin-left: 4px;
}

.exercise .blank-short {
  display: inline-block;
  border-bottom: 1px solid #999;
  min-width: 130px;
  margin-left: 4px;
}

/* --- Example Boxes --- */
.example {
  background: #f0f4f0;
  border: 1px solid #c8d8c8;
  border-left: 4px solid #5a8a5a;
  border-radius: 4px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.95em;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

.example p {
  margin-bottom: 6px;
}

.diagram-title{
padding-top: 8px;
  font-size: 22pt;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  }


/* --- Chapter TLDR / Big Takeaways --- */
.chapter-tldr {
  background: #fff8e1;
  border: 2px solid #f5c518;
  border-radius: 6px;
  padding: 20px 24px 16px;
  margin: 0 0 32px;
  font-size: 1em;
  line-height: 1.6;
}

.chapter-tldr .tldr-label {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 700;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b8860b;
  margin-bottom: 10px;
}


.diagram-label {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 700;
  margin-top: 40px;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #466067;
  margin-bottom: 10px;
}

.tldr-label {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 700;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b8860b;
  margin-bottom: 10px;
}


.chapter-tldr ul {
  margin: 0 0 0 20px;
  padding: 0;
}

.chapter-tldr ul li {
  margin-bottom: 12px;
  font-weight: 600;
  color: #2c2c2c;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

/* --- Callout / Highlight Boxes --- */
.callout {
  background: #fdf6e3;
  border: 1px solid #e8dcc0;
  border-left: 4px solid #d4a843;
  border-radius: 4px;
  padding: 18px 22px;
  margin: 36px 0 36px ;
  font-size: 0.95em;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

.indent-callout {
border-left: 8px #6999B2 solid; 
padding-left: 20px;
margin: 30px 0 30px;
}

/* --- Good/Bad Comparison --- */
.good-bad {
  margin: 20px 0;
  font-size: 0.95em;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
}

.good-bad .good {
  background: #f0f7f0;
  border-left: 4px solid #4a9a4a;
  padding: 12px 18px;
  margin-bottom: 8px;
  border-radius: 0 4px 4px 0;
}

.good-bad .bad {
  background: #fdf0f0;
  border-left: 4px solid #c45a5a;
  padding: 12px 18px;
  border-radius: 0 4px 4px 0;
}

.good-bad .label {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 700;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 8px;
}

.good .label { color: #3a7a3a; }
.bad .label { color: #b04040; }

/* --- Decision Matrix Table --- */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
  margin: 20px 0;
}

.matrix-table th {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #555;
  padding: 10px 8px;
  text-align: center;
  border-bottom: 2px solid #ccc;
}

.matrix-table th:first-child {
  text-align: left;
}

.matrix-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #e5e5e5;
  text-align: center;
}

.matrix-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.matrix-table tr.totals td {
  border-top: 2px solid #333;
  border-bottom: none;
  font-weight: 700;
  padding-top: 12px;
}

.matrix-table .cell-blank {
  display: inline-block;
  border-bottom: 1px solid #999;
  min-width: 40px;
  height: 1.2em;
}

/* --- Diagrams --- */
.diagram {
  margin: 30px 0;
}

.diagram-title {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 700;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  text-align: center;
  margin-bottom: 16px;
}

/* Validation Signals vs Vanity Signals */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.vs-col {
  border-radius: 6px;
  padding: 20px;
}

.vs-col.real {
  background: #f0f7f0;
  border: 2px solid #4a9a4a;
}

.vs-col.vanity {
  background: #fdf0f0;
  border: 2px solid #c45a5a;
}

.vs-col h4 {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.vs-col.real h4 { color: #3a7a3a; }
.vs-col.vanity h4 { color: #b04040; }

.vs-col ul {
  margin: 0 0 0 8px;
  padding: 0;
  list-style: none;
}

.vs-col ul li {
  margin-bottom: 8px;
  font-size: 0.92em;
  padding-left: 22px;
  position: relative;
}

.vs-col.real ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #3a7a3a;
  font-weight: 700;
}

.vs-col.vanity ul li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  color: #b04040;
  font-weight: 700;
}

/* SWOT Grid */
.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #ccc;
}

.swot-cell {
  padding: 18px 20px;
}

.swot-cell h4 {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.swot-cell ul {
  margin: 0;
  padding: 0 0 0 16px;
}

.swot-cell ul li {
  font-size: 0.88em;
  margin-bottom: 4px;
  line-height: 1.5;
}

.swot-cell.strengths {
  background: #f0f7f0;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}
.swot-cell.strengths h4 { color: #3a7a3a; }

.swot-cell.weaknesses {
  background: #fdf0f0;
  border-bottom: 1px solid #ccc;
}
.swot-cell.weaknesses h4 { color: #b04040; }

.swot-cell.opportunities {
  background: #f0f4f8;
  border-right: 1px solid #ccc;
}
.swot-cell.opportunities h4 { color: #3a6a9a; }

.swot-cell.threats {
  background: #fdf6f0;
}
.swot-cell.threats h4 { color: #b07030; }

.swot-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 0.75em;
  color: #999;
  text-align: center;
}

/* Feedback Loop SVG */
.feedback-loop {
  text-align: center;
  margin: 30px 0;
}

.feedback-loop svg {
  max-width: 460px;
  width: 100%;
  height: auto;
}

/* --- Image Placeholders --- */
.image-placeholder {
  background: #eee;
  border: 2px dashed #ccc;
  border-radius: 6px;
  padding: 30px 24px;
  margin: 30px 0;
  text-align: center;
  color: #888;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 0.85em;
  line-height: 1.5;
}

/* --- Section Dividers --- */
hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 50px 0;
}

/* --- Chapter Divider (stronger) --- */
.chapter-break {
  border: none;
  border-top: 2px solid #ccc;
  margin: 60px 0 -10px 0;
}

/* ============================================
   PRINT / PDF STYLES
   Cmd+P → Save as PDF
   ============================================ */
@media print {
  body {
    background: white;
    font-size: 11pt;
    color: #000;
  }

  .guide {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .cover {
    page-break-after: always;
    padding: 200px 40px 100px;
    border-bottom: none;
  }

  h2 {
    page-break-before: always;
    padding-top: 20px;
  }

  /* Don't break inside exercises or examples */
  .exercise, .example, .callout, .good-bad {
    page-break-inside: avoid;
  }

  /* Don't leave orphan headings */
  h3 {
    page-break-after: avoid;
  }

  .image-placeholder {
    page-break-inside: avoid;
  }

  hr, .chapter-break {
    border-top-color: #ccc;
  }
}

/* ============================================
   MOBILE STYLES
   iPhone 12+ (390px) and similar devices
   ============================================ */
@media (max-width: 480px) { /* was 480px */
  body {
  xxxcolor: green;
    font-size: 1.2rem;  /*  smaller than desktop (1.1rem × 0.9) */
  line-height: 1.6;
  }
  
  /* --- Chapter Titles (h2) --- */
h2 {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 1.2em;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.4;
  letter-spacing: -0.3px;
}

.h2-small {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: 1.2em;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 40px;
  margin-bottom: 10px;
  line-height: 2.4;
  letter-spacing: -0.3px;
}

.chapter-subtitle {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-style: italic;
  line-height: 1.4em;
  font-size: 1em;
  font-weight: bold;
  color: #666;
  margin-bottom: 28px;
}

/* --- Section Headings (h3) --- */
h3 {
  /* font-family: 'Helvetica Neue', 'Arial', sans-serif; */
  font-size: 1.3em;
  font-weight: 700;
  color: #333;
  margin-top: 36px;
  margin-bottom: 12px;
  line-height: 1.35;
}


  .guide {
    padding: 30px 30px 40px;
  }

  .guides-header {
    padding: 14px 16px 0;
  }

  .guides-logo {
    width: 120px;
  }

  /* Keep headings at their original pixel sizes */
  .cover h1 { font-size: 36px; }            /* was 2.4em × 17 */
  .cover .subtitle { font-size: 20px; }      /* was 1.15em × 17 */
  .cover .author { font-size: 16px; }         /* was 0.95em × 17 */
  .cover .toc { font-size: 18px; font-weight: bold; max-width: 100%; }  /* was 1.06em × 17 */
  h2 { font-size: 30px; }                     /* was 1.75em × 17 */
  .chapter-subtitle { font-size: 20px; }      /* was 1.2em × 17 */
  h3 { font-size: 22px; }                     /* was 1.2em × 17 */

  /* Keep component font sizes at original scale */
  .exercise { font-size: 16px; padding: 18px 16px; }
  .example { font-size: .95em; padding: 16px; }
  .callout { font-size: 16px; padding: 14px 16px; }
  .chapter-tldr { font-size: 16px; padding: 16px; }
  .good-bad .label { font-size: 14px; }
  .diagram-title { font-size: 15px; }
  .image-placeholder { font-size: 14px; }

  /* Cover */
  .cover {
    padding: 50px 8px 40px;
  }

.exercise .blank {
  display: inline-block;
  border-bottom: 1px solid #999;
  min-width: 300px;
  margin-left: 4px;
}


  /* Grid labels and small text — keep at original sizes */
  .vs-col h4 { font-size: 14px; }
  .vs-col ul li { font-size: 16px; }
  .swot-cell h4 { font-size: 14px; }
  .swot-cell ul li { font-size: 15px; }
  .swot-labels { font-size: 13px; }
  .matrix-table { font-size: 16px; }
  .matrix-table th { font-size: 14px; }
  .chapter-tldr .tldr-label { font-size: 1rem; }
  .chapter-tldr li { font-size: 1.1rem; }

  /* Grids — stack on mobile */
  .vs-grid {
    grid-template-columns: 1fr;
  }

  .swot-grid {
    grid-template-columns: 1fr;
  }

  .swot-cell.strengths,
  .swot-cell.opportunities {
    border-right: none;
  }

  .swot-cell.strengths,
  .swot-cell.weaknesses {
    border-bottom: 1px solid #ccc;
  }

  .swot-labels {
    grid-template-columns: 1fr;
  }

  /* Table — allow horizontal scroll */
  .matrix-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================
   GUIDE NAVIGATION BAR
   Links between full guide and summary guide
   ============================================ */

.guide-nav-bar {
  background-color: #fffbea;
  border: 1px solid #f4e5a3;
  padding: 10px 20px;
  margin: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 4px;
}

.guide-nav-label {
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #666;
}

.guide-nav-link {
  font-size: 14px;
}

.guide-nav-link a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.guide-nav-link a:hover {
  text-decoration: underline;
}
