/* The Yong Nonprofit & Association Platform (1.4.0) — loaded after healthcare.css (shared platform layout).
   Signature element: "one person, five roles" ring around one account. Status colors are reserved for the
   five membership statuses so they keep their meaning everywhere on the section. */
:root {
  --st-current: #1F7A4D; --st-current-bg: #E6F3EC;
  --st-not: #A23B2A; --st-not-bg: #FBEAE6;
  --st-pending: #8A6100; --st-pending-bg: #FFF4D9;
  --st-expired: #5B6474; --st-expired-bg: #EEF0F3;
  --st-susp: #FFFFFF; --st-susp-bg: #2B2F38;
}

/* ------------------------------------------------------------------ the ring */
.nap-ring { position: relative; height: 560px; margin-top: 18px; }
.nap-ring-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.nap-ring-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 150px; height: 150px; border-radius: 50%;
  background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  box-shadow: 0 0 0 10px var(--paper), 0 0 0 11px var(--gold); z-index: 1; }
.nap-ring-center .ic { width: 28px; height: 28px; color: var(--gold); }
.nap-ring-center b { font: 600 1rem/1.2 var(--serif); padding: 0 16px; }
.nap-ring-roles { list-style: none; margin: 0; padding: 0; }
.nap-ring-roles li { position: absolute; width: 230px; transform: translate(-50%, -50%); text-align: center; z-index: 2; }
.nap-ring-roles .node { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1.5px solid var(--gold); display: grid; place-items: center;
  margin: 0 auto 8px; color: var(--bronze); box-shadow: 0 0 0 6px var(--paper); }
.nap-ring-roles .node .ic { width: 22px; height: 22px; }
.nap-ring-roles h3 { font-size: 1.08rem; margin: 0 0 .2em; }
.nap-ring-roles p { margin: 0; font-size: .9rem; color: var(--muted); background: var(--paper); line-height: 1.45; }
.nap-ring-roles .r1 { left: 50%; top: 15.9%; }
.nap-ring-roles .r2 { left: 79%; top: 39.5%; }
.nap-ring-roles .r3 { left: 66%; top: 80%; }
.nap-ring-roles .r4 { left: 34%; top: 80%; }
.nap-ring-roles .r5 { left: 21%; top: 39.5%; }

/* free-offer box */
.nap-free { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: #fff; border: 1.5px dashed var(--gold);
  border-radius: 18px; padding: 24px 26px; }
.nap-free h2 { font-size: 1.45rem; margin: 0 0 .25em; }
.nap-free p { margin: 0; color: var(--muted); }
.nap-free-tag { font: 700 1.05rem/1 var(--serif); background: var(--gold); color: var(--ink); border-radius: 12px; padding: 16px 14px; transform: rotate(-4deg); }

