/* Tasks For Humanity on the unified design (t235u). Warm mosaic palette on top of os.css and unify.css. No inline styles (CSP). */
.p-tfh { --cream: #F3EDE2; --cream2: #FAF6EF; --teal: #2F7F74; --terra: #C2492F; --terraD: #9E3923; }

/* the shared Tasks For Humanity bar */
.tb { background: rgba(250, 246, 239, .9); }
.tb .ol__in { gap: 18px; }
.tb .ol__name { margin-right: 0; }
.tb__list { margin-left: auto !important; }
.tb__list a[aria-current] { color: var(--ink); font-weight: 600; }
.tb .ob-btn--s { flex: none; }
.tb--static { position: relative; top: auto; }
@media (max-width: 960px) { .tb__list { display: none !important; } .tb .ob-btn--s { margin-left: auto; } }
@media (max-width: 420px) { .tb .ol__in { gap: 8px; padding: 0 14px; } .tb .ol__name span { font-size: 16px; } .tb .ob-btn--s { padding: 0 14px; font-size: 14px; } }

/* home hero */
.tfh-hero .ox__copy { padding-bottom: clamp(40px, 8vh, 88px); }
.tfh-hero__name { font-size: clamp(44px, 8vw, 104px); letter-spacing: -.04em; }
.tfh-hero .ox__desc { max-width: 28ch; }
.tfh-hero__cure { margin: 22px auto 0; max-width: 46ch; font-size: 15px; color: #4a3b33; }
.tfh-hero .ox__scrim { background: linear-gradient(to top, rgba(250, 246, 239, .97) 0%, rgba(250, 246, 239, .82) 38%, rgba(250, 246, 239, .1) 70%); }

/* three ways */
.tws { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.tw { background: var(--alt); border-radius: var(--r); padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.os-sec--alt .tw { background: #fff; }
.tw--lead { background: var(--terra) !important; color: #fff; }
.tw__n { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--pt); }
.tw--lead .tw__n { color: #fff; }
.tw h3 { font-size: 24px; letter-spacing: -.02em; margin: 0; }
.tw p { margin: 0 0 8px; color: var(--muted); flex: 1; }
.tw--lead p { color: #fff3ee; }
.tw .ob-btn { align-self: flex-start; }
html.os .tw--lead .ob-btn--p { background: #fff; color: var(--terraD); }

/* live numbers */
.tl__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tl__grid li { background: #fff; border-radius: 18px; padding: 22px; }
.tl__grid li[hidden] { display: none; }
.tl__grid b { display: block; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.05; color: var(--pt); }
.tl__grid span { color: var(--muted); font-size: 15px; }
.tl__note, .tl__empty { color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.tl__empty[hidden] { display: none; }

/* games */
.tg { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tg__card { background: var(--alt); border-radius: var(--r); padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.tg__card h3 { font-size: 26px; margin: 0; letter-spacing: -.02em; }
.tg__card p { margin: 0 0 8px; color: var(--muted); }
.tg__card .ob-btn { align-self: flex-start; }
.tg__card--run { background: linear-gradient(160deg, #FAF1E6, #F1DDCB); }

/* compute page */
.tfh-top { padding-bottom: clamp(40px, 6vw, 72px); background: linear-gradient(180deg, var(--cream2), #fff); }
.tfh-top__h { font-size: clamp(44px, 7vw, 84px); margin-top: 6px; }
.tds { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.td { display: flex; gap: 16px; align-items: center; justify-content: space-between; background: #fff; border-radius: 18px; padding: 20px 22px; }
.td h3 { margin: 0 0 4px; font-size: 19px; }
.td h3 a { text-decoration: none; color: var(--pt); }
.td p { margin: 0; color: var(--muted); font-size: 15px; }
.td > div { min-width: 0; }
.td__sha { display: block; margin-top: 8px; font-size: 12px; color: #6b6b72; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.tsteps code, .os-faq code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--cream); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .td { flex-direction: column; align-items: flex-start; } }
.tphone { display: flex; gap: 28px; align-items: center; justify-content: space-between; background: var(--alt); border-radius: var(--r); padding: 30px; }
.tphone__lead { font-size: 20px; margin: 0 0 18px; max-width: 46ch; }
.tphone__note { color: var(--muted); font-size: 15px; margin: 16px 0 0; }
.tphone__icon { border-radius: 22px; flex: none; }
@media (max-width: 560px) { .tphone { flex-direction: column-reverse; align-items: flex-start; } }
.tr__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tr__list li { background: var(--alt); border-radius: 16px; padding: 16px 20px; display: grid; gap: 2px; }
.tr__list span { color: var(--muted); font-size: 15px; }
.tr__list a { font-size: 14px; color: var(--pt); }
.tr[hidden] { display: none; }
.tfh-privacy { margin-top: 26px; color: var(--muted); }

/* the app */
.ta { background: var(--cream2); padding: 28px 0 64px; min-height: calc(100svh - var(--bar) - 52px); }
.ta__in { max-width: 640px; display: grid; gap: 16px; }
.ta__head { display: flex; gap: 14px; align-items: center; }
.ta__head img { border-radius: 14px; flex: none; }
.ta__head h1 { font-size: clamp(24px, 5vw, 32px); margin: 0; letter-spacing: -.02em; }
.ta__head p { margin: 2px 0 0; color: var(--muted); }
.ta__card { background: #fff; border-radius: 22px; padding: 22px; }
.ta__card h2 { font-size: 19px; margin: 0 0 10px; }
.ta__go { width: 100%; min-height: 64px; border: 0; border-radius: 18px; background: var(--terra); color: #fff; font: 700 20px/1 var(--f); cursor: pointer; transition: background .2s, transform .1s; }
.ta__go:active { transform: scale(.99); }
.ta__go:disabled { background: #d9cfc4; color: #6e6259; cursor: not-allowed; }
.ta__go[aria-pressed="true"] { background: var(--ink); }
.ta__go:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.ta__state { margin: 14px 0 6px; font-weight: 600; min-height: 1.5em; }
.ta__state[data-kind="err"] { color: var(--terraD); }
.ta__state[data-kind="wait"] { color: #7a5d12; }
.is-donating .ta__state::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); margin-right: 8px; animation: taPulse 1.4s infinite; }
@keyframes taPulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .is-donating .ta__state::before { animation: none; } }
.ta__stats { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ta__stats li { background: var(--cream2); border-radius: 14px; padding: 12px 14px; }
.ta__stats b { display: block; font-size: 24px; letter-spacing: -.02em; }
.ta__stats span { font-size: 13px; color: var(--muted); }
.ta__global { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.ta__row { display: flex; align-items: center; gap: 12px; min-height: 48px; border-top: 1px solid #f0ebe3; cursor: pointer; font-size: 16px; }
.ta__row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--terra); flex: none; }
.ta__row--sel { justify-content: space-between; }
.ta__row select { font: 16px var(--f); padding: 8px 10px; border-radius: 10px; border: 1px solid #ddd3c6; background: #fff; }
.ta__fine { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.ta__log { list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; color: var(--muted); display: grid; gap: 6px; min-height: 1.4em; }
.ta__ios { background: var(--cream2); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.ta__ios p { margin: 0; }
.ta__ios[hidden], [data-install][hidden] { display: none; }

/* closing band */
.tb-band { --p: #C2492F; }
html.os .tb-band__p { background: #fff; color: #9E3923; }
html.os .tb-band__q { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.gh-game--run { background: linear-gradient(160deg, #FAF1E6, #F1DDCB) !important; color: var(--ink) !important; }

button.ob-btn { border: 0; font-family: inherit; cursor: pointer; }
html.os button.ob-btn--q { background: transparent; }
/* t254u: 2D mosaic heroes (Games for Humanity, HUMN), drawn by /eco/os/hero-play.js */
.hp-hero { background: #F3EDE2; }
.hp-hero .ox__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hp-hero .gh-hero__note { margin: 8px auto 0; font-size: 14px; color: #5a4a40; }
@media (max-width: 480px) {
  .hp-hero .os-kick { margin-bottom: 10px; }
  .hp-hero .ox__desc { margin-top: 12px; margin-bottom: 20px; }
  .hp-hero .os-btns { gap: 8px; }
  .hp-hero .os-btns .ob-btn { min-height: 46px; padding-top: 0; padding-bottom: 0; }
  .hp-hero .tfh-hero__cure { margin-top: 16px; }
}
/* HUMN, the Tasks For Humanity mission token */
.hm-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hm-card { background: #FFFDF9; border: 1px solid #E9DFD3; border-radius: var(--r, 18px); padding: 26px; box-shadow: 0 1px 2px rgba(90,60,34,.06), 0 10px 26px rgba(90,60,34,.06); }
.hm-card h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.01em; }
.hm-card p { margin: 0; color: #3A3F48; }
.hm-card__k { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9E3923; margin-bottom: 10px; }
.hm-status { margin: 24px 0 0; padding: 18px 22px; border-radius: 14px; background: #FAF6EF; border: 1px solid #E9DFD3; color: #3b2f28; }
.hm-note { margin-top: 18px; color: #5a4a40; }
.hm-note a, .hm-status a { color: #9E3923; }
