/* Santri360 — Pusat Panduan
   Palet mengikuti brand Santri Gresik: ink/ocean/emerald/mist.
   Tanpa dependensi eksternal — tidak ada font/CDN dari luar. */

:root {
  --ink: #102033;
  --ink-soft: #33475f;
  --ocean: #0f5c7a;
  --emerald: #0f9d6e;
  --emerald-soft: #e6f7f0;
  --mist: #f5f8fa;
  --line: #e2e8ee;
  --white: #ffffff;
  --amber: #b45309;
  --amber-soft: #fef6e7;
  --red: #b91c1c;
  --red-soft: #fdeaea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 32, 51, .04), 0 8px 24px rgba(16, 32, 51, .06);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ocean); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--emerald);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex: 0 0 auto;
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.2;
}

.site-header__cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald);
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  min-height: 40px;
}

.site-header__cta:hover { background: #0b8460; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #f4fbf8 0%, #eef6fb 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 20px 48px;
}

.hero__inner { max-width: var(--maxw); margin: 0 auto; }

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--emerald);
  background: var(--white);
  border: 1px solid var(--emerald-soft);
  border-radius: 999px;
  padding: 5px 14px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  line-height: 1.2;
  margin: 18px 0 0;
  letter-spacing: -.02em;
  max-width: 26ch;
}

.hero p {
  margin: 14px 0 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.hero__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary { background: var(--emerald); color: #fff; }
.btn--primary:hover { background: #0b8460; }

.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--mist); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 52px 0; }

.section--mist { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__title {
  font-size: 1.5rem;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}

.section__lead { margin: 0 0 28px; color: var(--ink-soft); max-width: 68ch; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}

a.card:hover { border-color: var(--emerald); transform: translateY(-2px); }

.card__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--emerald-soft);
  color: var(--emerald);
  display: grid; place-items: center;
  font-size: 19px;
  margin-bottom: 14px;
}

.card h3 { margin: 0 0 8px; font-size: 1.08rem; }

.card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 14.5px; }

.card__meta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald);
}

/* ---------- Doc page layout ---------- */
.doc {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 44px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 20px 72px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 76px;
  font-size: 14px;
}

.sidebar__group + .sidebar__group { margin-top: 22px; }

.sidebar__label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #8697a8;
  margin-bottom: 8px;
}

.sidebar a {
  display: block;
  padding: 7px 11px;
  border-radius: 7px;
  color: var(--ink-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.sidebar a:hover { background: var(--mist); color: var(--ink); }

.sidebar a[aria-current="page"] {
  background: var(--emerald-soft);
  color: #0a5e45;
  font-weight: 600;
  border-left-color: var(--emerald);
}

.sidebar a.sub {
  padding-left: 26px;
  font-size: 13.5px;
  color: #6c7f92;
  position: relative;
}

.sidebar a.sub::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 5px;
  height: 1px;
  background: #b9c6d2;
}

.sidebar a.sub:hover { color: var(--ink); }

/* ---------- Breadcrumb ---------- */
.crumb {
  font-size: 13px;
  color: #8697a8;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.crumb a { color: #6c7f92; text-decoration: none; }
.crumb a:hover { color: var(--emerald); }
.crumb span { color: #b9c6d2; }
.crumb .crumb--cur { color: var(--ink-soft); font-weight: 600; }

/* ---------- Sub-pages list ---------- */
.subpages {
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: var(--mist);
}

.subpages__t {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8697a8;
  margin-bottom: 12px;
}

.subpages ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.subpages a {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 15px;
  text-decoration: none;
  transition: border-color .15s;
}

.subpages a:hover { border-color: var(--emerald); }

.subpages a strong { display: block; color: var(--ink); font-size: 14.5px; }

.subpages a span { color: var(--ink-soft); font-size: 13.5px; }

/* ---------- Section count ---------- */
.sec__count {
  font-size: 12.5px;
  font-weight: 600;
  color: #8697a8;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  vertical-align: middle;
  margin-left: 8px;
}

/* ---------- Article ---------- */
.article { min-width: 0; }

.article__head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 30px;
}

.article__kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--emerald);
}

