/* Shared responsive experience. Kept separate from the legacy module styles. */
:root {
  --primary: #126b56;
  --primary-deep: #0b493c;
  --ink: #173e34;
  --ink-soft: #64776f;
  --cream: #f7f8f3;
  --line: #e1e9e2;
}
body {
  font-size: 14px;
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #c38c32 !important;
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  color: #124d3e;
}
.skip-link:focus {
  top: 12px;
}
.btn,
.form-control,
.form-select {
  border-radius: 12px;
}
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 700;
}
.form-control,
.form-select {
  min-height: 44px;
}
.form-hint {
  font-size: 12px;
}
.app-main,
.content-wrap,
.panel,
.page-intro > div {
  min-width: 0;
}
.page-intro h1 {
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -0.055em;
  line-height: 1.2;
}
.page-intro p {
  font-size: 14px;
  line-height: 1.75;
}
.app-body {
  background: #f3f6f1;
}
.content-wrap {
  max-width: 1600px;
  margin-inline: auto;
}
.topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}
.app-sidebar {
  background: #ffffff;
  color: #eaf3ec;
  border-right: solid 1px #d8edb5;
}
.app-sidebar .brand-mark,
.app-sidebar .sidebar-link {
  color: #000;
  font-weight: bold;
}
.app-sidebar .brand-mark strong {
  color: #000;
}
.app-sidebar .brand-mark small {
  color: #000;
}
.app-sidebar .brand-icon {
  background: #d7ebae;
  color: #174936;
}
.app-sidebar .sidebar-link {
  min-height: 49px;
  border-radius: 13px;
  margin-bottom: 5px;
  font-size: 13px;
}
.app-sidebar .sidebar-link:hover {
  background: #1e5144;
  color: #fff;
}
.app-sidebar .sidebar-link.active {
  background: #d8edb5;
  color: #173f32;
  box-shadow: 0 5px 15px #082f3026;
  border: 1px solid #ddd;
}
.app-sidebar .sidebar-tip {
  background: #1b4b3e;
  color: #d4e6da;
}
.app-sidebar .sidebar-tip small {
  color: #afc9bc;
}
.app-sidebar .sidebar-close {
  color: #fff;
}
.app-sidebar .sidebar-bottom .text-danger {
  color: red !important;
}
.panel,
.stat-card {
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px #234a3510;
  border-radius: 20px;
}
.panel-heading h2 {
  font-size: 18px;
}
.stat-grid {
  gap: 16px;
}
.stat-grid > .dashboard-notes-panel {
  grid-column: 1/-1;
}
.stat-card {
  padding: 24px;
}
.stat-number {
  font-size: 36px;
}
.stat-label {
  font-size: 13px;
}
.workspace-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #174d3c;
  color: #fff;
  border-radius: 24px;
  padding: 30px 34px;
  margin: 0 0 24px;
}
.workspace-banner:after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -35px;
  top: -110px;
  border: 36px solid #d9edb512;
  border-radius: 50%;
  pointer-events: none;
}
.workspace-banner h2 {
  font-size: clamp(23px, 3vw, 32px);
  letter-spacing: -0.04em;
  margin: 10px 0;
}
.workspace-banner p {
  max-width: 560px;
  margin: 0;
  color: #c4d9cd;
  line-height: 1.7;
}
.workspace-banner .section-kicker {
  color: #d8edb5;
}
.workspace-banner .btn {
  flex-shrink: 0;
  background: #d8edb5;
  color: #193e31;
  border: 0;
  z-index: 1;
}
.launcher {
  display: grid;
  grid-template-columns: repeat(var(--launcher-count, 6), minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.launcher-link {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 10px;
  padding: 20px 8px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.launcher-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px #164a3514;
  color: var(--primary);
}
.launcher-link i {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  font-size: 23px;
  background: #e9f2dc;
  border-radius: 16px;
}
.launcher-link:nth-child(2n) i {
  background: #fff0df;
  color: #a0672f;
}
.launcher-link:nth-child(3n) i {
  background: #e7edf9;
  color: #4c68a3;
}
.launcher-link strong {
  font-size: 12px;
}
.launcher-link small {
  color: var(--ink-soft);
  font-size: 11px;
}
.mobile-dock {
  display: none;
}
.connection-status {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  max-width: calc(100% - 24px);
  padding: 12px 20px;
  border-radius: 14px;
  background: #fff2d9;
  color: #6a4511;
  box-shadow: 0 6px 30px #0002;
  font-size: 13px;
}
.cms-live-state {
  font-size: 12px;
}
.cms-live-state.is-dirty {
  color: #a46313;
}
.cms-savebar {
  position: sticky;
  bottom: 16px;
  z-index: 10;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px #173e3415;
  border-radius: 14px;
  gap: 14px;
}
.cms-field label {
  font-size: 13px;
}
.cms-input {
  font-size: 14px !important;
  line-height: 1.7;
}
.cms-tabs {
  gap: 8px;
}
.cms-tab {
  min-height: 46px;
}
.cms-preview {
  overflow: hidden;
}
.cms-feedback {
  padding: 14px 18px;
  border-radius: 12px;
  background: #edf6e8;
  margin-bottom: 16px;
}
.cms-feedback.is-error {
  background: #fff0e9;
  color: #a23e24;
}
.cms-counter {
  display: block;
  text-align: right;
  color: #75847b;
  font-size: 11px;
  margin-top: 5px;
}
.cms-preview-canvas {
  overflow-wrap: anywhere;
}
.landing-body {
  background: #fbfaf5;
}
.landing-nav {
  background: rgba(251, 250, 245, 0.96);
  backdrop-filter: blur(16px);
}
.landing-nav-inner {
  min-height: 88px;
}
.landing-nav-links a {
  font-size: 12px;
}
.landing-body section[id],
.landing-body footer[id] {
  scroll-margin-top: 100px;
}
.landing-body .hero-section {
  padding-top: 64px;
  padding-bottom: 72px;
  gap: 55px;
  align-items: center;
  grid-template-columns: 1fr 1fr;
}
.hero-copy h1 {
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.09;
  letter-spacing: -0.065em;
  max-width: 680px;
}
.hero-lead {
  font-size: 15px;
  line-height: 1.9;
  max-width: 480px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.08em;
}
.hero-actions {
  flex-wrap: wrap;
}
.hero-trust {
  font-size: 12px;
}
.landing-body .hero-section > .hero-visual {
  min-height: 520px;
  position: relative;
  padding: 0 0 26px 18px;
}
.hero-photo {
  position: absolute;
  inset: 0 0 28px 18px;
  width: calc(100% - 18px);
  height: calc(100% - 28px);
  object-fit: cover;
  border-radius: 140px 28px 28px 28px;
}
.hero-photo-shade {
  position: absolute;
  inset: 0 0 28px 18px;
  border-radius: 140px 28px 28px 28px;
  background: linear-gradient(180deg, transparent 32%, #103d32e6);
}
.hero-photo-caption {
  position: absolute;
  bottom: 65px;
  left: 48px;
  right: 28px;
  color: #fff;
}
.hero-photo-caption .arabic-greeting {
  font-size: 35px;
  margin: 0;
  text-align: left;
}
.hero-photo-caption p {
  font-size: 12px;
  color: #d8e6dc;
  margin-top: 10px;
}
.hero-photo-tag {
  position: absolute;
  top: 36px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffdf1e8;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}
.hero-photo-note {
  position: absolute;
  bottom: 0;
  left: -8px;
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  background: #e5efca;
  box-shadow: 0 10px 25px #173e3412;
}
.hero-photo-note i {
  font-size: 26px;
}
.hero-photo-note strong,
.hero-photo-note small {
  display: block;
}
.hero-photo-note strong {
  font-size: 14px;
}
.hero-photo-note small {
  font-size: 11px;
  margin-top: 5px;
  color: #57714d;
}
.landing-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid #e1e6d9;
  border-bottom: 1px solid #e1e6d9;
  padding-block: 28px;
  margin-bottom: 70px;
}
.landing-values article {
  display: flex;
  gap: 15px;
  align-items: center;
}
.landing-values i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #edf1df;
  font-size: 21px;
}
.landing-values strong {
  display: block;
  font-size: 14px;
}
.landing-values small {
  display: block;
  color: #6b7d70;
  margin-top: 5px;
  font-size: 12px;
}
.landing-body .section-heading h2,
.landing-body .about-story h2,
.landing-body .ustadz-prolog h2 {
  font-size: clamp(28px, 3.2vw, 43px);
  line-height: 1.2;
  letter-spacing: -0.05em;
}
.landing-body .ustadz-section {
  background: #f0f2e7;
  border-radius: 30px;
  padding: 40px;
  gap: 45px;
  margin-bottom: 70px;
}
.learning-card {
  border-radius: 24px;
  padding: 32px;
  transition: transform 0.2s;
}
.learning-card:hover {
  transform: translateY(-5px);
}
.learning-card p {
  font-size: 14px;
  line-height: 1.8;
}
.learning-card-primary {
  background: #174d3c;
}
.program-panel {
  border-radius: 28px;
  background: #174d3c;
}
.landing-footer p {
  font-size: 13px;
  line-height: 1.8;
}
.landing-mobile-nav {
  display: none;
}
@media (min-width: 1600px) {
  .landing-body .container-xl {
    max-width: 1380px;
  }
  .hero-copy h1 {
    font-size: 74px;
  }
}
@media (max-width: 1199px) {
  .launcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .landing-body .hero-section {
    gap: 30px;
  }
  .landing-body .hero-section > .hero-visual {
    min-height: 470px;
  }
}
@media (max-width: 991px) {
  .app-main {
    margin-left: 0;
  }
  .app-sidebar {
    width: min(300px, 85vw);
    height: 100dvh;
    z-index: 1060;
    transform: translateX(-105%);
    visibility: hidden;
    transition:
      transform 0.2s,
      visibility 0.2s;
  }
  .app-sidebar.open {
    transform: translateX(0);
    visibility: visible;
  }
  .sidebar-backdrop {
    z-index: 1055;
  }
  .sidebar-is-open {
    overflow: hidden;
  }
  .content-wrap {
    padding: 24px 20px calc(110px + env(safe-area-inset-bottom));
  }
  .mobile-dock {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-around;
    bottom: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 550px;
    padding: 8px;
    border: 1px solid #dce7dc;
    border-radius: 23px;
    background: #fffffff5;
    box-shadow: 0 10px 38px #103f3426;
    z-index: 1035;
    backdrop-filter: blur(14px);
  }
  .mobile-dock a,
  .mobile-dock button {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    min-height: 51px;
    padding: 6px 2px;
    text-decoration: none;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #6b7d73;
    font-size: 10px;
    font-weight: 700;
  }
  .mobile-dock i {
    font-size: 20px;
    line-height: 1.2;
  }
  .mobile-dock .active {
    background: #e9f2dc;
    color: #1c5a43;
  }
  .cms-savebar {
    bottom: 100px;
  }
  .landing-values {
    gap: 14px;
  }
  .landing-values small {
    font-size: 11px;
  }
  .landing-body .hero-section > .hero-visual {
    min-height: 450px;
  }
  .cms-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .cms-preview {
    position: static;
  }
  .cms-preview-canvas {
    max-height: 540px;
    overflow: auto;
  }
}
@media (max-width: 767px) {
  .landing-nav-inner {
    min-height: 75px;
    gap: 10px;
  }
  .landing-nav .brand-mark strong {
    font-size: 13px;
  }
  .landing-nav .brand-mark small {
    font-size: 8px;
  }
  .landing-nav .landing-logo {
    width: 38px;
    height: 38px;
  }
  .landing-nav .btn {
    font-size: 11px;
    padding: 10px 13px !important;
  }
  .landing-body {
    padding-bottom: 85px;
  }
  .landing-body .hero-section {
    grid-template-columns: minmax(0, 1fr);
    padding: 35px 22px 40px;
    gap: 30px;
  }
  .hero-copy h1 {
    font-size: clamp(37px, 9.5vw, 59px);
    max-width: 570px;
  }
  .hero-lead {
    font-size: 14px;
  }
  .hero-actions {
    gap: 12px;
  }
  .hero-actions .btn-lg {
    font-size: 13px;
    min-height: 49px;
  }
  .hero-trust {
    margin-top: 20px;
  }
  .landing-body .hero-section > .hero-visual {
    min-height: 400px;
    margin-inline: 8px;
  }
  .hero-photo {
    border-top-left-radius: 100px;
  }
  .hero-photo-shade {
    border-top-left-radius: 100px;
  }
  .hero-photo-note {
    left: -5px;
    padding: 15px 18px;
  }
  .landing-values {
    grid-template-columns: minmax(0, 1fr);
    margin: 0 22px 40px;
    width: auto;
    gap: 20px;
  }
  .landing-values small {
    font-size: 12px;
  }
  .landing-body .ustadz-section {
    width: calc(100% - 32px);
    padding: 26px;
    gap: 24px;
    margin-bottom: 44px;
  }
  .landing-body .about-section,
  .landing-body .learning-section,
  .landing-body .program-section {
    padding-inline: 22px;
  }
  .landing-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #fffef9f5;
    border-top: 1px solid #e1e6d9;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    backdrop-filter: blur(12px);
    z-index: 1030;
    justify-content: space-around;
  }
  .landing-mobile-nav a {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    min-width: 55px;
    padding: 7px;
    text-decoration: none;
    font-size: 10px;
    color: #436552;
  }
  .landing-mobile-nav i {
    font-size: 20px;
  }
  .workspace-banner {
    padding: 23px;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    border-radius: 20px;
  }
  .workspace-banner p {
    font-size: 13px;
  }
  .workspace-banner .btn {
    width: 100%;
  }
  .launcher {
    gap: 9px;
  }
  .launcher-link {
    padding: 16px 5px;
  }
  .launcher-link small {
    display: none;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-number {
    font-size: 30px;
  }
  .stat-label {
    font-size: 11px;
  }
  .page-intro {
    gap: 14px;
    flex-wrap: wrap;
  }
  .content-wrap {
    padding-inline: 16px;
  }
  .topbar {
    padding-inline: 16px;
    gap: 10px;
  }
  .topbar-date {
    font-size: 11px;
  }
  .cms-fields-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cms-savebar {
    flex-direction: column;
    align-items: stretch;
    padding: 13px;
    font-size: 11px;
  }
  .cms-savebar .btn {
    width: 100%;
  }
  .cms-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .cms-tab {
    flex-shrink: 0;
  }
  .table-responsive,
  .santri-table-wrap {
    max-width: 100%;
    overscroll-behavior-x: contain;
  }
  .form-control,
  .form-select,
  .cms-input {
    font-size: 16px !important;
  }
  .modal-dialog {
    margin: 10px;
  }
  .modal-content {
    border-radius: 20px;
  }
  .modal-footer {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .table-pagination {
    flex-wrap: wrap;
  }
  .panel-heading {
    gap: 12px;
    flex-wrap: wrap;
  }
  .btn-group {
    flex-wrap: wrap;
  }
  .learning-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 374px) {
  .landing-nav .brand-mark {
    gap: 6px;
  }
  .landing-nav .brand-mark strong {
    font-size: 11px;
  }
  .hero-photo-caption {
    left: 35px;
  }
  .hero-photo-caption .arabic-greeting {
    font-size: 29px;
  }
  .landing-body .hero-section > .hero-visual {
    min-height: 350px;
  }
  .stat-grid {
    gap: 10px;
  }
  .launcher-link strong {
    font-size: 11px;
  }
  .cms-editor {
    padding: 15px;
  }
  .topbar-date {
    max-width: 155px;
    overflow-wrap: anywhere;
  }
}
/* Editorial program list and generous photo-led storytelling. */
.landing-body .learning-grid {
  display: block;
  border-top: 1px solid #dce4d7;
}
.landing-body .learning-card {
  display: grid;
  grid-template-columns: 80px 54px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  min-height: 160px;
  border: 0;
  border-bottom: 1px solid #dce4d7;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  padding: 28px 12px;
}
.landing-body .learning-card:hover {
  transform: translateX(5px);
  background: #eff2e5;
}
.landing-body .learning-card-number {
  position: static;
  font-family: Georgia, serif;
  font-size: 58px;
  font-weight: 400;
  color: #a9b796;
  line-height: 1;
}
.landing-body .learning-card-icon {
  font-size: 30px;
  color: #34694e;
  margin: 0;
}
.landing-body .learning-card h3 {
  font-size: 25px;
  letter-spacing: -0.04em;
  margin: 0;
}
.landing-body .learning-card p {
  color: #627364;
  margin: 0;
}
.landing-body .learning-card a {
  grid-column: 3/-1;
  justify-self: start;
  color: #34694e;
  font-size: 12px;
  margin-top: 16px;
}
.landing-body .ustadz-photo {
  border-radius: 24px;
}
.landing-body .ustadz-prolog p {
  font-size: 15px;
  line-height: 1.9;
}
.landing-body .ustadz-prolog strong {
  font-size: 12px;
}
.landing-body .ustadz-section {
  margin-top: 60px;
}
.cms-editor {
  overflow: visible;
}
.cms-tabs {
  max-width: 100%;
}
@media (max-width: 991px) {
  .app-body .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
  }
  .app-body .sidebar-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: #092c2766;
  }
  .app-body .app-sidebar.open + .sidebar-backdrop {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .app-body .app-main .content-wrap,
  .app-body .app-main .content-wrap:not(.checklist-page) {
    padding: 24px 20px calc(110px + env(safe-area-inset-bottom));
  }
  .checklist-links-float {
    bottom: 105px;
  }
  .landing-body .learning-card {
    grid-template-columns: 65px 38px minmax(0, 1fr);
    gap: 18px;
  }
  .landing-body .learning-card p {
    grid-column: 3;
  }
  .landing-body .learning-card a {
    grid-column: 3;
  }
}
@media (max-width: 767px) {
  .app-body .app-main .content-wrap,
  .app-body .app-main .content-wrap:not(.checklist-page) {
    padding-inline: 16px;
  }
  .app-body .page-intro h1 {
    font-size: 28px;
  }
  .landing-body .learning-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 24px 6px;
  }
  .landing-body .learning-card-number {
    font-size: 40px;
    grid-row: 1/3;
  }
  .landing-body .learning-card-icon {
    display: none;
  }
  .landing-body .learning-card h3 {
    font-size: 23px;
  }
  .landing-body .learning-card p,
  .landing-body .learning-card a {
    grid-column: 2;
  }
  .landing-body .ustadz-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-photo-note {
    max-width: calc(100% + 10px);
  }
  .hero-photo-note strong {
    font-size: 12px;
  }
  .hero-photo-tag {
    font-size: 9px;
  }
  .cms-editor-heading {
    flex-wrap: wrap;
  }
  .landing-body .landing-footer-main {
    padding-bottom: 24px;
  }
}
@media (max-width: 650px) {
  .app-body .santri-table-wrap {
    overflow: visible;
  }
  .app-body .santri-table {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .app-body .santri-table thead {
    display: none;
  }
  .app-body .santri-table tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }
  .app-body .santri-table tbody tr {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    margin: 0;
  }
  .app-body .santri-table tbody td,
  .app-body .santri-table tbody td:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-bottom: 1px solid #eef2eb;
    text-align: right;
    overflow-wrap: anywhere;
    font-size: 13px;
  }
  .app-body .santri-table tbody td[data-label]:before {
    content: attr(data-label);
    display: block !important;
    text-align: left;
    color: #6c7f70;
    font-size: 11px;
    flex: 0 0 20px;
  }
  .app-body .santri-table tbody td:last-child {
    border-bottom: 0;
  }
  .app-body .santri-table tbody td.empty-state {
    display: block;
    padding: 24px;
    text-align: center;
  }
  .app-body .santri-table tbody td[data-label="Aksi"] {
    justify-content: flex-end;
    gap: 8px;
  }
  .app-body .santri-table tbody td[data-label="Aksi"]:before {
    margin-right: auto;
  }
  .app-body .action-btn {
    min-width: 42px;
    min-height: 42px;
  }
  .app-body .topbar {
    height: auto;
    min-height: 72px;
    flex-wrap: nowrap;
    padding-block: 10px;
  }
  .app-body .topbar-actions {
    gap: 8px;
  }
  .app-body .global-class-filter {
    max-width: 145px;
  }
  .app-body .global-class-filter select {
    max-width: 125px;
    min-height: 38px;
  }
  .app-body .stat-card {
    padding: 16px;
    min-height: 155px;
  }
  .app-body .stat-grid {
    gap: 12px;
  }
}
.story-divider {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 24px;
  padding-block: 6px 55px;
  color: #254f3b;
  font-family: "Amiri", Georgia, serif;
  font-size: clamp(42px, 6.5vw, 92px);
  line-height: 1.15;
  letter-spacing: -0.055em;
}
.story-divider span:nth-child(2) {
  color: #9d7840;
  font-style: italic;
}
.story-divider i {
  margin-left: auto;
  font-size: 0.65em;
  color: #9ba98a;
}
@media (max-width: 767px) {
  .story-divider {
    column-gap: 14px;
    padding: 0 22px 36px;
    font-size: clamp(33px, 8vw, 48px);
  }
  .story-divider i {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* Shared madrasah identity on login, navigation and portal pages. */
.brand-icon.tarkam-logo,
.app-sidebar .brand-icon.tarkam-logo,
.soft-icon.tarkam-logo,
.welcome-icon.tarkam-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
  padding: 5px;
  border-radius: 12px;
}
.tarkam-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-icon.tarkam-logo {
  width: 44px;
  height: 56px;
}
.login-heading .login-brand-logo {
  width: 72px;
  height: 88px;
  padding: 7px;
}
.login-lock-card {
  width: min(460px, 100%);
  color: #193b37;
}
.login-lock-card .back-link {
  margin-bottom: 38px;
}
.login-lock-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 21px;
  border: 1px solid #f4d9c5;
  border-radius: 18px;
  background: #fff5ec;
  color: #bd632c;
  font-size: 25px;
}
.login-lock-card .section-kicker {
  color: #bd632c;
}
.login-lock-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 650;
  letter-spacing: -0.04em;
}
.login-lock-lead,
.login-lock-help {
  color: #63736f;
  font-size: 14px;
  line-height: 1.75;
}
.login-lock-countdown {
  margin-top: 24px;
  color: #176b5d;
  font-size: clamp(52px, 8vw, 68px);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.05;
}
.login-lock-caption {
  margin: 6px 0 23px;
  color: #72807c;
  font-size: 12px;
}
.login-lock-details {
  display: grid;
  gap: 0;
  padding: 4px 16px;
  border: 1px solid #e6eeea;
  border-radius: 15px;
  background: #f8fbf9;
}
.login-lock-details > div {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #e6eeea;
}
.login-lock-details > div:last-child {
  border-bottom: 0;
}
.login-lock-details > div > i {
  flex: 0 0 18px;
  margin-top: 2px;
  color: #438375;
}
.login-lock-details span,
.login-lock-details strong,
.login-lock-details small {
  display: block;
}
.login-lock-details strong {
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 650;
}
.login-lock-details small {
  color: #6c7a76;
  font-size: 12px;
  line-height: 1.55;
}
.login-lock-help {
  margin: 18px 0 0;
  font-size: 12px;
}
.login-attempt-notice {
  margin: -10px 0 18px;
  color: #9a5a20;
  font-size: 12px;
  line-height: 1.6;
}
.login-attempt-notice i {
  color: #438375;
}
.welcome-icon.tarkam-logo {
  width: 72px;
  height: 88px;
  padding: 7px;
}
.topbar-brand-logo {
  display: inline-flex;
  width: 28px;
  height: 36px;
  padding: 3px;
  margin-right: 10px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #fff;
  vertical-align: middle;
}
/* Keep the grade and completion status together on narrow report cards. */
@media (max-width: 767.98px) {
  #nilai-table-body td[data-label="Predikat"] {
    grid-column: 1 / -1;
  }
  #nilai-table-body .grade-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
