/* The site's inner pages (donate, ketentuan, privasi): the home page's paper, ink and type.
   Tokens are the home page's (liveframe.html :root). */
:root {
  --bg: #f5f8fd; --white: #ffffff; --navy: #0b2550; --ink: #0b2550; --ink-2: #4a5a6e; --ink-3: #5b6b7e;
  --rule: rgba(91, 107, 126, .2); --rule-hi: rgba(91, 107, 126, .42); --navy-hi: #1a3d7c;
  --gold: #d4a25a; --gold-ink: #a06b1c; --load: #c08a3a; --needle: #d4a25a; --focus: #2563eb; --ok: #15803d;
  --display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { display: flex; flex-direction: column; min-height: 100svh; margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(91, 107, 126, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 107, 126, .1) 1px, transparent 1px),
    linear-gradient(rgba(91, 107, 126, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 107, 126, .045) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }

/* nav and brand, as on the home page */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--rule); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; max-width: none; }
.brand { display: flex; align-items: flex-start; text-decoration: none; flex: none; margin-right: auto; }
.mark { width: 34px; height: 34px; flex: none; overflow: visible; }
.needle { fill: var(--needle); }
.wordmark { height: 25.5px; width: auto; margin: 8.4px 0 0 1.7px; }
.links { display: flex; gap: 26px; }
.links a { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.links a:hover, .links a[aria-current] { color: var(--ink); }
.links a[aria-current] { box-shadow: 0 6px 0 -4px var(--gold); }

main { padding-block: clamp(44px, 8vw, 96px) clamp(56px, 8vw, 104px); }
body > main { flex: 1 0 auto; width: 100%; }   /* a short page still puts the footer at the bottom of the screen */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow svg { width: 26px; height: 9px; flex: none; }
h1 { margin: 0; font: 400 clamp(40px, 6vw, 72px)/1.02 var(--display); letter-spacing: -.016em; text-wrap: balance; max-width: 13em; }
h1 em { color: var(--gold-ink); }
.lede { margin: 24px 0 0; max-width: 58ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.lede b { font-weight: 600; color: var(--ink); }
h2.kicker { margin: clamp(52px, 7vw, 80px) 0 18px; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 12px; }
h2.kicker::after { content: ''; flex: 1; height: 1px; background: var(--rule-hi); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 3px; background: var(--navy); color: var(--white);
  font: 500 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(11, 37, 80, .55); transition: background .2s, transform .2s; }
.btn:hover { background: var(--navy-hi); transform: translateY(-1px); }
.btn .arr { color: var(--gold); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.btn:hover .arr { transform: translateX(4px); }
.copy { appearance: none; padding: 7px 11px; background: var(--white); border: 1px solid var(--rule-hi); border-radius: 3px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; }
.copy:hover { border-color: var(--load); color: var(--gold-ink); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px dashed var(--rule-hi); border-radius: 99px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }

/* three cells: what a donation pays for */
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--rule-hi); border-radius: 4px; }
.cell { padding: 26px 26px 28px; }
.cell + .cell { border-left: 1px solid var(--rule); }
.cell .k { margin: 0 0 12px; font: 500 11.5px/1 var(--mono); letter-spacing: .16em; color: var(--gold-ink); }
.cell h3 { margin: 0 0 8px; font: 400 26px/1.1 var(--display); }
.cell p { margin: 0; font-size: 15px; color: var(--ink-2); }
/* the donate page: each cell opens with a small drawing on a drawing-sheet grid */
.uses { overflow: hidden; }
.uses .cell { margin: 0; padding: 0; display: flex; flex-direction: column; }
.uses .fig { margin-top: auto; border-top: 1px solid var(--rule); padding: 18px 18px 10px;
  background-color: #fbfcfe; background-image: linear-gradient(rgba(91,107,126,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(91,107,126,.08) 1px, transparent 1px);
  background-size: 16px 16px; background-position: -1px -1px; }
.uses svg { display: block; width: 100%; height: auto; overflow: visible; }
.uses figcaption { padding: 22px 26px 26px; }
.uses .ln { fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.uses .lt { fill: none; stroke: var(--ink-3); stroke-width: 1.1; stroke-linecap: round; opacity: .55; }
.uses .gr { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-linecap: round; opacity: .7; }
.uses .nw { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 4 4; stroke-linecap: round; }
.uses .nd { fill: var(--gold); }
.uses .au { fill: none; stroke: var(--gold-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.uses .au.dash { stroke-dasharray: 3 4; }
.uses .gr.dash { stroke-dasharray: 3 3; }
.uses .fl { fill: rgba(26, 61, 124, .08); }
.uses .rf, .uses .rf circle { fill: var(--white); stroke: var(--gold-ink); stroke-width: 1.6; }
.uses .dt { fill: var(--rule-hi); }
.uses .up rect { fill: var(--navy); opacity: .82; }
.uses .up rect:last-child { fill: var(--gold); opacity: 1; }
.uses .lb { font: 500 9.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--ink-3); }
.uses .lb.url { font-size: 9px; letter-spacing: .02em; text-transform: none; }
@media (max-width: 860px) {          /* one row per cell: the drawing on the left, the words on the right */
  .uses .cell { flex-direction: row; align-items: stretch; }
  .uses .fig { flex: 0 0 40%; display: flex; align-items: center; padding: 12px; margin-top: 0; border-top: 0; border-left: 1px solid var(--rule); }
  .uses figcaption { flex: 1; padding: 18px 20px; align-self: center; }
  .uses .cell h3 { font-size: 22px; }
  .uses .cell p { font-size: 14px; }
}
@media (max-width: 560px) {
  .uses .lb, .uses .lg { display: none; }
  .uses .fig { flex-basis: 42%; padding: 10px 8px; }
  .uses figcaption { padding: 14px 14px 14px 16px; }
  .uses .cell .k { margin-bottom: 8px; }
  .uses .cell h3 { font-size: 20px; margin-bottom: 4px; }
  .uses .cell p { font-size: 13.5px; line-height: 1.45; }
}

/* the gold italic phrase with a dimension line under it, tick to tick, as in the home page hero */
h1 .dim { position: relative; display: inline-block; white-space: nowrap; font-style: italic; color: var(--gold-ink); padding-bottom: .1em; }
h1 .dim::after { content: ''; position: absolute; left: .04em; right: .04em; bottom: .02em; height: 2px; background: currentColor; }
h1 .dim .tk { position: absolute; bottom: -.08em; width: 2px; height: .26em; background: currentColor; transform: rotate(45deg); }
h1 .dim .tk:first-of-type { left: .04em; }
h1 .dim .tk:last-of-type { right: .04em; }

/* the donate heading: no label above it */
/* the donate page: three sections (Dukung Kami, Donasi untuk Pengembangan, Sponsorship), each a
   screen under the menu, snapped like the home page: hard on a tall desktop, soft elsewhere */
main.give-page { padding: 0; }
/* the other inner pages open as the donate page does: the heading near the top, the lede right under it */
main.page-top { padding-top: clamp(20px, 3vw, 36px); }
main.page-top .lede { margin-top: 0; }
h1.give-h { max-width: none; }
.dsec { min-height: calc(100svh - 56px); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(20px, 3vw, 36px); scroll-snap-align: start; }
.dsec + .dsec { border-top: 1px solid var(--rule-hi); }
.dsec > .wrap { width: 100%; }
.dsec { justify-content: flex-start; }   /* every section starts at the top, as "Dukung Kami!" does */
html:has(main.give-page) { scroll-snap-type: y proximity; scroll-padding-top: 56px; }
html:has(main.give-page) .site-foot { scroll-snap-align: end; }
@media (min-width: 981px) and (min-height: 860px) {
  html:has(main.give-page) { scroll-snap-type: y mandatory; }
  .dsec { scroll-snap-stop: always; }
}
.give-h { margin: 0 0 14px; font: 400 clamp(30px, 5.2vw, 42px)/1.05 var(--display); letter-spacing: -.016em; color: var(--ink); }   /* the size of the verification page heading */
main.give-page .lede { margin-top: 0; }
main.give-page .kicker { margin-top: clamp(28px, 3.5vw, 40px); }
#pengembangan .cells, #sponsorship .inst { margin-top: clamp(28px, 3.5vw, 40px); }
.inst h3 { margin: 0 0 4px; font: 400 26px/1.15 var(--display); }

/* sponsors, under the invitation and centred: a navy label, then the logos; each unit's name
   sits under its logo in a chip as wide as the logo, like the payment-method chips */
.spons { margin-top: clamp(32px, 4vw, 48px); text-align: center; }
.spons-k { margin: 0 0 18px; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.spons-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 24px 56px; }
.spon { display: flex; flex-direction: column; gap: 10px; width: 190px; margin: 0; }
.spon img { display: block; width: 100%; height: auto; }
.spon figcaption { white-space: nowrap; padding: 8px 4px 0; border-top: 1px solid var(--rule-hi); text-align: center;   /* the type of the payment-method chips, a rule above, as wide as the logo */
  font: 500 10.5px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }

/* a lede set line by line, as written (wraps only where a line cannot fit) */
.lede.lines { max-width: none; }
.lede.lines span { display: block; }
@media (min-width: 900px) { .lede.lines span { white-space: nowrap; } }

/* donation channels: one card per platform, the platform's own mark, one button */
.give-grid { display: grid; gap: 16px; }
.give-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.give-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.group { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 14px; font: 600 18px/1.3 var(--sans); letter-spacing: -.005em; }
.kicker + .group { margin-top: 0; }
.group small { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.chan { --c: var(--navy); position: relative; display: flex; flex-direction: column; padding: 22px; background: var(--white); border: 1px solid var(--rule-hi); border-radius: 6px;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.chan::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; border-radius: 6px 6px 0 0; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.chan:hover, .chan:focus-within { transform: translateY(-4px); box-shadow: 0 26px 44px -30px rgba(11, 37, 80, .55); }
.chan:hover::before, .chan:focus-within::before { transform: scaleX(1); }
.chan-top { display: flex; align-items: center; gap: 14px; }
.logo { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--c); overflow: hidden; }
.logo svg { width: 26px; height: 26px; }
.logo img { display: block; width: 100%; height: 100%; }
.logo.soft { background: #fff4dc; }
.logo.soft img { width: 34px; height: 34px; }
.logo.bare { background: none; }
.chan h3 { margin: 0; font: 600 19px/1.2 var(--sans); letter-spacing: -.005em; }
.give-grid.three .chan h3 { font-size: 17px; }
.chan .dom { display: block; margin-top: 4px; font: 500 11px/1 var(--mono); letter-spacing: .06em; color: var(--ink-3); }
.chan-foot { margin-top: auto; }
.methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 22px; padding: 0; list-style: none; }
.methods li { padding: 5px 8px; border: 1px solid var(--rule); border-radius: 3px; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.chan .btn { justify-content: space-between; width: 100%; }
.give-grid.two .chan { padding: 26px; }
@media (max-width: 860px) { .give-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .give-grid.two { gap: 10px; }
  .give-grid.two .chan { padding: 14px; }
  .give-grid.two .chan-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .give-grid.two .chan h3 { font-size: 16px; }
  .give-grid.two .methods { margin: 12px 0 14px; }
  .give-grid.two .chan .btn { min-height: 40px; padding: 0 10px; gap: 4px; font-size: 10.5px; letter-spacing: .03em; }
}
@media (max-width: 560px) { .give-grid.three { grid-template-columns: minmax(0, 1fr); } }
.secure { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 14px; color: var(--ink-3); }
.secure svg { width: 16px; height: 16px; flex: none; color: var(--ok); }
.inst { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 26px 28px; background: var(--white); border: 1px solid var(--rule-hi); border-radius: 6px; }
.inst h3 { margin: 0 0 4px; font: 400 26px/1.15 var(--display); }
.inst p { margin: 0; color: var(--ink-2); font-size: 15px; }
.inst .mail { display: flex; align-items: center; gap: 12px; }
.inst .mono { font-size: 15px; color: var(--ink); }

/* a short list with gold diamonds */
.ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); border-top: 1px solid var(--rule-hi); }
.ways li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 6px 16px; align-items: baseline; padding: 17px 2px; border-bottom: 1px solid var(--rule); }
.ways .k { font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ways .v { font-size: 16px; }
.ways a { text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* legal pages: a contents rail and plain prose */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 88px); margin-top: clamp(40px, 6vw, 64px); align-items: start; }
.toc { position: sticky; top: 92px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-hi); counter-reset: t; }
.toc li { border-bottom: 1px solid var(--rule); counter-increment: t; }
.toc a { display: block; padding: 11px 2px; font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-decoration: none; transition: color .2s; }
.toc a::before { content: counter(t, decimal-leading-zero) ' '; color: var(--gold-ink); margin-right: 8px; }
.toc a:hover { color: var(--ink); }
.prose { max-width: 68ch; }
.prose.one { margin-top: clamp(32px, 4vw, 48px); padding-top: 28px; border-top: 1px solid var(--rule-hi); }
.prose.one p { margin-bottom: 16px; }
.prose.one .note { margin-top: 28px; font-size: 14.5px; color: var(--ink-3); }
.prose section + section { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--rule); }
.prose h2 { margin: 0 0 14px; font: 400 clamp(26px, 2.8vw, 34px)/1.1 var(--display); letter-spacing: -.01em; }
.prose h3 { margin: 22px 0 8px; font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.prose p { margin: 0 0 12px; color: var(--ink-2); }
.prose p b, .prose li b { font-weight: 600; color: var(--ink); }
.prose ul { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); }
.prose li { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: baseline; }
.prose li::before { content: ''; width: 5px; height: 5px; background: var(--gold); transform: translateY(-2px) rotate(45deg); }
.prose ul.no li::before { background: none; border: 1px solid var(--ink-3); }
.prose a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.sum { margin: 0 0 12px; padding: 18px 20px; background: var(--white); border: 1px solid var(--rule-hi); border-left: 3px solid var(--gold); border-radius: 4px; color: var(--ink); }
.sum p:last-child { margin: 0; }
.sum p { color: var(--ink); }
.upd { margin: 22px 0 0; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; color: var(--ink-3); }
table.lic { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--rule-hi); margin: 0 0 14px; }
table.lic th, table.lic td { padding: 12px 16px; border-bottom: 1px solid var(--rule); text-align: left; font-size: 15px; font-weight: 400; color: var(--ink); }
table.lic thead th { font: 500 11.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
table.lic .c { width: 22%; text-align: center; }
table.lic .y, table.lic .n { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
table.lic .y { color: var(--ok); } table.lic .n { color: var(--ink-3); }
table.lic .y::before { content: '✓ '; } table.lic .n::before { content: '✕ '; }

/* footer */
.foot { border-top: 1px solid var(--rule); background: var(--white); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; padding-block: 26px; font: 500 11.5px/1.4 var(--mono); letter-spacing: .06em; color: var(--ink-3); }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.foot nav a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .cells { grid-template-columns: minmax(0, 1fr); }
  .cell + .cell { border-left: 0; border-top: 1px solid var(--rule); }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
@media (max-width: 560px) {
  .links a:not([aria-current]):not(.keep) { display: none; }
  .ways li { grid-template-columns: minmax(0, 1fr); }
  table.lic th, table.lic td { padding: 11px 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .btn .arr, .chan, .chan::before { transition: none; } }
