/*
 * Tsogolo – Kinderzentrum Malawi e. V.
 * Colours and fonts from the client brief (section 2). Flat colour only.
 * Signature shape: the leaf from the logo's tree (.ts-leaf, leaf-cut photos, list bullets).
 */

@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/ts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/ts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/ts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("../fonts/ts/source-sans-3-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/ts/source-sans-3-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("../fonts/ts/source-sans-3-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("../fonts/ts/source-sans-3-700-normal.woff2") format("woff2"); }

:root {
    --ink: #111111;
    --paper: #ffffff;
    --stone: #f5f3ef;
    --line: #e3dfd6;
    --muted: #4d4a45;
    --red: #c8102e;
    --red-dark: #a00c24;
    --green: #1b7a3a;
    --green-dark: #135a2a;
    --gold: #f2b705;
    --display: "Poppins", "Segoe UI", system-ui, sans-serif;
    --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(56px, 8vw, 104px);
    --leaf-sm: 0 70% 0 70%;
    --leaf-photo: 0 72px 0 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.125rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.ts-menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 3.1vw, 2.45rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.ts-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.ts-narrow { max-width: calc(780px + 2 * var(--gutter)); }
.ts-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.ts-skip:focus { left: 8px; }
.ts-small { font-size: .95rem; color: var(--muted); }
.ts-lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 58ch; }

/* The leaf */
.ts-leaf { display: inline-block; width: .7em; height: .7em; border-radius: var(--leaf-sm); background: currentColor; flex: none; }
.ts-leaf--big { width: 40px; height: 40px; margin-bottom: 20px; }

/* ---------- Buttons and links ---------- */
.ts-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ts-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.2;
    padding: .9em 1.5em; border-radius: 999px; border: 2px solid transparent;
    text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.ts-btn:hover { text-decoration: none; }
