/* ------------------------------------------------------------------
   UNDERSTANDING AI — Project 3 · Togeva & LTC Summer School 2026
   TOGEVA purple #750065 / deep #420039 · amber #FCA311
   LTC green #1D553A · dark #140A18 · text #1A1716 · muted #3A3946
------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1a1716;
  background: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #750065;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding-top: 96px;
}

.eyebrow {
  color: #fd8301;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.eyebrow-purple {
  color: #750065;
}

h2 {
  font-size: 38px;
  line-height: 1.2;
  margin: 8px 0 20px;
  max-width: 22ch;
}

.intro {
  color: #3a3946;
  max-width: 66ch;
  margin-bottom: 30px;
}

p + p {
  margin-top: 14px;
}

.muted {
  color: #3a3946;
}

.small {
  font-size: 13px;
}

.mono {
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffff;
  border-bottom: 1px solid #dfe0e6;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1a1716;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #420039;
  color: #fca311;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.6px;
}

.brand-sub {
  font-size: 12px;
  color: #3a3946;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-weight: 500;
  color: #3a3946;
  font-size: 15px;
}

.nav a:hover {
  color: #750065;
}

.btn {
  background: #750065;
  color: #ffffff;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  display: inline-block;
}

.nav .btn,
.nav .btn:hover {
  color: #ffffff;
}

.btn-cream,
.btn-white {
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  color: #750065;
  display: inline-block;
}

.btn-cream {
  background: #f7f0e9;
}

.btn-white {
  background: #ffffff;
}

/* ---------- hero ---------- */

.hero {
  background: #140a18;
  color: #ffffff;
  padding: 66px 0 72px;
}

.hero-row {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.hero-main,
.hero-side {
  flex: 1;
}

.tag-amber {
  display: inline-block;
  color: #fca311;
  background: rgba(252, 163, 17, 0.14);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.9px;
}

.hero h1 {
  font-size: 78px;
  line-height: 0.98;
  letter-spacing: 1px;
  margin: 26px 0 24px;
}

.hero .lead {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
  max-width: 30ch;
  margin-bottom: 24px;
}

.quote {
  border-left: 3px solid #fca311;
  padding-left: 18px;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.74);
}

.button-row {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-figure {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.hero-figure figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 24px 26px 26px;
  background: rgba(255, 255, 255, 0.03);
}

.pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pills li {
  background: #ffffff;
  color: #1a1716;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
}

.panel hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin: 20px 0 16px;
}

.panel-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.stats {
  display: flex;
  gap: 34px;
  margin-top: 18px;
}

.stats .stat-num {
  font-size: 26px;
  font-weight: 600;
  color: #fca311;
  line-height: 1.1;
}

.stats p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.66);
}

/* ---------- generic layout blocks ---------- */

.two-col {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.two-col > * {
  flex: 1;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.photo {
  width: 100%;
  border-radius: 4px;
  margin-top: 22px;
}

.stack .photo {
  margin-top: 0;
}

.row-2,
.row-3,
.row-4,
.row-5 {
  display: flex;
  flex-wrap: wrap; /* the cards drop onto a new line when the row is full */
  gap: 18px;
}

.row-2 > * {
  width: calc(50% - 9px);
}
.row-3 > * {
  width: calc(33.333% - 12px);
}
.row-4 > * {
  width: calc(25% - 13.5px);
}
.row-5 {
  margin-top: 34px;
}
.row-5 > * {
  width: calc(20% - 14.4px);
}

.icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f7e9fb;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card {
  background: #f5f6f8;
  border-radius: 8px;
  padding: 20px 22px 24px;
}

.card .label {
  color: #750065;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin: 14px 0 6px;
}

.card p:last-child {
  font-size: 14px;
  color: #3a3946;
}

.tile {
  border: 1px solid #dfe0e6;
  border-radius: 8px;
  padding: 20px 22px 24px;
}

.tile h3 {
  font-size: 18px;
  margin: 14px 0 8px;
}

.tile p {
  font-size: 14px;
  color: #3a3946;
}

/* ---------- image quote bands ---------- */

.image-quote {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin: 4px 0 26px;
}

.image-quote img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

/* a dark scrim on the left so the caption stays readable */
.image-quote::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20, 10, 24, 0.62),
    rgba(20, 10, 24, 0.28) 46%,
    rgba(20, 10, 24, 0) 72%
  );
}

