/* Layout idea: one left-aligned column on a pale leaf-white page; a single
   liver-maroon block in the hero carries the testing check; everything else stays quiet. */
:root {
  color-scheme: light;
  --paper: #F2F6F1;
  --paper-deep: #E3ECE2;
  --ink: #13261D;
  --ink-soft: #46584E;
  --green: #1C6B3C;
  --green-deep: #0E3F23;
  --liver: #1C6B3C;
  --liver-deep: #0E3F23;
  --gold: #D2AE55;
  --gold-ink: #86691F;
  --line: #C9D6CB;
  --display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, "Segoe UI", sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 8.2vw, 5.25rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.band { padding: 72px 0; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 58ch; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* sample text marker */
.ph { text-decoration: underline dashed var(--gold-ink); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.mark { width: auto; height: 46px; flex: none; }
.top nav { display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 0.98rem; padding: 6px 0; }
.top nav a:hover { text-decoration: underline; }
.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1rem; text-decoration: none; padding: 12px 20px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E3C36F; color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.top nav a.btn { padding: 8px 16px; color: #fff; }

/* hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero h1 span { display: block; color: var(--gold-ink); }
.brand .gold { color: var(--gold-ink); }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.vision { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--green); text-wrap: balance; margin-top: 8px; }
.about-grid h3 { margin-bottom: 6px; }
.about-grid p { max-width: 60ch; }
.small-head { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink-soft); }
.values { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px 32px; }
.values li { border-top: 3px solid var(--gold); padding-top: 14px; }
.values h3 { margin-bottom: 6px; }
.values p { color: var(--ink-soft); font-size: 1rem; }
.hero .lede { margin-top: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.check { background: var(--liver); color: #fff; padding: 28px; border-radius: 28px 28px 28px 110px / 28px 28px 28px 80px; }
.check h2 { font-size: 1.6rem; }
.check p { color: #DDEFE4; }
.check .opts { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.check button { font: inherit; text-align: left; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); border-radius: 14px; padding: 12px 16px; cursor: pointer; }
.check button:hover { background: var(--liver-deep); }
.check button[aria-pressed="true"] { background: #fff; color: var(--liver-deep); border-color: #fff; font-weight: 700; }
.check .answer { margin-top: 16px; padding: 16px 0 0 54px; border-top: 1px solid rgba(255,255,255,.3); min-height: 5.5em; color: #fff; }

/* facts */
.facts { background: var(--green-deep); color: #EAF3EC; }
.facts h2 { color: #fff; max-width: 18ch; }
.facts .lede { color: #B9D1C1; }
.fact-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.fact-list li { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.18); }
.fact-list h3 { color: var(--gold); margin-bottom: 6px; }
.note { font-size: 0.95rem; color: #B9D1C1; margin-top: 28px; max-width: 70ch; }

/* programmes */
.rows { margin-top: 36px; border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row p { color: var(--ink-soft); max-width: 60ch; }

/* updates + resources */
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; }
.tint { background: var(--paper-deep); }
.item-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.item-list time, .item-list .meta { display: block; font-size: 0.92rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.item-list h3 { margin: 2px 0 4px; }
.item-list p { color: var(--ink-soft); }
.files li { display: flex; gap: 14px; align-items: flex-start; }
.files .ext { flex: none; font-family: var(--display); font-weight: 700; font-size: 0.8rem; background: var(--ink); color: var(--paper); border-radius: 6px; padding: 4px 8px; margin-top: 3px; min-width: 44px; text-align: center; }

/* give */
.give { background: var(--green); color: #fff; }
.give h2 { max-width: 16ch; }
.give p { color: #DDEFE4; max-width: 56ch; }
.give-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 36px; }
.give-grid div { border-top: 3px solid var(--gold); padding-top: 16px; }
.give-grid h3 { margin-bottom: 6px; }
.give .hero-actions { margin-top: 36px; }
.give .btn-line { border-color: #fff; color: #fff; }
.give .btn-line:hover { background: #fff; color: var(--green-deep); }

/* contact + footer */
.contact dl { margin: 28px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 28px; }
.contact dt { font-weight: 700; }
.contact dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.contact .social { display: flex; flex-wrap: wrap; gap: 6px 20px; white-space: normal; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 0.95rem; color: var(--ink-soft); }
footer .wrap { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 820px) {
  .band { padding: 52px 0; }
  .hero { padding: 36px 0 52px; }
  .hero-grid, .split, .fact-list, .give-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-grid { gap: 28px; }
  .hero-grid { gap: 36px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .top { position: static; }
  .check { border-radius: 24px 24px 24px 72px / 24px 24px 24px 56px; }
  .check .answer { padding-left: 36px; }
}

/* multi-page additions */
.page-title { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
.page-head { padding-top: 56px; }
.page-head + .band { padding-top: 36px; }
.facts .page-title { color: #fff; max-width: 18ch; }
.give .page-title { max-width: 16ch; }
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.more { margin-top: 32px; }
main { min-height: 60vh; }


/* full logo in the header */
.logo { height: 72px; width: auto; display: block; }
@media (max-width: 820px) { .logo { height: 60px; } }

/* menus */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 6px 0; font-size: 0.98rem; display: flex; align-items: center; gap: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.menu summary.here { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-list { position: absolute; top: calc(100% + 6px); left: -12px; z-index: 10; min-width: 230px; display: flex; flex-direction: column; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px rgba(19, 38, 29, 0.14); }
.top nav .menu-list a { padding: 10px 12px; border-radius: 8px; }
.top nav .menu-list a:hover { background: var(--paper-deep); text-decoration: none; }
.top nav .menu-list a[aria-current="page"] { text-decoration: none; background: var(--paper-deep); font-weight: 700; }
@media (max-width: 820px) { .menu-list { left: 0; } }

/* footer */
footer .foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 20px; padding-bottom: 28px; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.foot-brand p { font-family: var(--display); font-weight: 700; color: var(--green); max-width: 22ch; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h2 { font-size: 1rem; color: var(--ink); margin-bottom: 4px; }
.foot-col a { color: var(--ink-soft); text-decoration: none; }
.foot-col a:hover { color: var(--green-deep); text-decoration: underline; }
footer .foot-base { border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 820px) { footer .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

/* team */
.team-group { margin-top: 44px; }
.team-group > h2 { font-size: 1.5rem; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px 28px; margin-top: 24px; }
.member { display: flex; flex-direction: column; gap: 6px; }
.member .photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px 16px 16px 56px; background: var(--paper-deep); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 3.2rem; color: var(--green); margin-bottom: 8px; }
.member .role { color: var(--gold-ink); font-weight: 700; }
.member .bio { color: var(--ink-soft); font-size: 1rem; }
.team-empty { margin-top: 28px; color: var(--ink-soft); }

/* liver diseases + support */
.jump { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 24px; }
.jump a { border: 1.5px solid var(--green); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.jump a:hover { background: var(--green); color: #fff; }
.cond { margin-top: 48px; padding-top: 28px; border-top: 2px solid var(--ink); scroll-margin-top: 110px; }
.cond h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.cond-what { font-size: 1.15rem; max-width: 62ch; margin-top: 10px; }
.cond dl { margin: 20px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 0 32px; }
.cond dt { font-family: var(--display); font-weight: 700; padding: 14px 0; border-top: 1px solid var(--line); }
.cond dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-soft); max-width: 64ch; }
.disclaimer { margin-top: 36px; font-size: 0.95rem; color: var(--ink-soft); max-width: 70ch; }
.row-h { font-size: 1.3rem; line-height: 1.2; }
.steps, .plain { margin: 0; padding-left: 1.2em; color: var(--ink-soft); max-width: 60ch; display: flex; flex-direction: column; gap: 8px; }
.facts .facts-line { border-color: #fff; color: #fff; }
.facts .facts-line:hover { background: #fff; color: var(--green-deep); }
.more { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) { .cond dl { grid-template-columns: minmax(0, 1fr); } .cond dt { padding-bottom: 0; } .cond dd { border-top: 0; padding-top: 4px; } }
.foot-brand .logo { height: 64px; width: auto; align-self: flex-start; }

/* social links in the footer */
.foot-social { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-brand .foot-social { font-family: var(--body); font-weight: 700; max-width: none; }
.foot-social a { border: 1.5px solid var(--green); border-radius: 999px; padding: 5px 14px; text-decoration: none; font-size: 0.95rem; color: var(--green); }
.foot-social a:hover { background: var(--green); color: #fff; }

/* social icons */
.foot-social { gap: 12px; align-items: center; }
.foot-social a { border: 0; padding: 0; border-radius: 10px; display: block; line-height: 0; }
.foot-social a:hover { background: none; opacity: 0.8; }
.foot-social img, .contact .social img { width: 36px; height: 36px; display: block; }
.contact .social { gap: 12px; align-items: center; }
.contact .social a { display: block; line-height: 0; }
.contact .social a:hover { opacity: 0.8; }
