/* Beranda Kepala Sekolah: desain 4×2 yang disetujui, skala 90%. */
body.ks-portal {
  --bg:#f1f6f5; --surface:#fff; --surface-2:#eef4f2; --ink:#19334d;
  --muted:#607981; --line:#dce7e3; --accent:#16786e; --accent-soft:#e4f2ee; --accent-ink:#fff;
  background:var(--bg); color:var(--ink); color-scheme:light;
}
body.ks-portal .top-in { max-width:980px; }
body.ks-portal #tabs {
  position:static; max-width:980px; width:auto; margin:0 auto; padding:8px 16px 12px;
  display:flex; flex-direction:row; justify-content:flex-start; align-items:center; gap:14px;
  background:transparent; border:0; box-shadow:none; overflow:visible;
}
body.ks-portal #main { padding:0 0 32px; max-width:980px; }
body.ks-portal #main:not(:has(.ks-preview)) { padding:20px 16px 32px; }
body.ks-portal .ks-home-back { min-height:40px; }
.ks-current-page { color:var(--muted); font-size:13px; font-weight:600; }
.ks-preview {
  background:#f1f6f5; color:#19334d;
  font-family:"Plus Jakarta Sans",ui-sans-serif,system-ui,sans-serif;
}
.ks-preview .ks-shell { width:min(100%,1160px); max-width:980px; margin:0 auto; padding:22px 24px 30px; zoom:.9; }
.ks-hero {
  position:relative; min-height:195px; overflow:hidden; display:flex; align-items:center;
  justify-content:space-between; gap:20px; padding:28px 30px 45px; border-radius:25px;
  background:radial-gradient(circle at 91% 12%,#287a78 0,transparent 28%),linear-gradient(112deg,#102b49 0%,#173c5a 60%,#1e6266 100%);
  color:#f7faf8; box-shadow:0 14px 34px #16394d1b;
}
.ks-hero::after {
  content:""; position:absolute; width:250px; height:250px; right:20%; top:-167px;
  border:1px solid #d6ece232; border-radius:50%; box-shadow:0 0 0 26px #d6ece212,0 0 0 54px #d6ece20b; pointer-events:none;
}
.ks-hero-copy { position:relative; z-index:1; min-width:0; }
.ks-eyebrow { margin:0 0 7px; color:#2e867e; font-size:9px; font-weight:800; letter-spacing:1.8px; }
.ks-hero .ks-eyebrow { color:#a9dcd3; }
.ks-hero h1 { margin:0; color:#f6faf9; font-size:30px; font-weight:700; letter-spacing:-.9px; line-height:1.25; overflow-wrap:anywhere; text-wrap:initial; }
.ks-hero h1 span { color:#9edbd1; }
.ks-subtitle { margin:12px 0 0; color:#d4e4e6; font-size:12px; overflow-wrap:anywhere; }
.ks-hero-mark {
  position:relative; z-index:1; width:145px; min-width:130px; height:128px; display:flex;
  flex-direction:column; align-items:center; justify-content:center; gap:2px; border:0; background:none;
}
.ks-hero-mark img { width:110px; height:110px; object-fit:contain; filter:drop-shadow(0 6px 10px #061d2b38); }
.ks-date { position:absolute; z-index:1; bottom:15px; left:30px; display:flex; align-items:center; gap:7px; color:#c1d8d8; font-size:10px; }
.ks-menu-section { margin-top:28px; }
.ks-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:16px; }
.ks-section-head .ks-eyebrow { margin-bottom:4px; }
.ks-section-head h2 { margin:0; color:#173451; font-size:23px; font-weight:700; letter-spacing:-.55px; }
.ks25-layout-label { font-size:10px; color:#607981; white-space:nowrap; padding-bottom:3px; }
.ks25-menu-panel { border:1px solid #e0eae6; border-radius:24px; background:#fff; padding:22px 16px 18px; box-shadow:0 8px 26px #16394d06; }
.ks25-menu-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px 10px; }
.ks25-menu-button {
  appearance:none; min-width:0; border:0; border-radius:17px; display:flex; flex-direction:column;
  align-items:center; gap:9px; padding:9px 4px 12px; background:transparent; color:#1b3b50;
  cursor:pointer; font:inherit; min-height:130px; transition:background-color 160ms ease,transform 160ms ease;
}
.ks25-art { position:relative; display:grid; place-items:center; width:82px; height:82px; }
.ks25-art img { display:block; width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; }
.ks25-menu-label { font-size:13px; font-weight:700; line-height:1.45; text-align:center; text-wrap:balance; }
.ks25-menu-button:hover:not(:disabled) { background:#f0f8f5; transform:translateY(-2px); }
.ks25-menu-button:active:not(:disabled) { transform:translateY(0); background:#e8f3ef; }
.ks25-menu-button:focus-visible { outline:3px solid #188e82; outline-offset:2px; }
.ks25-menu-button:disabled { opacity:.6; cursor:not-allowed; }
.ks25-locked { font-size:9px; color:#607981; }
.ks25-count { position:absolute; top:0; right:0; min-width:20px; padding:2px 5px; border-radius:20px; color:#fff; background:#b1352c; font-size:11px; text-align:center; font-weight:700; }
@media(max-width:700px) {
  .ks-preview .ks-shell { padding:14px 16px 25px; }
  .ks-hero { min-height:180px; padding:21px 18px 40px; gap:7px; border-radius:20px; }
  .ks-hero h1 { font-size:20px; line-height:1.35; }
  .ks-hero-mark { width:64px; min-width:64px; height:80px; }
  .ks-hero-mark img { width:70px; height:70px; }
  .ks-hero .ks-eyebrow { font-size:8px; letter-spacing:1.4px; }
  .ks-subtitle { font-size:11px; margin-top:10px; }
  .ks-date { left:18px; bottom:14px; font-size:9px; }
  .ks-menu-section { margin-top:23px; }
  .ks-section-head { gap:7px; margin-bottom:12px; }
  .ks-section-head .ks-eyebrow { font-size:7px; letter-spacing:1.1px; }
  .ks-section-head h2 { font-size:20px; }
  .ks25-layout-label { font-size:9px; }
  .ks25-menu-panel { padding:13px 8px 9px; border-radius:20px; }
  .ks25-menu-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px 2px; }
  .ks25-menu-button { padding:6px 1px; min-height:110px; border-radius:12px; gap:6px; }
  .ks25-art { width:min(100%,64px); height:64px; }
  .ks25-menu-label { font-size:10.5px; min-height:31px; max-width:100%; line-height:1.4; }
}
@media(max-width:340px) {
  .ks-preview .ks-shell { padding-left:12px; padding-right:12px; }
  .ks-hero h1 { font-size:18px; }
  .ks-hero-mark { display:none; }
  .ks25-menu-label { font-size:10px; }
  .ks25-art { height:55px; }
}
@media(prefers-reduced-motion:reduce) {
  .ks25-menu-button { transition:none; }
  .ks25-menu-button:hover { transform:none; }
}
