:root {
  --ink: #18221f;
  --muted: #687873;
  --line: #dce5df;
  --cream: #f5f6f1;
  --paper: #ffffff;
  --green: #16705a;
  --dark: #123c34;
  --lime: #e4ef9b;
  --mist: #eaf2e8;
  --coral: #e77a5d;
  --shadow: 0 24px 70px rgba(19, 58, 48, 0.13);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 7%, #edf4df 0, transparent 24rem),
    var(--cream);
  font-family: "DM Sans", sans-serif;
}
a,
button,
input,
select {
  font: inherit;
}
a {
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.public-header {
  height: 78px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(15, 45, 39, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}
.public-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px 12px 12px 4px;
  color: var(--dark);
  background: var(--lime);
  font:
    700 20px "Space Grotesk",
    sans-serif;
  box-shadow: 4px 4px 0 rgba(228, 239, 155, 0.22);
}
.public-brand strong,
.public-brand small {
  display: block;
}
.public-brand strong {
  font:
    700 15px "Space Grotesk",
    sans-serif;
}
.public-brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
}
.public-nav {
  display: flex;
  gap: 30px;
}
.public-nav a {
  padding: 29px 0 25px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 12px;
  border-bottom: 3px solid transparent;
}
.public-nav a.active,
.public-nav a:hover {
  color: #fff;
  border-color: #f4d589;
}
.admin-link {
  padding: 10px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}
.admin-link:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}
.admin-link span {
  margin-left: 8px;
  font-size: 15px;
}

.public-hero {
  min-height: 650px;
  padding: 86px 6vw 58px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(
      90deg,
      rgba(21, 42, 38, 0.82) 0%,
      rgba(21, 42, 38, 0.54) 42%,
      rgba(21, 42, 38, 0.08) 100%
    ),
    url("background.png") center / cover no-repeat,
    #b9cda9;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.public-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(18, 50, 42, 0.72), transparent 48%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  align-self: center;
  animation: rise 0.7s ease both;
}
.public-kicker {
  margin: 0 0 16px;
  color: #f4d589;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.hero-content h1 {
  margin: 0;
  color: #fff;
  font:
    700 clamp(42px, 5.2vw, 72px)/0.99 "Space Grotesk",
    sans-serif;
  letter-spacing: -1.5px;
}
.hero-content h1 em {
  color: #f4d589;
  font-style: normal;
}
.hero-copy {
  max-width: 400px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}
