/* Font tersimpan di server sendiri (assets/fonts, lisensi OFL) supaya tampilan sama di semua perangkat. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("assets/fonts/lora-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("assets/fonts/lora-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("assets/fonts/lora-latin-ext-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("assets/fonts/lora-latin-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --ink: #173a38;
  --ink-soft: #46605c;
  --teal-950: #163c3a;
  --teal-800: #1f5c58;
  --teal-700: #2e7f79;
  --teal-500: #62aaa0;
  --teal-100: #dceee9;
  --teal-050: #f1f8f6;
  --cream: #f7f4ed;
  --sand: #eee5d3;
  --gold: #c58b45;
  --white: #ffffff;
  --line: #d8e6e1;
  --shadow: 0 24px 60px rgba(23, 58, 56, .10);
  --shadow-soft: 0 12px 30px rgba(23, 58, 56, .08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topline {
  padding: 9px 0;
  color: #e7f3ef;
  background: var(--teal-950);
  font-size: .9rem;
}

.topline .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topline p { margin: 0; }

.topline-link {
  color: #c5e7df;
  font-weight: 700;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(247, 244, 237, .90);
  border-bottom: 1px solid rgba(216, 230, 225, .85);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 225px;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: #f5fbf8;
  background: var(--teal-800);
  border: 3px solid #a8d2c8;
  border-radius: 15px 15px 15px 5px;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 5px 5px 0 var(--sand);
}

.brand-copy { display: grid; line-height: 1.12; }

.brand-title {
  font-size: .97rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.nav-link {
  padding: 9px 13px;
  color: var(--ink-soft);
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal-800);
  background: var(--teal-100);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--teal-800);
  background: var(--teal-100);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  content: "";
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 96px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: -120px;
  right: -100px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(98, 170, 160, .26);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(98, 170, 160, .06), 0 0 0 105px rgba(98, 170, 160, .045);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--teal-700);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  background: var(--gold);
  content: "";
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  color: var(--ink);
  letter-spacing: -.045em;
  line-height: 1.12;
}

h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 760;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 760;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 760;
}

.lead {
  max-width: 605px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .96rem;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.button-primary { color: #f2fbf8; background: var(--teal-800); }
.button-primary:hover { background: var(--teal-950); }

.button-secondary { color: var(--teal-800); background: transparent; border-color: var(--teal-500); }
.button-secondary:hover { background: var(--teal-100); }

.button-danger { color: #98453c; background: #fff5f2; border-color: #f2c9c2; }
.button-danger:hover { background: #ffe9e4; }

.button-light { color: var(--teal-950); background: #f1fbf7; }

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: .9rem;
}

.hero-note::before {
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(197, 139, 69, .14);
  content: "";
}

.hero-panel {
  position: relative;
  min-height: 475px;
  padding: 24px;
  background: var(--teal-800);
  border-radius: 34px 34px 34px 9px;
  box-shadow: var(--shadow);
}

.hero-panel::after {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  content: "";
}

.panel-label {
  color: #baded7;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 27px;
}

.panel-head h2 {
  max-width: 320px;
  margin: 7px 0 0;
  color: #f2faf7;
  font-size: 1.9rem;
}

.panel-seal {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  color: var(--teal-950);
  background: var(--sand);
  border-radius: 50%;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .07em;
}

.notice-card {
  padding: 17px;
  color: #e7f6f1;
  background: rgba(255, 255, 255, .095);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 15px;
}

.notice-card + .notice-card { margin-top: 10px; }

.notice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  color: #b8ddd5;
  font-size: .84rem;
  font-weight: 700;
}

.notice-card h3 { margin: 0; color: #f6fcfa; font-size: 1rem; letter-spacing: -.02em; }

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 26px;
  color: #c5e5de;
  font-size: .9rem;
}

.arrow-link { font-weight: 800; }
.arrow-link::after { margin-left: 6px; content: "↗"; }

.section { padding: 92px 0; }
.section-tight { padding: 62px 0; }
.section-muted { background: var(--teal-050); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.section-heading p { max-width: 455px; margin: 0; color: var(--ink-soft); }

.kicker { margin-bottom: 11px; color: var(--teal-700); font-size: .84rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.example-tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: #fdf1dc; color: #92590b; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.example-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #c58118; }
.arrow-link.is-example { color: var(--ink-soft); cursor: default; opacity: .7; }
.arrow-link.is-example:hover { text-decoration: none; }

.space-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.space-card {
  position: relative;
  display: flex;
  min-height: 285px;
  flex-direction: column;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 7px 0 rgba(216, 230, 225, .48);
  transition: transform .2s ease, box-shadow .2s ease;
}

.space-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }

.space-card.featured { color: #eaf8f4; background: var(--teal-800); border-color: var(--teal-800); }
.space-card.featured h3, .space-card.featured p { color: #f0faf7; }
.space-card.featured .card-icon { color: var(--teal-950); background: var(--sand); }

.card-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin-bottom: 25px;
  color: var(--teal-800);
  background: var(--teal-100);
  border-radius: 14px 14px 14px 4px;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.space-card p { margin-bottom: 20px; color: var(--ink-soft); font-size: .98rem; }
.space-card .arrow-link { margin-top: auto; color: inherit; font-size: .9rem; }

.split-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 24px; align-items: stretch; }

.surface {
  padding: 27px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.surface h3 { margin-bottom: 4px; }
.surface-intro { color: var(--ink-soft); font-size: .94rem; }

.list-item {
  display: flex;
  align-items: start;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.list-item:last-child { padding-bottom: 0; border-bottom: 0; }
a.list-item { color: inherit; text-decoration: none; }
a.list-item:hover .list-copy h4 { color: var(--teal-700); }

.date-box {
  flex: 0 0 48px;
  padding: 7px 4px;
  color: var(--teal-800);
  background: var(--teal-100);
  border-radius: 10px;
  text-align: center;
  line-height: 1.15;
}

.date-box strong { display: block; font-size: 1.2rem; }
.date-box span { display: block; margin-top: 3px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.list-copy h4 { margin: 0 0 3px; font-size: .98rem; line-height: 1.35; }
.list-copy p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.quote-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 30px;
  color: #ebf8f4;
  background: var(--teal-950);
  border-radius: var(--radius-md) 55px var(--radius-md) var(--radius-md);
}

.quote-card::before {
  position: absolute;
  top: -36px;
  right: -20px;
  color: rgba(255, 255, 255, .08);
  content: "“";
  font-family: Georgia, serif;
  font-size: 18rem;
  line-height: 1;
}

.quote-mark { position: relative; color: #9bd2c6; font-family: Georgia, serif; font-size: 4rem; line-height: .7; }
.quote-card blockquote { position: relative; margin: 22px 0 30px; color: #f0faf7; font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.35; }
.quote-source { position: relative; color: #aacfc6; font-size: .9rem; }

.page-hero {
  padding: 70px 0 66px;
  background: var(--teal-050);
  border-bottom: 1px solid var(--line);
}

.page-hero-grid { display: grid; grid-template-columns: 1fr .72fr; align-items: end; gap: 60px; }
.page-hero h1 { max-width: 680px; margin-bottom: 15px; font-size: clamp(2.7rem, 5vw, 4.8rem); }
.page-hero p { max-width: 640px; margin-bottom: 0; color: var(--ink-soft); font-size: 1.05rem; }

.page-stamp {
  justify-self: end;
  max-width: 280px;
  padding: 19px;
  color: var(--teal-800);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  box-shadow: var(--shadow-soft);
  font-size: .9rem;
}

.page-stamp strong { display: block; margin-bottom: 3px; font-size: 1.05rem; }
.page-stamp span { color: var(--ink-soft); }

.breadcrumb { margin-bottom: 22px; color: var(--teal-700); font-size: .9rem; font-weight: 700; }
.breadcrumb a { color: var(--ink-soft); }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.value-card { padding: 23px; background: var(--teal-050); border: 1px solid var(--line); border-radius: var(--radius-md); }
.value-card h3 { font-size: 1.1rem; }
.value-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.article-cover { min-height: 142px; padding: 20px; color: #f0faf7; background: linear-gradient(135deg, var(--teal-800), #4f988e); }
.article-cover.gold { color: var(--teal-950); background: linear-gradient(135deg, var(--sand), #d9c598); }
.article-cover.dark { background: linear-gradient(135deg, #244b48, #162f2e); }
.article-cover small { display: block; opacity: .8; font-size: .84rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.article-cover strong { display: block; max-width: 220px; margin-top: 17px; font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.1; }
.article-body { padding: 20px; }
.article-body h3 { font-size: 1.1rem; }
.article-body p { margin-bottom: 18px; color: var(--ink-soft); font-size: .91rem; }
.article-meta { display: flex; align-items: center; justify-content: space-between; color: var(--teal-700); font-size: .84rem; font-weight: 700; }

.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.action-card { padding: 22px; color: var(--teal-800); background: var(--white); border: 1px solid var(--line); border-radius: 15px; transition: transform .2s ease, background .2s ease; }
.action-card:hover { background: var(--teal-100); transform: translateY(-3px); }
.action-card span { display: block; margin-bottom: 30px; color: var(--gold); font-size: .84rem; font-weight: 700; }
.action-card strong { display: block; font-size: 1rem; }
.action-card p { margin: 4px 0 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.4; }

.schedule-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.schedule-table th { padding: 12px 0; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: .84rem; font-weight: 700; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.schedule-table td { padding: 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.schedule-table tr:last-child td { border-bottom: 0; }
.schedule-table td:first-child { width: 23%; color: var(--teal-800); font-weight: 800; }
.schedule-table td:nth-child(2) { width: 30%; font-weight: 700; }
.schedule-table td:last-child { color: var(--ink-soft); }

.progress-row + .progress-row { margin-top: 21px; }
.progress-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: .92rem; font-weight: 700; }
.progress-label span:last-child { color: var(--teal-700); font-size: .9rem; }
.progress-track { height: 8px; overflow: hidden; background: var(--teal-100); border-radius: 99px; }
.progress-value { height: 100%; background: var(--teal-700); border-radius: inherit; }

.internal-shell { padding: 48px 0 86px; background: #eef6f3; }
.internal-top { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.internal-top h1 { margin-bottom: 9px; font-size: clamp(2.1rem, 4vw, 3.5rem); }
.internal-top p { margin: 0; color: var(--ink-soft); }
.user-badge { display: flex; align-items: center; gap: 11px; padding: 9px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; font-size: .9rem; font-weight: 700; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; color: #effaf6; background: var(--teal-800); border-radius: 50%; font-size: .84rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; transition: transform .2s ease, box-shadow .2s ease; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(30, 73, 65, .08); }
.stat-card span { display: block; color: var(--ink-soft); font-size: .84rem; }
.stat-card strong { display: block; margin: 3px 0; font-size: 1.9rem; letter-spacing: -.04em; }
.stat-card small { color: var(--teal-700); font-size: .84rem; font-weight: 700; }
.stat-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; color: var(--teal-700); background: var(--teal-100); border-radius: 11px; }

.stat-card-ring { display: flex; flex-direction: column; align-items: flex-start; }
.ring-wrap { position: relative; width: 80px; height: 80px; margin: 8px 0 6px; }
.progress-ring { width: 80px; height: 80px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--teal-100); stroke-width: 8; }
.ring-fg { fill: none; stroke: var(--teal-700); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .7s ease; }
.ring-wrap strong { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 1.15rem; letter-spacing: -.02em; }

.quick-links { display: flex; flex-direction: column; gap: 3px; }
.quick-link { display: flex; align-items: center; gap: 13px; padding: 11px 10px; color: inherit; text-decoration: none; border-radius: 12px; transition: background .15s ease, transform .15s ease; }
.quick-link:hover { background: var(--teal-100); transform: translateX(2px); }
.quick-link-icon { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; color: var(--teal-800); background: var(--teal-100); border-radius: 11px; }
.quick-link-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.quick-link-copy strong { font-size: .91rem; }
.quick-link-copy span { color: var(--ink-soft); font-size: .84rem; }
.quick-link-arrow { flex-shrink: 0; color: var(--teal-600); font-size: 1.05rem; transition: transform .15s ease; }
.quick-link:hover .quick-link-arrow { transform: translateX(3px); }

@keyframes dash-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
[data-dashboard] .stat-grid .stat-card,
[data-dashboard] .internal-grid .surface { animation: dash-fade-up .5s ease both; }
[data-dashboard] .stat-grid .stat-card:nth-child(1) { animation-delay: .02s; }
[data-dashboard] .stat-grid .stat-card:nth-child(2) { animation-delay: .07s; }
[data-dashboard] .stat-grid .stat-card:nth-child(3) { animation-delay: .12s; }
[data-dashboard] .stat-grid .stat-card:nth-child(4) { animation-delay: .17s; }
[data-dashboard] .internal-column:nth-child(2) .surface:nth-child(1) { animation-delay: .1s; }
[data-dashboard] .internal-column:nth-child(2) .surface:nth-child(2) { animation-delay: .18s; }
.internal-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
.internal-column { display: grid; gap: 20px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-title h2 { margin: 0; font-size: 1.25rem; }
.notice-card[hidden] { display: none; }
.notice-empty { margin: 18px 0; color: rgba(255, 255, 255, .8); font-size: .96rem; line-height: 1.5; }
.panel-title a, .panel-link-button { color: var(--teal-700); font-size: .84rem; font-weight: 700; }
.panel-link-button { padding: 0; background: none; border: 0; cursor: pointer; font-family: inherit; }
.panel-link-button:hover { text-decoration: underline; }
.announcement-manager { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mini-row:last-child { border-bottom: 0; }
.mini-time { flex: 0 0 61px; color: var(--teal-700); font-size: .9rem; font-weight: 700; }
.mini-row strong { display: block; font-size: .94rem; }
.mini-row span { display: block; color: var(--ink-soft); font-size: .84rem; }
.status-pill { margin-left: auto; padding: 4px 8px; color: var(--ink-soft); background: var(--teal-050); border-radius: 99px; font-size: .78rem; font-weight: 700; }
.status-pill.is-live { color: #27715b; background: #e0f3e7; }

.footer { padding: 48px 0 26px; color: #c5dfd8; background: var(--teal-950); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 44px; padding-bottom: 38px; }
.footer .brand-title { color: #f1faf7; }
.footer .brand-subtitle { color: #9fc9c0; }
.footer p { max-width: 350px; margin: 18px 0 0; color: #a8c9c2; font-size: .92rem; }
.footer h3 { margin-bottom: 11px; color: #f1faf7; font-size: .94rem; letter-spacing: 0; }
.footer a { display: block; margin: 7px 0; color: #a8c9c2; font-size: .9rem; }
.footer a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; padding-top: 20px; border-top: 1px solid rgba(197, 223, 216, .18); color: #87afa7; font-size: .84rem; }
.portal-access-bottom { padding: 14px 0 17px; color: #b9d8d1; background: #102f2e; border-top: 1px solid rgba(197, 223, 216, .12); }
.portal-access-bottom .container { display: flex; justify-content: flex-end; }
.portal-access-bottom a { display: inline-flex; align-items: center; gap: 10px; color: #d8efe9; font-size: .84rem; font-weight: 700; }
.portal-access-bottom a span { color: #82ada5; font-size: .84rem; font-weight: 700; }
.portal-access-bottom a:hover { color: #ffffff; }
.auth-page { background: var(--teal-050); }
.auth-shell { min-height: calc(100vh - 218px); padding: 54px 0; }
.auth-container { display: grid; place-items: center; }
.auth-card { width: min(480px, 100%); padding: 36px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.auth-brand { min-width: 0; margin-bottom: 34px; }
.auth-card h1 { margin: 8px 0 11px; color: var(--teal-950); font-size: clamp(2rem, 5vw, 2.7rem); line-height: 1.12; }
.auth-intro { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.auth-form { display: grid; gap: 16px; margin-top: 25px; }
.auth-submit { width: 100%; margin-top: 3px; }
.auth-error { margin: 14px 0 0; padding: 11px 12px; color: #98453c; background: #fff0ed; border: 1px solid #f2c9c2; border-radius: 9px; font-size: .9rem; font-weight: 750; }
.auth-demo-note { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 17px; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: .84rem; }
.auth-demo-note strong { color: var(--teal-800); }
.auth-back-link { display: inline-block; margin-top: 22px; color: var(--teal-700); font-size: .84rem; font-weight: 700; }
.auth-back-link:hover { color: var(--teal-950); }
.auth-footer { margin-top: 0; }
.auth-footer .footer-bottom { border-top: 0; }

@media (max-width: 950px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-panel { min-height: auto; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-stamp { justify-self: start; }
  .action-grid { grid-template-columns: repeat(2, 1fr); }
  .internal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 620px); }
  .topline .container { align-items: start; flex-direction: column; gap: 3px; }
  .nav-wrap { min-height: 74px; }
  .brand { min-width: 0; }
  .brand-subtitle { display: none; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 74px; right: 14px; left: 14px; display: none; align-items: stretch; flex-direction: column; padding: 10px; background: rgba(247, 244, 237, .98); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-soft); }
  .nav-links.open { display: flex; }
  .nav-link { margin: 0; padding: 12px; text-align: left; }
  .hero { padding: 58px 0 72px; }
  h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .hero-panel { padding: 19px; border-radius: 24px 24px 24px 8px; }
  .section, .section-tight { padding: 66px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 10px; }
  .space-grid, .value-grid, .article-grid { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 52px 0; }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .internal-top { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { align-items: start; flex-direction: column; }
  .portal-access-bottom .container { justify-content: flex-start; }
  .auth-shell { min-height: calc(100vh - 250px); padding: 32px 0; }
  .auth-card { padding: 26px 22px; }
}

@media (max-width: 480px) {
  .action-grid, .stat-grid { grid-template-columns: 1fr; }
  .schedule-table { font-size: .9rem; }
  .schedule-table td:first-child { width: 25%; }
  .schedule-table td:nth-child(2) { width: 32%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
}

[hidden] { display: none !important; }

.internal-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.attendance-page { padding-top: 54px; }

.attendance-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.attendance-heading h1 {
  margin-bottom: 10px;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}

.attendance-heading p {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px 17px;
  color: #1e624d;
  background: #e0f3e7;
  border: 1px solid #b8dfc8;
  border-radius: 14px;
  font-size: .91rem;
}

.form-success span { color: #4c7c6a; }
.form-success a { margin-left: auto; font-weight: 800; }

.attendance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 20px;
}

.attendance-main { display: grid; gap: 20px; }
.attendance-aside { display: grid; gap: 20px; }
.sticky-card { position: static; }

.attendance-card { padding: 28px; }

.form-step {
  display: flex;
  align-items: start;
  gap: 13px;
  margin-bottom: 22px;
}

.form-step > span {
  display: grid;
  flex: 0 0 31px;
  place-items: center;
  height: 31px;
  color: var(--teal-800);
  background: var(--teal-100);
  border-radius: 10px 10px 10px 3px;
  font-size: .84rem;
  font-weight: 700;
}

.form-step h2 { margin: 0 0 3px; font-size: 1.35rem; letter-spacing: -.03em; }
.form-step p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.compact-grid { margin-top: 18px; }
.field-wide { grid-column: 1 / -1; }

.field {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 700;
}

.field em { color: #91a39f; font-style: normal; font-weight: 600; }

.password-field { position: relative; }
.password-field input { padding-right: 78px; }
.password-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); padding: 7px 11px; color: var(--teal-700); background: var(--teal-100); border: 0; border-radius: 8px; font-size: .84rem; font-weight: 700; cursor: pointer; }
.password-toggle:hover { filter: brightness(.95); }

.field input,
.field select,
.search-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  font: inherit;
  font-size: .94rem;
  font-weight: 600;
}

.field input:focus,
.field select:focus,
.search-field input:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(98, 170, 160, .14); }

.schedule-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 15px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: .9rem;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: #5cae84;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(92, 174, 132, .14);
}

.text-button {
  padding: 0;
  color: var(--teal-700);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
}

.schedule-hint .text-button { margin-left: auto; }

.status-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}

.status-choice { position: relative; cursor: pointer; }
.status-choice input { position: absolute; opacity: 0; pointer-events: none; }

.status-choice span {
  display: block;
  min-height: 75px;
  padding: 12px;
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.status-choice:hover span { transform: translateY(-2px); }
.status-choice input:checked + span { color: var(--teal-950); background: var(--teal-100); border-color: var(--teal-500); box-shadow: inset 0 -3px 0 var(--teal-700); }
.status-choice strong { display: block; font-size: .91rem; }
.status-choice small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .84rem; font-weight: 600; line-height: 1.3; }

.roster-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.roster-total {
  display: grid;
  align-content: center;
  min-width: 73px;
  padding: 10px 12px;
  color: var(--teal-800);
  background: var(--teal-050);
  border-radius: 12px;
  text-align: center;
}

.roster-total strong { font-size: 1.45rem; line-height: 1; }
.roster-total span { margin-top: 5px; font-size: .78rem; font-weight: 700; }

.roster-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 3px 0 16px;
  padding: 12px;
  background: var(--teal-050);
  border-radius: 12px;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 250px;
  flex: 1;
}

.search-field span { position: absolute; left: 12px; color: var(--teal-700); font-size: 1.15rem; line-height: 1; }
.search-field input { min-height: 40px; padding-left: 32px; background: var(--white); }
.bulk-actions { display: flex; align-items: center; gap: 12px; }
.bulk-actions .button { min-height: 40px; padding: 8px 12px; font-size: .84rem; }

.student-roster { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }

.student-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 140px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}

.student-row:last-child { border-bottom: 0; }
.student-row:hover { background: var(--teal-050); }
.student-row.is-absent { background: #fffaf3; }

.student-check {
  width: 18px;
  height: 18px;
  accent-color: var(--teal-700);
  cursor: pointer;
}

.student-info strong { display: block; font-size: .94rem; }
.student-info span { display: block; color: var(--ink-soft); font-size: .84rem; }

.student-status {
  width: 100%;
  min-height: 34px;
  padding: 5px 7px;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
}

.student-status:disabled { color: #a4b2ae; background: #f5f8f7; cursor: not-allowed; }
.roster-empty { padding: 23px; color: var(--ink-soft); text-align: center; font-size: .92rem; }

.review-card { background: linear-gradient(135deg, var(--white), #f3faf7); }
.review-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 4px 0 22px; }
.review-summary > div { padding: 12px; background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: 11px; }
.review-summary span { display: block; color: var(--ink-soft); font-size: .84rem; font-weight: 700; }
.review-summary strong { display: block; margin-top: 3px; color: var(--teal-800); font-size: 1.4rem; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.submit-button { min-width: 175px; }
.form-error { margin: 0; color: #a04439; font-size: .9rem; font-weight: 700; }

.aside-divider { height: 1px; margin: 20px 0; background: var(--line); }
.summary-line { display: flex; justify-content: space-between; gap: 15px; margin: 10px 0; font-size: .9rem; }
.summary-line span { color: var(--ink-soft); }
.summary-line strong { text-align: right; }
.mini-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; }
.mini-summary > div { padding: 12px 5px; background: var(--teal-050); border-radius: 11px; }
.mini-summary strong { display: block; color: var(--teal-800); font-size: 1.35rem; }
.mini-summary span { color: var(--ink-soft); font-size: .84rem; font-weight: 700; }
.aside-note h3 { margin-bottom: 8px; font-size: 1.1rem; }
.aside-note p { margin-bottom: 15px; color: var(--ink-soft); font-size: .9rem; }
.aside-note-line { display: flex; align-items: center; gap: 9px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .84rem; }
.history-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.history-row strong { color: var(--teal-700); }
.aside-note .arrow-link { display: inline-block; margin-top: 16px; color: var(--teal-700); font-size: .9rem; }

@media (max-width: 950px) {
  .attendance-layout { grid-template-columns: 1fr; }
  .attendance-aside { grid-template-columns: repeat(2, 1fr); }
  .sticky-card { position: static; }
}

@media (max-width: 760px) {
  .internal-top-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .internal-top-actions .button { width: 100%; }
  .attendance-heading { align-items: start; flex-direction: column; }
  .attendance-heading .button { width: 100%; }
  .attendance-card { padding: 21px; }
  .status-choice-grid { grid-template-columns: repeat(2, 1fr); }
  .status-choice:last-child { grid-column: 1 / -1; }
  .roster-actions { align-items: stretch; flex-direction: column; }
  .search-field { max-width: none; }
  .bulk-actions { justify-content: space-between; }
  .bulk-actions .button { flex: 1; }
  .student-row { grid-template-columns: 24px minmax(0, 1fr); }
  .student-status { grid-column: 2; }
  .attendance-aside { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .review-summary { grid-template-columns: repeat(2, 1fr); }
  .submit-row { align-items: stretch; flex-direction: column; }
  .submit-button { width: 100%; }
  .form-success { align-items: start; flex-direction: column; }
  .form-success a { margin-left: 0; }
}

.learning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 20px;
}

.learning-main { display: grid; gap: 20px; }
.learning-aside { display: grid; gap: 20px; }
.learning-setup-card { padding: 28px; }

.schedule-hint-spacer { flex: 1; }
.setup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.ready-note { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .84rem; }
.ready-pulse { width: 8px; height: 8px; background: var(--teal-500); border-radius: 50%; box-shadow: 0 0 0 5px rgba(98, 170, 160, .13); }
.inline-error { margin-top: 14px; padding: 10px 12px; color: #98453c; background: #fff0ed; border: 1px solid #f2c9c2; border-radius: 9px; font-size: .84rem; font-weight: 700; }

.active-session-card { padding: 28px; background: linear-gradient(135deg, var(--white), #f3faf7); }
.active-session-head { display: flex; align-items: start; justify-content: space-between; gap: 25px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.live-label { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; color: #27715b; font-size: .84rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.active-session-head h2 { margin-bottom: 5px; font-size: 1.75rem; }
.active-session-head p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.session-timer { min-width: 160px; padding: 13px; color: var(--teal-950); background: var(--teal-100); border-radius: 14px; text-align: right; }
.session-timer span, .session-timer small { display: block; color: var(--ink-soft); font-size: .78rem; font-weight: 700; }
.session-timer strong { display: block; margin: 3px 0; color: var(--teal-800); font-size: 1.45rem; letter-spacing: .03em; }
.session-context { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px 0 22px; }
.session-context > div { padding-right: 12px; border-right: 1px solid var(--line); }
.session-context > div:last-child { border-right: 0; }
.session-context span { display: block; color: var(--ink-soft); font-size: .84rem; }
.session-context strong { display: block; margin-top: 3px; font-size: .92rem; }
.live-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-bottom: 25px; }
.live-summary > div { padding: 11px 7px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.live-summary strong { display: block; color: var(--teal-800); font-size: 1.35rem; line-height: 1.1; }
.live-summary span { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .84rem; font-weight: 700; }
.finish-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.finish-row p { margin: 0; color: var(--ink-soft); font-size: .84rem; }

.manager-page, .recap-page { padding-top: 54px; }
.manager-feedback { margin-bottom: 20px; padding: 14px 16px; color: var(--teal-800); background: var(--teal-100); border: 1px solid #b9ddd5; border-radius: 12px; font-size: .9rem; font-weight: 700; }
.manager-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.manager-card { padding: 28px; }
.manager-card form { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.manager-card form .button { margin-top: 20px; }
.managed-list { display: grid; gap: 0; margin-top: 7px; }
.managed-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.managed-row:last-child { border-bottom: 0; }
.managed-row strong { display: block; font-size: .92rem; }
.managed-row span:not(.managed-status) { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .84rem; }
.managed-status { flex: 0 0 auto; padding: 5px 8px; color: var(--ink-soft); background: var(--teal-050); border-radius: 8px; font-size: .78rem; font-weight: 700; }
.managed-status.is-active { color: #27715b; background: #e0f3e7; }
.manager-principle { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.manager-principle .card-icon { flex: 0 0 auto; margin: 0; }
.manager-principle h3 { margin-bottom: 3px; font-size: 1.05rem; }
.manager-principle p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.subject-profile-card { margin-top: 20px; padding: 28px; }
.subject-profile-card .panel-title { align-items: start; }
.subject-profile-card .panel-title p { max-width: 720px; margin: 6px 0 0; color: var(--ink-soft); font-size: .9rem; }
.class-level-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.reference-token { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; background: var(--teal-050); border: 1px solid #cce6df; border-radius: 12px; }
.reference-token span { display: grid; width: 29px; height: 29px; place-items: center; flex: 0 0 auto; color: var(--teal-800); background: var(--teal-100); border-radius: 8px; font-size: .78rem; font-weight: 700; }
.reference-token strong { color: var(--teal-900); font-size: .9rem; }
.subject-profile-grid, .subject-reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.subject-profile, .subject-reference { padding: 17px; background: var(--teal-050); border: 1px solid #cce6df; border-radius: 13px; }
.subject-profile-heading, .subject-reference-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.subject-profile-heading strong { display: block; color: var(--teal-800); font-size: .94rem; }
.subject-profile-heading span:not(.recap-legend), .subject-reference-heading small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .84rem; }
.subject-profile ul, .subject-reference ul { display: grid; gap: 7px; margin: 15px 0 0; padding: 14px 0 0 18px; border-top: 1px solid #cce6df; color: var(--ink-soft); font-size: .9rem; }
.subject-profile li::marker, .subject-reference li::marker { color: var(--teal-500); }
.manager-feedback.is-error { color: #98453c; background: #fff0ed; border-color: #f2c9c2; }
.reference-edit-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--teal-050); border: 1px solid #cce6df; border-radius: 12px; }
.reference-edit-no { display: grid; width: 29px; height: 29px; place-items: center; flex: 0 0 auto; color: var(--teal-800); background: var(--teal-100); border-radius: 8px; font-size: .78rem; font-weight: 700; }
.reference-edit-row input, .subject-profile input.reference-title-input, .reference-subject-list input, .reference-add-form input { min-width: 0; width: 100%; padding: 7px 10px; color: var(--ink); background: #fff; border: 1px solid #cce6df; border-radius: 8px; outline: 0; font: inherit; font-size: .9rem; font-weight: 600; }
.reference-edit-row input:focus, .subject-profile input.reference-title-input:focus, .reference-subject-list input:focus, .reference-add-form input:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(98, 170, 160, .14); }
.subject-profile input.reference-title-input { font-size: .94rem; font-weight: 700; color: var(--teal-800); }
.subject-profile .reference-subject-list { padding-left: 0; list-style: none; }
.reference-subject-list li { display: flex; align-items: center; gap: 6px; }
.reference-subject-list .data-delete-button { padding: 5px 8px; }
.reference-add-form { display: flex; gap: 8px; margin-top: 12px; }
.reference-add-form .button { flex: 0 0 auto; min-height: 0; padding: 7px 12px; font-size: .84rem; }
.reference-add-card { display: flex; flex-direction: column; justify-content: center; border-style: dashed; }
.reference-add-card strong { color: var(--teal-800); font-size: .9rem; }
.class-level-list-edit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
@media (max-width: 900px) { .class-level-list-edit { grid-template-columns: 1fr; } }
.subject-reference { background: var(--white); border-color: var(--line); box-shadow: 0 8px 22px rgba(31, 92, 88, .05); }
.subject-reference-heading > span { display: grid; width: 30px; height: 30px; place-items: center; color: var(--teal-800); background: var(--teal-100); border-radius: 9px; font-size: .84rem; font-weight: 700; }
.subject-reference-heading h3 { margin: 0; color: var(--teal-900); font-size: 1rem; }
.subject-reference ul { padding-top: 12px; color: var(--ink); }
.public-stage-note { margin-top: 20px; }

.recap-filter { min-width: 270px; }
.recap-filter .field { min-width: 270px; }
.recap-stage-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding: 18px 20px; color: #eefaf7; background: var(--teal-800); border-radius: 15px; }
.recap-stage-bar strong { display: block; font-size: 1.1rem; }
.recap-stage-bar span { display: block; margin-top: 3px; color: #bfdfd8; font-size: .84rem; }
.recap-stage-bar .button-primary { color: var(--teal-950); background: var(--sand); }
.recap-stage-bar .button-secondary { color: #eefaf7; border-color: rgba(238, 250, 247, .55); }
.recap-stage-bar .button-secondary:hover { background: rgba(238, 250, 247, .14); }
.recap-stats { margin-bottom: 20px; }
.recap-stats .stat-card strong { font-size: 1.45rem; }
.recap-table-card { padding: 24px; }
.recap-table-card .panel-title { align-items: start; }
.recap-table-card .panel-title p { margin: 6px 0 0; color: var(--ink-soft); font-size: .84rem; }
.recap-legend { padding: 7px 9px; color: var(--teal-700); background: var(--teal-050); border-radius: 8px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.recap-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .84rem; }
.recap-table th { padding: 12px 10px; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: .78rem; font-weight: 700; text-align: left; text-transform: uppercase; }
.recap-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.recap-table tbody tr:last-child td { border-bottom: 0; }
.recap-table td:first-child, .recap-table th:first-child { width: 40px; color: var(--ink-soft); }
.recap-table td strong { display: block; font-size: .9rem; }
.recap-table td small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .78rem; }
.recap-subject { display: inline-block; padding: 5px 7px; color: var(--teal-800); background: var(--teal-100); border-radius: 7px; font-weight: 800; }
.empty-state { padding: 60px 25px; text-align: center; }
.empty-state .card-icon { margin: 0 auto 20px; }
.empty-state h2 { margin-bottom: 8px; font-size: 1.75rem; }
.empty-state p { max-width: 450px; margin: 0 auto 21px; color: var(--ink-soft); font-size: .92rem; }

.dashboard-stage { display: flex; align-items: center; gap: 13px; padding: 10px 0 14px; }
.dashboard-stage .card-icon { flex: 0 0 auto; margin: 0; }
.dashboard-stage h3 { margin: 0 0 4px; font-size: 1rem; }
.dashboard-stage p { margin: 0; color: var(--ink-soft); font-size: .84rem; }
.stage-note { display: flex; align-items: center; gap: 9px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .84rem; }

.class-manager-panel { margin-top: 20px; }
.class-manager-title { align-items: start; }
.class-manager-title p { max-width: 700px; margin: 6px 0 0; color: var(--ink-soft); font-size: .9rem; }
.panel-kicker { flex: 0 0 auto; padding: 7px 10px; color: var(--teal-800); background: var(--teal-100); border-radius: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.class-editor-feedback { margin-bottom: 16px; padding: 12px 14px; color: var(--teal-800); background: var(--teal-100); border: 1px solid #b9ddd5; border-radius: 10px; font-size: .9rem; font-weight: 750; }
.class-editor-feedback.is-error { color: #98453c; background: #fff0ed; border-color: #f2c9c2; }
.class-manager-layout { display: grid; grid-template-columns: minmax(290px, .8fr) minmax(0, 1.2fr); gap: 18px; }
.class-editor-side, .class-roster-editor { padding: 21px; background: #fbfdfc; border: 1px solid var(--line); border-radius: 15px; }
.class-editor-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.class-editor-heading > div { min-width: 0; }
.class-editor-heading strong { display: block; color: var(--teal-800); font-size: .95rem; }
.class-editor-heading > div > span { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .84rem; }
.class-editor-number { display: grid; width: 32px; height: 32px; place-items: center; flex: 0 0 auto; color: var(--teal-800); background: var(--teal-100); border-radius: 9px; font-size: .84rem; font-weight: 700; }

.account-add-heading { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.account-row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account-role-select { min-height: 38px; padding: 6px 10px; color: var(--ink); background: #fbfdfc; border: 1px solid var(--line); border-radius: 9px; font-size: .84rem; font-weight: 700; }
.class-picker { margin-bottom: 18px; }
.class-form-grid { gap: 13px; }
.class-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; }
.class-form-actions .button { min-height: 42px; padding: 9px 13px; font-size: .84rem; }
.class-form-actions .button-primary { flex: 1 1 170px; }
.class-manager-note, .class-roster-footnote { display: flex; align-items: start; gap: 8px; margin-top: 18px; padding-top: 15px; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: .84rem; line-height: 1.5; }
.class-roster-heading { align-items: start; }
.class-roster-heading > div { flex: 1; }
.class-roster-count { flex: 0 0 auto; padding: 6px 9px; color: var(--teal-700); background: var(--teal-050); border-radius: 8px; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.class-roster-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.class-roster-search { flex: 1; min-width: 160px; }
.class-roster-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.button-compact { min-height: 40px; padding: 8px 11px; font-size: .84rem; }
.class-editor-roster { max-height: 415px; overflow-y: auto; background: var(--white); border: 1px solid var(--line); border-radius: 11px; }
.class-roster-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); transition: background .2s ease; }
.class-roster-row:last-child { border-bottom: 0; }
.class-roster-row:hover, .class-roster-row.is-selected { background: var(--teal-050); }
.class-roster-check { width: 17px; height: 17px; accent-color: var(--teal-700); cursor: pointer; }
.class-roster-info { min-width: 0; cursor: pointer; }
.class-roster-info strong { display: block; overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.class-roster-info small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .78rem; }
.class-roster-current { color: var(--teal-700) !important; font-weight: 750; }
.class-roster-empty { padding: 28px 16px; color: var(--ink-soft); font-size: .9rem; text-align: center; }
.class-roster-footnote { margin-top: 13px; padding-top: 13px; }
.data-directory-panel { margin-top: 20px; }
.data-manager-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.data-manager-card { padding: 21px; background: #fbfdfc; border: 1px solid var(--line); border-radius: 15px; }
.data-manager-card form { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.data-submit-button { width: 100%; min-height: 42px; margin-top: 18px; padding: 9px 13px; font-size: .84rem; }
.data-list-toolbar { display: flex; align-items: center; gap: 10px; margin: 17px 0 11px; }
.data-list-toolbar .search-field { flex: 1; }
.data-list-count { flex: 0 0 auto; color: var(--ink-soft); font-size: .84rem; font-weight: 700; }
.data-record-list { max-height: 365px; overflow-y: auto; background: var(--white); border: 1px solid var(--line); border-radius: 11px; }
.data-record-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.data-record-row:last-child { border-bottom: 0; }
.data-record-row:hover { background: var(--teal-050); }
.data-record-copy { min-width: 0; }
.data-record-copy strong { display: block; overflow: hidden; font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.data-record-copy small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .78rem; }
.data-delete-button { flex: 0 0 auto; padding: 6px 9px; color: #98453c; background: #fff5f2; border: 1px solid #f2c9c2; border-radius: 8px; cursor: pointer; font-size: .84rem; font-weight: 700; }
.data-delete-button:hover { background: #ffe9e4; }
.data-edit-button { flex: 0 0 auto; padding: 6px 9px; color: var(--teal-700); background: var(--teal-100); border: 1px solid var(--teal-100); border-radius: 8px; cursor: pointer; font-size: .84rem; font-weight: 700; }
.data-edit-button:hover { filter: brightness(.96); }
.publication-record-actions { display: flex; gap: 6px; }
.data-edit-button { flex: 0 0 auto; padding: 6px 9px; color: var(--teal-800); background: var(--teal-050); border: 1px solid #cce6df; border-radius: 8px; cursor: pointer; font-size: .84rem; font-weight: 700; }
.data-edit-button:hover { background: var(--teal-100); }
.data-record-empty { padding: 28px 16px; color: var(--ink-soft); font-size: .9rem; text-align: center; }
.data-manager-note { display: flex; align-items: start; gap: 8px; margin-top: 18px; padding-top: 15px; color: var(--ink-soft); border-top: 1px solid var(--line); font-size: .84rem; line-height: 1.5; }

@media (max-width: 950px) {
  .learning-layout { grid-template-columns: 1fr; }
  .learning-aside { grid-template-columns: repeat(2, 1fr); }
  .learning-aside .sticky-card { position: static; }
  .manager-grid { grid-template-columns: 1fr; }
  .class-level-grid, .subject-profile-grid, .subject-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-manager-layout { grid-template-columns: 1fr; }
  .data-manager-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .active-session-head { flex-direction: column; }
  .session-timer { width: 100%; text-align: left; }
  .session-context { grid-template-columns: 1fr; }
  .session-context > div { padding: 0 0 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .session-context > div:last-child { padding-bottom: 0; border-bottom: 0; }
  .live-summary { grid-template-columns: repeat(3, 1fr); }
  .live-summary > div:last-child { grid-column: 2; }
  .setup-actions, .finish-row { align-items: stretch; flex-direction: column; }
  .setup-actions .button, .finish-row .button { width: 100%; }
  .learning-aside { grid-template-columns: 1fr; }
  .recap-filter, .recap-filter .field { width: 100%; min-width: 0; }
  .recap-stage-bar { align-items: stretch; flex-direction: column; }
  .recap-stage-bar .button { width: 100%; }
  .table-scroll { position: relative; }
  .table-scroll::after { content: '→ Geser untuk lihat kolom lain'; display: block; margin-top: 8px; color: var(--ink-soft); font-size: .84rem; font-weight: 700; }
  .manager-principle { align-items: start; }
  .class-level-grid, .subject-profile-grid, .subject-reference-grid { grid-template-columns: 1fr; }
  .class-roster-toolbar { align-items: stretch; flex-direction: column; }
  .class-roster-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .class-roster-actions .button { width: 100%; }
  .data-list-toolbar { align-items: stretch; flex-direction: column; }
}

@media (max-width: 480px) {
  .live-summary { grid-template-columns: repeat(2, 1fr); }
  .live-summary > div:last-child { grid-column: auto; }
}

.recap-bar-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.recap-bar-actions .button { min-height: 40px; padding: 8px 12px; font-size: .84rem; }

@media print {
  @page { margin: 12mm; }
  body { background: #fff; }
  .topline, .site-header, .footer, .attendance-heading > .button, .recap-filter, .recap-bar-actions, .breadcrumb { display: none !important; }
  .internal-shell { padding: 0; background: #fff; }
  .container { width: 100%; max-width: none; }
  .recap-stage-bar { margin-bottom: 18px; padding: 0 0 12px; color: var(--ink); background: transparent; border-bottom: 2px solid var(--ink); border-radius: 0; }
  .recap-stage-bar span { color: var(--ink-soft); }
  .recap-stats { grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
  .recap-stats .stat-card { padding: 10px; box-shadow: none; }
  .recap-stats .stat-card:last-child { display: none; }
  .recap-table-card { padding: 0; border: 0; box-shadow: none; }
  .recap-table-card .panel-title p, .recap-legend { display: none; }
  .table-scroll { overflow: visible; }
  .recap-table { min-width: 0; font-size: 8pt; }
  .recap-table th { font-size: 7pt; }
  .recap-table td, .recap-table th { padding: 6px 5px; }
  .recap-subject { padding: 2px 4px; color: var(--ink); background: transparent; border: 1px solid #bbb; }
}

/* --------------------------------------------------------------------------
   Reference visual direction
   Warm editorial foundation, quiet teal surfaces, and a clear public/internal
   separation inspired by the supplied desktop, tablet, and mobile reference.
   -------------------------------------------------------------------------- */
