/* National Library of Papua — shared styles for the Shop and Give pages */
:root {
  --bg: #F6F4EF; --surface: #FFFFFF; --sunken: #EFEBE2; --ink: #1B1530; --muted: #5E5870; --line: #DDD6C8;
  --purple: #34105E; --night: #1E0640; --hut: #E8820F; --hut-soft: #FCE9D4; /* Monarch butterfly: orange, soft orange */ --monarch-text: #B5500B; --vein: #1A1210; --spot: #FFF8EE; --ok: #1E6B45; --rust: #8B1A1A;
  --display: Georgia, "Times New Roman", serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #120B1F; --surface: #1C1430; --sunken: #241A3B; --ink: #EEEAF6; --muted: #B1A9C6; --line: #3A2F55; --hut-soft: #3A2312; --ok: #7FD1A5; --rust: #E58A7C; }
}
:root[data-theme="dark"] { --bg: #120B1F; --surface: #1C1430; --sunken: #241A3B; --ink: #EEEAF6; --muted: #B1A9C6; --line: #3A2F55; --hut-soft: #3A2312; --ok: #7FD1A5; --rust: #E58A7C; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
:focus-visible { outline: 3px solid #2F6FD0; outline-offset: 2px; }

/* top of page: same as the Memory Atlas */
.nlp { background: #fff; color: var(--purple); }
.topnav { background: var(--night); display: flex; justify-content: space-around; flex-wrap: wrap; gap: 4px 12px; padding: 12px 16px; }
.topnav a { color: #fff; text-decoration: none; font-size: 20px; padding: 2px 6px; border-bottom: 2px solid transparent; }
.topnav a:hover, .topnav a[aria-current="page"] { border-bottom-color: var(--hut); }
.hero { text-align: center; padding: 30px 16px 18px; }
.hero .hut { width: min(300px, 64vw); height: auto; display: block; margin: 0 auto 4px; }
.nlp h1 { font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(22px, 4vw, 38px); margin: 2px 0 0; color: var(--purple); }
.nlp h1.logoh { margin: 0 0 12px; line-height: 1; }
.nlp h1.logoh a { text-decoration: none; }
.wm { display: inline-flex; flex-direction: column; align-items: center; font-family: Georgia, "Times New Roman", serif; text-transform: uppercase; }
.wm-t { color: #4E0B70; font-weight: 700; font-size: clamp(24px, 5vw, 48px); letter-spacing: .005em; line-height: 1; white-space: nowrap; }
.wm-b { color: #EE7A12; font-weight: 700; font-size: clamp(14px, 2.2vw, 23px); letter-spacing: .45em; padding-left: .45em; margin-top: .4em; line-height: 1; white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero .tagline { font-style: italic; font-size: clamp(16px, 2vw, 21px); margin: 4px auto 0; max-width: 900px; line-height: 1.35; color: #B5500B; } /* Monarch butterfly orange */
.hrule { height: 10px; border-top: 4px solid var(--purple); background: var(--hut); border-bottom: 2px solid var(--vein); } /* purple, monarch orange, wing-vein black */
.pagehead { background: var(--purple); color: #fff; text-align: center; padding: 26px 16px 28px; }
.pagehead h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; }
.pagehead p { margin: 0 auto; max-width: 62ch; opacity: .9; }

/* sections */
section.blk { padding: 34px 0; }
section.blk + section.blk { border-top: 1px solid var(--line); }
.blk h3 { font-family: var(--display); font-weight: 400; font-size: 27px; margin: 0 0 6px; color: var(--purple); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blk h3 { color: #CBB6F0; } }
.lead { color: var(--muted); margin: 0 0 18px; max-width: 70ch; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.card h4 { margin: 0; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .meta { font-size: 13.5px; color: var(--muted); }
.card .price { font-weight: 700; font-size: 18px; color: var(--ink); }
.card .actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.tag { display: inline-block; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; background: var(--hut-soft); color: var(--ink); border-radius: 99px; padding: 2px 10px; }
.btn { font: inherit; font-size: 16px; border: 2px solid var(--purple); background: transparent; color: var(--purple); border-radius: 99px; padding: 9px 20px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn.primary { background: var(--purple); color: #fff; }
.btn.primary:hover { box-shadow: inset 0 -3px 0 var(--hut); }
.btn.gold { background: var(--hut); border-color: var(--hut); color: #1E0640; font-weight: 700; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.primary):not(.gold) { color: #E5DAF7; border-color: #8E74C2; } }
.note { background: var(--hut-soft); border-left: 5px solid var(--hut); padding: 14px 18px; border-radius: 4px; margin: 18px 0 0; font-size: 15.5px; }
.note b { color: var(--ink); }
.rules { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 0; padding: 0; list-style: none; }
.rules li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; font-size: 15.5px; }
.rules li b { display: block; margin-bottom: 2px; }

/* category chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chips button { font: inherit; font-size: 15px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--purple); color: #fff; border-color: var(--purple); }
.empty { border: 2px dashed var(--line); border-radius: 8px; padding: 18px; color: var(--muted); }

/* forms */
form.f { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: grid; gap: 14px; max-width: 760px; }
form.f label { display: grid; gap: 4px; font-weight: 600; font-size: 15.5px; }
form.f input, form.f select, form.f textarea { font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--ink); width: 100%; }
form.f textarea { min-height: 110px; }
form.f fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin: 0; }
form.f legend { font-weight: 600; font-size: 15.5px; padding: 0 4px; }
.checks { display: grid; gap: 6px 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
form.f .checks label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
form.f .checks input { width: auto; margin-top: 5px; flex: none; }
.two { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { padding: 12px 16px; border-radius: 6px; font-size: 15.5px; }
.msg.ok { background: #E3F1E9; color: #12442C; }
.msg.err { background: #F6E7E5; color: #6B1414; }

/* giving */
.seg { display: inline-flex; border: 2px solid var(--purple); border-radius: 99px; overflow: hidden; margin-bottom: 14px; flex-wrap: wrap; }
.seg button { font: inherit; border: 0; background: transparent; color: var(--purple); padding: 8px 18px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--purple); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button:not([aria-pressed="true"]) { color: #E5DAF7; } }
.amounts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.amounts button { font: inherit; font-size: 18px; font-weight: 700; min-width: 92px; padding: 12px 16px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; cursor: pointer; }
.amounts button[aria-pressed="true"] { border-color: var(--hut); background: var(--hut-soft); }
.amounts input { font: inherit; font-size: 18px; width: 180px; padding: 12px; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.givebox { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; max-width: 760px; }
.tiers .card.hl { border: 2px solid var(--hut); }
.tiers .amt { font-size: 22px; font-weight: 800; color: var(--ink); }
.ways { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ways a { text-decoration: none; }
.ways .card:hover { border-color: var(--hut); }

footer.foot { background: var(--night); color: #E9E3F5; padding: 26px 0 32px; font-size: 14.5px; margin-top: 30px; }
footer.foot a { color: #fff; }
footer.foot p { margin: 4px 0; }
@media (max-width: 560px) { .topnav a { font-size: 16px; } .amounts button { min-width: 74px; } }

.card img.cover { width: 100%; max-width: 180px; aspect-ratio: 2 / 3; object-fit: cover; align-self: center; border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.18); margin-bottom: 4px; }
.card h4 { font-size: 17px; line-height: 1.3; }
