/* ==========================================================================
   PC PMII Kabupaten Purwakarta — lembar gaya tunggal
   1. Token & dasar            5. Hero halaman dalam
   2. Header & navigasi        6. Publikasi
   3. Hero beranda             7. Akun, dasbor, editor konten
   4. Seksi beranda            8. Tanya PMII
   9. Responsif & aksesibilitas
   ========================================================================== */

/* 1. Token & dasar -------------------------------------------------------- */
:root {
  color-scheme: light;
  --navy: #0b1c3b;
  --blue: #1d4ed8;
  --gold: #f6c63c;
  --gold2: #fde08a;
  --mist: #f4f6fb;
  --paper: #f4f6fb;
  --ink: #0f1b33;
  --muted: #56627a;
  --line: #e3e8f4;
  --shadow: 0 18px 50px rgba(18, 34, 61, .09);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --hdr: 82px;
}

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 16px);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; }

[hidden] { display: none !important; }

a:focus-visible,
button:focus-visible,
summary:focus-visible { outline: 3px solid #e8890c; outline-offset: 3px; }

.wrap { width: min(1120px, 100% - clamp(2rem, 4vw, 3.5rem)); margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: #f6dfa4; border-color: #f6dfa4; }
.btn--blue { background: var(--blue); border-color: var(--blue); color: #fff; white-space: nowrap; }
.btn--blue:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.band { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.band--mist { background: var(--mist); }

.head { margin-bottom: 2.3rem; }
.head h2 {
  position: relative;
  display: inline-block;
  padding-bottom: .8rem;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.045em;
}
.head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
}
.head.center { text-align: center; }
.head.center h2::after { left: 50%; translate: -50% 0; }
.head p { margin-top: .75rem; color: var(--muted); }

/* 2. Header & navigasi ---------------------------------------------------- */
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  background: rgba(9, 25, 53, .42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background .25s, box-shadow .25s;
}
header.scrolled { background: rgba(252, 251, 248, .96); box-shadow: 0 8px 30px rgba(18, 34, 61, .08); }

header nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  height: var(--hdr);
  padding-inline: clamp(1rem, 3vw, 2.25rem);
  margin: auto;
}

.brand-lockup { position: relative; display: flex; align-items: center; }

.logo {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: #fff;
  font: 800 .95rem var(--display);
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
header.scrolled .logo { color: var(--navy); }
.logo-mark { display: block; flex: 0 0 auto; width: 42px; height: 44px; }
.logo-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Kunci master admin menempel di sudut logo PMII, samar sampai logo disentuh. */
.admin-trigger {
  position: absolute;
  top: calc(50% - 8px);
  left: 28px;
  z-index: 12;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  opacity: .2;
  cursor: pointer;
  transition: opacity .2s, background .2s, color .2s, border-color .2s;
}
.admin-trigger svg { width: 10px; height: 10px; }
.brand-lockup:hover .admin-trigger,
.admin-trigger:hover,
.admin-trigger:focus-visible { opacity: 1; }
.admin-trigger:hover,
.admin-trigger:focus-visible {
  border-color: rgba(246, 198, 60, .55);
  background: var(--navy);
  color: var(--gold);
}
header.scrolled .admin-trigger { color: var(--navy); }
header.scrolled .admin-trigger:hover,
header.scrolled .admin-trigger:focus-visible { background: #fff; color: var(--navy); }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; }

.nav-links a,
.nav-links summary {
  display: block;
  padding: .55rem .85rem;
  border-radius: 999px;
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
  transition: background .2s, color .2s;
}
.nav-links summary::-webkit-details-marker { display: none; }
.nav-links summary::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: .5rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-3px) rotate(45deg);
}
header.scrolled .nav-links a,
header.scrolled .nav-links summary { color: var(--ink); }

.nav-links a:hover,
.nav-links summary:hover { background: rgba(255, 255, 255, .14); }
header.scrolled .nav-links a:hover,
header.scrolled .nav-links summary:hover { background: var(--mist); }

.nav-links a[aria-current] { background: var(--gold); color: var(--navy); }

.has-sub { position: relative; }
.has-sub ul {
  position: absolute;
  top: calc(100% + .6rem);
  left: 0;
  min-width: 220px;
  padding: .4rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.has-sub ul a { border-radius: 8px; color: var(--ink); }
.has-sub ul a:hover { background: var(--mist); }

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
}
header.scrolled .hamburger { border-color: var(--line); background: var(--navy); }
.hamburger span { width: 22px; height: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-auth { display: flex; align-items: center; }
.nav-login {
  padding: .5rem .95rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #11224d;
  font: 800 .8rem var(--display);
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s;
}
.nav-login:hover { background: #f6dfa4; }

/* Indikator kemajuan baca & tombol kembali ke atas */
#pg {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
}
#top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 35;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font: 800 1.3rem var(--display);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  box-shadow: 0 8px 22px rgba(11, 28, 59, .18);
  transition: opacity .2s, transform .2s var(--ease);
}
#top.show { opacity: 1; pointer-events: auto; transform: none; }
#top:hover { transform: translateY(-3px); }

/* 3. Hero beranda --------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(680px, 100svh);
  padding: calc(var(--hdr) + 2rem) 0 5rem;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg__media { position: absolute; inset: 0; }
.hero-bg__img { width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 20, 67, .58), rgba(6, 20, 67, .12) 50%, rgba(6, 20, 67, .58)),
    linear-gradient(0deg, rgba(6, 20, 67, .82), transparent 62%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 1.5rem;
  text-align: center;
}
.hero-crest {
  display: grid;
  place-items: center;
  width: 126px;
  height: 134px;
  margin: 0 auto .7rem;
  filter: drop-shadow(0 12px 26px rgba(3, 12, 67, .45));
}
.hero-crest img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  margin-bottom: .8rem;
  color: #f1d899;
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6.4vw, 6.2rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.035em;
  text-shadow: 0 4px 24px rgba(4, 13, 61, .5);
}
.hero h1 span { display: block; color: #fff; }
.hero-lede {
  margin: .65rem 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: .04em;
  text-shadow: 0 2px 6px rgba(4, 13, 61, .85), 0 6px 24px rgba(4, 13, 61, .75);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }
.hero .btn {
  justify-content: center;
  gap: 1.1rem;
  min-width: 178px;
  padding: .9rem 1.3rem;
  border-radius: 999px;
  color: var(--navy);
  font: 800 .92rem var(--display);
}
.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-width: 178px;
  padding: .9rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(8, 31, 91, .45);
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.hero-link:hover { color: var(--gold2); border-color: var(--gold2); }

.scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: .7rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255, 255, 255, .85);
  font-size: .65rem;
  text-decoration: none;
  transform: translateX(-50%);
}
.scroll::after {
  content: "";
  width: 9px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}

/* 4. Seksi beranda -------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: clamp(2rem, 6vw, 5.5rem);
}
.about-text { max-width: 68ch; color: var(--muted); }
.about-text .lede { margin-bottom: 1.25rem; color: var(--ink); font-size: 1.25rem; line-height: 1.65; }
.about-text .btn { margin-top: 1.4rem; }

.stats {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(230, 185, 81, .12), transparent 24rem),
    linear-gradient(120deg, #07142c, var(--navy) 55%, #143f7a);
  color: #fff;
}
.stats .wrap { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; }
.stat { padding: 2.6rem 1rem; border-right: 1px solid rgba(255, 255, 255, .14); }
.stat:last-child { border: 0; }
.stat b {
  display: block;
  color: var(--gold);
  font: 800 clamp(2.6rem, 6vw, 4.4rem)/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: .5rem; color: #d5d9ff; font-weight: 600; }

.cta {
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  background: linear-gradient(115deg, var(--navy), var(--blue) 72%, var(--navy));
  color: #fff;
}
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta p { margin-top: .35rem; color: rgba(255, 255, 255, .78); }
.cta .btn {
  border-color: var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: var(--navy);
}
.cta .btn:hover { border-color: #f6dfa4; background: #f6dfa4; color: var(--navy); }

footer { padding: 3rem 0; background: #08162e; color: #fff; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 3rem; }
footer strong { display: block; font: 800 clamp(1.4rem, 3vw, 2.2rem) var(--display); }
.foot h2 { margin-bottom: .75rem; font-size: 1.15rem; }
.foot p { margin-top: .75rem; max-width: 32ch; color: rgba(255, 255, 255, .64); }
.foot a { display: block; margin: 0 0 .4rem; color: #f0cf83; overflow-wrap: anywhere; text-underline-offset: 3px; }
.foot small {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .56);
}
.foot-address { display: flex; align-items: flex-start; gap: .7rem; max-width: 38ch; }
.foot-address svg {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-top: .1rem;
  padding: 8px;
  border: 1px solid rgba(240, 207, 131, .25);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  color: var(--gold);
}
.foot-contact { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.foot-contact a { display: flex; align-items: center; gap: .7rem; max-width: 100%; margin: 0; text-decoration: none; }
.foot-contact a span { min-width: 0; overflow-wrap: anywhere; }
.foot-contact a svg {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 8px;
  border: 1px solid rgba(240, 207, 131, .25);
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  color: var(--gold);
  transition: background .2s, color .2s;
}
.foot-contact a:hover span { text-decoration: underline; }
.foot-contact a:hover svg { background: var(--gold); color: var(--navy); }

/* 5. Hero halaman dalam --------------------------------------------------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  color: var(--muted);
}
.crumb a { color: var(--blue); }

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--hdr) + 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  color: #fff;
  background:
    radial-gradient(60% 90% at 85% 10%, rgba(37, 99, 235, .45), transparent 70%),
    radial-gradient(40% 70% at 5% 100%, rgba(246, 198, 60, .2), transparent 70%),
    var(--navy);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
}
.page-hero > div { position: relative; }
.page-hero h1 {
  margin: .6rem 0 .9rem;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -.03em;
}
.page-hero h1 em { font-style: normal; color: var(--gold2); }
.page-hero p { max-width: 56ch; color: #d5def2; line-height: 1.7; }
.page-hero .crumb { justify-content: flex-start; margin-bottom: 1.1rem; color: #c9d5ee; }
.page-hero .crumb a { color: var(--gold2); }
.page-hero .hero-eyebrow {
  display: inline-flex;
  width: max-content;
  margin: 0 0 .85rem;
  padding: .35rem .75rem;
  border: 1px solid rgba(230, 185, 81, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: .68rem;
  letter-spacing: .18em;
}
.page-hero .hero-eyebrow::before { display: none; }

.hero-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.hero-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.hero-chips a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* 6. Publikasi ------------------------------------------------------------ */
.pub-band { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 5vw, 4rem); background: #f4f6fb; }
.pub-band::before {
  content: "";
  position: absolute;
  top: -130px;
  right: -100px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 185, 81, .16), transparent 68%);
  pointer-events: none;
}
.pub-band .wrap { position: relative; }

