/* i4Nations-only styles (site.css is shared with i4Gambia and must stay identical). */
.flag { background: linear-gradient(90deg, var(--red), #e0a100, var(--green), #1aa3c4, var(--blue)); }

/* The path: i4Nations → i4Gambia → I See You All */
.path { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; counter-reset: p; }
.path > a { position: relative; display: block; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; box-shadow: var(--shadow); counter-increment: p; }
.path > a::before { content: counter(p); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.path > a:nth-child(2)::before { background: var(--green); } .path > a:nth-child(3)::before { background: var(--red); }
.path > a:hover { border-color: var(--blue); }
.path > a:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--muted); z-index: 1; }
.path h3 { margin: 0 0 .25em; } .path p { margin: 0; color: var(--muted); font-size: .95rem; }
.path .go { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--blue); }
@media (max-width: 640px) {
  .hero .btn { min-height: 48px; padding: 12px 18px; }
  .hero p:has(.btn) { position: sticky; bottom: 12px; z-index: 100; background: color-mix(in srgb, var(--paper) 95%, transparent); padding: 8px; border-radius: 12px; }
}

/* The ladder on the home page */
.ladder { display: grid; gap: 3px; }
.rung { display: grid; grid-template-columns: 34px minmax(0, 150px) minmax(0, 1fr) 48px; gap: 8px; align-items: center; font-size: .86rem; padding: 2px 4px; border-radius: 6px; cursor: pointer; border: 0; background: none; color: inherit; font: inherit; text-align: left; width: 100%; }
.rung:hover, .rung[aria-pressed="true"] { background: var(--sand); }
.rung .b { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.rung .b i { display: block; height: 100%; background: var(--muted); }
.rung.gm .b i { background: var(--red); } .rung.ht .b i { background: var(--blue); }
.rung .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.two-col { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.detail { position: sticky; top: 76px; }
.chapter .st { float: right; }

/* Cards that are links (The Gambia's pages, I See You All's pages) */
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--blue); }
a.card .go { display: block; margin-top: 8px; font-weight: 600; color: var(--blue); }
.card.isy { border-top: 4px solid var(--red); background: color-mix(in srgb, var(--sun) 35%, var(--card)); }

/* Tables (levers, impact per dollar) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table.plain { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .93rem; }
table.plain th, table.plain td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.plain th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--sand); }
table.plain tr:last-child td { border-bottom: 0; }

/* Big numbers with their source underneath */
.figs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.fig { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.fig b { display: block; font-size: 2rem; line-height: 1.1; font-family: var(--serif, inherit); color: var(--red); }
.fig span { display: block; margin-top: 4px; }
.fig small { display: block; margin-top: 6px; color: var(--muted); font-size: .78rem; }
.formula { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; background: var(--sand); border-radius: 8px; padding: 10px 12px; overflow-x: auto; }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 6px; } .crumb a { color: inherit; }