.article h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  margin: 10px 0 0;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.article__lead { margin: 12px 0 0; color: var(--ink-soft); font-size: 1.02rem; }

.article h2 {
  font-size: 1.32rem;
  margin: 40px 0 12px;
  padding-top: 6px;
  letter-spacing: -.01em;
  scroll-margin-top: 82px;
}

.article h3 {
  font-size: 1.08rem;
  margin: 28px 0 8px;
  scroll-margin-top: 82px;
}

.article p, .article li { color: var(--ink-soft); }

.article ul, .article ol { padding-left: 22px; }

.article li { margin: 7px 0; }

.article li > strong { color: var(--ink); }

.article strong { color: var(--ink); }

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: step; }

.steps > li {
  position: relative;
  padding: 0 0 22px 48px;
  counter-increment: step;
  border-left: 2px solid var(--line);
  margin-left: 15px;
}

.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -16px;
  top: -2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--emerald);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  display: grid; place-items: center;
}

.steps > li > strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* Callouts */
.note {
  border-radius: 10px;
  padding: 15px 18px;
  margin: 22px 0;
  font-size: 14.5px;
  border: 1px solid;
}

.note p { margin: 0; }
.note p + p { margin-top: 8px; }

.note__title {
  font-weight: 700;
  display: block;
  margin-bottom: 5px;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.note--info { background: #eff7fc; border-color: #cfe6f3; }
.note--info .note__title { color: var(--ocean); }

.note--tip { background: var(--emerald-soft); border-color: #c5ecdd; }
.note--tip .note__title { color: #0a6e50; }

.note--warn { background: var(--amber-soft); border-color: #f5e0bd; }
.note--warn .note__title { color: var(--amber); }

.note--stop { background: var(--red-soft); border-color: #f5cdcd; }
.note--stop .note__title { color: var(--red); }

/* Steps table */
.tbl-wrap { overflow-x: auto; margin: 20px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 460px;
}

th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { background: var(--mist); font-size: 13px; color: var(--ink); }

td { color: var(--ink-soft); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after { content: "+"; color: var(--emerald); font-weight: 700; }

.faq details[open] summary::after { content: "−"; }

.faq details p { margin: 10px 0 0; font-size: 14.5px; }

/* Next/prev */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.pager a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ocean);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--mist);
  padding: 34px 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.site-footer__brand { margin-bottom: 26px; }

.site-footer__brand p { margin: 6px 0 0; font-size: 13.5px; }

.site-footer a { color: var(--ocean); text-decoration: none; }

.foot__grid {
  display: grid;
  gap: 22px 28px;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.foot__t {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8697a8;
  margin-bottom: 9px;
}

.foot__grid ul { list-style: none; margin: 0; padding: 0; }

.foot__grid li { margin: 0 0 6px; }

.foot__grid a { font-size: 13.5px; color: var(--ink-soft); }

.foot__grid a:hover { color: var(--emerald); }

/* ---------- Helper CTA ---------- */
.helpbox {
  margin-top: 44px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--emerald);
  border-radius: 10px;
  background: var(--mist);
  padding: 20px 22px;
}

.helpbox h3 { margin: 0 0 6px; font-size: 1.02rem; }

.helpbox p { margin: 0 0 14px; font-size: 14.5px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 26px; padding-top: 24px; }
  .sidebar {
    position: static;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--mist);
  }
  .hero { padding: 40px 20px 34px; }
  .section { padding: 40px 0; }
  .site-header__cta { font-size: 13px; padding: 8px 13px; }
}

@media print {
  .site-header, .sidebar, .pager, .helpbox, .site-footer { display: none; }
  .doc { grid-template-columns: 1fr; padding: 0; }
  body { font-size: 12pt; }
}