.ts-btn--red { background: var(--red); color: #fff; }
.ts-btn--red:hover { background: var(--red-dark); color: #fff; }
.ts-btn--green { background: var(--green); color: #fff; }
.ts-btn--green:hover { background: var(--green-dark); color: #fff; }
.ts-btn--gold { background: var(--gold); color: var(--ink); }
.ts-btn--gold:hover { background: #ffc61a; color: var(--ink); }
.ts-btn--gold:focus-visible { outline-color: #fff; }
.ts-btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.ts-btn--line:hover { background: var(--ink); color: #fff; }
.ts-btn--small { padding: .6em 1.15em; font-size: .95rem; }
.ts-btn--block { width: 100%; }
.ts-link { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--green); text-decoration: underline; text-underline-offset: 6px; }
.ts-link--back::before { content: "\2190\00a0"; }

/* ---------- Header ---------- */
.ts-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-bar .ts-header { top: 32px; }
.ts-header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.ts-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.ts-logo:hover { color: var(--ink); }
.ts-logo img { max-height: 60px; width: auto; }
.ts-logo-mark { width: 64px !important; height: auto; }
.ts-logo-words { display: flex; flex-direction: column; line-height: 1.05; }
.ts-logo-name { font-family: var(--display); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.02em; }
.ts-logo-sub { font-family: var(--display); font-weight: 500; font-size: .74rem; color: var(--red); margin-top: 3px; letter-spacing: .01em; }

.ts-nav { display: flex; align-items: center; gap: 14px; }
.ts-menu { list-style: none; display: flex; align-items: center; gap: 4px; }
.ts-menu > li { position: relative; }
.ts-menu a { display: block; padding: 10px 9px; font-family: var(--display); font-weight: 500; font-size: 1rem; white-space: nowrap; color: var(--ink); text-decoration: none; border-radius: 6px; }
.ts-menu a:hover { color: var(--green); }
.ts-menu > .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.ts-sub { list-style: none; position: absolute; left: 0; top: 100%; min-width: 250px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s; }
.ts-menu > li:hover > .ts-sub, .ts-menu > li:focus-within > .ts-sub { visibility: visible; opacity: 1; transform: none; }
.ts-sub a { font-size: 1rem; padding: 10px 12px; }
.ts-sub a:hover { background: var(--stone); color: var(--ink); }
.ts-nav-end { display: flex; align-items: center; gap: 10px; }

.ts-lang { list-style: none; display: flex; gap: 2px; font-family: var(--display); font-weight: 600; font-size: .95rem; }
.ts-lang a { display: block; padding: 6px 8px; color: var(--muted); text-decoration: none; border-radius: 6px; }
.ts-lang a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); border-radius: 0; }
.ts-lang a:hover { color: var(--green); }

.ts-menu-toggle { display: none; align-items: center; gap: 8px; background: none; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-family: var(--display); font-weight: 600; font-size: .95rem; color: var(--ink); cursor: pointer; }
.ts-menu-toggle i { font-size: 1.2rem; }

@media (max-width: 1320px) {
    .ts-menu-toggle { display: inline-flex; }
    .ts-nav { display: none; position: fixed; inset: 85px 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 24px; padding: 16px var(--gutter) 40px; overflow-y: auto; border-top: 1px solid var(--line); }
    .admin-bar .ts-nav { top: 117px; }
    .ts-nav.is-open { display: flex; }
    .ts-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .ts-menu > li { border-bottom: 1px solid var(--line); }
    .ts-menu a { padding: 14px 4px; font-size: 1.1rem; }
    .ts-menu > .has-sub > a::after { display: none; }
    .ts-sub { position: static; visibility: visible; opacity: 1; transform: none; border: 0; padding: 0 0 10px 16px; min-width: 0; }
    .ts-sub a { padding: 8px 4px; font-size: 1rem; color: var(--muted); }
    .ts-nav-end { justify-content: space-between; }
}
@media (max-width: 782px) { .admin-bar .ts-header { top: 46px; } .admin-bar .ts-nav { top: 131px; } }
@media (max-width: 600px) { .admin-bar .ts-header { top: 0; } }
@media (max-width: 420px) {
    .ts-logo-mark { width: 52px !important; }
    .ts-logo-name { font-size: 1.3rem; }
    .ts-logo-sub { font-size: .66rem; }
    .ts-menu-toggle span { display: none; }
}

/* ---------- Home: hero ---------- */
.ts-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 104px); }
.ts-hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ts-hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); line-height: 1.02; max-width: 11ch; margin-bottom: .35em; }
.ts-hero-kicker { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--green); margin-bottom: 1rem; }
.ts-hero .ts-lead { max-width: 40ch; }
.ts-hero-media { margin: 0; aspect-ratio: 4 / 5; border-radius: 0 46% 0 46% / 0 38% 0 38%; overflow: hidden; background: var(--stone); }
.ts-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.ts-hero-media.is-emblem { display: grid; place-items: center; }
.ts-hero-media.is-emblem img { width: 78%; height: auto; object-fit: contain; }

