@charset "UTF-8";

.textbook-article {
  --textbook-accent: #ff9f1c;
  --textbook-accent-soft: #fff3df;
  --textbook-ink: #213548;
  --textbook-ink-soft: #53667a;
  --textbook-paper: #ffffff;
  --textbook-paper-deep: #f8f1e6;
  --textbook-border: #eadfcf;
  --textbook-shadow: 0 24px 55px rgba(24, 43, 61, 0.08);
  --textbook-note: #f5f9fc;
  --textbook-warning: #fff1eb;
  --textbook-success: #eef8f1;
  position: relative;
  padding: 28px 22px 34px;
  border: 1px solid var(--textbook-border);
  border-radius: 26px;
  background: var(--textbook-paper);
  box-shadow: var(--textbook-shadow);
  color: var(--textbook-ink);
  font-family: Georgia, "Times New Roman", serif;
  overflow: hidden;
}

.box.box-single-post.textbook-article {
  padding: 45px 25px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  overflow: visible;
}

.box.box-single-post.textbook-article::before {
  content: none;
}

@media (min-width: 576px) {
  .box.box-single-post.textbook-article {
    padding: 45px 30px;
  }
}

@media (min-width: 768px) {
  .box.box-single-post.textbook-article {
    padding: 60px 50px;
  }
}

@media (min-width: 1200px) {
  .box.box-single-post.textbook-article {
    padding: 45px 60px 50px;
  }
}

.textbook-article::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(234, 223, 207, 0.55);
  border-radius: 20px;
  pointer-events: none;
}

.textbook-article > * {
  position: relative;
  z-index: 1;
}

.textbook-article p,
.textbook-article li,
.textbook-article td,
.textbook-article th,
.textbook-article figcaption {
  font-size: 1.04rem;
  line-height: 1.8;
  color: #314456;
}

.textbook-article strong {
  color: var(--textbook-ink);
}

.textbook-article a {
  color: #1d567d;
  text-decoration-color: rgba(29, 86, 125, 0.35);
  text-underline-offset: 0.22rem;
}

.textbook-article a:hover {
  color: #0f3b59;
}

.textbook-hero {
  margin-bottom: 2rem;
}

.lesson-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 159, 28, 0.14);
  color: #875319;
  font: 700 0.8rem/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.textbook-title {
  margin: 0 0 1rem;
  color: var(--textbook-ink);
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 2rem;
  line-height: 1.2;
}

.textbook-lead {
  margin-bottom: 0;
  color: var(--textbook-ink-soft);
  font-size: 1.16rem;
  line-height: 1.85;
}

.textbook-justify {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.lesson-note,
.lesson-callout,
.study-point,
.lesson-table-card {
  border: 1px solid var(--textbook-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(21, 42, 60, 0.06);
}

.lesson-note {
  height: 100%;
  padding: 1.4rem 1.35rem;
  background: linear-gradient(180deg, #fff9ee 0%, #ffffff 100%);
}

.lesson-note h3,
.lesson-callout h4,
.study-point h4 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
  color: var(--textbook-ink);
  font: 700 1.04rem/1.4 Arial, Helvetica, sans-serif;
}

.lesson-checklist,
.lesson-bullet-list,
.lesson-outline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lesson-checklist li,
.lesson-bullet-list li {
  position: relative;
  padding-left: 1.9rem;
}

.lesson-checklist li + li,
.lesson-bullet-list li + li {
  margin-top: 0.8rem;
}

.lesson-checklist i,
.lesson-bullet-list i {
  position: absolute;
  left: 0;
  top: 0.45rem;
  color: var(--textbook-accent);
}

.lesson-outline {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--textbook-border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 241, 230, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.lesson-outline h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--textbook-ink);
  font: 700 1.2rem/1.4 Arial, Helvetica, sans-serif;
}

.lesson-outline-list li + li {
  margin-top: 0.9rem;
}

.lesson-outline-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--textbook-ink);
  text-decoration: none;
}

.lesson-outline-list a:hover {
  color: #0f3b59;
}

.outline-number {
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--textbook-accent);
  color: #ffffff;
  font: 700 0.9rem/1.8rem Arial, Helvetica, sans-serif;
  text-align: center;
}