:root {
  --ink: #0d4e50;
  --ink-soft: #637775;
  --teal-950: #083f41;
  --teal-900: #0b5354;
  --teal-800: #0e6667;
  --teal-700: #197d7d;
  --teal-500: #62aaa0;
  --teal-100: #dcefeb;
  --teal-050: #f1f6ef;
  --cream: #f3f3ec;
  --sand: #e8dfc5;
  --gold: #c89547;
  --line: #d9e4dc;
  --shadow: 0 24px 70px rgba(22, 56, 53, .12);
  --shadow-soft: 0 12px 28px rgba(22, 56, 53, .08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

body.public-page {
  background: #edf0ea;
}

.public-page .topline {
  display: none;
}

.public-page .site-header,
.public-page main,
.public-page .footer,
.public-page .portal-access-bottom {
  width: min(1240px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.public-page .site-header {
  top: 14px;
  margin-top: 18px;
  background: rgba(255, 254, 249, .92);
  border: 1px solid rgba(205, 221, 213, .95);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 8px 30px rgba(30, 67, 60, .07);
}

.public-page .nav-wrap {
  min-height: 78px;
  padding: 0 22px;
}

.public-page .brand-mark {
  width: 43px;
  height: 43px;
  color: var(--teal-800);
  background: #f6fbf6;
  border: 1.5px solid var(--teal-800);
  border-radius: 50% 50% 50% 12px;
  box-shadow: 4px 4px 0 rgba(200, 149, 71, .35);
}

.public-page .brand-title {
  color: var(--teal-950);
  font-size: .98rem;
}

.public-page .brand-subtitle {
  color: var(--ink-soft);
  font-size: .78rem;
}

.public-page .nav-links {
  gap: 2px;
}

.public-page .nav-link {
  padding: 8px 12px;
  color: #6c7f7c;
  font-size: .84rem;
  font-weight: 750;
}

.public-page .nav-link:hover,
.public-page .nav-link.active {
  color: var(--teal-800);
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--gold);
}

.public-page main {
  overflow: hidden;
  background: #fffef9;
  border: 1px solid rgba(205, 221, 213, .95);
  border-top: 0;
  box-shadow: var(--shadow);
}

.public-page .hero {
  padding: 72px 36px 40px;
  background: #fffef9;
}

.public-home .hero {
  background-color: #fffef9;
  background-image: linear-gradient(90deg, rgba(255, 254, 249, .98) 0%, rgba(255, 254, 249, .91) 36%, rgba(255, 254, 249, .58) 68%, rgba(255, 254, 249, .79) 100%), url("assets/hero-yayasan.webp");
  background-position: center 61%;
  background-size: cover;
}

.public-page .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(350px, .92fr);
  gap: 42px;
}

.public-page .eyebrow {
  margin-bottom: 15px;
  color: var(--teal-800);
  font-size: .78rem;
  letter-spacing: .16em;
}

.public-page h1,
.public-page h2,
.public-page h3 {
  color: var(--teal-950);
}

.public-page h1 {
  max-width: 620px;
  margin-bottom: 17px;
  font-size: clamp(2.55rem, 5vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.public-page .lead {
  max-width: 560px;
  margin-bottom: 24px;
  color: #6a7e7a;
  font-size: .98rem;
  line-height: 1.68;
}

.public-page .actions {
  gap: 10px;
}

.public-page .button {
  min-height: 43px;
  padding: 10px 17px;
  border-radius: 999px;
  font-size: .84rem;
  letter-spacing: .01em;
}

.public-page .button-primary {
  color: #f4fcf9;
  background: var(--teal-800);
}

.public-page .button-secondary {
  color: var(--teal-800);
  background: transparent;
  border-color: #6eaaa2;
}

.public-page .hero-note {
  margin-top: 20px;
  color: #84948f;
  font-size: .84rem;
}

.public-page .hero-panel {
  min-height: 420px;
  padding: 24px;
  color: var(--teal-950);
  background: radial-gradient(circle at 74% 24%, rgba(255, 255, 255, .52), transparent 31%), linear-gradient(145deg, rgba(220, 237, 234, .70) 0%, rgba(237, 242, 232, .60) 54%, rgba(215, 233, 226, .66) 100%);
  border: 1px solid rgba(215, 228, 217, .76);
  border-radius: 24px;
  box-shadow: 0 18px 34px rgba(35, 83, 75, .06);
}

.public-page .hero-panel::before {
  position: absolute;
  right: 10%;
  bottom: 9%;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(14, 102, 103, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(14, 102, 103, .028), 0 0 0 43px rgba(14, 102, 103, .018);
  content: "";
}

.public-page .panel-head {
  position: relative;
  margin-bottom: 25px;
}

.public-page .panel-label {
  color: var(--teal-700);
  font-size: .78rem;
}

.public-page .panel-head h2 {
  max-width: 245px;
  margin-top: 7px;
  color: var(--teal-950);
  font-size: 1.62rem;
}

.public-page .panel-seal {
  color: var(--teal-800);
  background: #f5f7e9;
  border: 1px solid rgba(14, 102, 103, .12);
}

.public-page .notice-card {
  position: relative;
  color: var(--teal-950);
  background: rgba(255, 255, 255, .78);
  border-color: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 24px rgba(37, 86, 75, .07);
}

.public-page .notice-meta {
  color: var(--teal-700);
  font-size: .78rem;
}

.public-page .notice-card h3 {
  color: var(--teal-950);
  font-size: .98rem;
}

.public-page .panel-footer {
  position: relative;
  color: var(--teal-800);
  font-size: .84rem;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 36px 38px;
  padding: 17px 10px;
  background: #f1f5eb;
  border: 1px solid #e0e9dd;
  border-radius: 18px;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 60px;
  padding: 3px 18px;
  border-right: 1px solid #d0dfd4;
  color: var(--teal-950);
  text-align: left;
}

.feature-item:last-child {
  border-right: 0;
}

.feature-item strong {
  font-size: .84rem;
  line-height: 1.25;
}

.feature-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--teal-800);
  background: #e0f0e9;
  border: 1px solid #bedbd2;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 700;
}

.public-page .section {
  padding: 56px 36px;
}

.public-page .section-tight {
  padding: 40px 36px;
}

.public-page .section-muted {
  background: #f1f5ed;
}

.public-page .section-heading {
  margin-bottom: 25px;
}

.public-page .kicker {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .15em;
}

.public-page .section-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.public-page .section-heading p {
  max-width: 430px;
  color: #71817c;
  font-size: .9rem;
}

.public-page .space-grid,
.public-page .article-grid {
  gap: 14px;
}

.public-page .space-card {
  min-height: 238px;
  padding: 21px;
  background: #fffef9;
  border-color: #e0e7df;
  border-radius: 15px;
  box-shadow: 0 7px 0 rgba(223, 232, 221, .55);
}

.public-page .space-card.featured {
  color: #effaf7;
  background: var(--teal-800);
  border-color: var(--teal-800);
}

.public-page .space-card h3 {
  font-size: 1.1rem;
}

.public-page .space-card.featured h3,
.public-page .space-card.featured p {
  color: #f1faf7;
}

.public-page .space-card p {
  margin-bottom: 18px;
  color: #6d7d78;
  font-size: .9rem;
  line-height: 1.55;
}

.public-page .card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 21px;
  border-radius: 50% 50% 50% 11px;
  font-size: .78rem;
}

.public-page .split-grid {
  gap: 17px;
}

.public-page .surface {
  padding: 24px;
  background: #fffef9;
  border-color: #e0e7df;
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(30, 73, 65, .035);
}

.public-page .surface h3 {
  font-size: 1.15rem;
}

.public-page .surface-intro,
.public-page .list-copy p,
.public-page .value-card p,
.public-page .article-body p {
  color: #71817c;
  font-size: .9rem;
}

.public-page .date-box {
  color: var(--teal-800);
  background: #e1f0e9;
}

.public-page .quote-card {
  background: var(--teal-950);
  border-radius: 15px 46px 15px 15px;
}

.public-page .page-hero {
  padding: 58px 36px 52px;
  background: #eff4ed;
  border-bottom-color: #e0e7df;
}

.public-page .page-hero h1 {
  font-size: clamp(2.25rem, 4.7vw, 3.8rem);
}

.public-page .page-hero p {
  color: #71817c;
  font-size: .98rem;
}

.public-page .page-stamp {
  padding: 17px;
  color: var(--teal-800);
  background: #fffef9;
  border-color: #e0e7df;
  border-radius: 14px 14px 14px 4px;
  box-shadow: 0 10px 24px rgba(32, 79, 70, .07);
  font-size: .84rem;
}

.public-page .value-card,
.public-page .article-card,
.public-page .action-card,
.public-page .reference-token,
.public-page .subject-reference,
.public-page .subject-profile {
  border-color: #e0e7df;
  border-radius: 14px;
}

.public-page .value-card {
  padding: 20px;
  background: #f1f5ed;
}

.public-page .article-cover {
  min-height: 128px;
  background: linear-gradient(135deg, #0d6768, #53a397);
}

.public-page .article-body {
  padding: 18px;
}

.public-page .article-cover strong {
  font-size: 1.24rem;
}

.public-page .action-card {
  padding: 19px;
  background: #fffef9;
}

.public-page .schedule-table {
  font-size: .9rem;
}

.public-page .schedule-table th {
  color: #788883;
  font-size: .78rem;
}

.public-page .schedule-table td {
  padding: 13px 0;
}

.public-page .footer {
  padding: 36px 36px 21px;
  color: #c4dfd8;
  background: var(--teal-950);
  border-radius: 0;
  box-shadow: 0 14px 35px rgba(30, 67, 60, .12);
}

.public-page .footer-grid {
  gap: 32px;
  padding-bottom: 28px;
}

.public-page .footer .brand-mark {
  color: #e9f8f3;
  background: rgba(255, 255, 255, .06);
  border-color: #9dcfc2;
  box-shadow: 3px 3px 0 rgba(200, 149, 71, .45);
}

.public-page .footer a {
  font-size: .84rem;
}

.public-page .portal-access-bottom {
  margin-bottom: 18px;
  padding: 11px 36px 13px;
  background: #0b3435;
  border: 1px solid #144b49;
  border-top: 0;
  border-radius: 0 0 18px 18px;
}

.public-page .portal-access-bottom .container {
  width: 100%;
  justify-content: center;
}

.public-page .portal-access-bottom a {
  padding: 5px 15px;
  color: #cfece4;
  border: 1px solid #8dbbb0;
  border-radius: 999px;
  font-size: .78rem;
}

.public-page .portal-access-bottom a span {
  display: none;
}

/* The internal portal uses the same palette, with denser working surfaces. */
body.internal-page {
  background: #edf1ed;
}

.internal-page .site-header {
  background: rgba(255, 254, 249, .94);
  border-bottom-color: #d5e3dc;
}

.internal-page .brand-mark {
  border-radius: 50% 50% 50% 12px;
  box-shadow: 4px 4px 0 rgba(200, 149, 71, .3);
}

.internal-page .internal-shell {
  background: #edf1ed;
}

.internal-page .surface,
.internal-page .stat-card {
  background: #fffef9;
  border-color: #dce6df;
  border-radius: 16px;
  box-shadow: 0 7px 21px rgba(30, 73, 65, .035);
}

.internal-page .button {
  border-radius: 999px;
}

.internal-page .class-editor-side,
.internal-page .class-roster-editor,
.internal-page .data-manager-card {
  background: #f6f8f3;
  border-color: #dce6df;
  border-radius: 14px;
}

.internal-page .field input,
.internal-page .field select,
.internal-page .search-field input {
  background: #fffef9;
  border-color: #d7e4dc;
}

.internal-page .recap-stage-bar {
  border-radius: 14px;
}

.internal-page .footer {
  border-top: 1px solid rgba(205, 225, 216, .12);
}

@media (max-width: 950px) {
  .public-page .hero-grid {
    grid-template-columns: 1fr;
  }

  .public-page .hero-panel {
    min-height: 360px;
  }

  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-item:nth-child(2) {
    border-right: 0;
  }

  .feature-item:nth-child(-n + 2) {
    border-bottom: 1px solid #d0dfd4;
  }
}

@media (max-width: 760px) {
  .public-page .site-header,
  .public-page main,
  .public-page .footer,
  .public-page .portal-access-bottom {
    width: calc(100% - 28px);
  }

  .public-page .site-header {
    top: 8px;
    margin-top: 8px;
  }

  .public-page .nav-wrap {
    padding: 0 15px;
  }

  .public-page .nav-links {
    top: 72px;
    right: 10px;
    left: 10px;
    background: rgba(255, 254, 249, .98);
  }

  .public-page .hero,
  .public-page .section,
  .public-page .section-tight,
  .public-page .page-hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .public-page .hero {
    padding-top: 51px;
  }

  .public-home .hero {
    background-image: linear-gradient(180deg, rgba(255, 254, 249, .98) 0%, rgba(255, 254, 249, .9) 48%, rgba(255, 254, 249, .7) 100%), url("assets/hero-yayasan.webp");
    background-position: center 58%;
  }

  .public-page h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .public-page .hero-panel {
    min-height: 335px;
    padding: 18px;
    border-radius: 20px;
  }

  .feature-strip {
    margin: 0 20px 28px;
    padding: 8px 5px;
  }

  .feature-item {
    justify-content: flex-start;
    padding: 10px 9px;
  }

  .feature-item strong {
    font-size: .78rem;
  }

  .public-page .footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .public-page .portal-access-bottom {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 480px) {
  .public-page .brand-title {
    font-size: .9rem;
  }

  .public-page .brand-subtitle {
    display: none;
  }

  .public-page .hero-panel {
    min-height: 360px;
  }

  .feature-strip {
    grid-template-columns: 1fr 1fr;
  }

  .feature-item {
    min-height: 55px;
  }

  .feature-item:nth-child(2) {
    border-right: 0;
  }
}

.brand-mark {
  overflow: hidden;
  isolation: isolate;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
  transform: scale(1.34);
  mix-blend-mode: normal;
}

.footer .brand-mark img {
  transform: scale(1.28);
}

.auth-card .brand-mark img {
  transform: scale(1.12);
}

.public-page .footer .brand-mark,
.internal-page .footer .brand-mark,
.auth-card .brand-mark {
  background: #eef8f3;
}

.panel-seal,
.card-icon {
  overflow: hidden;
}

.panel-seal img,
.card-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
  transform: scale(1.24);
}

.public-page .footer .brand-title,
.internal-page .footer .brand-title {
  color: #f1faf7;
}

.public-page .footer .brand-subtitle,
.internal-page .footer .brand-subtitle {
  color: #9fc9c0;
}

.footer .brand {
  gap: 18px;
}

.footer .brand-copy {
  padding-top: 3px;
}

.public-content-panel {
  margin-top: 20px;
}

.schedule-manager-panel {
  margin-top: 20px;
}

.schedule-manager-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 18px;
}

.schedule-editor-card,
.schedule-library-card {
  padding: 21px;
  background: #f6f8f3;
  border: 1px solid #dce6df;
  border-radius: 14px;
}

.public-schedule-form-grid {
  gap: 13px;
}

.public-schedule-form-grid textarea {
  width: 100%;
  min-height: 82px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fffef9;
  border: 1px solid #d7e4dc;
  border-radius: 10px;
  outline: 0;
  resize: vertical;
  font: inherit;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.5;
}

.public-schedule-form-grid textarea:focus,
.public-schedule-form-grid input:focus,
.public-schedule-form-grid select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(98, 170, 160, .14);
}

.field-optional {
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 600;
}

.schedule-submit-button {
  flex: 1;
  min-height: 42px;
  margin-top: 18px;
  padding: 9px 13px;
  font-size: .84rem;
}

.schedule-form-actions {
  display: flex;
  gap: 9px;
}

.schedule-cancel-button {
  min-width: 110px;
  margin-top: 18px;
  padding: 9px 13px;
  font-size: .84rem;
}

.schedule-record-list {
  display: grid;
  gap: 0;
  max-height: 440px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.schedule-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}

.schedule-record:last-child {
  border-bottom: 0;
}

.schedule-record:hover {
  background: var(--teal-050);
}

.schedule-record-copy {
  min-width: 0;
}

.schedule-record-copy .public-feed-meta {
  align-items: center;
  margin-bottom: 4px;
}

.schedule-record-copy strong,
.schedule-record-copy small {
  display: block;
}

.schedule-record-copy strong {
  overflow: hidden;
  font-size: .9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-record-copy small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: .84rem;
}

.schedule-record-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.public-schedule-empty {
  margin: 0;
  padding: 30px 18px;
  color: var(--ink-soft);
  font-size: .9rem;
  text-align: center;
}

.public-page .schedule-table td:first-child small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 600;
}