/* ---------- Home: facts strip ---------- */
.ts-facts { background: var(--green); color: #fff; padding: 36px 0; }
.ts-facts-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.ts-facts-title { color: #fff; font-size: 1.1rem; font-weight: 500; line-height: 1.4; max-width: 26ch; margin: 0; letter-spacing: 0; }
.ts-facts-list { display: flex; flex-wrap: wrap; gap: 24px clamp(32px, 6vw, 80px); margin: 0; }
.ts-facts-list div { display: flex; align-items: baseline; gap: 12px; }
.ts-facts-list dt { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.ts-facts-list dd { margin: 0; font-size: 1.1rem; max-width: 10ch; line-height: 1.25; }

/* ---------- Sections ---------- */
.ts-section { padding: var(--section) 0; }
.ts-section--stone { background: var(--stone); }
.ts-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.ts-section-head h2 { margin: 0; }
.ts-statement { font-family: var(--display); font-weight: 500; font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.32; letter-spacing: -0.015em; max-width: 34ch; margin-bottom: 1.2em; }

/* Focus areas */
.ts-focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.ts-focus h3 { font-size: 1.35rem; }
.ts-focus h3 a { color: var(--ink); text-decoration: none; }
.ts-focus h3 a:hover { text-decoration: underline; }
.ts-focus p { color: var(--muted); }
.ts-focus .ts-focus-promise { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: .5em; }
.ts-focus--green { color: var(--green); }
.ts-focus--red { color: var(--red); }
.ts-focus--gold { color: var(--gold); }
.ts-focus-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0 40px 0 40px; margin-bottom: 24px; }
.ts-focus-grid--page { margin-bottom: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }

/* Tags and status */
.ts-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ts-tag, .ts-status { display: inline-flex; align-items: center; gap: .45em; font-family: var(--display); font-weight: 600; font-size: .8rem; line-height: 1; padding: .55em .9em; border-radius: 999px; }
.ts-tag .ts-leaf { width: .75em; height: .75em; }
.ts-tag--green { background: var(--green); color: #fff; }
.ts-tag--red { background: var(--red); color: #fff; }
.ts-tag--gold { background: var(--gold); color: var(--ink); }
.ts-status { border: 1.5px solid var(--ink); color: var(--ink); background: var(--paper); }
.ts-status--ongoing::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--green); }
.ts-place { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); }

/* Photos cut as leaves */
.ts-photo { margin: 0; overflow: hidden; border-radius: var(--leaf-photo); background: var(--stone); }
.ts-photo img { width: 100%; height: 100%; object-fit: cover; }
.ts-photo.is-empty { display: grid; place-items: center; color: var(--muted); font-family: var(--display); font-weight: 500; }

/* Home: project teaser */
.ts-split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ts-split-media { aspect-ratio: 4 / 5; }
.ts-split-text h2 { margin-bottom: .3em; }
.ts-builds { list-style: none; margin: 24px 0; border-top: 1px solid var(--line); }
.ts-builds li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ts-builds li span:last-child { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ts-sponsor { display: flex; align-items: center; gap: 16px; margin: 24px 0 0; font-size: 1rem; color: var(--muted); }
.ts-sponsor img { height: 72px; width: auto; }
.ts-sponsor strong { color: var(--ink); }

/* Home: bridge */
.ts-bridge { border-top: 1px solid var(--line); }
.ts-bridge-route { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); margin-bottom: clamp(32px, 5vw, 56px); }
.ts-bridge-place { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; }
.ts-bridge-place small { display: block; font-size: .95rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 8px; }
.ts-bridge-line { flex: 1; position: relative; border-top: 3px dotted var(--green); min-width: 40px; }
.ts-bridge-line span { position: absolute; left: 50%; top: -46px; transform: translateX(-50%); white-space: nowrap; font-size: .95rem; color: var(--muted); }
.ts-bridge-line::after { content: ""; position: absolute; left: 50%; top: -11px; width: 18px; height: 18px; margin-left: -9px; border-radius: var(--leaf-sm); background: var(--green); }
.ts-bridge-text { max-width: 60ch; }

/* ---------- Cards ---------- */
.ts-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(20px, 3vw, 32px); }
.ts-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ts-card-media { display: block; aspect-ratio: 3 / 2; background: var(--stone); overflow: hidden; }
.ts-card-media img { width: 100%; height: 100%; object-fit: cover; }
.ts-card-placeholder { display: grid; place-items: center; height: 100%; }
.ts-card-placeholder img { width: 34%; height: auto; object-fit: contain; opacity: .9; }
.ts-card-body { padding: 22px 24px 26px; }
.ts-card-body h3 { font-size: 1.2rem; margin-bottom: .45em; }
.ts-card-body h3 a { color: var(--ink); text-decoration: none; }
.ts-card-body h3 a:hover { color: var(--green); text-decoration: underline; }
.ts-card-body p { color: var(--muted); font-size: 1.02rem; margin: 0; }
.ts-card--project .ts-place { margin-bottom: .5em; font-size: .95rem; }
.ts-date { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }

