:root {
  --ink: #17271f;
  --green: #11382c;
  --gold: #f2ce8d;
  --paper: #fbfaf6;
  --muted: #475a50;
  --line: #dce3da;
  --light: #eef2ec;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body, figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #a57333; outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.bar { background: white; border-bottom: 1px solid var(--line); }
.top, .footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; flex: none; }
.brand img { display: block; width: clamp(124px, 20vw, 250px); height: auto; }
.top > nav, .header-actions { display: flex; align-items: center; gap: 24px; }
.top > nav a { text-decoration: none; font-weight: 650; font-size: .94rem; }
.top > nav a:hover, .refs a:hover { text-decoration: underline; }
.header-actions { gap: 10px; }
.language select { width: auto; padding: .45rem; font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.button { display: inline-block; border: 1px solid transparent; border-radius: 7px; padding: .78rem 1.05rem; background: var(--gold); color: #202c24; text-decoration: none; font: 700 .96rem/1.4 system-ui, sans-serif; cursor: pointer; }
.button:hover { background: #ffdfa6; }
.button.small { color: white; background: var(--green); padding: .55rem 1rem; }
.button.outline { background: transparent; color: white; border-color: #ffffff75; }
.button.outline:hover { background: #ffffff18; }
.showcase { margin-top: clamp(16px,3vw,36px); }
.hero { display: grid; grid-template-columns: minmax(0,.94fr) minmax(0,1.26fr); background: var(--green); color: white; overflow: hidden; border-radius: 18px; min-height: 455px; }
.hero-inner { align-self: center; padding: clamp(28px,5vw,72px); }
.hero-inner p { max-width: 420px; color: #e8f1ea; margin: 20px 0; }
.hero-photo { display: grid; grid-template-rows: 1fr auto; position: relative; min-height: 290px; background: #ccdbce; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.photo-credit { position: relative; grid-row: 2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 16px; padding: 9px 16px; color: white; background: #10271de8; font-size: .78rem; }
.photo-credit a { text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
h1,h2,h3 { font-family: Georgia, serif; line-height: 1.1; margin: 0; font-weight: 500; }
h1 { font-size: clamp(2.7rem,5vw,5rem); letter-spacing: -.052em; max-width: 12ch; overflow-wrap: anywhere; }
h2 { font-size: clamp(2.05rem,4vw,3.65rem); letter-spacing: -.046em; }
h3 { font-size: clamp(1.35rem,2vw,1.85rem); letter-spacing: -.025em; }
.program-nav { display: grid; grid-template-columns: minmax(140px,.35fr) minmax(0,1.65fr); gap: 12px 24px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.program-nav h2 { padding-top: 7px; font: 750 1rem/1.4 system-ui, sans-serif; letter-spacing: 0; }
.program-nav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.program-nav li a, .program-join { display: inline-block; border: 1px solid var(--line); border-radius: 7px; padding: 6px 11px; text-decoration: none; font-size: .9rem; font-weight: 550; background: white; }
.program-nav a:hover { background: var(--light); border-color: #9caf9f; }
.eyebrow { margin: 0 0 12px; color: #3b5b4d; font-size: .83rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.section { padding-block: clamp(44px,7vw,88px); }
.intro { max-width: 680px; margin-bottom: 30px; }
.intro > p:not(.eyebrow), article p { color: var(--muted); }
article p { margin: 10px 0 0; }
.grid { display: grid; gap: 14px 24px; }
.three { grid-template-columns: repeat(3,1fr); }
.two { grid-template-columns: repeat(2,1fr); }
.editorial { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(24px,6vw,96px); }
.editorial .rows { grid-template-columns: 1fr; }
.rows article { border-top: 1px solid #b8c5b9; padding: 17px 0 10px; }
.support { background: var(--light); }
.service-grid { gap: clamp(16px,2.4vw,28px); }
.service-grid article {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid #d4dfd6;
  border-radius: 14px;
  background: white;
  box-shadow: 0 8px 22px #17382b0c;
  scroll-margin-top: 24px;
}
.service-grid article:target {
  border-color: #527e69;
  box-shadow: 0 0 0 3px #527e6926, 0 8px 22px #17382b14;
}
.service-heading {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  align-content: center;
  column-gap: 15px;
  row-gap: 3px;
  min-height: 112px;
  padding: clamp(16px,2.3vw,26px);
  background: #153e31;
  color: #fffdf6;
  border-radius: 13px 13px 0 0;
}
.service-icon {
  grid-row: 1 / 3;
  align-self: center;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #f2ce8d65;
  border-radius: 10px;
  background: #f2ce8d12;
  color: var(--gold);
}
.service-icon svg { width: 24px; height: 24px; }
.service-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 164px;
  padding-right: max(27%, 92px);
}
.service-heading::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 45%;
  background-image: linear-gradient(90deg, #153e31, #153e3100 62%), url("/bantuan-ilustrasi.webp");
  background-size: 100% 100%, 200% 200%;
  background-repeat: no-repeat;
}
#hukum .service-heading::before { background-position: center, left top; }
#pemakaman .service-heading::before { background-position: center, right top; }
#kepulangan .service-heading::before { background-position: center, left bottom; }
#rumah-singgah .service-heading::before { background-position: center, right bottom; }
@media (max-width: 460px) {
  .service-heading { grid-template-columns: 34px minmax(0,1fr); column-gap: 9px; }
  .service-heading .service-icon { width: 34px; height: 34px; }
  .service-heading .service-icon svg { width: 19px; height: 19px; }
  .service-heading::before { opacity: .66; }
}

.service-heading .tag { color: #f2ce8d; font-size: .875rem; font-weight: 650; line-height: 1.4; }
.service-grid h3 { font-size: clamp(1.32rem,2.15vw,1.85rem); line-height: 1.16; overflow-wrap: anywhere; }
.service-content {
  display: flex;
  flex-direction: column;
  padding: clamp(17px,2.3vw,26px);
}
.service-content p { max-width: 62ch; margin: 0; }
.refs { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; padding-top: 17px; }
.refs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #ceded3;
  border-radius: 7px;
  color: #214f3c;
  background: #f1f6f1;
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.refs a:hover { background: #e4efe6; text-underline-offset: 3px; }
.join { background: var(--green); color: white; }
.join .eyebrow { color: var(--gold); }
.join .intro > p:not(.eyebrow), .join details { color: #e4eee6; }
.join-layout { display: grid; grid-template-columns: 1fr 1.17fr; gap: clamp(22px,7vw,100px); }
.note { border-block: 1px solid #ffffff50; padding-block: 12px; }
summary { cursor: pointer; font-weight: 700; }
form { display: grid; gap: 14px; padding: clamp(17px,4vw,32px); color: var(--ink); background: var(--paper); border-radius: 12px; }
.fields { gap: 12px; }
label { display: grid; align-content: start; gap: 4px; font-size: .94rem; font-weight: 700; }
label span[data-copy^="optional-"] { color: var(--muted); font-weight: 400; }
input, select { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #96aa9b; border-radius: 6px; background: white; color: var(--ink); font: inherit; font-weight: 450; }
form button { justify-self: start; }
#status { margin: 0; color: #2f6851; }
#status:empty { display: none; }
.footer { padding-block: 14px; }
.footer p { color: var(--muted); font-size: .94rem; }
@media(max-width:900px) {
  .wrap { width: calc(100% - 40px); }
  .top { flex-wrap: wrap; gap: 10px; padding-block: 12px; }
  .top > nav { order: 1; flex-basis: 100%; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { min-height: clamp(205px,49vw,410px); }
  .editorial,.join-layout { grid-template-columns: 1fr; gap: 14px; }
}
@media(max-width:600px) {
  .wrap { width: calc(100% - 28px); }
  .hero { border-radius: 12px; }
  .hero-inner { padding: 29px 20px; }
  .program-nav { grid-template-columns: 1fr; }
  .program-nav h2 { padding-top: 0; }
  .program-join { justify-self: start; }
  .two,.three { grid-template-columns: 1fr; }
  .footer { align-items: flex-start; flex-direction: column; gap: 0; }
}
@media(max-width:440px) { .header-actions { flex-basis: 100%; justify-content: space-between; } }

/* Portal masthead and lead stories */
.channels { background: var(--green); color: white; }
.channels nav {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #85a499 transparent;
}
.channels a { padding-block: 11px; font-size: .9rem; font-weight: 650; text-decoration: none; }
.channels a:hover { text-decoration: underline; text-underline-offset: 4px; }
.channels a:focus-visible { outline-offset: -3px; }
.lead-label {
  margin-top: 28px;
  padding: 0 0 9px;
  border-bottom: 2px solid var(--green);
  font: 750 1.2rem/1.3 system-ui,sans-serif;
  letter-spacing: -.01em;
}
.showcase {
  display: grid;
  grid-template-columns: minmax(0,2.2fr) minmax(0,1fr);
  align-items: start;
  gap: clamp(20px,3vw,38px);
  margin-top: 16px;
}
.hero {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: white;
}
.hero-photo { min-height: 0; width: 100%; aspect-ratio: 2.12; }
.hero-inner { align-self: stretch; padding: clamp(18px,3vw,33px); }
.hero-inner h1 { max-width: none; font-size: clamp(2rem,4vw,3.75rem); }
.hero-inner p { max-width: 62ch; margin: 12px 0; color: var(--muted); }
.hero .button { background: var(--green); color: white; }
.hero .button:hover { background: #215143; }
.hero .button.outline { background: white; color: var(--green); border-color: #9bb1a5; }
.hero .button.outline:hover { background: var(--light); }
.program-nav { display: block; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: white; }
.program-nav h2 { padding: 15px 17px; font-size: 1.08rem; background: var(--light); border-radius: 8px 8px 0 0; }
.program-nav ul { display: block; }
.program-nav li + li { border-top: 1px solid var(--line); }
.program-nav li a, .program-nav .program-join {
  display: block;
  border: 0;
  border-radius: 0;
  padding: 11px 17px;
}
.program-nav .program-join { border-top: 1px solid var(--line); color: var(--green); font-weight: 750; border-radius: 0 0 8px 8px; }
.program-nav a:focus-visible { outline-offset: -3px; }
@media (max-width: 740px) {
  .showcase { grid-template-columns: 1fr; }
  .channels nav { gap: 17px; }
  .hero-photo { aspect-ratio: 1.75; }
}

.account-card { align-self: center; }
.account-page { width: min(740px, calc(100% - 32px)); }
.account-page.admin-page { width: min(1060px, calc(100% - 32px)); }
.account-page h1 { max-width: none; font-size: clamp(2.25rem,6vw,4rem); }
.account-page form { border: 1px solid var(--line); background: white; }
.account-page .status-copy { padding: 10px 14px; border-left: 3px solid #a57333; background: var(--light); }
.member-list { display: grid; gap: 14px; margin-top: 22px; }
.member-list article { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: white; overflow-wrap: anywhere; }
.member-list form { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px 0 0; border: 0; align-items: end; }
.member-list dl { display: grid; grid-template-columns: minmax(90px,1fr) 3fr; gap: 4px 16px; }
.member-list dd { margin: 0; }
.member-list dt { font-weight: 650; }
.account-top { flex-wrap: wrap; padding-block: 10px; }
.account-page form.signout { padding: 14px 0 0; border: 0; background: transparent; }

.account-page.auth-page {
  display: grid;
  grid-template-columns: minmax(0,1.16fr) minmax(0,1fr);
  width: min(1120px, calc(100% - 40px));
  padding-block: clamp(20px,4vw,56px);
}
.auth-scene {
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 16px 0 0 16px;
  background: var(--green);
}
.auth-scene img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.auth-scene figcaption {
  position: relative;
  grid-row: 2;
  padding: 26px 18px 10px;
  background: linear-gradient(transparent,#10271df2);
  color: white;
  font-size: .82rem;
}
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(22px,4vw,56px);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 16px 16px 0;
  background: white;
}
.auth-panel h1 { font-size: clamp(2.15rem,4vw,3.55rem); margin-bottom: 22px; }
.auth-panel form { padding: 0; border: 0; }
.auth-panel form p { margin: 0; color: var(--muted); font-size: .9rem; }
.auth-panel button { width: 100%; background: var(--green); color: white; }
.auth-panel button:hover { background: #215143; }
@media (max-width: 740px) {
  .account-page.auth-page { grid-template-columns: 1fr; }
  .auth-scene { min-height: clamp(190px,52vw,340px); border-radius: 14px 14px 0 0; }
  .auth-panel { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; }
}

.password-field { display: grid; gap: 4px; }
.password-control { position: relative; }
.password-control input { padding-right: 52px; }
.auth-panel .password-toggle {
  position: absolute;
  inset: 0 1px 0 auto;
  width: 46px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--green);
  cursor: pointer;
}
.auth-panel .password-toggle:not([hidden]) { display: grid; place-items: center; }
.auth-panel .password-toggle:hover { background: var(--light); }
.password-toggle svg { width: 22px; height: 22px; }
.password-slash { display: none; }
.password-toggle[aria-pressed="true"] .password-slash { display: inline; }

.service-heading h3 a { text-decoration: none; }
.service-heading h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.account-page.program-page { width: min(930px, calc(100% - 32px)); }
.program-intro { max-width: 65ch; color: var(--muted); font-size: 1.08rem; }
.program-photo { margin-block: 25px; overflow: hidden; border-radius: 12px; background: var(--green); color: white; }
.program-photo img { display: block; width: 100%; max-height: 440px; aspect-ratio: 1.8; object-fit: contain; }
.program-photo figcaption { padding: 8px 16px; font-size: .85rem; }
.program-detail-body { max-width: 70ch; }
.program-detail-body section { padding-block: 16px; border-bottom: 1px solid var(--line); }
.program-detail-body h2 { font-size: clamp(1.45rem,3vw,2rem); }