.public-content-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  overflow-x: auto;
  background: #f6f8f3;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.public-content-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 13px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
}

.public-content-tab:hover,
.public-content-tab.is-active {
  color: var(--teal-800);
  background: var(--white);
  border-color: #cfe1d8;
  box-shadow: 0 3px 9px rgba(35, 83, 75, .06);
}

.public-content-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 20px;
  background: #f6f8f3;
  border: 1px solid #dce6df;
  border-radius: 14px;
}

.public-content-fields textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fffef9;
  border: 1px solid #d7e4dc;
  border-radius: 10px;
  outline: 0;
  resize: vertical;
  font: inherit;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.5;
}

.public-content-fields textarea:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(98, 170, 160, .14);
}

.public-content-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  grid-column: 1 / -1;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid #dce6df;
}

.public-content-section-title span {
  color: var(--teal-700);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.public-content-section-title strong {
  color: var(--teal-950);
  font-size: .9rem;
}

.public-content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.public-content-actions .button {
  min-height: 42px;
  padding: 9px 13px;
  font-size: .84rem;
}

@media (max-width: 760px) {
  .public-content-fields {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .public-content-fields .field-wide {
    grid-column: auto;
  }

  .public-content-section-title {
    align-items: start;
    flex-direction: column;
    gap: 3px;
  }

  .public-content-actions .button {
    width: 100%;
  }
}

@media (max-width: 950px) {
  .schedule-manager-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .schedule-record {
    align-items: start;
    flex-direction: column;
  }

  .schedule-record .data-delete-button {
    align-self: start;
  }

  .schedule-record-actions {
    align-self: start;
  }

  .schedule-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-submit-button,
  .schedule-cancel-button {
    width: 100%;
  }
}

.publication-manager-panel {
  margin-top: 20px;
}

.publication-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  background: #f6f8f3;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.publication-tab {
  min-height: 40px;
  padding: 9px 13px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
}

.publication-tab:hover,
.publication-tab.is-active {
  color: var(--teal-800);
  background: var(--white);
  border-color: #cfe1d8;
  box-shadow: 0 3px 9px rgba(35, 83, 75, .06);
}

.publication-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 18px;
}