.image-quote figcaption {
  position: absolute;
  z-index: 1;
  left: 32px;
  bottom: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.cap-eyebrow {
  display: block;
  color: #fca311;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-shadow: none;
}

.quote-pink {
  background: #fdeaf7;
  border-radius: 8px;
  padding: 34px 40px;
  color: #420039;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 30px;
}

.quote-pink-block {
  font-size: 22px;
  padding: 26px 30px;
  margin-top: 0;
}

/* ---------- 03 timeline ---------- */

.timeline {
  margin-top: 6px;
}

.tl-row {
  display: flex;
  gap: 22px;
}

.tl-era {
  width: 96px;
  flex-shrink: 0;
  text-align: right;
  font-size: 19px;
  font-weight: 600;
  color: #750065;
  line-height: 1.2;
  padding-top: 2px;
}

.tl-rail {
  width: 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fca311;
  margin-top: 12px;
  flex-shrink: 0;
}

.tl-line {
  width: 1px;
  flex: 1;
  background: #dfe0e6;
}

.tl-body {
  flex: 1;
  padding-bottom: 26px;
  max-width: 68ch;
}

.tl-body h3 {
  font-size: 19px;
}

.tl-body p {
  font-size: 14px;
  color: #3a3946;
  margin-top: 4px;
}

.deep-band {
  background: #420039;
  color: #ffffff;
  border-radius: 8px;
  padding: 34px 40px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 18px;
}

/* ---------- 04 training ---------- */

.pipeline {
  background: #f5f6f8;
  border-radius: 8px;
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pipe-box {
  background: #ffffff;
  border: 1px solid #dfe0e6;
  border-radius: 6px;
  padding: 13px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.pipe-box strong {
  color: #750065;
  font-size: 15px;
  letter-spacing: 0.6px;
}

.pipe-box span {
  font-size: 13px;
  color: #3a3946;
}

.step-card {
  border: 1px solid #dfe0e6;
  border-radius: 8px;
  padding: 20px 20px 24px;
}

.step-card .num {
  color: #fd8301;
  font-size: 22px;
  font-weight: 600;
}

.step-card h3 {
  font-size: 16px;
  margin: 4px 0 8px;
}

.step-card p {
  font-size: 13px;
  color: #3a3946;
}

/* ---------- 05 worked example ---------- */

.grey-panel {
  background: #f5f6f8;
  border-radius: 8px;
  padding: 40px 44px;
}

.grey-panel h2 {
  font-size: 32px;
}

.grey-panel p {
  color: #3a3946;
}

.mono-list {
  list-style: none;
  font-family: "Courier New", monospace;
  font-size: 14px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quote-light {
  margin-top: 18px;
  border-left: 3px solid #fca311;
  color: #3a3946;
  font-size: 14px;
}

.predict {
  background: #140a18;
  border-radius: 8px;
  padding: 34px 30px 36px;
  text-align: center;
  color: #ffffff;
}

.predict-head {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.predict .predict-answer {
  color: #fca311;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.2;
  margin: 10px 0 6px;
}

.predict-conf {
  color: #ffffff !important;
  font-size: 15px;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  margin: 16px 0 18px;
  overflow: hidden;
}

.bar span {
  display: block;
  width: 94%;
  height: 100%;
  background: #fca311;
  border-radius: 999px;
}

.predict-note {
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 06 language ---------- */

.mono-card {
  background: #f5f6f8;
  border-radius: 8px;
  padding: 22px 26px;
  margin-top: 22px;
}

.mono-card .mono {
  font-size: 16px;
}

.blank {
  border-bottom: 2px solid #fca311;
}

.mono-note {
  font-size: 13px;
  color: #3a3946;
  margin-top: 10px;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.chips li {
  border: 1px solid #750065;
  color: #750065;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 999px;
}

.chips-caps li {
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 8px 18px;
}

/* ---------- 08 why ---------- */

.reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: flex-start;
}

.reasons .card {
  width: calc(50% - 8px);
  align-self: flex-start;
}

.reasons .card .label {
  margin-top: 0;
}

.statement {
  border: 1px solid #dfe0e6;
  border-radius: 8px;
  padding: 42px 44px 40px;
  margin-top: 40px;
}

.statement p {
  font-size: 27px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.statement .purple {
  color: #750065;
}

.statement .statement-body {
  font-size: 15px;
  font-weight: 400;
  color: #3a3946;
  margin-top: 18px;
}

.arrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.pill-pink,
.pill-amber {
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.pill-pink {
  background: #fdeaf7;
  color: #750065;
}

.pill-amber {
  background: #fca311;
  color: #420039;
}

.arrow {
  color: #fd8301;
  font-size: 20px;
}

/* ---------- 09 tips ---------- */

.tips {
  gap: 16px;
}

.tip {
  background: #f5f6f8;
  border-radius: 8px;
  padding: 20px 22px 22px;
}

.tip-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tip-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #750065;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tip h3 {
  font-size: 17px;
}

.prompt-box {
  background: #ffffff;
  border-left: 3px solid #fca311;
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  margin-top: 14px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 10/11/14 pairs ---------- */

.pair {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 4px;
}

.pair > * {
  flex: 1;
}

.prompt-weak,
.grey-card {
  background: #f5f6f8;
  border-radius: 8px;
  padding: 24px 26px 28px;
}

.prompt-good {
  background: #fff6fc;
  border: 1px solid #750065;
  border-radius: 8px;
  padding: 24px 26px 28px;
}

.label {
  color: #750065;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.label-grey {
  color: #3a3946;
}

.label-good {
  color: #1d553a;
}

.label-bad {
  color: #b3261e;
}

.mono-faded {
  color: #9a99a3;
  font-size: 16px;
}

.prompt-good .mono {
  font-size: 15px;
}

.bullets,
.list-faded,
.list-good {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  color: #3a3946;
}

.list-faded {
  color: #9a99a3;
}

.list-good {
  color: #1a1716;
}

.list-good .highlight,
.prompt-good .bullets li {
  color: #750065;
}

.prompt-good .bullets li {
  color: #1a1716;
}

.formula {
  background: #140a18;
  color: #ffffff;
  border-radius: 8px;
  padding: 36px 40px;
  margin-top: 26px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.formula-left,
.formula-right {
  flex: 1;
}

.formula h3 {
  font-size: 24px;
  margin-bottom: 18px;
}

.f-line {
  color: #fca311;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin: 0;
}

.f-plus {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin: 2px 0;
}

.formula-right {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 22px 24px;
}

.formula-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 12px;
}

.formula .mono {
  margin-top: 2px;
}

.formula .mono em {
  color: #fca311;
  font-style: normal;
}

.shout {
  background: #fca311;
  color: #420039;
  border-radius: 8px;
  padding: 34px 40px;
  margin-top: 26px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.grey-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.grey-card p {
  font-size: 14px;
  color: #3a3946;
}

.grey-card hr {
  border: none;
  border-top: 1px solid #dfe0e6;
  margin: 24px 0 20px;
}

.pills-outline {
  margin: 16px 0 18px;
}

.pills-outline li {
  background: #ffffff;
  border: 1px solid #dfe0e6;
  color: #750065;
  letter-spacing: 0.8px;
}

.pills-white {
  margin: 14px 0 4px;
}

.pills-white li {
  background: #ffffff;
  border: 1px solid #dfe0e6;
  color: #1a1716;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0;
}

.use-cols {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.use-cols > div {
  flex: 1;
}

.purple-line {
  color: #750065 !important;
  font-size: 17px !important;
  font-weight: 600;
  margin-top: 18px;
}

/* ---------- 12 demos ---------- */

.demo {
  border: 1px solid #dfe0e6;
  border-radius: 8px;
  padding: 16px 20px 18px;
}

.demo h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

.demo .mono {
  font-size: 13px;
  color: #3a3946;
}

/* ---------- 13 dark band ---------- */

.dark-band {
  background: #140a18;
  color: #ffffff;
  margin-top: 96px;
  padding: 90px 0 96px;
}

.dark-h2 {
  color: #ffffff;
  max-width: 26ch;
}

.dark-intro {
  color: rgba(255, 255, 255, 0.7);
  max-width: 62ch;
  margin-bottom: 30px;
}

.dark-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 20px 22px 24px;
}

.dark-card h3 {
  color: #fca311;
  font-size: 18px;
  margin-bottom: 8px;
}

.dark-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.74);
}

.image-quote-dark {
  margin-top: 30px;
}

.image-quote-dark img {
  height: 270px;
}

.africa {
  display: flex;
  gap: 48px;
  margin-top: 34px;
  align-items: flex-start;
}

.africa-text {
  flex: 1;
}

.africa h3 {
  font-size: 30px;
  line-height: 1.2;
  max-width: 16ch;
  margin-bottom: 14px;
}

.africa-text p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  margin-bottom: 18px;
}

.africa-grid {
  flex: 1.35;
  display: flex;
  flex-wrap: wrap;
  gap: 26px 40px;
}

.africa-grid > div {
  width: calc(50% - 20px);
}

.africa-grid h4 {
  color: #fca311;
  font-size: 16px;
  margin-bottom: 4px;
}

.africa-grid p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- 14 combo ---------- */

.combo-card {
  border: 1px solid #dfe0e6;
  border-radius: 8px;
  padding: 34px 38px 36px;
  margin-top: 30px;
}

.combo-card h3 {
  font-size: 27px;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.combo-card p {
  color: #3a3946;
}

/* ---------- try this week ---------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-meta {
  font-size: 14px;
  color: #3a3946;
  max-width: 32ch;
}

.day-card {
  background: #f5f6f8;
  border-radius: 8px;
  padding: 20px 20px 24px;
}

.day-label {
  color: #fd8301;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.day-card p:last-child {
  font-size: 14px;
  color: #3a3946;
}

.wide-photo {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 44px;
}

.takeaway {
  background: #420039;
  color: #ffffff;
  border-radius: 8px;
  padding: 56px 48px 52px;
  margin-top: 18px;
}

.takeaway h2 {
  color: #ffffff;
  font-size: 40px;
  line-height: 1.2;
  max-width: 20ch;
  margin-bottom: 22px;
}

.takeaway p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 62ch;
  margin-bottom: 28px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid #dfe0e6;
  margin-top: 96px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 28px 40px;
  font-size: 15px;
  color: #3a3946;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-divider {
  width: 1px;
  height: 38px;
  background: #dfe0e6;
}

.footer-lines {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.togeva-logo {
  height: 32px;
  width: auto;
}

.ltc-logo {
  height: 34px;
  width: auto;
}

/* ---------- smaller screens ---------- */

@media (max-width: 1000px) {
  .header-row,
  .footer-row {
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap;
    gap: 14px;
  }

  .nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 52px;
  }

  h2,
  .dark-h2 {
    font-size: 29px;
  }

  .hero-row,
  .two-col,
  .africa,
  .formula,
  .grey-panel,
  .section-head {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .section-head {
    align-items: flex-start;
  }

  .row-3 > *,
  .row-4 > *,
  .row-5 > * {
    width: calc(50% - 9px);
  }

  .quote-pink,
  .shout,
  .deep-band {
    font-size: 22px;
    padding: 26px 28px;
  }

  .takeaway h2 {
    font-size: 30px;
  }

  .image-quote figcaption {
    font-size: 19px;
    left: 22px;
  }

  .build-notes {
    right: 12px;
    bottom: 12px;
  }

  .build-notes-panel {
    width: min(340px, calc(100vw - 40px));
  }
}

@media (max-width: 640px) {
  .row-2 > *,
  .row-3 > *,
  .row-4 > *,
  .row-5 > *,
  .reasons .card,
  .africa-grid > div {
    width: 100%;
  }

  .pair,
  .use-cols,
  .tl-row {
    flex-direction: column;
  }

  .tl-era {
    text-align: left;
  }

  .tl-rail {
    display: none;
  }

  .stats {
    flex-wrap: wrap;
    gap: 20px;
  }
}