.landing-body .hero-section > .hero-visual {
  isolation: isolate;
}
.landing-body .hero-visual > .hero-photo.hero-slide {
  display: block;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.1s ease-in-out;
}
.landing-body .hero-visual > .hero-photo.hero-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-photo-shade {
  z-index: 2;
  pointer-events: none;
}
.hero-photo-caption,
.hero-photo-tag,
.hero-photo-note {
  z-index: 3;
}
.hero-slide-nav {
  position: absolute;
  right: 16px;
  bottom: 38px;
  z-index: 20 !important;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border: 1px solid #ffffffa8;
  border-radius: 99px;
  background: #fffdf2ed;
  box-shadow: 0 8px 22px #173e3420;
  color: #214c3c;
  font-size: 11px;
  font-weight: 800;
}
.hero-slide-nav button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #e8efdc;
  color: #214c3c;
}
.hero-slide-nav button:hover {
  background: #d6e4c2;
}
.hero-slide-nav span {
  min-width: 42px;
  text-align: center;
}
.hero-slide-nav small {
  color: #8a9a87;
  font-size: 10px;
}
@media (max-width: 767px) {
  .hero-slide-nav {
    right: 12px;
    bottom: 34px;
  }
}
.ilm-quote-slider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: -12px;
  margin-bottom: clamp(42px, 6vw, 76px);
  padding: clamp(22px, 3vw, 34px) clamp(24px, 4vw, 54px);
  border: 1px solid #e4e9dd;
  border-radius: 24px;
  background: linear-gradient(115deg, #f5f6ed, #fbfaf4);
}
.ilm-quote-slides {
  display: grid;
  min-width: 0;
}
.ilm-quote-slide {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  pointer-events: none;
}
.ilm-quote-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ilm-quote-label {
  color: #66805c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ilm-quote-arabic {
  margin: 12px 0 8px;
  color: #174d3c;
  font-family: "Amiri", serif;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.5;
}
.ilm-quote-translation {
  margin: 0 0 8px;
  color: #40594b;
  font-size: 14px;
  line-height: 1.7;
}
.ilm-quote-slide small {
  color: #84907f;
  font-size: 10px;
}
.ilm-quote-dots {
  display: flex;
  gap: 8px;
}
.ilm-quote-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9d3c2;
  transition:
    width 0.25s ease,
    background 0.25s ease;
}
.ilm-quote-dots button.is-active {
  width: 24px;
  border-radius: 8px;
  background: #1e6049;
}
@media (max-width: 767px) {
  .ilm-quote-slider {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .ilm-quote-dots {
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ilm-quote-slide,
  .ilm-quote-dots button {
    transition: none;
  }
}
.landing-body .about-section {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
}
.landing-body .about-section > .about-story {
  grid-column: span 5;
}
.landing-body .about-section > .ustadz-section {
  grid-column: span 7;
}
.landing-body .about-section > .about-story,
.landing-body .about-section > .ustadz-section {
  min-width: 0;
}
#galeri {
  scroll-margin-top: 100px;
}
.landing-body .about-section > .ustadz-section {
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  align-self: stretch;
  grid-template-columns: minmax(190px, 0.95fr) minmax(0, 1.05fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 14px clamp(18px, 2.5vw, 30px);
  padding: clamp(24px, 3vw, 40px);
}
.landing-body .ustadz-section .ustadz-photo-wrap {
  width: min(100%, 260px);
  justify-self: start;
}
.landing-body .ustadz-section .ustadz-photo-orbit {
  border-radius: 22px;
  transform: rotate(-5deg);
}
.landing-body .ustadz-section .ustadz-photo {
  width: 86%;
  height: 86%;
  border-radius: 18px;
  border-width: 7px;
}
.landing-body .ustadz-section .ustadz-prolog {
  max-width: none;
}
.landing-body .ustadz-section .ustadz-prolog h2 {
  margin-bottom: 0;
}
.landing-body .ustadz-section .ustadz-quote {
  grid-column: 1 / -1;
}
.landing-body .ustadz-section .ustadz-quote p {
  max-width: none;
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-family: "Amiri", serif;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
}
.landing-body .ustadz-section .ustadz-quote strong {
  color: var(--primary);
  font-size: 11px;
}
@media (max-width: 767px) {
  .landing-body .about-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .landing-body .about-section > .about-story,
  .landing-body .about-section > .ustadz-section {
    grid-column: 1;
  }
  .landing-body .about-section > .ustadz-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .landing-body .ustadz-section .ustadz-photo-wrap {
    width: min(260px, 70%);
  }
  .landing-body .ustadz-section .ustadz-quote {
    grid-column: 1;
  }
}