/* ---------- Inner pages ---------- */
.ts-pagehead { background: var(--stone); padding: clamp(32px, 5vw, 56px) 0 clamp(36px, 5vw, 56px); }
.ts-pagehead h1 { max-width: 22ch; margin-bottom: .3em; }
.ts-pagehead .ts-lead { margin: 0; }
.ts-pagehead-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ts-pagehead-meta .ts-date { margin: 0; }
.ts-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; color: var(--muted); margin-bottom: 20px; }
.ts-crumbs a { color: var(--muted); }

.ts-page { padding: clamp(40px, 6vw, 72px) 0 var(--section); }
.ts-page-photo { aspect-ratio: 21 / 9; margin-bottom: clamp(32px, 5vw, 56px); }

.ts-content { max-width: 72ch; }
.ts-content--intro { margin-bottom: 40px; }
.ts-content > :first-child { margin-top: 0; }
.ts-content h2 { margin-top: 1.8em; }
.ts-content h3 { margin-top: 1.6em; }
.ts-content ul { list-style: none; margin: 0 0 1.2em; }
.ts-content ul li { position: relative; padding-left: 1.6em; margin-bottom: .45em; }
.ts-content ul li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7em; height: .7em; border-radius: var(--leaf-sm); background: var(--green); }
.ts-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.ts-content ol li { margin-bottom: .45em; }
.ts-content blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 4px solid var(--gold); font-family: var(--display); font-size: 1.2rem; }
.ts-content table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 1rem; }
.ts-content th, .ts-content td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ts-content th { font-family: var(--display); font-weight: 600; font-size: .92rem; }
.ts-content td.ts-num, .ts-content th.ts-num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ts-content tfoot td { font-weight: 700; border-bottom: 0; }
.ts-content img { border-radius: 12px; }
.ts-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* Focus pages: bullets and change line take the area's colour */
.ts-page--red .ts-content ul li::before { background: var(--red); }
.ts-page--gold .ts-content ul li::before { background: var(--gold); }
.ts-change { padding: 18px 22px; background: var(--stone); border-radius: 0 24px 0 24px; font-weight: 600; }

