/* Inovasi Guru — gaya dasar tanpa build tool. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1d2422;
  --muted: #5c6764;
  --line: #e3e0d8;
  --brand: #0f5c4d;
  --brand-ink: #ffffff;
  --brand-soft: #e5f1ed;
  --accent: #c8702a;
  --ok: #1d6b3a;
  --ok-bg: #e7f4ea;
  --err: #a12a2a;
  --err-bg: #fbeaea;
  --warn-bg: #fff4dc;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 16px rgba(0, 0, 0, .04);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121615;
    --surface: #1a201e;
    --ink: #e7ecea;
    --muted: #9ba7a3;
    --line: #2c3532;
    --brand: #55b39d;
    --brand-ink: #0b1513;
    --brand-soft: #1d2f2a;
    --accent: #e19a5b;
    --ok: #7fd19a;
    --ok-bg: #16281c;
    --err: #f09a9a;
    --err-bg: #2f1717;
    --warn-bg: #2d2513;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.inline { display: inline; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header & footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-size: .85rem; }
.nav { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a.active, .nav a:hover { color: var(--ink); }
.nav a.btn { color: var(--brand-ink); }
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 4px; }
.footer-grid nav a { color: var(--muted); }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* Tombol & form */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 8px; border: 1px solid var(--brand);
  background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn-sm { padding: 6px 12px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-danger { background: var(--err); border-color: var(--err); color: #fff; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-weight: 500; cursor: pointer; }
button.link:hover { color: var(--ink); }
label { display: block; font-weight: 600; margin: 0 0 4px; }
.hint { font-weight: 400; color: var(--muted); font-size: .875rem; }
input[type=text], input[type=url], input[type=search], input[type=email], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--ink); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
input[type=file] { font: inherit; max-width: 100%; }
.field { margin-bottom: 18px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.error { color: var(--err); font-size: .875rem; margin-top: 4px; }
.alert { margin: 16px 0; padding: 12px 16px; border-radius: 8px; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.err { background: var(--err-bg); color: var(--err); }
.alert.warn { background: var(--warn-bg); }

/* Kartu & tata letak */
.section { padding: 32px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.work-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.work-card .cover { aspect-ratio: 16 / 9; background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); font-weight: 700; }
.work-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.work-card h3 { margin: 0; font-size: 1.02rem; }
.work-card h3 a { color: var(--ink); text-decoration: none; }
.work-card h3 a:hover { color: var(--brand); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.tag.status-menunggu { background: var(--warn-bg); color: var(--accent); }
.tag.status-publik { background: var(--ok-bg); color: var(--ok); }
.tag.status-ditolak, .tag.status-diturunkan { background: var(--err-bg); color: var(--err); }
.hero { padding: 56px 0 32px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--ink); font-size: .9rem; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
@media (max-width: 900px) { .layout-side { grid-template-columns: 1fr; } }
.frame { width: 100%; aspect-ratio: 16 / 10; min-height: 360px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; }
.stats { display: flex; gap: 18px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
table.list { width: 100%; border-collapse: collapse; background: var(--surface); }
table.list th, table.list td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); }
.tabs a.active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); }
.qr { width: 180px; height: 180px; background: #fff; padding: 8px; border-radius: 8px; }
.qr svg { width: 100%; height: 100%; display: block; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 24px; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: var(--surface); }
.pagination .current { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.pagination .disabled { color: var(--muted); }
details.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; background: var(--surface); }
details.box summary { cursor: pointer; font-weight: 600; }
.bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--brand); }