.pub-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: 2.4rem;
}
.pub-intro .head { margin: 0; }
.pub-kicker {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: max-content;
  margin-bottom: .35rem;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.pub-kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.pub-note { max-width: 38ch; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.pub-note a { color: var(--blue); font-weight: 700; text-underline-offset: 3px; }
.pub-note--top {
  max-width: none;
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  background: #fff;
}
.pub-note--top .pub-more { display: inline; }

.pub-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  min-height: 310px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(216, 221, 240, .3);
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 16px 36px rgba(11, 28, 59, .14);
  overflow: hidden;
}
.pub-feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .7rem;
  padding: clamp(1.25rem, 3vw, 2.4rem);
}
.pub-feature__eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--gold2);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pub-feature__eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.pub-feature h3 { max-width: 18ch; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.08; letter-spacing: -.02em; }
.pub-feature p { max-width: 46ch; color: rgba(255, 255, 255, .74); font-size: .95rem; }
.pub-feature__meta { color: rgba(255, 255, 255, .6); font-size: .76rem; }
.pub-btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: .35rem;
  padding: .65rem .95rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: var(--gold2);
  font: 700 .8rem var(--display);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.pub-btn:hover { background: var(--gold); color: var(--navy); }
.pub-btn span { transition: transform .2s; }
.pub-btn:hover span { transform: translateX(4px); }
.pub-feature__art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-left: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(circle at 70% 30%, rgba(23, 72, 143, .75), transparent 65%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 18px);
}
.pub-feature__art b { color: rgba(230, 185, 81, .2); font: 700 clamp(5rem, 11vw, 8rem)/1 Georgia, serif; letter-spacing: -.06em; }
.pub-feature__art small { color: rgba(255, 255, 255, .5); font-size: .62rem; font-weight: 800; letter-spacing: .35em; line-height: 1.8; text-align: center; }
.pub-feature__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--navy); }