.publication-editor-card,
.publication-library-card {
  padding: 21px;
  background: #f6f8f3;
  border: 1px solid #dce6df;
  border-radius: 14px;
}

.public-publication-form-grid {
  gap: 13px;
}

.public-publication-form-grid textarea {
  width: 100%;
  min-height: 92px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fffef9;
  border: 1px solid #d7e4dc;
  border-radius: 10px;
  outline: 0;
  resize: vertical;
  font: inherit;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.5;
}

.public-publication-form-grid textarea:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(98, 170, 160, .14);
}

.richtext-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.richtext-toolbar button {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  color: var(--ink);
  background: #fffef9;
  border: 1px solid #d7e4dc;
  border-radius: 8px;
  font-size: .9rem;
  cursor: pointer;
}

.richtext-toolbar button:hover { background: var(--teal-100); }
.richtext-toolbar button.is-active { background: var(--teal-500); border-color: var(--teal-500); color: #fff; }
.richtext-toolbar-sep { width: 1px; height: 20px; background: #d7e4dc; margin: 0 2px; }

.richtext-editor {
  width: 100%;
  min-height: 92px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fffef9;
  border: 1px solid #d7e4dc;
  border-radius: 10px;
  outline: 0;
  font: inherit;
  font-size: .94rem;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.richtext-editor strong, .richtext-editor b { font-weight: 700; }

.richtext-editor:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(98, 170, 160, .14);
}

.richtext-editor:empty::before { content: attr(data-placeholder); color: #91a39f; font-weight: 600; }
.richtext-editor p, .richtext-editor div { margin: 0 0 10px; }
.richtext-editor p:last-child, .richtext-editor div:last-child { margin-bottom: 0; }

.ta-center { text-align: center; }
.ta-right { text-align: right; }
.ta-justify { text-align: justify; }

.public-publication-form-grid input[type="file"] {
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: .84rem;
}

.public-publication-form-grid em {
  color: #91a39f;
  font-size: .84rem;
  font-style: normal;
  font-weight: 600;
}

.current-image-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px;
  background: #f3f6f3;
  border-radius: 8px;
}

.current-image-note img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.current-image-note span { font-size: .84rem; font-weight: 600; color: #91a39f; }

.publication-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.publication-form-actions .publication-submit-button { margin-top: 0; flex: 1; }
.publication-form-actions #publication-post-cancel-edit { min-height: 42px; padding: 9px 16px; font-size: .84rem; }

.publication-submit-button {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  padding: 9px 13px;
  font-size: .84rem;
}

.publication-library-card .class-editor-heading {
  align-items: start;
}

.publication-library-section + .publication-library-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #dce6df;
}

.publication-library-section .kicker {
  margin-bottom: 10px;
}

.publication-record-list {
  display: grid;
  gap: 9px;
}

.publication-record {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.publication-record-media {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: 9px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
}

.publication-record-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publication-record-copy {
  min-width: 0;
}

.publication-record-copy strong,
.publication-record-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.publication-record-copy strong {
  margin-top: 5px;
  color: var(--teal-950);
  font-size: .9rem;
}

.publication-record-copy small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: .78rem;
}

.public-feed-section[hidden] {
  display: none;
}

.public-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.public-feed-card {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 9px 18px rgba(35, 83, 75, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

a.public-feed-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(35, 83, 75, .12);
}

.public-feed-media {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: var(--teal-100);
}

.video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 40, 38, .78);
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.public-feed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-feed-placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--teal-700);
  background: linear-gradient(135deg, #e0f0e9, #f3f5e9);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.public-feed-copy {
  padding: 15px;
}

.public-feed-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--teal-700);
  font-size: .78rem;
  font-weight: 700;
}