/* Building blocks for page text (classes usable in the editor's Text tab) */
.ts-vm { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 1em 0 2em; }
.ts-vm > div { padding: 24px; background: var(--stone); border-radius: 0 32px 0 32px; }
.ts-vm h3 { margin-top: 0; font-size: 1.1rem; color: var(--green); }
.ts-vm p { margin: 0; }
.ts-values { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px 32px; margin: 1em 0 2em; }
.ts-values div { border-top: 2px solid var(--ink); padding-top: 12px; }
.ts-values dt { font-family: var(--display); font-weight: 600; margin-bottom: 4px; }
.ts-values dd { margin: 0; color: var(--muted); font-size: 1.02rem; }
.ts-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; margin: 1em 0 2em; }
.ts-board figure { margin: 0; }
.ts-avatar { display: grid; place-items: center; aspect-ratio: 1; width: 100%; max-width: 180px; border-radius: 0 50% 0 50%; background: var(--stone); font-family: var(--display); font-weight: 700; font-size: 2.4rem; color: var(--green); overflow: hidden; margin-bottom: 14px; }
.ts-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ts-board figcaption strong { display: block; font-family: var(--display); font-weight: 600; line-height: 1.3; }
.ts-board figcaption span { display: block; color: var(--muted); font-size: .98rem; }
.ts-highlight { margin: 2em 0; padding: clamp(20px, 4vw, 32px); background: var(--stone); border-radius: 0 40px 0 40px; }
.ts-highlight h3 { margin-top: 0; }
.ts-highlight dl { margin: 0; display: grid; gap: 14px; }
.ts-highlight dt { font-family: var(--display); font-weight: 600; }
.ts-highlight dd { margin: 0; color: var(--muted); }
.ts-todo { border: 2px dashed var(--gold); background: #fff8dc; padding: 12px 16px; border-radius: 8px; font-size: .95rem; color: var(--ink); }
.ts-todo::before { content: "Noch offen: "; font-weight: 700; }
html[lang^="en"] .ts-todo::before { content: "To do: "; }
.ts-legal h2 { font-size: 1.35rem; }
.ts-legal h3 { font-size: 1.1rem; }

/* ---------- Project page ---------- */
.ts-project { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ts-project .ts-page-photo { aspect-ratio: 16 / 9; }
.ts-project-aside { position: sticky; top: 112px; display: grid; gap: 20px; }
.ts-facts-table { margin: 0; border-top: 1px solid var(--line); }
.ts-facts-table div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ts-facts-table dt { font-size: .88rem; color: var(--muted); }
.ts-facts-table dd { margin: 2px 0 0; font-weight: 600; }
.ts-progress p { margin: 0 0 8px; }
.ts-progress-bar { height: 12px; background: var(--stone); border-radius: 999px; overflow: hidden; }
.ts-progress-bar span { display: block; height: 100%; background: var(--green); }
.ts-project-aside .ts-small { margin: -8px 0 0; }
.ts-sponsor-box { padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.ts-sponsor-box p { margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.ts-sponsor-box img { max-width: 200px; }

/* ---------- Forms ---------- */
.ts-form-card { background: var(--stone); border-radius: 0 48px 0 48px; padding: clamp(24px, 4vw, 44px); }
.ts-form-card h2 { font-size: 1.5rem; }
.ts-form { display: grid; gap: 20px; }
.ts-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.ts-field label, .ts-field legend { display: block; font-family: var(--display); font-weight: 500; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.ts-field input[type="text"], .ts-field input[type="email"], .ts-field input[type="tel"], .ts-field select, .ts-field textarea {
    width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--paper);
    padding: 12px 14px; border: 1.5px solid #c9c2b4; border-radius: 10px;
}
.ts-field textarea { resize: vertical; min-height: 120px; }
.ts-field input:focus, .ts-field select:focus, .ts-field textarea:focus { border-color: var(--green); outline: 3px solid var(--gold); outline-offset: 1px; }
.ts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ts-row--postcode { grid-template-columns: 1fr 2fr; }
.ts-choices { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.ts-choice, .ts-check { display: flex; gap: 10px; align-items: flex-start; font-size: 1.02rem; cursor: pointer; }
.ts-choice input, .ts-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--green); flex: none; }
.ts-check { color: var(--muted); }
.ts-hint { font-size: .92rem; color: var(--muted); margin: 8px 0 0; }
.ts-form .ts-btn { justify-self: start; }
.ts-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts-notice { padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; background: var(--paper); border-left: 5px solid var(--green); }
.ts-notice--error { border-left-color: var(--red); }

.ts-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.ts-contact-info h2 { font-size: 1.5rem; }
.ts-contact-info .ts-facts-table { margin-bottom: 20px; }

/* ---------- Donate, membership, get involved ---------- */
.ts-donate { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); margin-top: clamp(32px, 5vw, 56px); }
.ts-donate h2 { font-size: 1.45rem; }
.ts-bank { background: var(--stone); padding: clamp(24px, 4vw, 40px); border-radius: 0 48px 0 48px; }
.ts-bank dl { margin: 0 0 20px; }
.ts-bank dl div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ts-bank dt { font-size: .88rem; color: var(--muted); }
.ts-bank dd { margin: 2px 0 0; font-weight: 600; }
.ts-bank .ts-iban { font-family: var(--display); font-size: clamp(1.1rem, 2.4vw, 1.35rem); letter-spacing: .03em; user-select: all; font-variant-numeric: tabular-nums; }
.ts-gifts ul { list-style: none; margin-bottom: 12px; }
.ts-gifts li { display: grid; grid-template-columns: 7ch 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ts-gifts strong { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--green); font-variant-numeric: tabular-nums; }
.ts-receipt { grid-column: 1 / -1; max-width: 72ch; }

.ts-fee { margin-top: clamp(32px, 5vw, 48px); padding: clamp(24px, 4vw, 44px); background: var(--stone); border-radius: 0 48px 0 48px; max-width: 72ch; }
.ts-fee-amount { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.ts-fee-amount strong { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 6vw, 4rem); line-height: 1; color: var(--green); }
.ts-fee-amount span { font-family: var(--display); font-weight: 500; font-size: 1.2rem; }
.ts-ticks { list-style: none; display: grid; gap: 8px; }
.ts-ticks li { position: relative; padding-left: 1.6em; }
.ts-ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7em; height: .7em; border-radius: var(--leaf-sm); background: var(--green); }
.ts-fee .ts-small { margin: 20px 0 0; }

.ts-ways { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 32px; margin: clamp(32px, 5vw, 48px) 0; }
.ts-ways li { border-top: 3px solid var(--green); padding-top: 16px; }
.ts-ways h3 { font-size: 1.15rem; }
.ts-ways h3 a { color: var(--ink); }
.ts-ways p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.ts-note { margin-top: 24px; color: var(--muted); max-width: 72ch; }

/* ---------- Gallery, pagination, empty states ---------- */
.ts-gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 32px; }
.ts-gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--stone); }
.ts-gallery img { width: 100%; height: 100%; object-fit: cover; }
.ts-lightbox { max-width: min(1100px, 94vw); padding: 0; border: 0; background: var(--ink); color: #fff; border-radius: 12px; }
.ts-lightbox::backdrop { background: rgba(17, 17, 17, .88); }
.ts-lightbox img { max-height: 82vh; width: auto; margin: 0 auto; }
.ts-lightbox-caption { margin: 0; padding: 12px 16px; font-size: .95rem; }
.ts-lightbox-caption:empty { display: none; }
.ts-lightbox-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font-size: 1.4rem; cursor: pointer; }

