/* Simple illustrations and directly labelled charts for first-time readers. */
.hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, 1fr);
}
.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}
.quick-chart {
  --blue: #2465ad;
  --teal: #17847a;
  --coral: #ce593e;
  --chart-ink: #243347;
  margin: 0;
  padding: 26px;
  background: #edf5ff;
  border-radius: 18px;
  color: var(--chart-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
.chart-income {
  background: #eaf7ef;
}
.chart-indicators {
  background: #fff2e1;
}
.chart-story {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.chart-story img {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}
.chart-story p {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  margin: 8px 0 0;
}
.chart-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
}
.price-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.price-columns > div {
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.chart-number {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  white-space: nowrap;
}
.price-bar {
  display: block;
  border-radius: 6px 6px 0 0;
  margin-top: 12px;
}
.price-before {
  height: 100px;
  background: var(--blue);
}
.price-next {
  height: 110px;
  background: var(--teal);
}
.price-later {
  height: 113.3px;
  background: var(--coral);
}
.chart-label {
  font-size: 13px;
  font-weight: 400;
}
.price-columns .chart-label {
  padding-top: 10px;
  height: 64px;
}
.chart-message {
  border-top: 1px solid #c9d9e8;
  padding-top: 17px;
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 600;
}
.quick-chart figcaption {
  margin-top: 16px;
  color: #526173;
  font-size: 12px;
  line-height: 1.6;
}
.budget-row + .budget-row {
  margin-top: 20px;
}
.budget-row .chart-label,
.bakery-panels .chart-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 7px;
}
.chart-label strong {
  font-size: 18px;
  white-space: nowrap;
}
.bar-track {
  height: 17px;
  background: #fff;
  border-radius: 5px;
}
.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.budget-pay {
  width: 100%;
  background: var(--blue);
}
.budget-cost {
  width: 60%;
  background: var(--coral);
}
.budget-left {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 24px 0 0;
  padding: 17px;
  background: #fff;
  border-left: 5px solid #168457;
  border-radius: 8px;
}
.budget-left strong {
  font-size: 25px;
  color: #146944;
  white-space: nowrap;
}
.budget-left span {
  font-size: 13px;
}
.bakery-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.bakery-panels .panel-heading {
  font-size: 15px;
  margin: 0 0 12px;
  font-weight: 600;
}
.bakery-panels .bar-track {
  margin-bottom: 12px;
}
.loaves-before {
  width: 95.2381%;
  background: var(--blue);
}
.loaves-after {
  width: 100%;
  background: var(--teal);
}
.loaf-price-before {
  width: 83.3333%;
  background: var(--blue);
}
.loaf-price-after {
  width: 100%;
  background: var(--coral);
}
.panel-result {
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.quick-chart.compact {
  padding: 21px;
  border-radius: 12px;
}
.compact .chart-story {
  gap: 12px;
  margin-bottom: 22px;
}
.compact .chart-story img {
  width: 56px;
  height: 56px;
}
.compact .chart-story p {
  font-size: 15px;
}
.compact .chart-kicker {
  font-size: 9px;
  letter-spacing: 0.8px;
}
.compact .chart-number {
  font-size: 24px;
}
.compact .price-before {
  height: 52.9568px;
}
.compact .price-next {
  height: 58.2524px;
}
.compact .price-later {
  height: 60px;
}
.compact .chart-label {
  font-size: 11px;
}
.compact .chart-label strong {
  font-size: 16px;
}
.compact .chart-message {
  font-size: 13px;
  margin-top: 15px;
}
.compact figcaption {
  font-size: 11px;
}
.compact .budget-left {
  flex-wrap: wrap;
  gap: 5px;
  padding: 12px;
  margin-top: 17px;
}
.compact .budget-left strong {
  font-size: 21px;
}
.compact .budget-left span {
  font-size: 12px;
}
.compact .bakery-panels {
  gap: 15px;
}
.compact .bakery-panels .panel-heading {
  font-size: 12px;
}
.compact .panel-result {
  font-size: 11px;
}
.hero-example {
  background: #edf5ff;
  border-color: #c9d9e8;
  border-radius: 18px;
}
.hero-example .example-bottom {
  border-color: #c9d9e8;
}
.hero .quick-chart {
  padding-top: 28px;
}
.hero .chart-story img {
  width: 64px;
  height: 64px;
}
.hero .chart-story p {
  font-size: 18px;
}
.hero .chart-number {
  font-size: 28px;
}
.hero .example-top {
  font-size: 10px;
}
.article-body {
  font-family: Arial, Helvetica, sans-serif;
}
.article-summary {
  border: none;
  padding: 0;
}
.article-summary > p:not(.eyebrow) {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 23px;
}
.article-body > h2 {
  margin-top: 34px;
}
.article-body > p {
  margin: 17px 0;
}
.remember-box {
  padding: 20px 23px;
  margin: 28px 0;
  border-left: 5px solid #2465ad;
  background: #edf5ff;
  border-radius: 0 10px 10px 0;
  font-size: 17px;
}
.remember-box > strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #18508c;
}
.remember-box p {
  margin: 6px 0 0;
}
.outcome-list {
  padding-left: 24px;
}
.article-body li {
  padding-left: 4px;
}
.math-details {
  border: 1px solid #c9d2db;
  border-radius: 12px;
  padding: 15px 19px;
  margin: 30px 0;
  font-size: 15px;
}
.math-details summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
summary:focus-visible {
  outline: 3px solid #2465ad;
  outline-offset: 5px;
}
.math-details[open] summary {
  margin-bottom: 18px;
}
.math-formula {
  padding: 16px;
  background: #f2f5f8;
  border-radius: 8px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.source-note {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 14px;
}
.example-note {
  font-size: 13px;
  color: var(--muted);
}
.contents-toggle summary {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.contents-toggle[open] summary {
  margin-bottom: 10px;
}
@media (max-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compact .chart-number {
    font-size: 20px;
  }
  .compact .bakery-panels {
    grid-template-columns: 1fr;
    gap: 19px;
  }
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-example {
    width: 100%;
    max-width: 580px;
  }
}
@media (max-width: 700px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .quick-chart {
    padding: 19px;
  }
  .chart-story {
    gap: 14px;
    margin-bottom: 22px;
  }
  .chart-story img {
    width: 70px;
    height: 70px;
  }
  .chart-story p {
    font-size: 18px;
  }
  .chart-kicker {
    font-size: 9px;
    letter-spacing: 0.9px;
  }
  .chart-number,
  .hero .chart-number {
    font-size: clamp(18px, 5.5vw, 23px);
    letter-spacing: -0.5px;
  }
  .price-columns {
    gap: 10px;
  }
  .chart-label {
    font-size: 12px;
  }
  .chart-message {
    font-size: 15px;
  }
  .budget-left {
    display: block;
  }
  .budget-left strong,
  .budget-left span {
    display: block;
  }
  .budget-left span {
    margin-top: 4px;
  }
  .bakery-panels {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .quick-chart.compact {
    padding: 19px;
  }
  .compact .chart-number {
    font-size: clamp(18px, 5.5vw, 23px);
  }
  .compact .chart-label {
    font-size: 12px;
  }
  .compact figcaption {
    font-size: 12px;
  }
  .compact .bakery-panels .panel-heading {
    font-size: 15px;
  }
  .compact .panel-result {
    font-size: 13px;
  }
  .compact .chart-story p {
    font-size: 17px;
  }
  .article-summary {
    padding: 0;
  }
  .article-head h1 {
    font-size: 36px;
  }
  .article-body {
    font-size: 17px;
    padding-top: 18px;
  }
  .article-aside {
    padding-top: 16px;
  }
  .remember-box {
    padding: 16px 18px;
  }
}