.public-feed-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-feed-copy h3 {
  margin: 8px 0 6px;
  color: var(--teal-950);
  font-size: 1rem;
}

.public-feed-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.55;
}

@media (max-width: 950px) {
  .publication-layout {
    grid-template-columns: 1fr;
  }

  .public-feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .publication-tabs {
    overflow-x: auto;
  }

  .public-feed-grid {
    grid-template-columns: 1fr;
  }

  .publication-record {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .publication-record-media {
    width: 50px;
    height: 50px;
  }

  .publication-record .publication-record-actions {
    grid-column: 2;
    justify-self: start;
  }
}

/* Majelis hero artwork supplied by the user. */
.public-majelis .page-hero {
  background-color: #f4f7f2;
  background-image: linear-gradient(90deg, rgba(244, 247, 242, .96) 0%, rgba(244, 247, 242, .84) 37%, rgba(244, 247, 242, .48) 72%, rgba(244, 247, 242, .66) 100%), url("assets/hero-majelis.webp");
  background-position: center 54%;
  background-size: cover;
}

.public-yayasan .page-hero {
  background-color: #fffef9;
  background-image: linear-gradient(90deg, rgba(255, 254, 249, .98) 0%, rgba(255, 254, 249, .91) 36%, rgba(255, 254, 249, .58) 68%, rgba(255, 254, 249, .79) 100%), url("assets/hero-yayasan.webp");
  background-position: center 61%;
  background-size: cover;
}

.public-madin .page-hero {
  background-color: #f5f8f4;
  background-image: linear-gradient(90deg, rgba(245, 248, 244, .97) 0%, rgba(245, 248, 244, .9) 34%, rgba(245, 248, 244, .58) 68%, rgba(245, 248, 244, .76) 100%), url("assets/hero-madin.webp");
  background-position: center 47%;
  background-size: cover;
}

@media (max-width: 760px) {
  .public-majelis .page-hero {
    background-image: linear-gradient(180deg, rgba(244, 247, 242, .97) 0%, rgba(244, 247, 242, .88) 56%, rgba(244, 247, 242, .58) 100%), url("assets/hero-majelis.webp");
    background-position: center 48%;
  }

  .public-yayasan .page-hero {
    background-image: linear-gradient(180deg, rgba(255, 254, 249, .98) 0%, rgba(255, 254, 249, .9) 48%, rgba(255, 254, 249, .7) 100%), url("assets/hero-yayasan.webp");
    background-position: center 58%;
  }

  .public-madin .page-hero {
    background-image: linear-gradient(180deg, rgba(245, 248, 244, .98) 0%, rgba(245, 248, 244, .9) 48%, rgba(245, 248, 244, .68) 100%), url("assets/hero-madin.webp");
    background-position: center 43%;
  }
}

.article-detail-wrap { max-width: 740px; padding-top: 28px; padding-bottom: 12px; }
.article-detail-wrap h1 { margin: 6px 0 22px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.article-detail-media { overflow: hidden; margin-bottom: 24px; border-radius: 16px; background: var(--teal-100); }
.article-detail-media img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.article-video-embed { position: relative; width: 100%; padding-top: 56.25%; }
.article-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-detail-body p, .article-detail-body div { margin-bottom: 18px; color: var(--ink-soft); font-size: .96rem; line-height: 1.7; }

/* --------------------------------------------------------------------------
   Portal internal — shell sidebar
   -------------------------------------------------------------------------- */

#sync-error-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: #98453c;
  color: #fff;
  font-size: .96rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.admin-shell { display: flex; align-items: stretch; min-height: 100vh; background: #edf1ed; }

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  width: 268px;
  height: 100vh;
  padding: 26px 18px;
  overflow-y: auto;
  color: #dff3ee;
  background: var(--teal-950);
}

.admin-sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 22px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.admin-sidebar-brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: cover; }
.admin-sidebar-brand strong { display: block; font-size: .96rem; color: #f2fbf8; }
.admin-sidebar-brand span { display: block; margin-top: 2px; font-size: .84rem; color: #8fbdb3; }

.admin-nav { display: flex; flex: 1; flex-direction: column; gap: 3px; }
.admin-nav-group-label { margin: 16px 10px 6px; color: #6fa79c; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.admin-nav-group-label:first-child { margin-top: 4px; }

.admin-nav-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; color: #cdeae1; font-size: .9rem; font-weight: 750; text-decoration: none; border-radius: 11px; transition: background .15s ease, color .15s ease; }
.admin-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.admin-nav-link.active { color: var(--teal-950); background: #eefaf7; }
.admin-nav-link .nav-icon { display: grid; place-items: center; width: 30px; height: 30px; padding: 6px; color: inherit; background: rgba(255, 255, 255, .1); border-radius: 9px; flex-shrink: 0; box-sizing: border-box; transition: background .15s ease; }
.admin-nav-link.active .nav-icon { background: var(--teal-100); color: var(--teal-800); }
.admin-nav-link:hover .nav-icon { background: rgba(255, 255, 255, .16); }
.admin-nav-link.active:hover .nav-icon { background: var(--teal-100); }

.admin-sidebar-footer { display: flex; flex-direction: column; gap: 3px; padding-top: 14px; margin-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.admin-sidebar-footer a { padding: 9px 12px; color: #9fcdc3; font-size: .9rem; font-weight: 750; text-decoration: none; border-radius: 10px; }
.admin-sidebar-footer a:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.admin-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 15; display: none; align-items: center; gap: 14px; padding: 14px 20px; background: rgba(255, 254, 249, .96); backdrop-filter: blur(6px); border-bottom: 1px solid #dce6df; }
.admin-topbar-title { font-size: .96rem; font-weight: 800; color: var(--ink); }
.sidebar-toggle { display: none; width: 42px; height: 42px; flex-shrink: 0; color: var(--teal-800); background: var(--teal-100); border: 0; border-radius: 11px; cursor: pointer; }
.sidebar-toggle span, .sidebar-toggle::before, .sidebar-toggle::after { display: block; width: 19px; height: 2px; margin: 4px auto; content: ""; background: currentColor; }

.admin-content { flex: 1; width: 100%; max-width: 1180px; padding: 40px 40px 90px; margin: 0 auto; }

.admin-sidebar-backdrop { display: none; }

@media (max-width: 960px) {
  .admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; height: 100dvh; transform: translateX(-100%); box-shadow: 18px 0 40px rgba(15, 40, 36, .25); transition: transform .25s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-topbar { display: flex; }
  .sidebar-toggle { display: block; }
  .admin-content { padding: 22px 18px 70px; }
  .admin-sidebar-backdrop.open { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(12, 30, 27, .4); }
}
.article-detail-footer { margin-top: 30px; }

/* Beberapa sesi berjalan bersamaan (presensi.html) */
.running-sessions { padding: 20px 22px; }
.running-sessions-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.running-sessions-hint { margin: 6px 0 14px; color: var(--ink-soft); font-size: .84rem; }
.running-sessions-list { display: flex; flex-wrap: wrap; gap: 10px; }
.running-chip { display: grid; gap: 3px; min-width: 150px; padding: 10px 14px; text-align: left; color: var(--ink); background: var(--teal-050); border: 1px solid #cce6df; border-radius: 12px; cursor: pointer; font: inherit; }
.running-chip strong { color: var(--teal-900); font-size: .9rem; }
.running-chip span { color: var(--ink-soft); font-size: .84rem; font-weight: 600; }
.running-chip:hover { border-color: var(--teal-500); }
.running-chip.is-active { background: var(--teal-800); border-color: var(--teal-800); }
.running-chip.is-active strong, .running-chip.is-active span { color: #fff; }
.running-chip.is-stale { border-color: #d9a441; }
.running-chip em { color: #a86a00; font-style: normal; font-weight: 800; }
.running-chip.is-active em { color: #ffd98a; }

/* =====================================================================================
   14 Nov 2026 — fitur baru (presensi otomatis & bagikan, rekap per kelas, absen asatidz, galeri) + perapian UI
   ===================================================================================== */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(98, 170, 160, .55); outline-offset: 2px; }
.field textarea { width: 100%; min-height: 92px; padding: 11px 12px; color: var(--ink); background: #fbfdfc; border: 1px solid var(--line); border-radius: 10px; outline: 0; font: inherit; font-size: .94rem; font-weight: 600; line-height: 1.55; resize: vertical; }
.field textarea:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(98, 170, 160, .14); }
.field-hint { color: #7d918d; font-size: .84rem; font-weight: 600; }
.form-grid-full { grid-column: 1 / -1; }
.ta-muted { color: var(--ink-soft); font-size: .9rem; font-weight: 600; }
.button-compact { min-height: 36px; padding: 7px 13px; font-size: .84rem; border-radius: 10px; }
.button[disabled], .button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- jam sesi + durasi cepat ---- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-button { padding: 8px 15px; color: var(--teal-800); background: var(--teal-050); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.chip-button:hover { background: var(--teal-100); border-color: var(--teal-500); }
.live-limit { display: block; margin-top: 4px; color: var(--teal-700); font-size: .84rem; font-weight: 700; }
.live-limit.is-soon { color: #b3532b; }
.session-timer .text-button { display: block; margin-top: 8px; }

/* ---- bagikan kehadiran ---- */
.share-card { margin-top: 20px; }
.share-text { width: 100%; margin-top: 14px; padding: 14px 16px; color: var(--ink); background: #fbfdfc; border: 1px solid var(--line); border-radius: 12px; outline: 0; font: inherit; font-size: .92rem; line-height: 1.6; resize: vertical; white-space: pre-wrap; }
.share-text:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(98, 170, 160, .14); }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }

/* ---- rekap per kelas ---- */
.recap-filter { display: flex; flex-wrap: wrap; gap: 14px; }
.recap-filter .field { min-width: 200px; }
.recap-class-block + .recap-class-block { margin-top: 30px; padding-top: 26px; border-top: 2px dashed var(--line); }
.recap-class-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 12px; }
.recap-class-head h3 { margin: 0; font-size: 1.15rem; color: var(--teal-950); }
.recap-class-head span { color: var(--ink-soft); font-size: .9rem; font-weight: 700; }
.recap-bar-actions { flex-wrap: wrap; }

/* ---- absen asatidz ---- */
.ta-page { max-width: 720px; }
.ta-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; background: linear-gradient(135deg, #f4fbf8, #ffffff); }
.ta-hero h2 { margin: 2px 0; font-size: 1.35rem; }
.ta-hero p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.ta-clock { padding: 10px 16px; color: var(--teal-950); background: var(--teal-100); border-radius: 14px; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ta-status { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 16px 20px; color: #8a5a22; background: #fff7e8; border: 1px solid #f1dcb4; border-radius: var(--radius-md); }
.ta-status .status-dot { background: #e0a23a; box-shadow: 0 0 0 4px rgba(224, 162, 58, .18); }
.ta-status strong { display: block; font-size: 1rem; }
.ta-status p { margin: 2px 0 0; font-size: .9rem; }
.ta-status img { width: 72px; height: 72px; margin-left: auto; object-fit: cover; border-radius: 14px; border: 2px solid #fff; box-shadow: var(--shadow-soft); }
.ta-status.is-done { color: #1f6a4a; background: #eefaf4; border-color: #bfe5d1; }
.ta-status.is-done .status-dot { background: #3fae7a; box-shadow: 0 0 0 4px rgba(63, 174, 122, .18); }
.ta-form { display: grid; gap: 18px; margin-bottom: 14px; }
.ta-photo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ta-photo img { width: 168px; height: 168px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.ta-location { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; color: var(--ink-soft); background: var(--teal-050); border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; font-weight: 700; }
.ta-location.is-ok { color: #1f6a4a; background: #eefaf4; border-color: #bfe5d1; }
.ta-location.is-bad { color: #98453c; background: #fff5f2; border-color: #f2c9c2; }
.ta-submit { width: 100%; min-height: 56px; font-size: 1.05rem; }
.ta-recent { display: grid; gap: 8px; }
.ta-recent-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #fbfdfc; border: 1px solid var(--line); border-radius: 12px; }
.ta-recent-row strong { display: block; font-size: .94rem; }
.ta-recent-row span { color: var(--ink-soft); font-size: .9rem; }
.ta-recent-row a { color: var(--teal-700); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.tr-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tr-table td small { display: block; color: var(--ink-soft); }
.chip-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-tag { padding: 6px 12px; color: #8a5a22; background: #fff7e8; border: 1px solid #f1dcb4; border-radius: 999px; font-size: .9rem; font-weight: 700; }
.photo-thumb { padding: 0; background: none; border: 0; cursor: zoom-in; }
.photo-thumb img { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.photo-lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(8, 24, 22, .88); }
.photo-lightbox img { max-width: min(94vw, 1100px); max-height: 82vh; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.photo-lightbox p { margin: 0; color: #e8f4f0; font-size: .94rem; text-align: center; }
.photo-lightbox-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; color: #fff; background: rgba(255, 255, 255, .14); border: 0; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.photo-lightbox-nav { position: absolute; top: 50%; width: 48px; height: 64px; margin-top: -32px; color: #fff; background: rgba(255, 255, 255, .14); border: 0; border-radius: 12px; font-size: 2.2rem; cursor: pointer; }
.photo-lightbox-nav.is-prev { left: 14px; }
.photo-lightbox-nav.is-next { right: 14px; }
.photo-lightbox-close:hover, .photo-lightbox-nav:hover { background: rgba(255, 255, 255, .26); }
body.no-scroll { overflow: hidden; }

/* ---- galeri: admin ---- */
.ga-list { display: grid; gap: 14px; margin-top: 18px; }
.ga-album { padding: 0; overflow: hidden; }
.ga-album > summary { display: flex; align-items: center; gap: 16px; padding: 14px 18px; cursor: pointer; list-style: none; }
.ga-album > summary::-webkit-details-marker { display: none; }
.ga-album > summary::after { content: "▾"; margin-left: auto; color: var(--ink-soft); transition: transform .2s ease; }
.ga-album[open] > summary::after { transform: rotate(180deg); }
.ga-summary-media { display: grid; place-items: center; width: 84px; height: 62px; flex: none; overflow: hidden; color: var(--ink-soft); background: var(--teal-050); border-radius: 12px; font-size: .84rem; font-weight: 700; text-align: center; }
.ga-summary-media img { width: 100%; height: 100%; object-fit: cover; }
.ga-summary-copy strong { display: block; font-size: 1rem; }
.ga-summary-copy span { color: var(--ink-soft); font-size: .9rem; font-weight: 700; }
.status-badge { display: inline-block; padding: 2px 9px; color: #7d6a4a; background: #f3ecdc; border-radius: 999px; font-size: .84rem; font-weight: 700; }
.status-badge.is-live { color: #1f6a4a; background: #dff4e9; }
.ga-body { padding: 4px 20px 22px; border-top: 1px solid var(--line); }
.ga-edit { margin-top: 16px; }
.ga-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.ga-heading { margin: 22px 0 10px; font-size: 1rem; }
.ga-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.ga-upload-label { cursor: pointer; }
.ga-upload-status { color: var(--ink-soft); font-size: .9rem; font-weight: 700; }
.ga-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ga-photo { display: grid; gap: 8px; padding: 8px; background: #fbfdfc; border: 1px solid var(--line); border-radius: 14px; }
.ga-photo.is-cover { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(98, 170, 160, .16); }
.ga-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.ga-caption { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: .9rem; }
.ga-photo-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.ga-photo-actions button, .ga-comment-actions button { padding: 5px 9px; color: var(--teal-800); background: var(--teal-050); border: 1px solid var(--line); border-radius: 8px; font-size: .84rem; font-weight: 700; cursor: pointer; }
.ga-photo-actions button:disabled { opacity: .4; cursor: default; }
.ga-photo-actions .is-danger, .ga-comment-actions .is-danger { color: #98453c; background: #fff5f2; border-color: #f2c9c2; }
.ga-comments { display: grid; gap: 8px; }
.ga-comment { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #fbfdfc; border: 1px solid var(--line); border-radius: 12px; }
.ga-comment.is-hidden { opacity: .6; }
.ga-comment p { margin: 3px 0 0; font-size: .9rem; }
.ga-comment small { color: var(--ink-soft); }
.ga-comment-actions { display: flex; flex-direction: column; gap: 6px; }

/* ---- galeri: publik ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.gallery-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); transition: transform .2s ease, box-shadow .2s ease; }
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--teal-100); }
.gallery-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-card:hover .gallery-card-media img { transform: scale(1.04); }
.gallery-card-media > span:not(.gallery-card-count) { display: grid; place-items: center; height: 100%; color: var(--teal-700); font-weight: 800; font-size: 1.4rem; }
.gallery-card-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 11px; color: #fff; background: rgba(15, 40, 38, .72); border-radius: 999px; font-size: .84rem; font-weight: 700; }
.gallery-card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.gallery-card-body h3 { margin: 0; font-size: 1.12rem; line-height: 1.35; }
.gallery-card-body p { flex: 1; margin: 0; color: var(--ink-soft); font-size: .92rem; }
.gallery-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--ink-soft); font-size: .84rem; font-weight: 700; }
.album-wrap { max-width: 1040px; }
.album-wrap h1 { margin-bottom: 10px; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.album-desc { max-width: 720px; color: var(--ink-soft); font-size: 1.02rem; }
.album-meta { margin-bottom: 22px; color: var(--teal-700); font-size: .9rem; font-weight: 700; }
.album-photos { columns: 3; column-gap: 12px; margin-bottom: 26px; }
.album-photo { display: block; width: 100%; margin: 0 0 12px; padding: 0; overflow: hidden; background: var(--teal-100); border: 0; border-radius: 14px; cursor: zoom-in; break-inside: avoid; }
.album-photo img { display: block; width: 100%; height: auto; transition: transform .35s ease, filter .2s ease; }
.album-photo:hover img { transform: scale(1.03); filter: brightness(1.04); }
.album-wrap > .surface { margin-bottom: 18px; }
.album-wrap h2 { margin-bottom: 6px; font-size: 1.25rem; }
.album-share-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.album-share-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.share-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; color: #fff; background: var(--teal-800); border: 0; border-radius: 999px; font-size: .9rem; font-weight: 700; cursor: pointer; transition: transform .15s ease, filter .15s ease; }
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.share-btn.is-wa { background: #1fa855; }
.share-btn.is-fb { background: #1877f2; }
.share-btn.is-tg { background: #229ed9; }
.share-btn.is-x { background: #111; }
.share-btn.is-copy, .share-btn.is-native { color: var(--teal-800); background: var(--teal-100); }
.reaction-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.reaction-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 18px; color: var(--ink); background: #fbfdfc; border: 1px solid var(--line); border-radius: 999px; font-size: .94rem; font-weight: 700; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.reaction-btn:hover { transform: translateY(-2px); background: var(--teal-050); }
.reaction-btn b { min-width: 1.4em; padding: 1px 8px; color: var(--teal-800); background: var(--teal-100); border-radius: 999px; font-size: .84rem; text-align: center; }
.reaction-btn.is-mine { color: #fff; background: var(--teal-800); border-color: var(--teal-800); }
.reaction-btn.is-mine b { color: var(--teal-800); background: #fff; }
.reaction-icon { font-size: 1.15rem; line-height: 1; }
.comment-form { display: grid; gap: 14px; margin: 14px 0 22px; }
.comment-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comment-list { display: grid; gap: 14px; }
.comment-item { display: flex; gap: 12px; padding: 14px 16px; background: #fbfdfc; border: 1px solid var(--line); border-radius: 14px; }
.comment-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: none; color: var(--teal-800); background: var(--teal-100); border-radius: 50%; font-weight: 800; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.comment-head time { color: var(--ink-soft); font-size: .84rem; font-weight: 700; }
.comment-item p { margin: 4px 0 0; overflow-wrap: anywhere; font-size: .96rem; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .album-photos { columns: 2; }
  .tr-filter { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .album-photos { columns: 2; column-gap: 8px; }
  .album-photo { margin-bottom: 8px; border-radius: 10px; }
  .ta-hero { flex-direction: column; align-items: flex-start; }
  .ta-clock { align-self: stretch; text-align: center; }
  .ta-photo img { width: 100%; height: auto; aspect-ratio: 1; }
  .ga-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ga-album > summary { padding: 12px; gap: 12px; }
  .ga-summary-media { width: 64px; height: 50px; }
  .photo-lightbox-nav { width: 40px; height: 52px; }
}

.album-photos[data-count="1"] { columns: 1; max-width: 760px; }
.album-photos[data-count="2"] { columns: 2; }

/* =====================================================================================
   Perapian UI umum (14 Nov 2026): tombol tidak terpotong, target sentuh nyaman, sidebar mobile bersih, gerak dihormati
   ===================================================================================== */
.internal-top, .attendance-heading { flex-wrap: wrap; }
@media (min-width: 761px) { .internal-top > div:first-child, .attendance-heading > div:first-child { flex: 1 1 340px; min-width: 0; } }
.internal-top-actions { flex: 0 0 auto; flex-wrap: wrap; }
.internal-top .button, .attendance-heading .button, .recap-bar-actions .button, .user-badge { white-space: nowrap; flex-shrink: 0; }
.stat-grid.recap-stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.button:active { transform: translateY(0) scale(.985); box-shadow: none; }
.admin-sidebar:not(.open) { box-shadow: none; }
.breadcrumb a { display: inline-block; padding: 5px 0; }
.footer-grid a { display: inline-block; padding: 5px 0; }
.arrow-link, .panel-title a, .panel-link-button, .text-button { display: inline-flex; align-items: center; min-height: 34px; }
.table-scroll { -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.recap-table thead th { white-space: nowrap; }
.recap-table tbody tr:hover td { background: #f6fbf9; }
::selection { background: rgba(98, 170, 160, .28); }
img { max-width: 100%; }

@media (pointer: coarse) {
  .button-compact, .button-danger.button-compact { min-height: 40px; }
  .data-record-row button, .class-student-row button, .account-row-actions button, .account-row-actions select { min-height: 40px; }
  .student-check { width: 22px; height: 22px; }
  .chip-button, .share-btn, .reaction-btn { min-height: 44px; }
  .ga-photo-actions button, .ga-comment-actions button { min-height: 36px; padding: 6px 11px; }
}
@media (max-width: 760px) {
  .internal-top-actions { width: 100%; }
  .internal-top-actions .button { flex: 1 1 auto; }
  .user-badge { flex: 1 1 100%; }
  .recap-bar-actions { width: 100%; }
  .recap-bar-actions .button { flex: 1 1 calc(50% - 8px); }
  .recap-filter { width: 100%; }
  .recap-filter .field { flex: 1 1 100%; min-width: 0; }
  .share-actions .button { flex: 1 1 100%; }
  .ga-actions .button { flex: 1 1 100%; }
  .account-row-actions { flex-wrap: wrap; }
  .account-row-actions select { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .admin-sidebar, .admin-topbar, .recap-bar-actions, .recap-filter, .portal-access-bottom, .sidebar-toggle { display: none !important; }
  .admin-main { margin: 0 !important; }
  .recap-class-block { break-inside: avoid; }
  body { background: #fff; }
}

/* =====================================================================================
   Keterbacaan huruf (14 Nov 2026): ukuran minimum lebih besar, kontras teks sekunder lebih tegas,
   spasi judul lebih lega, teks artikel nyaman dibaca, kolom isian tidak memicu zoom otomatis di HP
   ===================================================================================== */
body { font-size: 1rem; line-height: 1.7; text-rendering: optimizeLegibility; }
p { line-height: 1.7; }
h1 { letter-spacing: -.03em; line-height: 1.1; }
h2 { letter-spacing: -.022em; line-height: 1.18; }
h3 { letter-spacing: -.012em; line-height: 1.28; }
.surface-intro, .panel-title p, .section-heading p { font-size: .95rem; line-height: 1.6; }
.stat-card span, .stat-card small { font-size: .88rem; }
.field { font-size: .88rem; }
.field input, .field select, .field textarea, .search-field input { font-size: 1rem; }
.recap-table, .schedule-table { font-size: .9rem; }
.recap-table th, .schedule-table th { font-size: .78rem; letter-spacing: .03em; }
.recap-table td, .schedule-table td { padding-top: 12px; padding-bottom: 12px; }
.data-record-copy small, .student-info span, .running-chip span { font-size: .86rem; }
.nav-link { font-size: .94rem; }
.admin-nav-link { font-size: .95rem; }
.button { font-size: 1rem; }
.button-compact { font-size: .88rem; }
.eyebrow, .kicker, .panel-kicker { font-size: .82rem; }

/* teks artikel & halaman detail */
.article-detail-body { max-width: 70ch; font-size: 1.12rem; line-height: 1.85; color: #22302e; }
.article-detail-body p, .article-detail-body div { margin: 0 0 1.05em; color: #22302e; font-size: inherit; line-height: inherit; }
.album-desc, .lead { line-height: 1.7; }
.footer p, .footer a { font-size: 1rem; line-height: 1.7; }
.footer h3 { font-size: 1.1rem; }

@media (max-width: 760px) {
  body { font-size: 1.02rem; }
  .article-detail-body { font-size: 1.1rem; line-height: 1.8; }
  .field input, .field select, .field textarea, .search-field input, .ga-caption { font-size: 1rem; }
  .recap-table, .schedule-table { font-size: .92rem; }
}

/* teks di atas ilustrasi hero tetap jelas */
.page-hero h1, .page-hero p, .page-hero .eyebrow, .page-hero .breadcrumb, .hero h1, .hero .lead, .hero .hero-note, .hero .eyebrow { text-shadow: 0 0 14px rgba(255, 254, 249, .95), 0 0 3px rgba(255, 254, 249, .9); }
@media (max-width: 900px) {
  .page-hero p, .hero .lead { color: #2f4643; font-weight: 500; }
}

/* ---- jenis huruf: Plus Jakarta Sans (antarmuka & judul), Lora (isi artikel) ---- */
:root { --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, "Roboto", "Helvetica Neue", Arial, sans-serif; --font-reading: "Lora", Georgia, "Times New Roman", serif; }
body, button, input, select, textarea { font-family: var(--font-body); }
h1, h2, h3 { font-family: var(--font-body); }
.article-detail-body, .article-detail-body p, .article-detail-body div { font-family: var(--font-reading); }
.article-detail-body { font-size: 1.15rem; line-height: 1.85; }
@media (max-width: 760px) { .article-detail-body { font-size: 1.12rem; } }
h1 { letter-spacing: -.028em; }
h2 { letter-spacing: -.02em; }
.recap-table, .stat-card strong, .ta-clock, .live-timer, #live-timer { font-variant-numeric: tabular-nums; }

/* header publik tidak patah baris dengan huruf baru */
.nav-link, .brand-title { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1060px) {
  .brand-subtitle { display: none; }
  .brand { min-width: 0; }
  .nav-wrap { gap: 12px; }
  .nav-links { gap: 2px; }
  .nav-link { padding: 9px 10px; font-size: .9rem; }
}

/* =====================================================================================
   Lapisan gerak (15 Nov 2026) — hidup tapi ringan.
   Prinsip: hanya transform/opacity (dikerjakan GPU), semua jalan di browser pengunjung,
   nol permintaan tambahan ke server. Dimatikan otomatis bila pengguna memilih
   "kurangi gerakan" atau perangkat/jaringan hemat (kelas .motion-lite / .motion-off).
   ===================================================================================== */
:root { --ease-out: cubic-bezier(.22, .8, .26, 1); }

@keyframes m-rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } }
@keyframes m-pop { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.96); } }
@keyframes m-breathe { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes m-float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -6px, 0); } }
@keyframes m-ping { 0% { transform: scale(1); opacity: .55; } 75%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes m-sheen { from { transform: translateX(-130%); } to { transform: translateX(230%); } }

@media (prefers-reduced-motion: no-preference) {
  /* ---- perpindahan halus antar halaman (browser yang mendukung; lainnya diabaikan) ---- */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .24s; animation-timing-function: ease; }

  /* ---- pembukaan hero (CSS murni, tanpa menunggu JavaScript) ---- */
  .hero .eyebrow, .hero h1, .hero .lead, .hero .actions, .hero .hero-note,
  .page-hero .breadcrumb, .page-hero .eyebrow, .page-hero h1, .page-hero p, .page-stamp { animation: m-rise .85s var(--ease-out) backwards; }
  .hero .eyebrow, .page-hero .breadcrumb { animation-delay: .02s; }
  .hero h1, .page-hero .eyebrow { animation-delay: .1s; }
  .hero .lead, .page-hero h1 { animation-delay: .2s; }
  .hero .actions, .page-hero p { animation-delay: .3s; }
  .hero .hero-note, .page-stamp { animation-delay: .4s; }
  .hero-panel { animation: m-pop .9s var(--ease-out) .18s backwards; }
  .hero-panel .notice-card { animation: m-rise .7s var(--ease-out) backwards; }
  .hero-panel .notice-card:nth-of-type(1) { animation-delay: .5s; }
  .hero-panel .notice-card:nth-of-type(2) { animation-delay: .62s; }
  .hero-panel .notice-card:nth-of-type(3) { animation-delay: .74s; }
  .feature-strip { animation: m-rise .8s var(--ease-out) .55s backwards; }

  /* ---- muncul saat digulir (kelas diatur motionFx di script.js) ---- */
  .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .75s var(--ease-out), transform .75s var(--ease-out); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
  .reveal.is-in { opacity: 1; transform: none; }

  /* ---- header: menciut + bayangan saat halaman digulir ---- */
  .site-header { transition: box-shadow .3s ease, background .3s ease; }
  .site-header .nav-wrap { transition: min-height .3s var(--ease-out); }
  .site-header.is-scrolled { background: rgba(247, 244, 237, .96); box-shadow: 0 10px 30px rgba(23, 58, 56, .10); }
  .site-header.is-scrolled .nav-wrap { min-height: 66px; }

  /* ---- tautan menu: garis penanda meluncur ---- */
  .nav-link { position: relative; }
  .nav-link::after { position: absolute; right: 13px; bottom: 5px; left: 13px; height: 2px; background: var(--gold); border-radius: 2px; content: ""; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
  .nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

  /* ---- tombol & tautan panah ---- */
  .button { position: relative; overflow: hidden; }
  .button:active { transform: translateY(0) scale(.97); }
  .button-primary::after { position: absolute; top: 0; bottom: 0; left: 0; width: 38%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); content: ""; opacity: 0; pointer-events: none; transform: translateX(-130%); }
  .button-primary:hover::after { opacity: 1; animation: m-sheen .8s var(--ease-out); }
  .arrow-link::after { display: inline-block; transition: transform .25s var(--ease-out); }
  a:hover > .arrow-link::after, .arrow-link:hover::after, a.arrow-link:hover::after { transform: translate(3px, -3px); }

  /* ---- kartu: gambar membesar halus, ikon bergoyang ---- */
  .public-feed-media img, .gallery-card-media img, .article-cover { transition: transform .7s var(--ease-out); }
  a.public-feed-card:hover .public-feed-media img { transform: scale(1.07); }
  .gallery-card:hover .gallery-card-media img { transform: scale(1.07); }
  .space-card .card-icon, .feature-icon, .stat-icon, .quick-link-icon { transition: transform .35s var(--ease-out); }
  .space-card:hover .card-icon { transform: translateY(-4px) rotate(-5deg); }
  .feature-item:hover .feature-icon { transform: translateY(-3px) scale(1.08); }
  .stat-card:hover .stat-icon { transform: scale(1.1) rotate(-6deg); }
  .quick-link:hover .quick-link-icon { transform: scale(1.08) rotate(-5deg); }

  /* ---- bilah kemajuan mengisi dari kiri ---- */
  .progress-value { transform-origin: left; animation: m-fill 1.1s var(--ease-out) .3s backwards; }
  @keyframes m-fill { from { transform: scaleX(0); } }

  /* ---- hiasan hero bernapas pelan ---- */
  .hero::before { animation: m-breathe 9s ease-in-out infinite alternate; }
  .panel-seal { animation: m-float 4.5s ease-in-out infinite alternate; }

  /* ---- dashboard & halaman admin ---- */
  .internal-page .internal-top > div:first-child > * { animation: m-rise .6s var(--ease-out) backwards; }
  .internal-page .internal-top h1 { animation-delay: .06s; }
  .internal-page .internal-top p { animation-delay: .12s; }
  .internal-page .admin-content > .surface, .internal-page .admin-content > section, .internal-page .attendance-card, .internal-page .recap-class-block, .internal-page .stat-grid + .surface { animation: m-rise .55s var(--ease-out) backwards; }
  .admin-nav-link { transition: background .2s ease, color .2s ease, transform .25s var(--ease-out); }
  .admin-nav-link:hover { transform: translateX(4px); }
  .admin-nav-link .nav-icon { transition: background .2s ease, transform .3s var(--ease-out); }
  .admin-nav-link:hover .nav-icon { transform: scale(1.1) rotate(-6deg); }
  .admin-nav-link.active .nav-icon { transform: scale(1.04); }
  .internal-page .recap-table tbody tr, .internal-page .data-record-row { transition: background .2s ease; }
  .internal-page .recap-table tbody tr:hover, .internal-page .data-record-row:hover { background: var(--teal-050); }

  /* penanda "sedang berlangsung" berdenyut */
  .status-pill.is-live { position: relative; padding-left: 22px; }
  .status-pill.is-live::before, .status-pill.is-live::after { position: absolute; top: 50%; left: 9px; width: 7px; height: 7px; margin-top: -3.5px; background: #2aa371; border-radius: 50%; content: ""; }
  .status-pill.is-live::after { animation: m-ping 1.8s ease-out infinite; }
}

/* cincin kehadiran mulai kosong lalu terisi saat data tiba (angka mulai dari keadaan kosong = 2πr) */
.ring-fg { stroke-dasharray: 213.63; stroke-dashoffset: 213.63; transition: stroke-dashoffset 1.2s var(--ease-out); }

/* ---- elemen tambahan yang dibuat motionFx ---- */
.scroll-progress { position: fixed; z-index: 60; top: 0; right: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--teal-500)); pointer-events: none; transform: scaleX(0); transform-origin: left; }
.to-top { position: fixed; z-index: 40; right: 18px; bottom: 74px; display: grid; width: 44px; height: 44px; place-items: center; color: #f2fbf8; background: var(--teal-800); border: 0; border-radius: 50%; box-shadow: 0 10px 24px rgba(23, 58, 56, .28); cursor: pointer; opacity: 0; pointer-events: none; transform: translate3d(0, 14px, 0); transition: opacity .25s ease, transform .3s var(--ease-out), background .2s ease; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--teal-950); }
.to-top svg { width: 18px; height: 18px; }

/* ---- kartu menyala mengikuti penunjuk (hanya mouse/trackpad; JS mengisi --mx/--my) ---- */
.motion-pointer .space-card:not(.featured), .motion-pointer .public-feed-card, .motion-pointer .gallery-card, .motion-pointer .stat-card, .motion-pointer .action-card, .motion-pointer .value-card {
  background-image: radial-gradient(260px circle at var(--mx) var(--my), rgba(98, 170, 160, .16), transparent 70%);
}
.motion-pointer .space-card.featured { background-image: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, .12), transparent 70%); }
.hero-panel { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s var(--ease-out); }
.hero-panel.is-tilting { transition: transform .08s linear; }

@media (max-width: 760px) { .to-top { right: 12px; bottom: 70px; } }

/* ---- hemat: perangkat/jaringan hemat atau "kurangi gerakan" — tanpa gerak berkelanjutan ---- */
.motion-lite .hero::before, .motion-lite .panel-seal, .motion-lite .status-pill.is-live::after { animation: none !important; }
.motion-lite .hero-panel { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-panel { transform: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .scroll-progress, .to-top { display: none !important; }
}

/* Pesan "belum ada pengumuman" di Papan Informasi sebelumnya putih di atas panel terang (hampir tak terbaca) */
.public-page .notice-empty { padding: 16px 18px; color: var(--ink-soft); background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .86); border-radius: 15px; font-weight: 600; }

/* Perbaikan 15 Nov 2026: tautan footer kembali bersusun ke bawah (aturan 14 Nov membuatnya sebaris);
   judul hero tidak terpotong di layar HP sempit */
.footer-grid a { display: block; width: fit-content; max-width: 100%; padding: 5px 0; }
@media (max-width: 480px) {
  h1, .public-page h1 { font-size: clamp(1.9rem, 9vw, 2.5rem); overflow-wrap: break-word; }
  .public-page .page-hero h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
}