/* ------------------------------------------------------------------ home page anatomy */
.nap-anatomy { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.nap-wire { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 120px; }
.nap-wire-body { padding: 14px; display: grid; gap: 8px; }
.nap-wire .w { position: relative; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-radius: 8px; background: var(--paper); padding: 12px 12px 12px 40px; min-height: 44px; }
.nap-wire .w b { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff;
  font: 600 .74rem/22px var(--sans); text-align: center; }
.nap-wire .w1 { background: var(--ink); flex-direction: column; align-items: flex-start; padding-top: 16px; padding-bottom: 16px; }
.nap-wire .w1 b { background: var(--gold); color: var(--ink); }
.nap-wire .w1 i { display: block; height: 9px; border-radius: 5px; background: rgba(255,255,255,.55); }
.nap-wire .w1 i:first-of-type { height: 13px; background: #fff; }
.nap-wire .btn-w { width: 74px; height: 20px; border-radius: 999px; border: 1.5px solid var(--ink); }
.nap-wire .btn-w.gold { background: var(--gold); border-color: var(--gold); }
.nap-wire .img-w { width: 72px; height: 46px; border-radius: 6px; background: #CDD6E3; }
.nap-wire .lines-w { flex: 1; display: grid; gap: 6px; }
.nap-wire .lines-w i { display: block; height: 7px; border-radius: 4px; background: #D6DCE5; }
.nap-wire .lines-w i.bar-w { background: linear-gradient(90deg, var(--gold) 62%, #E7EAF0 62%); height: 8px; }
.nap-wire .card-w { flex: 1; height: 38px; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.nap-wire .num-w { flex: 1; height: 26px; border-radius: 6px; background: #fff; border-left: 3px solid var(--gold); }
.nap-wire .thumb-w { width: 40px; height: 30px; border-radius: 4px; background: #D6DCE5; }
.nap-wire .w7 .ic { width: 18px; height: 18px; color: var(--st-current); }
.nap-wire .w7 i { display: block; height: 7px; border-radius: 4px; background: #D6DCE5; }
.nap-anat-list { list-style: none; margin: 0; padding: 0; counter-reset: an; }
.nap-anat-list li { counter-increment: an; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nap-anat-list li::before { content: counter(an); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff;
  font: 600 .8rem/26px var(--sans); text-align: center; margin-top: 2px; }
.nap-anat-list h3 { font-size: 1.06rem; margin: 0 0 .15em; }
.nap-anat-list p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ------------------------------------------------------------------ statuses */
.nap-badge { display: inline-flex; align-items: center; gap: 7px; font: 600 .86rem/1 var(--sans); padding: 7px 12px; border-radius: 999px; }
.nap-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.nap-badge.current { background: var(--st-current-bg); color: var(--st-current); }
.nap-badge.notcurrent { background: var(--st-not-bg); color: var(--st-not); }
.nap-badge.pending { background: var(--st-pending-bg); color: var(--st-pending); }
.nap-badge.expired { background: var(--st-expired-bg); color: var(--st-expired); }
.nap-badge.suspended { background: var(--st-susp-bg); color: var(--st-susp); }
.nap-statuses { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.nap-status { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.nap-status p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.nap-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.nap-dot.current { background: var(--st-current); } .nap-dot.notcurrent { background: var(--st-not); }
.nap-dot.pending { background: var(--st-pending); } .nap-dot.expired { background: var(--st-expired); }

/* member dashboard mock */
.nap-dash-status { margin-top: 12px; padding: 14px; border-radius: 12px; background: var(--paper); }
.nap-dash-status p { margin: 6px 0 0; }
.nap-dash-status .btn { margin-top: 12px; pointer-events: none; }
.btn-sm { padding: 8px 14px; font-size: .88rem; }

/* reminder timeline */
.nap-timeline { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.nap-timeline::before { content: ""; position: absolute; left: 10%; right: 10%; top: 9px; height: 2px; background: var(--line); }
.nap-timeline li { text-align: center; position: relative; padding: 28px 6px 0; }
.nap-timeline li::before { content: ""; position: absolute; top: 2px; left: 50%; margin-left: -8px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.nap-timeline li:nth-child(3)::before, .nap-timeline li:nth-child(4)::before { border-color: var(--st-not); }
.nap-timeline li.done::before { background: var(--st-current); border-color: var(--st-current); }
.nap-timeline b { display: block; font: 600 1.02rem var(--serif); color: var(--ink); }
.nap-timeline span { font-size: .88rem; color: var(--muted); }

/* donation mock */
.nap-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: 10px; padding: 4px; margin: 14px 0 12px; }
.nap-seg span { text-align: center; padding: 8px; border-radius: 8px; font-weight: 500; font-size: .92rem; color: var(--muted); }
.nap-seg .on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20,33,58,.12); }
.nap-amts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.nap-amts span { text-align: center; padding: 11px 4px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.nap-amts .on { border-color: var(--gold); background: #FBF5E6; }
.nap-tick { display: flex; gap: 10px; align-items: center; margin: 0 0 10px; font-size: .92rem; }
.nap-tick i { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line); background: #fff; }
.nap-tick i.on { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.nap-give .btn { margin-top: 6px; pointer-events: none; }

/* payment flow: 10 steps, 5 per row, the confirmation steps highlighted */
.nap-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: fl; }
.nap-flow li { counter-increment: fl; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 16px; position: relative; font-size: .92rem; line-height: 1.4; color: var(--text); }
.nap-flow li::before { content: counter(fl); display: block; font: 600 1.3rem/1 var(--serif); color: var(--bronze); margin-bottom: 8px; }
.nap-flow li.hl { background: var(--ink); border-color: var(--ink); color: #fff; }
.nap-flow li.hl::before { color: var(--gold); }

/* admin dashboard mock */
.nap-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.nap-kpis div { background: var(--paper); border-radius: 12px; padding: 14px; }
.nap-kpis b { display: block; font: 600 1.7rem/1.1 var(--serif); color: var(--ink); }
.nap-kpis span { font-size: .84rem; color: var(--muted); }
.nap-activity { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nap-activity li { display: flex; gap: 10px; align-items: center; font-size: .92rem; padding: 8px 10px; border-radius: 8px; background: #FAFBFC; }
.nap-activity .ic { width: 18px; height: 18px; color: var(--bronze); }

/* packages */
.nap-pkgs .hc-pkg:nth-child(1) { background: var(--l3); }
.nap-pkgs .hc-pkg:nth-child(2) { background: var(--l1); box-shadow: 0 0 0 3px var(--gold); }
.nap-pkgs .hc-pkg:nth-child(3) { background: var(--l2); }
.nap-rec { font: 700 .74rem/1.2 var(--sans); font-style: normal; color: var(--ink); background: var(--gold); border-radius: 999px; padding: 5px 9px; align-self: flex-start; }
.nap-excl .ic { color: var(--muted); transform: rotate(45deg); }

/* case studies */
.nap-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nap-cases .hc-case-body h3 { font-size: 1.2rem; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .nap-statuses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nap-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nap-cases { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nap-ring { height: auto; }
  .nap-ring-lines { display: none; }
  .nap-ring-center { position: static; transform: none; width: auto; height: auto; border-radius: 14px; flex-direction: row; padding: 14px 18px;
    box-shadow: none; justify-content: flex-start; margin-bottom: 10px; }
  .nap-ring-roles li { position: static; transform: none; width: auto; text-align: left; display: grid; grid-template-columns: 46px 1fr; gap: 14px;
    padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nap-ring-roles .node { margin: 0; box-shadow: none; }
  .nap-ring-roles p { background: none; }
  .nap-free { grid-template-columns: 1fr; }
  .nap-free-tag { justify-self: start; }
  .nap-anatomy { grid-template-columns: 1fr; }
  .nap-wire { position: static; max-width: 460px; }
  .nap-cases { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nap-statuses { grid-template-columns: 1fr; }
  .nap-flow { grid-template-columns: 1fr 1fr; }
  .nap-timeline { grid-template-columns: 1fr; gap: 12px; }
  .nap-timeline::before { left: 9px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .nap-timeline li { text-align: left; padding: 0 0 0 32px; }
  .nap-timeline li::before { left: 1px; margin: 0; top: 3px; }
  .nap-kpis { grid-template-columns: 1fr 1fr; }
}
