/* Peervie — UI bersama situs publik & dashboard. Tema terang/gelap ala Svelte.
 * Mode: atribut <html data-theme="light|dark">; tanpa atribut = ikuti sistem.
 * Warna merek tenant: --tenant-brand / --tenant-accent (dari /theme/tenant.css
 * atau <style> SSR) — berlaku di mode terang DAN gelap (v1.10).
 * Preset tema tenant (v1.10): web/static/presets/*.css, dimuat setelah berkas ini. */
:root {
  --radius: 12px;
  --radius-sm: 8px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --bg: #f7f7f8; --bg-2: #ffffff; --panel: #ffffff; --panel-2: #f2f2f4;
  --line: #e6e6ea; --line-2: #d4d4da; --text: #1c1c21; --muted: #6b6b76;
  --brand: var(--tenant-brand, #ff3e00); --accent: var(--tenant-accent, #2f74c0); --on-brand: #ffffff;
  --head-font: var(--font);
  --ok: #15803d; --warn: #b45309; --err: #dc2626;
  --shadow-sm: 0 1px 2px rgba(20, 20, 30, .06), 0 1px 3px rgba(20, 20, 30, .05);
  --shadow: 0 12px 32px -12px rgba(20, 20, 30, .22);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121215; --bg-2: #18181c; --panel: #1d1d22; --panel-2: #26262c;
  --line: #2c2c33; --line-2: #3d3d46; --text: #ececf0; --muted: #a0a0ab;
  --brand: color-mix(in srgb, var(--tenant-brand, #ff3e00) 72%, #fff); --accent: color-mix(in srgb, var(--tenant-accent, #2f74c0) 60%, #fff); --on-brand: #ffffff;
  --ok: #4ade80; --warn: #fbbf24; --err: #f87171;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 14px 40px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #121215; --bg-2: #18181c; --panel: #1d1d22; --panel-2: #26262c;
  --line: #2c2c33; --line-2: #3d3d46; --text: #ececf0; --muted: #a0a0ab;
  --brand: color-mix(in srgb, var(--tenant-brand, #ff3e00) 72%, #fff); --accent: color-mix(in srgb, var(--tenant-accent, #2f74c0) 60%, #fff); --on-brand: #ffffff;
  --ok: #4ade80; --warn: #fbbf24; --err: #f87171;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 14px 40px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 15px/1.6 var(--font); color: var(--text); background: var(--bg);
  transition: background-color .2s, color .2s;
}
::selection { background: color-mix(in srgb, var(--brand) 28%, transparent); }
a { color: color-mix(in srgb, var(--brand) 88%, var(--text)); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--head-font); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; font-weight: 600; }
h3 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: .92em; }
.dim { color: var(--muted); }
.small { font-size: .86rem; }
.break { word-break: break-all; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.row.gap { justify-content: flex-start; gap: .6rem; }
.wrap-row { flex-wrap: wrap; }
.stack { display: grid; gap: .8rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.eyebrow { font-size: .72rem; letter-spacing: .14em; color: var(--brand); margin-bottom: .6rem; font-weight: 600; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 68ch; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── komponen ── */
.card {
  display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; color: inherit; box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.btn {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--brand); background: var(--brand);
  color: var(--on-brand); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { text-decoration: none; background: color-mix(in srgb, var(--brand) 88%, #000); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: var(--bg-2); border-color: var(--line-2); color: var(--text); font-weight: 550; }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--line-2); box-shadow: none; }
.btn-danger { border-color: var(--err); background: var(--err); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--err) 85%, #000); box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 20%, transparent); }
.btn-sm { padding: .32rem .7rem; font-size: .86rem; }
.chip {
  display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: .78rem; color: var(--muted); white-space: nowrap;
}
.chip-brand { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.chip-ghost { border-style: dashed; }
.meta-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .85rem; color: var(--muted); margin: 1.4rem 0 1rem; }
.crumbs a { color: var(--muted); }
.sec-title { margin: 2.2rem 0 1rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }

/* ── situs publik ── */
.site-head { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 85%, transparent); backdrop-filter: blur(12px); }
.site-head .row { height: 64px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #ffb300)); box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--brand) 60%, transparent); }
.side .brand-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; background: #fff; flex: none; }
.brand-logo { height: 30px; width: auto; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text small { color: var(--muted); font-size: .72rem; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; font-size: .92rem; }
.site-nav a:not(.btn) { color: var(--muted); }
.site-main { min-height: calc(100vh - 140px); padding-bottom: 3rem; }
.site-foot { border-top: 1px solid var(--line); padding: 1.2rem 0; color: var(--muted); font-size: .85rem; }
.hero { padding: 3.2rem 0 1rem; }
.journal-head { padding: .5rem 0 1rem; }
.journal-card h3 { margin-bottom: .4rem; }
.issue-card h3 { margin: .2rem 0; }
.art-card h3 { margin-bottom: .2rem; }
.art-card h3 a { color: var(--text); }
.authors { color: var(--muted); margin: 0; font-size: .92rem; }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.art-title { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.art-alt { color: var(--muted); font-style: italic; margin-top: -.3rem; }
.authors-list { list-style: none; padding: 0; margin: 1rem 0 .2rem; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.author-name { font-weight: 550; }
.orcid { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #a6ce39; color: #fff; font-size: .62rem; font-weight: 700; margin-left: .2rem; vertical-align: middle; }
.affiliations { color: var(--muted); font-size: .85rem; padding-left: 1.2rem; margin: 0 0 1.2rem; }
.abstract, .cite { margin-top: 2rem; }
.abstract p { text-align: justify; hyphens: auto; }
.kw { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.cite-box { font-family: var(--mono); font-size: .85rem; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.art-side { position: sticky; top: 84px; display: grid; gap: .8rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .45rem .9rem; margin: 0; font-size: .88rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 860px) { .art-layout { grid-template-columns: 1fr; } .art-side { position: static; } .site-nav a:not(.btn) { display: none; } }

/* ── dashboard ── */
.dash { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { border-right: 1px solid var(--line); background: var(--bg-2); padding: 1.1rem .8rem; display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 0 .4rem; }
.nav { display: grid; gap: .15rem; }
.nav a { display: flex; align-items: center; gap: .65rem; padding: .5rem .65rem; border-radius: var(--radius-sm); color: var(--muted); font-size: .92rem; }
.nav a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.nav a.active { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font-weight: 600; }
.nav .ico { width: 18px; text-align: center; font-family: var(--mono); color: var(--muted); }
.nav a.active .ico { color: var(--brand); }
.nav-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: .8rem .65rem .2rem; }
.side-foot { margin-top: auto; font-size: .75rem; color: var(--muted); padding: 0 .5rem; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.6rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg-2) 85%, transparent); backdrop-filter: blur(10px); }
.top h1 { font-size: 1.1rem; margin: 0; }
.top-right { display: flex; align-items: center; gap: .7rem; }
.view { padding: 1.6rem; display: grid; gap: 1.2rem; align-content: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: .95rem; }
.panel-body { padding: 1.1rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.stat { padding: 1rem 1.1rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 1.7rem; font-weight: 700; font-family: var(--mono); }
.stat span { color: var(--muted); font-size: .82rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--panel-2); }
.empty { padding: 2rem; text-align: center; color: var(--muted); }
form.form { display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; }
.field > span { font-size: .8rem; color: var(--muted); }
.field-row { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .55rem .7rem;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
input[type=checkbox] { width: auto; accent-color: var(--brand); }
.check { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; }
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; padding: .14rem .6rem; border-radius: 999px; border: 1px solid var(--line-2); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-draft { color: var(--muted); }
.s-submitted, .s-desk_review { color: var(--brand); }
.s-under_review, .s-revision_requested { color: var(--warn); }
.s-accepted, .s-copyediting, .s-scheduled { color: var(--accent); }
.s-published { color: var(--ok); }
.s-rejected, .s-withdrawn { color: var(--err); }
.stepper { display: flex; gap: .3rem; flex-wrap: wrap; }
.step { flex: 1 1 90px; font-size: .7rem; color: var(--muted); padding-top: .45rem; border-top: 2px solid var(--line-2); text-transform: uppercase; letter-spacing: .06em; }
.step.done { border-color: color-mix(in srgb, var(--brand) 55%, transparent); color: var(--text); }
.step.now { border-color: var(--brand); color: var(--brand); }
.two-col { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.timeline li { display: grid; grid-template-columns: 10px 1fr; gap: .7rem; font-size: .86rem; }
.timeline li::before { content: ""; width: 8px; height: 8px; margin-top: .45rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.auth-card { width: min(420px, 100%); padding: 1.8rem; box-shadow: var(--shadow); }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.tabs button { background: none; border: 0; color: var(--muted); font: inherit; padding: .5rem .8rem; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.toasts { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; z-index: 50; }
.toast { padding: .7rem 1rem; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: .9rem; max-width: 360px; }
.toast.err { border-color: color-mix(in srgb, var(--err) 60%, transparent); }
.toast.ok { border-color: color-mix(in srgb, var(--ok) 60%, transparent); }
dialog { background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 0; width: min(520px, 94vw); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(10, 10, 15, .45); backdrop-filter: blur(3px); }
.dlg-body { padding: 1.3rem; display: grid; gap: 1rem; }
.notice { padding: .7rem .9rem; border-radius: var(--radius-sm); border: 1px dashed var(--line-2); color: var(--muted); font-size: .86rem; }
.notice.warn { border-color: color-mix(in srgb, var(--warn) 55%, transparent); color: var(--warn); }
.file-list { display: grid; gap: .4rem; }
.file-item { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .88rem; }
.contrib { display: grid; gap: .6rem; padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.badge-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--err); color: #fff; font-size: .68rem; display: inline-grid; place-items: center; }
.user-chip { display: flex; align-items: center; gap: .55rem; font-size: .88rem; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 50%, var(--accent))); color: #fff; }
@media (max-width: 800px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .view { padding: 1rem; }
}

/* ── v1.5 diff ── */
.diff ins { background: color-mix(in srgb, var(--ok) 22%, transparent); text-decoration: none; border-radius: 3px; }
.diff del { background: color-mix(in srgb, var(--err) 20%, transparent); color: var(--muted); border-radius: 3px; }
.diff-block { padding: .5rem .8rem; border-left: 3px solid var(--line-2); margin: .4rem 0; white-space: pre-wrap; }
.diff-added { border-color: var(--ok); }
.diff-removed { border-color: var(--err); }
.diff-changed { border-color: var(--warn); }

/* ── tombol tema (otomatis → terang → gelap) ── */
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; font: 600 1rem/1 var(--font); }
.icon-btn:hover { background: var(--panel-2); }
[data-theme-toggle] { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M12 3a9 9 0 0 1 0 18z%22 fill=%22black%22/%3E%3C/svg%3E"); }
:root[data-theme="light"] [data-theme-toggle] { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%224%22/%3E%3Cpath d=%22M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4%22/%3E%3C/svg%3E"); }
:root[data-theme="dark"] [data-theme-toggle] { --ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z%22/%3E%3C/svg%3E"); }
[data-theme-toggle]::before { content: ""; width: 17px; height: 17px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.auth-card { position: relative; }
.auth-card > [data-theme-toggle] { position: absolute; top: .9rem; right: .9rem; }

/* ── v1.10 landing platform SaaS ── */
.pf-hero { padding-bottom: 1.5rem; }
.pf-hero h1 { max-width: 22ch; }
.pf-cta { margin: 1.4rem 0 1.6rem; }
.pf-stats { max-width: 640px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-stats .stat b { font-size: clamp(1.3rem, 4vw, 1.7rem); }
.pf-insts { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.pf-inst h3 { margin-bottom: .1rem; }
.pf-host { font-size: .8rem; overflow-wrap: anywhere; }
.pf-note { margin-top: .9rem; }
.pf-contact { margin-top: 1.4rem; }
section[id] { scroll-margin-top: 80px; }

/* ── v1.10 pratinjau preset tema (Pengaturan Portal) ── */
.preset-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.preset-opt { display: grid; gap: .45rem; padding: .75rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; background: var(--bg-2); }
.preset-opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.preset-opt input { width: auto; accent-color: var(--brand); }
.preset-swatch { display: flex; height: 34px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.preset-swatch i { flex: 1; }
.preset-swatch i:last-child { flex: .5; }

/* ── v1.11 petunjuk DNS domain kustom ── */
.dns-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: .7rem; font-size: .92rem; }
.dns-record { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin: .45rem 0 .2rem; padding: .55rem .8rem; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--panel-2); }
.dns-record .copyable { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.dns-record .btn { margin-left: auto; }

/* ── v1.11 pemilih tema landing (panel Platform) ── */
.landing-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.landing-opt { display: grid; gap: .5rem; align-content: start; padding: .8rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); }
.landing-opt.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.landing-swatch { display: block; height: 72px; border-radius: 6px; border: 1px solid var(--line); }

/* ── v1.13 portal tenant: cover, slider, beranda ── */
.foot-links { color: var(--muted); font-size: .86rem; }
.foot-links a { color: var(--muted); }
.prewrap { white-space: pre-line; }

/* Cover jurnal — sidebar artikel (desktop) */
.art-cover { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--panel-2); }
.art-cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
/* Cover jurnal — kartu ringkas di atas judul (mobile) */
.art-cover-m { display: none; align-items: center; gap: .85rem; margin-bottom: 1rem; padding: .6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--text); }
.art-cover-m:hover { text-decoration: none; border-color: var(--line-2); }
.art-cover-m img { width: 64px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; flex: none; }
.art-cover-m > span { display: grid; gap: .1rem; min-width: 0; }
.art-cover-m b { font-size: .95rem; line-height: 1.3; }
@media (max-width: 860px) {
  .art-side .art-cover { display: none; }
  .art-cover-m { display: flex; }
}

/* Halaman jurnal */
.journal-head.has-cover { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.journal-cover { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
@media (max-width: 640px) {
  .journal-head.has-cover { grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; }
  .journal-head.has-cover h1 { font-size: 1.35rem; }
}

/* Slider beranda */
.slider { position: relative; margin-top: 1.4rem; border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slider-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 21 / 8; min-height: 220px; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; inset: auto 0 0 0; padding: 2.2rem clamp(1rem, 4vw, 2.4rem) 1.6rem; color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .25) 65%, transparent); }
.slide h2 { margin: 0 0 .3rem; font-size: clamp(1.15rem, 3vw, 1.9rem); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.slide p { margin: 0 0 .8rem; max-width: 60ch; color: rgba(255, 255, 255, .88); font-size: .95rem; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .38); color: #fff; font-size: 1.5rem; line-height: 1; display: grid; place-items: center; }
.slider-nav:hover { background: rgba(0, 0, 0, .55); }
.slider-nav.prev { left: .7rem; }
.slider-nav.next { right: .7rem; }
.slider-dots { position: absolute; right: 1rem; bottom: .8rem; display: flex; gap: .35rem; }
.slider-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .2s; }
.slider-dots button[aria-current="true"] { width: 22px; background: #fff; }
@media (max-width: 640px) {
  .slide { aspect-ratio: 4 / 3; }
  .slider-nav { display: none; }
}
.hero-compact { padding-top: 2rem; }

/* Statistik */
.stat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; margin: .4rem 0 0; }
.stat-row > div { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); display: grid; }
.stat-row b { font-size: 1.5rem; letter-spacing: -.02em; }
.stat-row span { color: var(--muted); font-size: .82rem; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Kartu jurnal bersampul */
.jgrid { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.jcard { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; align-items: start; color: var(--text); }
.jcard:hover { text-decoration: none; }
.jcard h3 { margin: 0 0 .3rem; }
.jcard-cover { width: 84px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.jcard-ph { display: grid; place-items: center; font: 700 .9rem var(--mono); color: var(--on-brand);
  background: linear-gradient(135deg, var(--brand), var(--accent)); border: 0; text-transform: uppercase; }
.jcard-body { display: grid; gap: .2rem; min-width: 0; }

/* Terbitan terbaru */
.issue-strip { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.issue-tile { display: flex; gap: .8rem; align-items: center; color: var(--text); padding: .8rem; }
.issue-tile:hover { text-decoration: none; }
.issue-tile img { width: 48px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; flex: none; }
.issue-tile > span { display: grid; gap: .1rem; min-width: 0; }

/* Tim editorial & reviewer */
.people { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.person { display: flex; gap: .75rem; align-items: center; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); }
.person > span:last-child { display: grid; min-width: 0; }
.person .avatar { flex: none; }
.reviewer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.reviewer-list li { display: grid; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.info-cols { align-items: stretch; margin-top: 1rem; }
.info-cols .sec-title { margin-top: 0; }
.policy-list { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; font-size: .93rem; }
.pname { display: inline-flex; align-items: center; gap: .35rem; flex-wrap: wrap; }

/* ── v1.13 dasbor: langganan, beranda portal ─────────────────────────────── */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 0; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.bill-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.bill-amount { font-size: 1.9rem; font-weight: 700; letter-spacing: -.01em; }
.bank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.bank-list li { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .7rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.bank-list li > .dim { grid-column: 1 / -1; }
.bank-no { font-size: 1.02rem; font-weight: 600; }
.qris-img { width: 240px; max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }
.sub-banner { display: flex; gap: .8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 1.4rem; padding: .65rem .9rem; border-radius: var(--radius-sm); font-size: .9rem;
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.sub-banner.err { border-color: color-mix(in srgb, var(--err) 45%, transparent); background: color-mix(in srgb, var(--err) 10%, transparent); }
.slide-admin { list-style: none; margin: 0; padding: .4rem 1rem; display: grid; gap: .6rem; }
.slide-admin li { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; padding: .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.slide-admin img { width: 120px; height: 45px; object-fit: cover; border-radius: 6px; flex: none; }
.slide-admin .grow { flex: 1; min-width: 12rem; }
.cover-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.cover-card { display: grid; gap: .45rem; justify-items: start; }
.cover-card img, .cover-ph { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.cover-ph { display: grid; place-items: center; font-weight: 700; color: var(--muted); background: var(--panel-2); }
@media (max-width: 720px) { .sub-banner { margin: 0 1rem; } }
.issue-card-cover { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: .5rem; background: var(--panel-2); }

/* ── v1.16 DataTable: cari, filter, halaman, pilih massal ── */
.dt-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); }
.dt-bar input[type=search] { flex: 1 1 14rem; min-width: 0; max-width: 22rem; }
.dt-bar select, .dt-foot select { width: auto; }
.dt-size { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.dt-foot { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; padding: .7rem 1.1rem; }
.dt-bulk { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .6rem 1.1rem; background: color-mix(in srgb, var(--brand) 9%, transparent); border-bottom: 1px solid var(--line); }
.dt-check { width: 2.2rem; }
.dt-check input { width: 1.05rem; height: 1.05rem; }
tr.dt-on td { background: color-mix(in srgb, var(--brand) 6%, transparent); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }
.view, .view > *, .two-col > * { min-width: 0; }
@media (max-width: 700px) {
  .dt table, .dt tbody, .dt tr, .dt td { display: block; width: 100%; }
  .dt thead { display: none; }
  .dt tr { padding: .7rem 1rem; border-bottom: 1px solid var(--line); position: relative; }
  .dt td { border: 0; padding: .25rem 0; display: flex; gap: .8rem; justify-content: space-between; align-items: baseline; text-align: right; overflow-wrap: anywhere; }
  .dt td[data-label]::before { content: attr(data-label); flex: none; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; text-align: left; }
  .dt td.dt-check { position: absolute; right: .8rem; top: .7rem; width: auto; padding: 0; }
  .dt td.dt-check::before { display: none; }
  .dt td:nth-child(1):not(.dt-check), .dt td.dt-check + td { display: block; text-align: left; padding-right: 2rem; }
  .dt td:nth-child(1):not(.dt-check)::before, .dt td.dt-check + td::before { display: none; }
  .dt td:last-child:empty { display: none; }
  .dt-size { margin-left: 0; }
  .dt-foot { justify-content: center; }
}
.issue-thumb-cell { display: flex; align-items: center; gap: .6rem; }
.issue-thumb { width: 42px; height: 56px; object-fit: cover; border-radius: 4px; background: var(--panel-2); flex: none; display: grid; place-items: center; color: var(--muted); }
.issue-thumb.fallback { opacity: .55; }

/* ── v1.17 halaman artikel & publik: tidak boleh melebar di HP ── */
.site-main, .wrap { min-width: 0; }
.art-layout > * { min-width: 0; }
.art-main, .art-side, .facts dd, .cite-box, .refs li, .abstract p, .affiliations li, .file-item, .crumbs { overflow-wrap: anywhere; word-break: break-word; }
.art-main .btn { white-space: normal; max-width: 100%; text-align: left; overflow-wrap: anywhere; }
.kw .chip, .art-main .chip { white-space: normal; max-width: 100%; }
.art-main img, .art-main video, .art-main iframe { max-width: 100%; height: auto; }
.art-main table, .art-main pre { display: block; max-width: 100%; overflow-x: auto; }
.refs ol { padding-left: 1.3rem; }
.refs li { margin-bottom: .45rem; }
@media (max-width: 860px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .abstract p { text-align: left; }
  .wrap { width: calc(100% - 2rem); }
  .art-title { font-size: 1.4rem; line-height: 1.3; }
}

/* ── v1.17 bagian beranda: grid / slider horizontal / daftar + efek hover ── */
.hsec { margin-top: 2.2rem; }
.hsec-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rail-nav { display: inline-flex; gap: .4rem; }
.rail-nav button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: 1.2rem; cursor: pointer; }
.rail-nav button:disabled { opacity: .35; cursor: default; }
.rail-static .rail-nav { visibility: hidden; }
.hl { display: grid; gap: .9rem; }
.hl-grid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.hl-grid.hl-people { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.hl-slider { grid-auto-flow: column; grid-auto-columns: min(250px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 .2rem;
  padding: .3rem .2rem 1rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; overscroll-behavior-x: contain; }
.hl-slider > * { scroll-snap-align: start; }
.hl-slider:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hl-list { grid-template-columns: minmax(0, 1fr); }
.hcard { display: flex; flex-direction: column; gap: .6rem; color: var(--text); padding: .8rem; min-width: 0; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.hcard:hover { text-decoration: none; }
.hcard-body { display: grid; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
.hcard-media { display: block; overflow: hidden; border-radius: 8px; background: var(--panel-2); }
.hcard-media img, .hcard-ph { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .3s ease; }
.hcard-ph { font: 700 1.4rem var(--mono); color: var(--muted); }
.hcard-art h3 { margin: 0; font-size: 1rem; line-height: 1.35; }
.hcard-art .meta-row { margin-top: auto; }
.hcard-person { flex-direction: row; align-items: center; }
.hcard-person .avatar { flex: none; }
.hl-grid .hcard-person, .hl-slider .hcard-person { flex-direction: column; align-items: center; text-align: center; }
.hl-grid .hcard-person .avatar, .hl-slider .hcard-person .avatar { width: 56px; height: 56px; font-size: 1.2rem; }
.hl-list .hcard-issue { flex-direction: row; align-items: center; }
.hl-list .hcard-issue .hcard-media { width: 56px; flex: none; }
.hl-list .hcard-issue .hcard-ph { font-size: .8rem; }
/* efek hover */
.hv-lift .hcard:hover, .hv-lift .art-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .35); }
.hv-zoom .hcard:hover .hcard-media img { transform: scale(1.06); }
.hv-zoom .hcard-art:hover, .hv-zoom .hcard-person:hover, .hv-zoom .art-card:hover { transform: scale(1.02); }
.hv-glow .hcard:hover, .hv-glow .art-card:hover { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.art-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; overflow-wrap: anywhere; }
@media (hover: none) { .hv-lift .hcard:hover, .hv-zoom .hcard:hover, .hv-lift .art-card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hcard, .hcard-media img, .art-card { transition: none; } .hv-lift .hcard:hover, .hv-zoom .hcard:hover .hcard-media img { transform: none; } }
@media (max-width: 640px) {
  .hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .hl-grid.hl-people { grid-template-columns: minmax(0, 1fr); }
  .hl-grid .hcard-person { flex-direction: row; text-align: left; }
  .hl-grid .hcard-person .avatar { width: 40px; height: 40px; font-size: 1rem; }
  .hcard { padding: .6rem; }
  .hsec { margin-top: 1.6rem; }
}
.sec-set { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .9rem .9rem; margin: 0; min-width: 0; }
.sec-set legend { padding: 0 .3rem; }

/* ── v1.17 menu HP situs publik ── */
.m-menu { display: none; position: relative; }
.m-menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); font-size: 1.1rem; }
.m-menu summary::-webkit-details-marker { display: none; }
.m-menu-panel { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 20; min-width: 200px; display: grid; padding: .4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); box-shadow: var(--shadow); }
.m-menu-panel a { padding: .65rem .8rem; border-radius: var(--radius-sm); color: var(--text); }
.m-menu-panel a:hover { background: var(--panel-2); text-decoration: none; }
@media (max-width: 860px) {
  .m-menu { display: block; }
  .site-head .row { gap: .6rem; }
  .brand { min-width: 0; flex: 1; }
  .brand-text { min-width: 0; }
  .brand-text strong, .brand-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-nav { gap: .5rem; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .stat-row b { font-size: 1.2rem; }
  .jgrid { grid-template-columns: minmax(0, 1fr); }
  .site-foot .row { flex-direction: column; gap: .4rem; text-align: center; }
}
/* kartu terbitan lebih ramping */
.hl-grid:has(.hcard-issue) { grid-template-columns: repeat(auto-fill, minmax(min(165px, 100%), 1fr)); }
.hl-slider:has(.hcard-issue) { grid-auto-columns: min(180px, 46%); }
.hl-slider:has(.hcard-person) { grid-auto-columns: min(230px, 70%); }
.hl-slider:has(.hcard-art) { grid-auto-columns: min(280px, 82%); }
.hcard-issue .hcard-body b { font-size: .92rem; }
@media (max-width: 640px) { .hl-grid:has(.hcard-issue) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* v1.18 — logo Peervie (landing, login, konsol owner) */
.brand-logo.sp-mark { width: 32px; height: 32px; border-radius: 0; background: none; padding: 0; object-fit: contain; flex: none; }
.sp-word { font-weight: 800; letter-spacing: -.01em; }
.sp-word span { background: linear-gradient(100deg, #4f46e5, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .sp-word span { background-image: linear-gradient(100deg, #a5b4fc, #67e8f9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sp-word span { background-image: linear-gradient(100deg, #a5b4fc, #67e8f9); } }
.landing .sp-word span { background-image: linear-gradient(100deg, var(--lt-a1), var(--lt-a2)); }
/* v1.18 — fitur terkunci per paket */
.nav-lock { margin-left: auto; font-size: .72rem; opacity: .7; }
.feature-lock { border-color: color-mix(in srgb, #f59e0b 45%, var(--line)); background: color-mix(in srgb, #f59e0b 7%, var(--panel)); }
.feature-lock .row { align-items: center; flex-wrap: wrap; }
.feature-lock .grow { flex: 1; min-width: 14rem; }
.feature-lock .lock-ico { font-size: 1.4rem; }