.hero-button,
.primary-button {
  padding: 13px 17px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(31, 104, 78, 0.25);
}
.hero-button:hover,
.primary-button:hover {
  background: var(--dark);
  transform: translateY(-2px);
}
.hero-button span {
  margin-left: 12px;
  font-size: 16px;
}
.text-link,
.arrow-link {
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.text-link span {
  margin-left: 8px;
}
.text-link:hover,
.arrow-link:hover {
  color: var(--dark);
}

.hero-visual {
  display: none;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 14px 14px;
}
.sun {
  width: 92px;
  height: 92px;
  position: absolute;
  top: 42px;
  right: 18%;
  border-radius: 50%;
  background: #f5dc83;
  box-shadow: 0 0 0 16px rgba(245, 220, 131, 0.18);
}
.hill {
  position: absolute;
  bottom: -85px;
  border-radius: 50% 50% 0 0;
  transform: rotate(-6deg);
}
.hill-back {
  width: 120%;
  height: 220px;
  left: -15%;
  background: #7da77a;
}
.hill-front {
  width: 130%;
  height: 180px;
  left: -12%;
  bottom: -102px;
  background: #4f8462;
  transform: rotate(7deg);
}
.house {
  width: 116px;
  height: 82px;
  position: absolute;
  z-index: 2;
  bottom: 72px;
  left: 45%;
  background: #f6e7c8;
  box-shadow: 14px 10px 0 rgba(22, 74, 53, 0.12);
}
.house::before {
  content: "";
  position: absolute;
  top: -42px;
  left: -14px;
  border-right: 72px solid transparent;
  border-bottom: 46px solid #b85f4b;
  border-left: 72px solid transparent;
}
.house span {
  width: 22px;
  height: 34px;
  position: absolute;
  bottom: 0;
  left: 47px;
  background: #6b8d79;
}
.tree {
  width: 12px;
  height: 100px;
  position: absolute;
  z-index: 2;
  bottom: 40px;
  background: #6d503b;
}
.tree::before,
.tree::after,
.tree i {
  content: "";
  width: 58px;
  height: 58px;
  position: absolute;
  left: -23px;
  border-radius: 50%;
  background: #2d6d54;
}
.tree::before {
  top: -52px;
}
.tree::after {
  top: -25px;
  left: 5px;
}
.tree i {
  top: -13px;
  left: -29px;
  background: #3f825b;
}
.tree-one {
  left: 18%;
}
.tree-two {
  right: 17%;
  height: 80px;
  transform: scale(0.8);
}
.hero-note {
  position: absolute;
  z-index: 3;
  right: 22px;
  bottom: 20px;
  padding: 12px 15px;
  color: #fff;
  background: rgba(20, 63, 49, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}
.hero-note strong,
.hero-note span {
  display: block;
}
.hero-note strong {
  font:
    600 13px "Space Grotesk",
    sans-serif;
}
.hero-note span {
  margin-top: 3px;
  color: #d2e2d2;
  font-size: 10px;
}

.quick-strip {
  padding: 24px 6vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.2fr;
  align-items: center;
  gap: 20px;
  background: var(--dark);
  box-shadow: 0 18px 45px rgba(18, 60, 52, 0.12);
  color: #fff;
}
.quick-strip > div:not(.strip-note) {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quick-icon {
  color: var(--lime);
  font-size: 23px;
}
.quick-strip p {
  margin: 0;
}
.quick-strip small,
.quick-strip strong {
  display: block;
}
.quick-strip small {
  color: #a9c4af;
  font-size: 10px;
}
.quick-strip strong {
  margin-top: 4px;
  font:
    600 15px "Space Grotesk",
    sans-serif;
}
.strip-note {
  padding-left: 24px;
  color: #bed0c1;
  border-left: 1px solid #466c57;
  font-size: 11px;
  line-height: 1.6;
}

.public-section {
  padding: 112px 12vw;
}
.profile-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12vw;
  align-items: end;
  background: rgba(255, 255, 255, 0.9);
}
.public-section h2 {
  margin: 0;
  color: var(--dark);
  font:
    600 clamp(30px, 3.4vw, 48px)/1.08 "Space Grotesk",
    sans-serif;
  letter-spacing: -1px;
}
.section-text {
  max-width: 450px;
}
.section-text p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.monograph-section {
  background: linear-gradient(135deg, #edf4e9 0%, #f8f7ef 100%);
}
.monograph-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.monograph-card {
  min-height: 132px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(22, 63, 49, 0.05);
}
.monograph-address {
  grid-column: span 2;
}
.monograph-chart-card {
  grid-column: span 2;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(22, 63, 49, 0.05);
}
.monograph-chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.monograph-chart-heading small {
  color: var(--muted);
  font-size: 11px;
}
.monograph-chart {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}
.monograph-bar-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 10px;
}
.monograph-bar-label,
.monograph-bar-row strong {
  color: var(--muted);
  font-size: 11px;
}
.monograph-bar-row strong {
  color: var(--dark);
  text-align: right;
  font-weight: 700;
}
.monograph-bar-track {
  height: 10px;
  overflow: hidden;
  background: #e7eee3;
  border-radius: 99px;
}
.monograph-bar {
  height: 100%;
  display: block;
  min-width: 0;
  background: linear-gradient(90deg, var(--green), #8ebf67);
  border-radius: inherit;
  transition: width 0.6s ease;
}
.monograph-label {
  color: #729275;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.9px;
  font-weight: 700;
}
.monograph-card strong {
  margin-top: 18px;
  color: var(--dark);
  font:
    600 21px/1.2 "Space Grotesk",
    sans-serif;
}
.monograph-card strong small {
  color: var(--muted);
  font:
    500 11px "DM Sans",
    sans-serif;
}
.monograph-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.monograph-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.monograph-detail-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.monograph-detail-card h3 {
  margin: 0 0 18px;
  color: var(--dark);
  font:
    600 19px "Space Grotesk",
    sans-serif;
}
.monograph-detail-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}
.monograph-detail-card dl div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.monograph-detail-card dt,
.monograph-copy strong {
  color: #729275;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 700;
}
.monograph-detail-card dd,
.monograph-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.monograph-distance {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.monograph-distance strong {
  color: var(--dark);
}
.monograph-copy {
  display: grid;
  gap: 7px;
}
.monograph-copy strong:not(:first-child) {
  margin-top: 8px;
}
.population-pie-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.population-pie-panel {
  min-width: 0;
}
.population-pie-panel > strong {
  display: block;
  color: var(--dark);
  font-size: 11px;
}
.population-pie {
  width: 118px;
  aspect-ratio: 1;
  margin: 18px auto;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(18, 60, 52, 0.08),
    0 10px 22px rgba(18, 60, 52, 0.1);
}
.population-pie-legend {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.population-pie-legend li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}
.population-pie-legend li strong {
  color: var(--dark);
  font-size: 10px;
}
.pie-swatch {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.population-empty {
  color: var(--muted);
  font-size: 11px;
}
.service-section {
  background: #fbfaf5;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 42px;
}
.section-heading > p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-item {
  min-height: 238px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 8px 24px rgba(22, 63, 49, 0.04);
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.service-item:hover {
  border-color: #a4c38e;
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.service-item > summary {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: 0;
}
.service-item > summary::-webkit-details-marker {
  display: none;
}
.service-item > summary:focus-visible {
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(31, 104, 78, 0.18);
}
.service-item[open] {
  border-color: #a4c38e;
  box-shadow: var(--shadow);
}
.org-logo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  font:
    700 15px "Space Grotesk",
    sans-serif;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(30, 67, 49, 0.14);
}
.org-logo-image {
  overflow: hidden;
  background: #fff;
}
.org-logo-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.logo-fallback {
  background: var(--green);
}
.logo-village {
  background: #1f684e;
}
.logo-youth {
  background: #c27b3c;
}
.logo-business {
  background: #3d7180;
  font-size: 12px;
}
.logo-family {
  background: #b65c62;
}
.logo-lpm {
  background: #7c6a9d;
}
.logo-posyandu {
  background: #3f8b83;
}
.logo-farm {
  background: #6e8d45;
}
.service-number {
  color: #91aa94;
  font:
    600 12px "Space Grotesk",
    sans-serif;
}
.service-item strong {
  margin-top: 32px;
  color: var(--dark);
  font:
    600 20px "Space Grotesk",
    sans-serif;
}
.service-item p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.service-arrow {
  margin-top: 15px;
  align-self: end;
  color: var(--green);
  font-size: 20px;
  line-height: 1;
}
.service-item[open] .service-arrow {
  transform: rotate(45deg);
}
.org-structure {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  padding: 16px 0 0 17px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.4;
}
.org-structure li::marker {
  color: #a4c38e;
}
.organization-modal {
  width: min(680px, calc(100% - 32px));
  padding: 30px;
  color: var(--ink);
  background: #fffdf8;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(18, 45, 36, 0.28);
}
.organization-modal::backdrop {
  background: rgba(15, 34, 29, 0.62);
  backdrop-filter: blur(4px);
}
.organization-profile-public {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.organization-profile-public > div,
.organization-activity-public {
  padding: 16px;
  background: #f1f5ed;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.organization-profile-public h3,
.organization-activity-public h3 {
  margin: 0 0 8px;
  color: var(--dark);
  font:
    600 15px "Space Grotesk",
    sans-serif;
}
.organization-profile-public p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.organization-activity-public {
  margin-top: 14px;
}
.activity-summary {
  margin: -2px 0 12px;
  color: var(--muted);
  font-size: 11px;
}
.organization-activity-public > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.organization-activity-public figure {
  margin: 0;
}
.organization-activity-public img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}
.organization-activity-public figcaption {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.modal-heading h2 {
  margin: 0;
  color: var(--dark);
  font:
    600 30px/1.1 "Space Grotesk",
    sans-serif;
}
.modal-heading .public-kicker {
  margin-bottom: 8px;
}
.modal-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--dark);
  background: #eef3e8;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover {
  color: #fff;
  background: var(--green);
}
.org-tree {
  padding: 32px 0 12px;
  text-align: center;
}
.tree-root,
.tree-branch > span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 15px;
  color: var(--dark);
  background: #edf3e5;
  border: 1px solid #c9ddc2;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.tree-root {
  min-width: 150px;
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 8px 18px rgba(31, 104, 78, 0.2);
}
.tree-branch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 42px;
}
.tree-branch::before {
  content: "";
  position: absolute;
  top: -22px;
  right: 12.5%;
  left: 12.5%;
  border-top: 2px solid #c9ddc2;
}
.tree-branch::after {
  content: "";
  position: absolute;
  top: -42px;
  left: 50%;
  height: 42px;
  border-left: 2px solid #c9ddc2;
}
.tree-branch > span::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  height: 22px;
  border-left: 2px solid #c9ddc2;
}
.tree-root > img,
.tree-branch > span > img {
  width: 34px;
  height: 34px;
  margin-right: 8px;
  flex: 0 0 34px;
  border-radius: 50%;
  object-fit: cover;
}
.tree-root > span,
.tree-branch > span > span {
  display: grid;
  gap: 3px;
}
.tree-root small,
.tree-branch small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 9px;
  font-weight: 500;
}
.tree-branch small {
  color: #729275;
}

.info-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12vw;
  background: #e9f0e1;
}
.info-list article {
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #cadbc8;
}
.info-list article:last-child {
  margin-bottom: 0;
}
.info-list span {
  color: #729275;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.info-list h3 {
  margin: 11px 0 15px;
  color: var(--dark);
  font:
    600 18px/1.3 "Space Grotesk",
    sans-serif;
}
.info-list a {
  color: var(--green);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}