.lesson-callout {
  padding: 1.2rem 1.25rem;
}

.lesson-callout p:last-child,
.study-point p:last-child,
.lesson-note p:last-child {
  margin-bottom: 0;
}

.lesson-callout-primary {
  background: linear-gradient(180deg, var(--textbook-accent-soft) 0%, #ffffff 100%);
  border-left: 4px solid var(--textbook-accent);
}

.lesson-callout-muted {
  background: linear-gradient(180deg, var(--textbook-note) 0%, #ffffff 100%);
  border-left: 4px solid #6b89a5;
}

.lesson-callout-warning {
  background: linear-gradient(180deg, var(--textbook-warning) 0%, #ffffff 100%);
  border-left: 4px solid #d4633d;
}

.lesson-callout-success {
  background: linear-gradient(180deg, var(--textbook-success) 0%, #ffffff 100%);
  border-left: 4px solid #4f8c67;
}

.lesson-figure {
  margin: 0 0 2.2rem;
}

.lesson-figure img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(21, 42, 60, 0.12);
}

.lesson-figure figcaption {
  margin-top: 0.9rem;
  color: #6d6d6d;
  font-style: italic;
  text-align: center;
}

.lesson-section {
  padding-top: 2.35rem;
  border-top: 1px solid rgba(234, 223, 207, 0.95);
}

.lesson-section + .lesson-section {
  margin-top: 2.35rem;
}

.lesson-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.lesson-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #1b3858 0%, #3f6285 100%);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(27, 56, 88, 0.22);
  font-size: 1.18rem;
}

.lesson-kicker {
  margin-bottom: 0.35rem;
  color: #8f6a2c;
  font: 700 0.8rem/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lesson-section h2 {
  margin-bottom: 0;
  color: var(--textbook-ink);
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.25;
}

.lesson-section h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.7rem 0 1rem;
  color: var(--textbook-ink);
  font: 700 1.18rem/1.4 Arial, Helvetica, sans-serif;
}

.study-point {
  height: 100%;
  padding: 1.2rem 1.2rem 1.1rem;
}

.study-point + .study-point {
  margin-top: 1rem;
}

.risk-note {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #d7c7b4;
  color: #8b4c33;
}

.lesson-step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lesson-steps;
}

.lesson-step-list li {
  position: relative;
  margin-bottom: 1rem;
  padding: 1.05rem 1.15rem 1.05rem 4.4rem;
  border: 1px solid var(--textbook-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(21, 42, 60, 0.05);
  counter-increment: lesson-steps;
}

.lesson-step-list li::before {
  content: counter(lesson-steps);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--textbook-accent) 0%, #ffbf5f 100%);
  color: #ffffff;
  font: 700 1rem/2.4rem Arial, Helvetica, sans-serif;
  text-align: center;
}

.lesson-table-card {
  overflow: hidden;
}

.lesson-table-card .table {
  margin-bottom: 0;
}

.textbook-article .table thead th {
  border-top: 0;
  border-bottom: 1px solid #ddcfbb;
  background: linear-gradient(180deg, #f3e5ce 0%, #fbf6ee 100%);
  color: var(--textbook-ink);
  font: 700 0.86rem/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.textbook-article .table td,
.textbook-article .table th {
  padding: 1rem;
  border-color: var(--textbook-border);
}

.textbook-article .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 244, 225, 0.45);
}

.comparison-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(27, 56, 88, 0.08);
  color: var(--textbook-ink);
  font: 700 0.8rem/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lesson-disclaimer {
  margin-top: 2.2rem;
}

@media (min-width: 768px) {
  .textbook-article {
    padding: 38px 38px 44px;
  }

  .textbook-title {
    font-size: 2.45rem;
  }

  .lesson-outline {
    padding: 1.8rem 1.9rem;
  }
}

@media (max-width: 767.98px) {
  .textbook-article::before {
    inset: 12px;
  }

  .lesson-section-heading {
    gap: 0.8rem;
  }

  .lesson-icon {
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 16px;
    font-size: 1rem;
  }

  .lesson-step-list li {
    padding-left: 4rem;
  }
}