.pub-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.5rem;
  margin-bottom: 1.1rem;
  padding: .65rem .85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.pub-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.pub-tab {
  padding: .38rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 .76rem var(--body);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.pub-tab:hover { border-color: var(--navy); color: var(--navy); }
.pub-tab[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.pub-count { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.pub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
/* Teks tanpa spasi (URL/huruf acak) tidak boleh meluber keluar kartu. */
.pub-card, .pub-feature, .pub-reader { overflow-wrap: anywhere; }
.pub-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  box-shadow: 0 8px 24px rgba(18, 34, 61, .045);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.pub-card:hover { transform: translateY(-3px); border-top-color: var(--blue); box-shadow: var(--shadow); }
.pub-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pub-card__no { color: #c9c2b2; font: 700 .78rem var(--display); letter-spacing: .08em; }
.pub-card h3 { margin: .75rem 0 .45rem; font-size: 1.15rem; line-height: 1.28; letter-spacing: -.01em; }
.pub-card p { flex: 1 1 auto; color: var(--muted); font-size: .84rem; line-height: 1.65; }
.pub-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .85rem;
  padding-top: .65rem;
  border-top: 1px solid var(--line);
}
.pub-card__meta { color: var(--muted); font-size: .7rem; line-height: 1.4; }
.pub-card__image {
  height: auto;
  aspect-ratio: 16 / 9;
  margin: -1.25rem -1.25rem .9rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  background: #ebe9e2;
}
.pub-card__image img { display: block; width: 100%; height: 100%; object-fit: contain; }

.pub-cat { display: inline-block; padding: .22rem .6rem; border-radius: 999px; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pub-cat--opini { background: #f7ecdf; color: #9a4f1c; }
.pub-cat--kajian { background: #e7eef8; color: #17488f; }
.pub-cat--berita { background: #e8f0e6; color: #2f6b3c; }
.pub-cat--sastra { background: #f3e9f2; color: #7b3a72; }
.pub-more {
  padding: .2rem 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: 800 .74rem var(--body);
  white-space: nowrap;
  cursor: pointer;
}
.pub-more:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.pub-empty { padding: 2rem; border: 1px dashed var(--line); border-radius: 14px; background: #fff; color: var(--muted); text-align: center; }
.home-pub-foot { margin-top: 2rem; text-align: center; }

body.pub-locked { overflow: hidden; }
.pub-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; }
.pub-scrim { position: absolute; inset: 0; background: rgba(5, 13, 30, .72); }
.pub-reader {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(90vh, 880px);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(3, 10, 28, .5);
  overflow: hidden;
}
.pub-reader__close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 28, 59, .12);
}
.pub-reader__close:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.pub-reader__scroll { overflow-y: auto; padding: clamp(1.6rem, 5vw, 3.2rem); overscroll-behavior: contain; }
.pub-reader__head { margin-bottom: 1.4rem; padding: 0 2.4rem 1.2rem 0; border-bottom: 1px solid var(--line); }
.pub-reader__head h2 { margin: .75rem 0 .8rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; }
.pub-reader__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: .76rem; }
.pub-reader__lead { margin: 1.2rem 0; color: var(--muted); font: italic 1.1rem/1.7 Georgia, "Times New Roman", serif; }
.pub-reader__image { display: block; width: 100%; max-height: 520px; margin: 1.2rem auto; border-radius: 12px; background: #f1eee6; object-fit: contain; }
.pub-reader__body p { margin: 1rem 0; color: #2b3547; font-size: 1rem; line-height: 1.9; }
.pub-reader__body h3 { margin: 1.8rem 0 .5rem; font-size: 1.3rem; line-height: 1.3; }
.pub-reader__body blockquote { margin: 1.6rem 0; padding: 1.1rem 1.4rem; border-left: 3px solid var(--gold); background: var(--mist); color: var(--ink); font: italic 1.08rem/1.65 Georgia, "Times New Roman", serif; }
.pub-reader__body .verse { margin: 1.2rem 0; color: #2b3547; white-space: pre-line; font: 1.02rem/2 Georgia, "Times New Roman", serif; }
.pub-reader__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.pub-reader__foot a { color: var(--blue); font-weight: 700; }
.pub-reader__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.pub-share { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--blue); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.pub-share:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.pub-share:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pub-share__icon { display: inline-flex; }
.pub-share__icon svg { width: 1rem; height: 1rem; }

/* 7. Akun, dasbor, editor konten ------------------------------------------ */
.auth-modal,
.dash-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; }
.auth-scrim { position: absolute; inset: 0; background: rgba(5, 13, 30, .72); }

.auth-card {
  position: relative;
  width: min(468px, 100%);
  max-height: 92vh;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 40px 100px rgba(3, 10, 28, .55);
  overflow: auto;
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  z-index: 4;
  background: linear-gradient(90deg, var(--gold), #fff0b8, var(--gold));
}
.auth-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.3rem 1.3rem 1.15rem;
  background: linear-gradient(135deg, #1d4d92, var(--navy) 62%, #07142c);
  color: #fff;
  overflow: hidden;
}
.auth-head img { position: relative; z-index: 1; flex: 0 0 auto; width: 46px; height: 48px; padding: 6px; border: 1px solid rgba(230, 185, 81, .55); border-radius: 13px; background: rgba(255, 255, 255, .06); object-fit: contain; }
.auth-head__text { position: relative; z-index: 1; min-width: 0; }
.auth-kicker { display: block; margin-bottom: .2rem; color: var(--gold); font: 800 .58rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; }
.auth-head strong { display: block; font: 700 1.12rem/1.2 var(--display); letter-spacing: -.01em; }
.auth-sub,
.auth-head strong + span { display: block; margin-top: .15rem; color: rgba(255, 255, 255, .62); font-size: .68rem; }
.auth-x {
  position: relative;
  z-index: 2;
  margin-left: auto;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.auth-logout {
  flex: 0 0 auto;
  padding: .4rem .7rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 700 .72rem var(--body);
  cursor: pointer;
}
.auth-logout:hover { background: rgba(255, 255, 255, .14); }

.auth-body { padding: 1.2rem 1.3rem 1.35rem; }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; margin-bottom: 1.15rem; padding: .28rem; border: 1px solid var(--line); border-radius: 12px; background: #f1f3fa; }
.auth-tab { padding: .55rem .5rem; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 800 .78rem var(--display); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.auth-tab:hover { color: var(--navy); }
.auth-tab[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 3px 10px rgba(18, 34, 61, .13); }

.auth-form label { display: block; margin-bottom: .95rem; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.auth-form input,
.auth-form select,
.auth-form textarea {
  display: block;
  width: 100%;
  margin-top: .35rem;
  padding: .65rem .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 400 .9rem/1.5 var(--body);
  letter-spacing: 0;
  text-transform: none;
}
.auth-form textarea { min-height: 190px; line-height: 1.7; resize: vertical; }
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus { outline: 2px solid rgba(23, 72, 143, .35); outline-offset: 1px; }

.auth-card .field { display: block; margin: 0 0 .95rem; color: var(--ink); font-size: inherit; font-weight: 400; letter-spacing: normal; text-transform: none; }
.field__label { display: block; margin-bottom: .4rem; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.field__box { position: relative; display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fbfbfd; transition: border-color .2s, background .2s, box-shadow .2s; }
.field__box:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(23, 72, 143, .12); }
.field__icon { flex: 0 0 auto; width: 18px; height: 18px; margin-left: .85rem; color: #8b93a8; }
.field__box:focus-within .field__icon { color: var(--blue); }
.auth-card .field__box input { flex: 1 1 auto; width: auto; min-width: 0; margin: 0; padding: .78rem .65rem; border: 0; border-radius: 0; background: transparent; font: 400 .92rem var(--body); letter-spacing: normal; text-transform: none; outline: none; }
.auth-card .field__box input::placeholder { color: #a7adc0; }
.field__eye { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; margin-right: .12rem; border: 0; border-radius: 9px; background: transparent; color: #8b93a8; cursor: pointer; transition: background .2s, color .2s; }
.field__eye:hover { background: #eef1f8; color: var(--navy); }
.field__eye svg { width: 20px; height: 20px; }
.field__eye .eye-off { display: none; }
.field__eye[aria-pressed="true"] .eye-on { display: none; }
.field__eye[aria-pressed="true"] .eye-off { display: block; }
.field.is-invalid .field__box { border-color: #c94b4b; background: #fff8f8; box-shadow: 0 0 0 3px rgba(201, 75, 75, .1); }
.field.is-invalid .field__icon { color: #c94b4b; }
.field__err { display: block; margin-top: .35rem; color: #b23b3b; font-size: .72rem; font-weight: 600; line-height: 1.45; }

.pw-meter { display: flex; align-items: center; gap: .32rem; margin-top: .5rem; }
.pw-meter i { flex: 1 1 auto; height: 4px; border-radius: 999px; background: #e6e9f2; transition: background .2s; }
.pw-meter[data-level="weak"] i.on { background: #d95b5b; }
.pw-meter[data-level="mid"] i.on { background: var(--gold); }
.pw-meter[data-level="strong"] i.on { background: #2f8a54; }
.pw-meter__label { flex: 0 0 auto; min-width: 3.1rem; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-align: right; text-transform: uppercase; }

.pw-rules { display: grid; grid-template-columns: 1fr 1fr; gap: .28rem .7rem; margin: .1rem 0 .9rem; padding: .7rem .8rem; border: 1px dashed #d9def0; border-radius: 10px; background: #f7f8fd; list-style: none; }
.pw-rules li { display: flex; align-items: center; gap: .4rem; color: #8a92a8; font-size: .68rem; font-weight: 600; line-height: 1.35; }
.pw-rules svg { flex: 0 0 12px; width: 12px; height: 12px; fill: none; stroke: #c3c8d8; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.pw-rules li.ok { color: #22315a; }
.pw-rules li.ok svg { stroke: #2f8a54; }

.auth-caps { display: flex; align-items: center; gap: .4rem; margin: .1rem 0 .7rem; color: #a36a00; font-size: .72rem; font-weight: 700; }
.auth-caps svg { flex: 0 0 14px; width: 14px; height: 14px; }

.auth-card .auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  margin-top: .2rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
  font: 800 .88rem var(--display);
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.auth-card .auth-submit:hover { background: linear-gradient(135deg, #1b53a4, #0d2350); box-shadow: 0 14px 28px rgba(11, 28, 59, .22); }
.auth-card .auth-submit svg { width: 17px; height: 17px; }
.auth-submit[disabled] { opacity: .6; cursor: progress; }
.auth-msg { margin: .2rem 0 .8rem; color: #a22; font-size: .8rem; line-height: 1.5; }
.auth-msg.ok { color: #256a3c; }
.auth-msg:empty { margin: 0; padding: 0; }
.account-panel .auth-form { margin: 0 0 1rem; padding: 1rem; border: 1px solid rgba(230, 185, 81, .4); border-radius: 14px; background: #fff; }
.account-panel .auth-form textarea { min-height: 110px; }
.account-panel .auth-form .admin-file { padding: .5rem; border: 1px dashed var(--line); border-radius: 8px; background: #fffaf0; }
.auth-note { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; line-height: 1.6; }
.auth-note a { color: var(--blue); }
#authModal .auth-note { font-size: .8rem; text-align: center; }
/* Mode master: cukup email, kata sandi, dan tombol masuk */
#authModal.is-master .auth-tabs,
#authModal.is-master .auth-note,
#authModal.is-master .auth-sub,
#authModal.is-master #authNameWrap,
#authModal.is-master #authPass2Wrap,
#authModal.is-master #pwMeter,
#authModal.is-master #pwRules { display: none !important; }
#authModal.is-master .auth-card { max-width: 380px; }

.dash-card .auth-head img { width: 34px; height: 36px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.dash-card { position: relative; display: flex; flex-direction: column; width: min(1020px, 100%); max-height: 92vh; border-radius: 18px; background: var(--paper); box-shadow: 0 30px 90px rgba(3, 10, 28, .5); overflow: hidden; }
.dash-tabs { display: flex; flex-wrap: wrap; gap: .4rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); background: #fff; }
.dash-tab { padding: .42rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font: 700 .76rem var(--body); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.dash-tab:hover { border-color: var(--blue); color: var(--blue); }
.dash-tab[aria-pressed="true"] { border-color: transparent; background: linear-gradient(135deg, #f3d37e, var(--gold)); color: var(--ink); }
.dash-body { flex: 1 1 auto; padding: 1.1rem; overflow-y: auto; overscroll-behavior: contain; }
.dash-hint { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid rgba(230, 185, 81, .36); border-left: 3px solid var(--gold); border-radius: 10px; background: #fffaf0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.dash-check { display: flex !important; flex-direction: row; align-items: center; gap: .5rem; color: var(--ink) !important; font-size: .8rem !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important; }
.dash-check input { width: auto; margin: 0; }
.dash-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.dash-actions .auth-submit { width: auto; min-width: 160px; }
.dash-list { display: flex; flex-direction: column; gap: .6rem; }
.dash-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; padding: .8rem .95rem; border: 1px solid rgba(230, 185, 81, .34); border-left: 3px solid var(--gold); border-radius: 12px; background: #fff; }
.dash-item strong { display: block; color: var(--ink); font: 700 .92rem/1.35 var(--display); }
.dash-item span { display: block; color: var(--muted); font-size: .72rem; }
.dash-item__btns { display: flex; flex-wrap: wrap; gap: .35rem; }
.dash-mini { padding: .32rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--blue); font: 700 .7rem var(--body); cursor: pointer; }
.dash-mini:hover { border-color: var(--blue); }
.dash-mini--danger { color: #a22; }
.dash-mini--danger:hover { border-color: #a22; }
.dash-empty { padding: 1.6rem; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); text-align: center; font-size: .86rem; }

#postForm { padding: clamp(1rem, 2.4vw, 1.5rem); border: 1px solid rgba(230, 185, 81, .4); border-radius: 16px; background: #fff; }
#postForm input:not([type="checkbox"]):not([type="file"]),
#postForm select,
#postForm textarea { border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
#postForm input:focus,
#postForm select:focus,
#postForm textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23, 72, 143, .1); outline: none; }
#postForm .auth-submit { border-radius: 11px; background: linear-gradient(115deg, var(--navy), var(--blue) 72%, #286b9e); }
#postForm .auth-submit:hover { background: linear-gradient(115deg, #102c58, #1b53a4 72%, #397eac); }

.upload-field { margin: 1rem 0 !important; padding: 1rem; border: 1px solid rgba(230, 185, 81, .42); border-radius: 14px; background: #fffaf0; letter-spacing: normal !important; text-transform: none !important; }
.upload-field__label { display: flex; align-items: center; gap: .55rem; margin-bottom: .65rem; color: var(--ink); font: 800 .78rem var(--display); }
.upload-field__label small { padding: .18rem .48rem; border-radius: 999px; background: #f2e7ca; color: #80601c; font: 800 .58rem var(--body); letter-spacing: .06em; text-transform: uppercase; }
.upload-drop { position: relative; display: flex; align-items: center; gap: .8rem; min-height: 64px; padding: .65rem .8rem; border: 1px dashed rgba(23, 72, 143, .32); border-radius: 11px; background: #fff; transition: border-color .2s, background .2s; }
.upload-drop:focus-within,
.upload-drop:hover { border-color: var(--gold); }
.upload-drop > svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--blue); }
.upload-drop__copy { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.upload-drop__copy strong { color: var(--ink); font-size: .78rem; letter-spacing: normal; text-transform: none; }
.upload-drop__copy small,
.upload-hint { color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: normal; line-height: 1.5; text-transform: none; }
.auth-form .upload-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.upload-hint { display: block; margin-top: .5rem; }
.upload-preview { display: flex; align-items: center; gap: .8rem; margin: -.35rem 0 1rem; padding: .65rem; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.upload-preview img { flex: 0 0 88px; width: 88px; height: 58px; border-radius: 7px; background: #ebe9e2; object-fit: contain; }
.upload-preview > span { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.upload-preview strong { color: var(--ink); font-size: .72rem; overflow-wrap: anywhere; }
.upload-preview small { color: var(--muted); font-size: .64rem; line-height: 1.4; }

/* Editor konten (site-cms) & panel akun */
.site-cms-title { margin-bottom: .35rem; color: var(--navy); font-size: 1.35rem; }
.site-cms-intro { max-width: 70ch; margin-bottom: 1rem; color: var(--muted); font-size: .84rem; }
.site-cms-form { display: grid; gap: .85rem; }
.site-cms-form fieldset { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.site-cms-form legend { padding: 0 .45rem; color: var(--navy); font: 800 .88rem var(--display); }
.site-cms-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.site-cms-color { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 700; }
.site-cms-color input { width: 42px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.site-cms-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.site-cms-group legend { grid-column: 1 / -1; }
.site-cms-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; padding: .65rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.site-cms-field__label { color: var(--muted); font-size: .7rem; font-weight: 800; line-height: 1.4; }
.site-cms-field input[type="text"],
.site-cms-field textarea { width: 100%; min-width: 0; padding: .58rem .68rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: 500 .8rem/1.5 var(--body); }
.site-cms-field textarea { resize: vertical; }
.site-cms-field input:focus,
.site-cms-field textarea:focus { border-color: var(--blue); outline: 2px solid rgba(23, 72, 143, .12); }
.site-cms-upload { width: 100%; color: var(--muted); font-size: .68rem; }
.site-cms-order { grid-column: 1 / -1; padding-top: .45rem; border-top: 1px solid var(--line); }
.site-cms-order h3 { margin-bottom: .45rem; color: var(--muted); font-size: .76rem; }
.site-cms-order__list { display: grid; gap: .35rem; list-style: none; }
.site-cms-order__item { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: .75rem; font-weight: 700; }
.site-cms-order__controls { display: flex; flex: none; gap: .3rem; }
.site-cms-order__controls .dash-mini { padding: .25rem .5rem; font-size: .64rem; }
.site-cms-order__controls .dash-mini:disabled { opacity: .42; cursor: not-allowed; }
.site-cms-status { margin: 0; padding: .65rem .8rem; border: 1px solid rgba(36, 132, 88, .18); border-radius: 9px; background: rgba(36, 132, 88, .07); color: #26734c; font-size: .76rem; font-weight: 700; }
.site-cms-status:empty { display: none; }
.site-cms-status.is-error { border-color: rgba(162, 34, 34, .2); background: rgba(162, 34, 34, .06); color: #a22; }
.site-cms-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.site-cms-actions .auth-submit { width: auto; margin: 0; padding: .72rem 1rem; }
.site-cms-actions .auth-submit:disabled { opacity: .55; cursor: not-allowed; }

.account-panel h2 { margin-bottom: .35rem; color: var(--navy); font: 800 1.3rem var(--display); }
.account-intro { margin-bottom: 1rem; color: var(--muted); font-size: .82rem; }
.account-status { margin: 0 0 .75rem; padding: .6rem .75rem; border-radius: 9px; background: rgba(36, 132, 88, .07); color: #26734c; font-size: .76rem; font-weight: 700; }
.account-status:empty { display: none; }
.account-status.is-error { background: rgba(162, 34, 34, .06); color: #a22; }
.account-list { display: grid; gap: .65rem; }
.account-row { display: grid; gap: .7rem; padding: .85rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.account-row__identity strong,
.account-row__identity small { display: block; overflow-wrap: anywhere; }
.account-row__identity strong { color: var(--ink); font-size: .82rem; }
.account-row__identity small { margin-top: .15rem; color: var(--muted); font-size: .7rem; }
.account-row__controls { display: grid; grid-template-columns: minmax(150px, .7fr) auto auto; gap: .4rem; align-items: center; }
.account-row__controls select { min-width: 0; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: 500 .75rem var(--body); }
.account-row__controls button:disabled { opacity: .5; cursor: not-allowed; }

/* 8. Tanya PMII ----------------------------------------------------------- */
.ai-fab {
  position: fixed;
  right: 18px;
  bottom: 5.4rem;
  z-index: 60;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: transform .25s ease;
}
.ai-fab:hover { transform: translateY(-3px); }
.ai-fab__medal {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #143a86 0, #0a1f52 62%, #061437 100%);
  box-shadow: 0 10px 26px rgba(4, 10, 52, .38);
}
.ai-fab__medal img { width: 46px; height: 48px; object-fit: contain; }
.ai-fab__bubble {
  position: relative;
  margin-left: -15px;
  padding: .72rem 1.35rem .72rem 1.8rem;
  border: 2px solid var(--gold);
  border-radius: 14px 22px 22px 14px;
  background: linear-gradient(155deg, #0d2a68 0, #173c8c 52%, #0b2458 100%);
  color: #fff;
  font: 700 1rem/1.2 var(--display);
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(4, 10, 52, .42);
  transition: border-color .2s;
}
.ai-fab__bubble::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: -7.5px;
  width: 13px;
  height: 13px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  border-radius: 0 0 3px 0;
  background: #0b2458;
  transform: rotate(45deg);
}
.ai-fab:hover .ai-fab__bubble { border-color: #ffd873; }

.ai-panel {
  position: fixed;
  right: 20px;
  bottom: 1.25rem;
  z-index: 61;
  display: flex;
  flex-direction: column;
  width: min(372px, calc(100vw - 24px));
  height: min(568px, calc(100vh - 32px));
  border: 1px solid rgba(8, 11, 74, .12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(4, 10, 52, .4);
  overflow: hidden;
}
.ai-head { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; }
.ai-head img { width: 32px; height: 34px; object-fit: contain; }
.ai-head div { min-width: 0; }
.ai-head strong { display: block; font: 700 .92rem var(--display); line-height: 1.25; }
.ai-head span { display: block; color: rgba(255, 255, 255, .72); font-size: .66rem; line-height: 1.4; }
.ai-close { display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border: 1px solid rgba(255, 255, 255, .3); border-radius: 9px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.ai-log { display: flex; flex: 1 1 auto; flex-direction: column; gap: .6rem; padding: .9rem; background: #f5f6fd; overflow-y: auto; overscroll-behavior: contain; }
.ai-msg { max-width: 88%; padding: .6rem .8rem; border-radius: 12px; font-size: .82rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-msg.bot { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 4px; background: #fff; color: var(--ink); }
.ai-msg.user { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--blue); color: #fff; }
.ai-msg.typing { display: flex; align-items: center; gap: 4px; min-height: 38px; }
.ai-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8a90b8; animation: dot 1s infinite; }
.ai-msg.typing i:nth-child(2) { animation-delay: .15s; }
.ai-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot {
  0%, 60%, 100% { opacity: .35; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}
.ai-chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: .55rem .8rem 0; background: #f5f6fd; }
.ai-chip { padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--blue); font: 600 .68rem var(--body); cursor: pointer; transition: border-color .2s, color .2s; }
.ai-chip:hover { border-color: var(--blue); color: var(--navy); }
.ai-form { display: flex; gap: .45rem; padding: .65rem .7rem; border-top: 1px solid var(--line); background: #fff; }
.ai-form input { flex: 1 1 auto; min-width: 0; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 400 .82rem var(--body); }
.ai-form input:focus { outline: 2px solid rgba(23, 72, 143, .35); outline-offset: 1px; }
.ai-form button { flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--gold); color: var(--navy); font-size: 1rem; cursor: pointer; }
.ai-form button[disabled] { opacity: .55; cursor: progress; }
.ai-foot { padding: 0 .8rem .6rem; background: #fff; color: var(--muted); font-size: .63rem; line-height: 1.5; }
.ai-foot a { color: var(--blue); }

/* 9. Responsif & aksesibilitas -------------------------------------------- */
@media (max-width: 1180px) {
  :root { --hdr: 74px; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--hdr);
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    width: 100%;
    height: calc(100dvh - var(--hdr));
    padding: 1.5rem;
    background: var(--paper);
    visibility: hidden;
    opacity: 0;
    overflow-y: auto;
    transition: opacity .2s, visibility .2s;
  }
  .nav-links.active { visibility: visible; opacity: 1; }
  .nav-links a,
  .nav-links summary { padding: .8rem 1.1rem; color: var(--ink); font-size: 1.05rem; }
  .nav-links a:hover,
  .nav-links summary:hover { background: var(--mist); }
  .has-sub ul { position: static; min-width: 0; margin-left: 1rem; border-width: 0 0 0 3px; border-radius: 0; box-shadow: none; }
}

@media (max-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
  .hero { min-height: max(600px, 92svh); padding: calc(var(--hdr) + 2rem) 0 4rem; }
  .hero-copy { padding-block: 1rem; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .pub-feature { grid-template-columns: minmax(0, 1.25fr) minmax(180px, .75fr); min-height: 280px; }
  .pub-feature__art { min-height: 0; }
  .pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-cms-settings,
  .site-cms-group { grid-template-columns: minmax(0, 1fr); }
  .account-row__controls { grid-template-columns: 1fr 1fr; }
  .account-row__controls select { grid-column: 1 / -1; }
  .account-row__controls button { width: 100%; }
}

@media (max-width: 600px) {
  .logo { font-size: .82rem; }
  .logo-mark { width: 38px; height: 40px; }
  .hero-crest { width: 94px; height: 100px; margin-bottom: .5rem; }
  .hero h1 { font-size: clamp(2.65rem, 12.2vw, 4rem); }
  .hero-eyebrow { font-size: .78rem; letter-spacing: .1em; }
  .hero-lede { max-width: 32ch; font-size: .9rem; }
  .hero-actions { width: 100%; gap: .6rem; }
  .hero .btn,
  .hero-link { min-width: 0; padding: .78rem 1rem; font-size: .8rem; }
  .band { padding: 3.6rem 0; }
  .head h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 1.8rem .7rem; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .cta { padding: 3rem 0; }
  .page-hero { padding: calc(var(--hdr) + 2.25rem) 0 2.75rem; }
  .pub-feature { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .pub-feature__body { gap: .5rem; padding: 1rem; }
  .pub-feature h3 { font-size: 1.45rem; line-height: 1.1; }
  .pub-feature p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .pub-feature__art { min-height: 84px; border-top: 1px solid rgba(255, 255, 255, .1); border-left: 0; }
  .pub-feature__art b { font-size: 3.5rem; }
  .pub-grid { grid-template-columns: minmax(0, 1fr); }
  .pub-card { min-height: 0; padding: 1rem; }
  .pub-card__image { margin: -1rem -1rem .75rem; }
  .pub-reader { max-height: 94vh; }
  .pub-reader__scroll { padding: 1.4rem; }
  .pub-reader__head { padding-right: 1.8rem; }
  .dash-row { grid-template-columns: 1fr; }
  .dash-body { padding: .85rem; }
  .dash-card { max-height: 94vh; }
  #postForm { padding: .9rem; }
  .upload-field { padding: .8rem; }
  .ai-fab { right: 12px; bottom: 4.9rem; }
  .ai-fab__medal { width: 66px; height: 66px; }
  .ai-fab__medal img { width: 37px; height: 39px; }
  .ai-fab__bubble { margin-left: -12px; padding: .6rem 1rem .6rem 1.4rem; font-size: .86rem; border-radius: 12px 18px 18px 12px; }
  .ai-fab__bubble::after { right: 13px; bottom: -7px; width: 11px; height: 11px; }
  .ai-panel { right: 12px; bottom: 12px; width: calc(100vw - 24px); height: min(76vh, 560px); }
}

@media (max-width: 480px) {
  .auth-modal { padding: 0; }
  .auth-card { width: 100%; max-height: 100vh; border-radius: 0; }
  .auth-head { padding: 1.2rem 1rem 1rem; }
  .auth-body { padding: 1rem; }
  .pw-rules { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