.ts-pagination, .ts-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.ts-pagination .nav-links { margin: 0; }
.ts-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 500; }
.ts-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.ts-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 56px 0 24px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 72ch; }
.ts-post-nav a { color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; }
.ts-post-nav a:hover { color: var(--green); }
.ts-post-nav small { display: block; font-family: var(--body); font-weight: 400; color: var(--muted); }
.ts-post-nav .is-next { grid-column: 2; text-align: right; }
.ts-empty { padding: clamp(24px, 4vw, 40px); background: var(--stone); border-radius: 0 40px 0 40px; max-width: 72ch; }
.ts-empty p { margin-bottom: 0; }
.ts-empty .ts-btn { margin-top: 20px; }

/* ---------- Closing CTA and footer ---------- */
.ts-closing { background: var(--green); color: #fff; padding: clamp(48px, 7vw, 80px) 0; }
.ts-closing-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.ts-closing-text { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3.2vw, 2.35rem); line-height: 1.22; letter-spacing: -0.02em; max-width: 24ch; margin: 0; }
.ts-closing .ts-actions { margin: 0; }
.ts-closing .ts-btn--red { background: transparent; border-color: #fff; color: #fff; }
.ts-closing .ts-btn--red:hover { background: #fff; color: var(--green-dark); }

.ts-footer { background: var(--ink); color: #cfcac0; padding: clamp(48px, 7vw, 72px) 0 28px; font-size: 1rem; }
.ts-footer a { color: #fff; text-decoration: none; }
.ts-footer a:hover { text-decoration: underline; color: #fff; }
.ts-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.ts-footer-logo { display: inline-flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; margin-bottom: 18px; }
.ts-footer-logo small { display: block; font-weight: 500; font-size: .75rem; color: #cfcac0; margin-top: 4px; }
.ts-footer-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--paper); flex: none; }
.ts-footer-mark img { width: 58px; }
.ts-footer-brand p { max-width: 38ch; }
.ts-footer-title { color: #fff; font-size: 1rem; margin-bottom: 14px; letter-spacing: 0; }
.ts-footer-links { list-style: none; display: grid; gap: 8px; }
.ts-footer-address { line-height: 1.7; margin-bottom: 16px; }
.ts-social { list-style: none; display: flex; gap: 10px; }
.ts-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #3a3a3a; border-radius: 50%; font-size: 1.15rem; }
.ts-social a:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.ts-footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #2c2c2c; font-size: .92rem; }
.ts-footer-legal p { margin: 0; }
.ts-footer-legal ul { list-style: none; display: flex; gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .ts-hero-in, .ts-split, .ts-contact, .ts-donate, .ts-project { grid-template-columns: 1fr; }
    .ts-hero-media { max-width: 440px; width: 100%; }
    .ts-hero-media { order: 2; max-width: 340px; aspect-ratio: 1; }
    .ts-split-media { max-width: 520px; aspect-ratio: 4 / 3; }
    .ts-focus-grid { grid-template-columns: 1fr; gap: 36px; }
    .ts-focus { display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; }
    .ts-focus > * { grid-column: 2; }
    .ts-focus .ts-leaf--big { grid-column: 1; grid-row: 1 / span 3; width: 36px; height: 36px; }
    .ts-focus .ts-focus-img { grid-column: 1 / -1; }
    .ts-project-aside { position: static; }
    .ts-footer-grid { grid-template-columns: 1fr 1fr; }
    .ts-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    body { font-size: 1.0625rem; }
    .ts-header-in { min-height: 72px; }
    .ts-nav { inset: 73px 0 0 0; }
    .admin-bar .ts-nav { top: 73px; }
    .ts-row, .ts-row--postcode, .ts-vm { grid-template-columns: 1fr; }
    .ts-facts-in { flex-direction: column; align-items: flex-start; }
    .ts-facts-list { flex-direction: column; gap: 14px; }
    .ts-facts-list dt { min-width: 2ch; }
    .ts-bridge-route { flex-wrap: wrap; }
    .ts-bridge-line { order: 3; flex-basis: 100%; margin: 28px 0 8px; }
    .ts-bridge-line span { top: -42px; }
    .ts-page-photo { aspect-ratio: 4 / 3; }
    .ts-post-nav { grid-template-columns: 1fr; }
    .ts-post-nav .is-next { grid-column: 1; text-align: left; }
    .ts-footer-grid { grid-template-columns: 1fr; }
    .ts-builds li { font-size: 1rem; }
    :root { --leaf-photo: 0 48px 0 48px; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

/* Home: mission with the word "tsogolo" defined */
.ts-mission-in { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ts-define { border-left: 4px solid var(--green); padding: 8px 0 8px 28px; }
.ts-define-word { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.03em; color: var(--green); margin-bottom: 10px; }
.ts-define-meta { font-style: italic; color: var(--muted); margin-bottom: 8px; }
.ts-define-text { font-size: 1.25rem; margin: 0; }
@media (max-width: 960px) { .ts-mission-in { grid-template-columns: 1fr; } }

/* Text keeps a reading measure; layout blocks (values, board, tables) use the full width */
.ts-content { max-width: none; }
.ts-content > p, .ts-content > h2, .ts-content > h3, .ts-content > ul, .ts-content > ol, .ts-content > blockquote, .ts-content > .ts-todo, .ts-content > .ts-change, .ts-legal { max-width: 72ch; }
.ts-content > .ts-vm { max-width: 900px; }
.ts-content > .ts-highlight, .ts-content > table { max-width: 900px; }
.ts-board { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ts-hero-media img { object-position: center bottom; }
.ts-hero-media:not(.is-emblem) { border-radius: 0 46% 0 22% / 0 38% 0 12%; }

/* Colour discipline: green is the primary; red only marks donate actions; gold only the focus ring */
.ts-closing .ts-btn--gold { background: #fff; color: var(--green-dark); }
.ts-closing .ts-btn--gold:hover { background: var(--stone); color: var(--green-dark); }
.ts-tag--green { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.ts-footer-mark { display: block; width: 72px; height: auto; background: none; border-radius: 0; }

/* ---------- Motion ---------- */
/* One entrance on load (hero or page title), gentle reveals on scroll, small hover responses. */
@keyframes ts-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ts-grow { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes ts-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
@keyframes ts-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ts-pop { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.25) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }

.ts-js .ts-hero-text > * { animation: ts-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.ts-js .ts-hero-text > :nth-child(2) { animation-delay: .08s; }
.ts-js .ts-hero-text > :nth-child(3) { animation-delay: .18s; }
.ts-js .ts-hero-text > :nth-child(4) { animation-delay: .28s; }
.ts-js .ts-hero-media { animation: ts-grow .9s cubic-bezier(.2, .7, .2, 1) .15s both; transform-origin: 70% 80%; }
.ts-js .ts-pagehead h1, .ts-js .ts-pagehead .ts-lead, .ts-js .ts-pagehead-meta { animation: ts-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.ts-js .ts-pagehead .ts-lead { animation-delay: .1s; }

.ts-js .ts-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--ts-i, 0) * 90ms); }
.ts-js .ts-reveal.is-visible { opacity: 1; transform: none; }

/* Bridge: the dotted line draws itself, then the leaf lands */
.ts-js .ts-bridge-route .ts-bridge-line { transform-origin: left; transform: scaleX(0); }
.ts-js .ts-bridge-route.is-visible .ts-bridge-line { animation: ts-line 1.2s cubic-bezier(.6, .1, .2, 1) .3s both; }
.ts-js .ts-bridge-route .ts-bridge-line::after { transform: scale(0); }
.ts-js .ts-bridge-route.is-visible .ts-bridge-line::after { animation: ts-pop .5s ease-out 1.4s both; }

/* Small details */
.ts-leaf--big { transition: transform .4s ease; transform-origin: bottom left; }
.ts-focus:hover .ts-leaf--big { animation: ts-sway .9s ease-in-out; }
.ts-btn { transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.ts-btn:hover { transform: translateY(-2px); }
.ts-btn:active { transform: translateY(0); }
.ts-menu > li > a { position: relative; }
.ts-menu > li > a::before { content: ""; position: absolute; left: 9px; right: 9px; bottom: 4px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.ts-menu > li:hover > a::before, .ts-menu > li > a:focus-visible::before { transform: scaleX(1); }
.ts-card { transition: transform .3s ease, border-color .3s ease; }
.ts-card:hover { transform: translateY(-4px); border-color: #cfc8ba; }
.ts-card-media img, .ts-focus-img, .ts-split-media img, .ts-gallery img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ts-card:hover .ts-card-media img, .ts-focus:hover .ts-focus-img, .ts-split-media:hover img, .ts-gallery a:hover img { transform: scale(1.04); }
.ts-focus > a { display: block; overflow: hidden; border-radius: 0 40px 0 40px; margin-bottom: 24px; }
.ts-focus > a .ts-focus-img { margin-bottom: 0; }
.ts-focus-grid:not(.ts-focus-grid--page) .ts-focus-img { will-change: transform; }
.ts-header { transition: border-color .3s ease; }
.ts-link { transition: text-underline-offset .2s ease, color .2s; }
.ts-link:hover { text-underline-offset: 9px; }
@media (max-width: 1320px) {
    .ts-nav.is-open { animation: ts-rise .3s ease both; }
    .ts-menu > li > a::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ts-js .ts-reveal, .ts-js .ts-hero-text > *, .ts-js .ts-hero-media, .ts-js .ts-pagehead * { opacity: 1 !important; transform: none !important; animation: none !important; }
    .ts-js .ts-bridge-route .ts-bridge-line, .ts-js .ts-bridge-route .ts-bridge-line::after { transform: none !important; animation: none !important; }
}
@media (max-width: 960px) { .ts-focus > a { grid-column: 1 / -1; } }

/* Home: bridge with the Africa map */
.ts-bridge-in { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ts-bridge-main { min-width: 0; }
.ts-map { margin: 0; }
.ts-map img { width: 100%; max-width: 480px; margin-inline: auto; }
.ts-map figcaption { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-family: var(--display); font-weight: 500; font-size: .95rem; color: var(--muted); }
.ts-map figcaption .ts-leaf { color: var(--red); }
@media (max-width: 960px) { .ts-bridge-in { grid-template-columns: 1fr; } .ts-map img { max-width: 300px; } }
.ts-menu > li > a[aria-current="page"] { color: var(--green); }
.ts-menu > li > a[aria-current="page"]::before { transform: scaleX(1); }