.public-footer {
  padding: 34px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--dark);
  color: #d5e1d4;
}
.public-footer .public-brand {
  color: #fff;
}
.public-footer .public-brand small {
  color: #a8c3aa;
}
.public-footer p,
.copyright {
  margin: 0;
  color: #a8c3aa;
  font-size: 11px;
  line-height: 1.6;
}
.copyright {
  color: #789a7e;
}

.main-content {
  min-height: 100vh;
  padding: 0 7vw 70px;
  background: var(--cream);
}
.form-page {
  max-width: 1040px;
  margin: 0 auto;
}
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb a {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}
.breadcrumb span {
  padding: 0 8px;
  color: #b5c0b6;
}
.topbar-actions {
  color: var(--muted);
  font-size: 11px;
}
.live-dot {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #65a56c;
  box-shadow: 0 0 0 4px #dbeed8;
}
.page-heading {
  padding: 60px 0 30px;
}
.eyebrow {
  margin: 0 0 10px;
  color: #5e896d;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.page-heading h1 {
  margin: 0;
  color: var(--dark);
  font:
    600 38px "Space Grotesk",
    sans-serif;
}
.heading-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.form-card,
.login-card {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(39, 72, 51, 0.06);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field.full {
  grid-column: 1 / -1;
}
.admin-form-section,
.admin-table-section {
  margin-bottom: 24px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.admin-form-section h2,
.admin-table-section h2 {
  margin: 0 0 22px;
  color: var(--dark);
  font:
    600 20px "Space Grotesk",
    sans-serif;
}
.admin-form {
  display: grid;
  gap: 22px;
}
.admin-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.admin-form legend {
  margin-bottom: 9px;
  color: #526159;
  font-size: 11px;
  font-weight: 600;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.checkbox-grid label {
  padding: 11px;
  color: var(--muted);
  background: #f4f8f1;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
}
.checkbox-grid input {
  accent-color: var(--green);
}
.admin-table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--muted);
  font-size: 12px;
}
.admin-table th,
.admin-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  color: #729275;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.7px;
}
.admin-table td strong {
  color: var(--dark);
}
.table-action {
  padding: 6px 9px;
  color: #a64e4e;
  background: #fff1f1;
  border: 1px solid #f0cccc;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
}
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.table-action-link {
  color: var(--green);
  background: #edf6eb;
  border-color: #cfe2c8;
  text-decoration: none;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.table-muted {
  color: #91aa94;
  font-size: 11px;
}
.form-field label,
.login-form label {
  color: #526159;
  font-size: 11px;
  font-weight: 600;
}
.form-field input,
.form-field select,
.form-field textarea,
.login-form input {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  color: var(--ink);
  background: #fcfdfb;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  font-size: 12px;
}
.form-field textarea {
  height: auto;
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.5;
}
.form-field input[readonly],
.form-field textarea[readonly] {
  color: #5f7567;
  background: #eef3e8;
  border-color: #d5e2d0;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.login-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 100, 75, 0.1);
}
.password-input-wrap {
  position: relative;
}
.password-input-wrap input {
  padding-right: 48px;
}
.password-toggle {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--green);
  background: var(--mist);
  outline: 0;
}
.password-eye {
  width: 16px;
  height: 10px;
  display: block;
  position: relative;
  border: 1.5px solid currentColor;
  border-radius: 80% 15%;
  transform: rotate(45deg);
}
.password-eye::after {
  content: "";
  width: 4px;
  height: 4px;
  position: absolute;
  top: 1px;
  left: 4px;
  border-radius: 50%;
  background: currentColor;
}
.password-toggle.is-visible .password-eye {
  opacity: 0.7;
}
.password-toggle.is-visible .password-eye::before {
  content: "";
  width: 20px;
  position: absolute;
  top: 3px;
  left: -3px;
  border-top: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.cancel-button {
  padding: 11px 15px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  text-decoration: none;
}
.cancel-button:hover {
  color: var(--dark);
  border-color: #abc4ad;
}
.alert {
  margin-bottom: 20px;
  padding: 13px 15px;
  color: #8d4b43;
  background: #fae9e5;
  border-radius: 7px;
  font-size: 12px;
}
.alert p {
  margin: 0 0 4px;
}
.alert p:last-child {
  margin: 0;
}
.success-message {
  margin-bottom: 20px;
  padding: 13px 15px;
  color: #276443;
  background: #e6f3e5;
  border-radius: 7px;
  font-size: 12px;
}
.settings-form {
  display: grid;
  gap: 18px;
}
.field-help {
  color: var(--muted);
  font-size: 11px;
}
.settings-preview {
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background-color: #dce8d6;
  background-position: center;
  background-size: cover;
  border-radius: 10px;
  overflow: hidden;
}
.settings-preview span {
  padding: 7px 10px;
  color: #fff;
  background: rgba(20, 63, 49, 0.78);
  border-radius: 5px;
  font-size: 11px;
}
.organization-settings {
  display: grid;
  gap: 22px;
  margin-top: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.settings-section-heading h2 {
  margin: 0;
  color: var(--dark);
  font:
    600 25px/1.1 "Space Grotesk",
    sans-serif;
}
.settings-section-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.organization-settings-group {
  padding: 20px;
  background: #f8faf6;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.organization-settings-group h3 {
  margin: 0 0 16px;
  color: var(--dark);
  font:
    600 18px "Space Grotesk",
    sans-serif;
}
.organization-logo-preview {
  width: 64px;
  height: 64px;
  display: block;
  margin: 2px 0 8px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.organization-profile-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.activity-upload {
  margin-bottom: 14px;
}
.activity-upload > label {
  display: block;
  margin-bottom: 7px;
  color: #526159;
  font-size: 11px;
  font-weight: 600;
}
.activity-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}
.activity-upload-row input[type="text"] {
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  color: var(--ink);
  background: #fcfdfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
}
.activity-upload-row input[type="file"] {
  min-width: 0;
  padding: 10px 0;
  color: var(--muted);
  font-size: 10px;
}
.add-activity,
.remove-activity {
  padding: 7px 10px;
  color: var(--green);
  background: #eef3e8;
  border: 1px solid #d5e2d0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.remove-activity {
  width: 30px;
  color: #a3544b;
  background: #fae9e5;
  border-color: #f0cfca;
  font-size: 18px;
  line-height: 1;
}
.activity-gallery-preview {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.activity-gallery-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
.organization-member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.organization-member-field {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.member-photo-preview,
.member-photo-placeholder {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  color: #729275;
  background: #e9f0e1;
  border-radius: 50%;
  object-fit: cover;
  font-size: 10px;
}
.member-field-content {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}
.member-field-content strong {
  color: var(--dark);
  font-size: 12px;
}
.member-field-content label {
  color: var(--muted);
  font-size: 10px;
}
.member-field-content input[type="text"],
.member-field-content input:not([type]) {
  width: 100%;
  height: 35px;
  padding: 0 9px;
  color: var(--ink);
  background: #fcfdfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  font-size: 11px;
}
.member-field-content input[type="file"] {
  width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 10%, #f6eec5 0 11%, transparent 11.2%),
    var(--mist);
}
.login-card {
  width: min(100%, 430px);
}
.login-heading {
  margin: 42px 0 24px;
}
.login-heading .eyebrow {
  margin-bottom: 10px;
}
.login-heading h1 {
  margin: 0;
  color: var(--dark);
  font:
    600 30px/1.1 "Space Grotesk",
    sans-serif;
}
.login-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.login-form {
  display: grid;
  gap: 8px;
}
.login-form label {
  margin-top: 10px;
}
.login-form .primary-button {
  width: 100%;
  margin-top: 18px;
}
.login-hint {
  margin: 18px 0 0;
  padding: 10px 12px;
  color: #6c7d70;
  background: #f3f7ed;
  border-radius: 6px;
  font-size: 11px;
  text-align: center;
}
.back-link {
  display: block;
  margin-top: 24px;
  color: var(--green);
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}
.back-link:hover {
  color: var(--dark);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-page {
  background: var(--cream);
}
.admin-layout {
  min-height: 100vh;
  display: flex;
}
.admin-sidebar {
  width: 238px;
  flex: 0 0 238px;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  background: var(--dark);
  color: #d5e1d4;
}
.admin-sidebar .public-brand {
  padding: 0 10px 28px;
  color: #fff;
  border-bottom: 1px solid #345a47;
}
.admin-sidebar .public-brand small {
  color: #9bb7a0;
}
.admin-sidebar-label {
  margin: 30px 10px 10px;
  color: #86aa8d;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.admin-sidebar nav {
  display: grid;
  gap: 5px;
}
.admin-sidebar nav a {
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b8cdb9;
  border-radius: 7px;
  text-decoration: none;
  font-size: 12px;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  color: #fff;
  background: #285742;
}
.admin-sidebar nav a.active {
  box-shadow: inset 3px 0 0 var(--lime);
}
.admin-sidebar nav a.disabled {
  color: #6f8c75;
  cursor: default;
}
.admin-sidebar nav a.disabled span {
  margin-left: auto;
  color: #88a28b;
  font-size: 9px;
}
.admin-submenu {
  color: #b8cdb9;
}
.admin-submenu-title {
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  font-size: 12px;
  color: #b8cdb9;
  background: transparent;
  cursor: pointer;
  list-style: none;
}
.admin-submenu-title::-webkit-details-marker {
  display: none;
}
.admin-submenu-title i {
  margin-left: auto;
  color: #86aa8d;
  font-style: normal;
  transition: transform 0.2s ease;
}
.admin-submenu[open] .admin-submenu-title {
  color: #fff;
  background: #285742;
  box-shadow: inset 3px 0 0 var(--lime);
}
.admin-submenu[open] .admin-submenu-title i {
  transform: rotate(180deg);
}
.admin-submenu-title:hover {
  background: #32684f;
}
.admin-submenu-links {
  display: grid;
  gap: 3px;
  margin: 3px 0 4px 28px;
  padding-left: 12px;
  border-left: 1px solid #466c57;
}
.admin-submenu-links a {
  padding: 8px 10px;
  display: flex;
  gap: 8px;
  color: #91ae97;
  border-radius: 5px;
  text-decoration: none;
  font-size: 11px;
}
.admin-submenu-links a span {
  color: inherit;
}
.admin-submenu-links a:hover {
  color: #fff;
  background: #285742;
}
.admin-sidebar-footer {
  margin-top: auto;
  padding: 18px 10px 0;
  border-top: 1px solid #345a47;
}
.admin-sidebar-footer small {
  display: block;
  color: #86aa8d;
  font-size: 10px;
}
.admin-sidebar-footer a {
  display: inline-block;
  margin-top: 8px;
  color: #dca097;
  font-size: 11px;
  text-decoration: none;
}
.admin-content {
  width: min(100%, 1040px);
  padding-left: 6vw;
  padding-right: 6vw;
}
.admin-home {
  width: min(100%, 1040px);
  padding: 0 6vw 70px;
}
.admin-home h1 {
  margin: 0;
  color: var(--dark);
  font:
    600 38px/1.1 "Space Grotesk",
    sans-serif;
}
.admin-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.admin-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.admin-card small {
  color: var(--muted);
  font-size: 11px;
}
.admin-card strong {
  display: block;
  margin-top: 10px;
  color: var(--dark);
  font:
    600 20px "Space Grotesk",
    sans-serif;
}

@media (max-width: 820px) {
  .admin-sidebar {
    width: 205px;
    flex-basis: 205px;
  }
  .admin-content,
  .admin-home {
    padding-left: 4vw;
    padding-right: 4vw;
  }
  .public-header {
    padding: 0 5vw;
  }
  .public-nav {
    gap: 16px;
  }
  .public-nav a {
    font-size: 11px;
  }
  .public-hero {
    padding-top: 58px;
  }
  .hero-visual {
    min-height: 300px;
  }
  .quick-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .strip-note {
    display: none;
  }
  .public-section {
    padding: 76px 8vw;
  }
  .profile-section,
  .info-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .monograph-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .public-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .admin-layout {
    display: block;
  }
  .admin-sidebar {
    width: 100%;
    min-height: auto;
    padding: 16px 5vw;
  }
  .admin-sidebar .public-brand {
    padding-bottom: 16px;
  }
  .admin-sidebar-label,
  .admin-sidebar-footer {
    display: none;
  }
  .admin-sidebar nav {
    display: grid;
    gap: 4px;
    overflow: visible;
    padding-top: 12px;
  }
  .admin-sidebar nav a {
    padding: 9px 11px;
    white-space: nowrap;
  }
  .admin-submenu-title {
    padding: 9px 11px;
  }
  .admin-submenu-links {
    margin-left: 18px;
  }
  .admin-content,
  .admin-home {
    width: 100%;
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .admin-cards {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
  .public-header {
    height: auto;
    min-height: 72px;
    padding: 16px 5vw;
    flex-wrap: wrap;
  }
  .public-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .public-nav a {
    padding: 6px 0 2px;
  }
  .admin-link {
    margin-left: auto;
  }
  .hero-content h1 {
    font-size: 48px;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }
  .hero-visual {
    min-height: 260px;
    border-radius: 22px 22px 70px 22px;
  }
  .house {
    left: 40%;
  }
  .quick-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 8vw;
  }
  .public-section {
    padding: 62px 8vw;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 28px;
  }
  .service-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .monograph-grid {
    grid-template-columns: 1fr;
  }
  .monograph-detail-grid {
    grid-template-columns: 1fr;
  }
  .monograph-address {
    grid-column: auto;
  }
  .monograph-chart-card {
    grid-column: auto;
  }
  .monograph-bar-row {
    grid-template-columns: 82px minmax(0, 1fr) 44px;
    gap: 7px;
  }
  .organization-modal {
    padding: 22px;
  }
  .organization-member-grid {
    grid-template-columns: 1fr;
  }
  .organization-profile-fields,
  .organization-profile-public {
    grid-template-columns: 1fr;
  }
  .activity-upload-row {
    grid-template-columns: 1fr;
  }
  .remove-activity {
    width: 100%;
  }
  .organization-activity-public > div {
    grid-template-columns: repeat(2, 1fr);
  }
  .activity-gallery-preview {
    grid-template-columns: repeat(3, 1fr);
  }
  .modal-heading h2 {
    font-size: 25px;
  }
  .tree-branch {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 34px;
    margin-top: 42px;
  }
  .tree-branch::before {
    right: 25%;
    left: 25%;
  }
  .service-item {
    min-height: 180px;
  }
  .form-field.full {
    grid-column: auto;
  }
  .main-content {
    padding: 0 5vw 48px;
  }
  .topbar-actions {
    display: none;
  }
  .page-heading {
    padding: 42px 0 24px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .form-card,
  .login-card {
    padding: 22px;
  }
  .form-actions {
    flex-direction: column-reverse;
  }
  .form-actions button,
  .cancel-button {
    width: 100%;
    text-align: center;
  }
  .public-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
}
