/*
 * Dipindai — Platform Orisinalitas Dokumen Digitech University
 * Sistem Desain Putih · Merah · Biru (Zero External CDN)
 * Dibangun di atas Papastro Framework
 */

@import url('/fonts/fonts.css');

/* ── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Putih (Latar & Permukaan) */
    --paper:    #FFFFFF;
    --surface:  #F6F8FC;
    --line:     #E3E8F2;

    /* Biru (Primer, Aksi, Tautan, Tinta) */
    --blue-900: #0A2463;
    --blue-700: #1D4ED8;
    --blue-500: #3B82F6;
    --blue-100: #E6EEFF;

    /* Merah (Aksen, Garis Pindai, Peringatan, Kemiripan Tinggi) */
    --red-600:  #D62839;
    --red-400:  #EF6B77;
    --red-100:  #FDE8EA;

    /* Teks */
    --ink:      #0B1B3F;
    --muted:    #5B6B8C;

    /* Pita Skor Kemiripan */
    --score-low-bg:  var(--blue-100);
    --score-low-fg:  var(--blue-900);
    --score-mod-bg:  var(--blue-500);
    --score-mod-fg:  #FFFFFF;
    --score-high-bg: var(--red-100);
    --score-high-fg: var(--red-600);
    --score-crit-bg: var(--red-600);
    --score-crit-fg: #FFFFFF;

    /* Tipografi (Self-hosted + System Fallback) */
    --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
    --font-sans:    'Public Sans', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

    /* Skala Spasi 4px */
    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-5:  20px;
    --space-6:  24px;
    --space-8:  32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Radius */
    --radius-sm:   6px;
    --radius-card: 10px;
    --radius-chip: 999px;

    /* Border & Elevasi Halus */
    --border:       1px solid var(--line);
    --shadow-subtle: 0 1px 2px rgba(10, 36, 99, 0.05);
    --shadow-float:  0 8px 24px rgba(10, 36, 99, 0.08);

    /* Layout Dimensions */
    --container-width: 1200px;
    --header-height:   64px;
    --sidebar-width:   248px;
    --sidebar-rail:    72px;
    --bottom-bar-h:    68px;

    /* Transisi */
    --ease: 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Mode Kontras Tinggi (Aksesibilitas WCAG AA+) */
[data-contrast="high"],
.high-contrast {
    --surface: #EFF3FA;
    --line:    #8EA0C2;
    --muted:   #2D3C5E;
    --ink:     #040B1C;
    --blue-700: #1339A8;
    --red-600:  #A81423;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    color: var(--blue-900);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

code, pre, .font-mono, .tabular-nums {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

a {
    color: var(--blue-700);
    text-decoration: none;
    transition: color var(--ease);
}

a:hover {
    color: var(--blue-900);
}

:focus-visible {
    outline: 2px solid var(--blue-700);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ── Motif Identitas: Garis Pindai ──────────────────────────────── */
.scan-line-stage {
    position: relative;
    overflow: hidden;
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius-card);
}

.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red-600);
    box-shadow: 0 0 12px rgba(214, 40, 57, 0.55);
    pointer-events: none;
    z-index: 3;
    animation: scanSweep 3.2s ease-in-out infinite;
}

@keyframes scanSweep {
    0%   { top: 8%; opacity: 0.25; }
    15%  { opacity: 1; }
    50%  { top: 88%; opacity: 1; }
    85%  { opacity: 1; }
    100% { top: 8%; opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
    .scan-line {
        animation: none;
        top: 50%;
    }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ── Tombol ─────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 40px;
    padding: 0 var(--space-4);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color var(--ease), border-color var(--ease), color var(--ease);
    white-space: nowrap;
}

.btn-lg {
    min-height: 46px;
    padding: 0 var(--space-6);
    font-size: 1rem;
}

.btn-sm {
    min-height: 34px;
    padding: 0 var(--space-3);
    font-size: 0.8125rem;
}

.btn-primary {
    background-color: var(--blue-700);
    color: #FFFFFF;
}
.btn-primary:hover {
    background-color: var(--blue-900);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: var(--paper);
    color: var(--blue-900);
    border-color: var(--line);
}
.btn-secondary:hover {
    background-color: var(--surface);
    border-color: var(--blue-500);
}

.btn-danger {
    background-color: var(--red-600);
    color: #FFFFFF;
}
.btn-danger:hover {
    background-color: #B01E2D;
    color: #FFFFFF;
}

/* ── Form Controls ──────────────────────────────────────────────── */
.field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
}

.field-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}

.field-hint {
    font-size: 0.8125rem;
    color: var(--muted);
}

.field-error {
    font-size: 0.8125rem;
    color: var(--red-600);
    font-weight: 500;
}

.input,
.select,
.textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    transition: border-color var(--ease), box-shadow var(--ease);
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--blue-700);
    box-shadow: 0 0 0 3px var(--blue-100);
}

.input--error {
    border-color: var(--red-600);
}

/* Dropzone Unggah */
.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-8) var(--space-6);
    border: 1.5px dashed var(--blue-500);
    border-radius: var(--radius-card);
    background-color: var(--surface);
    text-align: center;
    cursor: pointer;
    transition: background-color var(--ease), border-color var(--ease);
}

.dropzone:hover,
.dropzone--active {
    background-color: var(--blue-100);
    border-color: var(--blue-700);
}

/* ── Kartu & Permukaan ──────────────────────────────────────────── */
.card {
    background-color: var(--paper);
    border: var(--border);
    border-radius: var(--radius-card);
    padding: var(--space-6);
}

.card-surface {
    background-color: var(--surface);
    border: var(--border);
    border-radius: var(--radius-card);
    padding: var(--space-6);
}

.stat-card {
    background-color: var(--paper);
    border: var(--border);
    border-radius: var(--radius-card);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.stat-card__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-card__value {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--blue-900);
}

.stat-card__meta {
    font-size: 0.8125rem;
    color: var(--muted);
}

/* ── Chip Status & Pita Skor Kemiripan ──────────────────────────── */
.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px 10px;
    border-radius: var(--radius-chip);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    white-space: nowrap;
}

.chip--neutral {
    background-color: var(--surface);
    color: var(--ink);
    border-color: var(--line);
}

.chip--score-low {
    background-color: var(--score-low-bg);
    color: var(--score-low-fg);
}

.chip--score-mod {
    background-color: var(--score-mod-bg);
    color: var(--score-mod-fg);
}

.chip--score-high {
    background-color: var(--score-high-bg);
    color: var(--score-high-fg);
    border-color: var(--red-400);
}

.chip--score-crit {
    background-color: var(--score-crit-bg);
    color: var(--score-crit-fg);
}

/* ── Cincin Skor (Gauge Melingkar) ──────────────────────────────── */
.score-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
}

.score-ring svg {
    transform: rotate(-90deg);
}

.score-ring__track {
    fill: none;
    stroke: var(--line);
    stroke-width: 8;
}

.score-ring__fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 200ms ease-out;
}

.score-ring__fill--low  { stroke: var(--blue-500); }
.score-ring__fill--mod  { stroke: var(--blue-700); }
.score-ring__fill--high { stroke: var(--red-400); }
.score-ring__fill--crit { stroke: var(--red-600); }

.score-ring__center {
    position: absolute;
    text-align: center;
}

.score-ring__value {
    font-family: var(--font-mono);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--blue-900);
    line-height: 1;
}

.score-ring__label {
    font-size: 0.6875rem;
    color: var(--muted);
    margin-top: 2px;
}

/* ── Tabel Responsif & Daftar Kartu Mobile ──────────────────────── */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: var(--border);
    border-radius: var(--radius-card);
    background: var(--paper);
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.table th {
    padding: var(--space-3) var(--space-4);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    background-color: var(--surface);
    border-bottom: var(--border);
}

.table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: var(--border);
    color: var(--ink);
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

.card-list {
    display: none;
    flex-direction: column;
    gap: var(--space-3);
}

@media (max-width: 767px) {
    .table-wrap--responsive { display: none; }
    .card-list--responsive  { display: flex; }
}

/* ── Tab, Stepper, Breadcrumb, Pagination ───────────────────────── */
.tabs {
    display: flex;
    gap: var(--space-1);
    border-bottom: var(--border);
    overflow-x: auto;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: 0 var(--space-4);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.tab--active {
    color: var(--blue-700);
    border-bottom-color: var(--blue-700);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: var(--space-4);
}

.breadcrumb__sep { color: var(--line); }

.stepper {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    list-style: none;
}

.stepper__item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    color: var(--muted);
}

.stepper__dot {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-chip);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--surface);
    border: var(--border);
    color: var(--muted);
}

.stepper__item--active .stepper__dot {
    background: var(--blue-700);
    border-color: var(--blue-700);
    color: #FFFFFF;
}

.stepper__item--done .stepper__dot {
    background: var(--blue-100);
    border-color: var(--blue-500);
    color: var(--blue-900);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.pagination__pages {
    display: flex;
    gap: var(--space-1);
}

/* ── Modal, Bottom Sheet, Toast, Empty State, Skeleton ──────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 36, 99, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    z-index: 60;
}

.modal {
    width: 100%;
    max-width: 520px;
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius-card);
    padding: var(--space-6);
    box-shadow: var(--shadow-float);
}

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper);
    border-top: var(--border);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: var(--space-4) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-float);
    z-index: 70;
}

.bottom-sheet__handle {
    width: 40px;
    height: 4px;
    border-radius: var(--radius-chip);
    background: var(--line);
    margin: 0 auto var(--space-4);
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-card);
    border: var(--border);
    background: var(--paper);
    box-shadow: var(--shadow-float);
    font-size: 0.875rem;
}

.toast--error {
    background: var(--red-100);
    border-color: var(--red-400);
    color: var(--red-600);
}

.toast--info {
    background: var(--blue-100);
    border-color: var(--blue-500);
    color: var(--blue-900);
}

.empty-state {
    text-align: center;
    padding: var(--space-10) var(--space-6);
    border: var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.empty-state__icon {
    color: var(--blue-700);
    margin-bottom: var(--space-3);
}

.empty-state__title {
    font-size: 1.125rem;
    margin-bottom: var(--space-2);
}

.empty-state__desc {
    color: var(--muted);
    max-width: 420px;
    margin: 0 auto var(--space-5);
    font-size: 0.9375rem;
}

.skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, var(--line) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    border-radius: var(--radius-sm);
    height: 16px;
}

/* ── Layout: Public ─────────────────────────────────────────────── */
.pub-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: var(--border);
}

.pub-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--space-4);
}

.pub-nav {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.pub-nav__link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
}

.pub-nav__link:hover {
    color: var(--blue-700);
}

.pub-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.pub-footer {
    background: var(--surface);
    border-top: var(--border);
    padding: var(--space-12) 0 var(--space-8);
    margin-top: var(--space-16);
}

.pub-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
}

.pub-footer__bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-4);
    font-size: 0.8125rem;
    color: var(--muted);
}

@media (max-width: 900px) {
    .pub-nav { display: none; }
    .pub-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .pub-footer__grid { grid-template-columns: 1fr; }
}

/* ── Layout: Auth (2 Kolom Desktop, 1 Kartu Mobile) ─────────────── */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--paper);
}

.auth-aside {
    background: var(--blue-900);
    color: #FFFFFF;
    padding: var(--space-12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.auth-aside h1,
.auth-aside h2 {
    color: #FFFFFF;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-6);
    background: var(--surface);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius-card);
    padding: var(--space-8);
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .auth-aside {
        display: none;
    }
}

/* ── Layout: App Desktop & Tablet ───────────────────────────────── */
.app-shell {
    min-height: 100vh;
    display: flex;
    background: var(--surface);
}

.app-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--blue-900);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    padding: var(--space-5) var(--space-3);
    position: sticky;
    top: 0;
    height: 100vh;
}

.app-sidebar__brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3) var(--space-6);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
}

.app-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex: 1;
}

.app-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 44px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background-color var(--ease), color var(--ease);
}

.app-nav-item:hover,
.app-nav-item--active {
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    height: var(--header-height);
    background: var(--paper);
    border-bottom: var(--border);
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    position: sticky;
    top: 0;
    z-index: 30;
}

.app-content {
    padding: var(--space-6);
    flex: 1;
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-5);
}

@media (max-width: 1023px) and (min-width: 768px) {
    .app-sidebar {
        width: var(--sidebar-rail);
        align-items: center;
        padding: var(--space-4) var(--space-2);
    }
    .app-sidebar__brand span,
    .app-nav-item span {
        display: none;
    }
}

/* ── Layout: App Mobile (<768px) ────────────────────────────────── */
.mobile-shell {
    min-height: 100vh;
    background: var(--surface);
    padding-bottom: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom) + var(--space-4));
}

.mobile-header {
    height: 56px;
    background: var(--paper);
    border-bottom: var(--border);
    padding: 0 var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 35;
}

.mobile-content {
    padding: var(--space-4);
}

.mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--paper);
    border-top: var(--border);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    z-index: 50;
}

.mobile-tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 2px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--muted);
}

.mobile-tabbar__item--active {
    color: var(--blue-700);
}

.mobile-tabbar__scan {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 44px;
    margin: -14px auto 0;
    padding: 6px 12px;
    border-radius: var(--radius-chip);
    background: var(--red-600);
    color: #FFFFFF;
    font-size: 0.6875rem;
    font-weight: 700;
    box-shadow: var(--shadow-float);
}

.mobile-tabbar__scan:hover {
    color: #FFFFFF;
    background: #B01E2D;
}

/* ── Offline Page ───────────────────────────────────────────────── */
.offline-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4);
    text-align: center;
}

.offline-card {
    max-width: 460px;
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius-card);
    padding: var(--space-8);
}
/* ── Fase 2: Public Landing, Static Pages & Mobile Nav Extensions ── */

.pub-mobile-menu {
    display: none;
    position: relative;
}

.pub-mobile-menu summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: var(--border);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
}

.pub-mobile-menu summary::-webkit-details-marker {
    display: none;
}

.pub-mobile-drawer {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(88vw, 300px);
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-float);
    padding: var(--space-4);
    display: grid;
    gap: var(--space-2);
    z-index: 60;
}

.pub-mobile-drawer a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-weight: 500;
}

.pub-mobile-drawer a:hover {
    background: var(--surface);
    color: var(--blue-700);
}

@media (max-width: 900px) {
    .pub-mobile-menu {
        display: block;
    }
    .pub-header__actions .btn {
        min-height: 40px;
        padding: 0 var(--space-3);
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .pub-header__actions .btn-secondary {
        display: none;
    }
}

.section {
    padding: var(--space-16) 0;
}

.section--surface {
    background: var(--surface);
    border-top: var(--border);
    border-bottom: var(--border);
}

.section--navy {
    background: var(--blue-900);
    color: #FFFFFF;
}

.section--navy h2,
.section--navy h3 {
    color: #FFFFFF;
}

.section-head {
    max-width: 680px;
    margin-bottom: var(--space-8);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue-700);
    margin-bottom: var(--space-2);
}

.section-title {
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
    margin-bottom: var(--space-3);
}

.section-desc {
    color: var(--muted);
    font-size: 1.0625rem;
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
}

.cards-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
}

@media (max-width: 900px) {
    .cards-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .section { padding: var(--space-10) 0; }
    .cards-3, .cards-2 { grid-template-columns: 1fr; }
}

.trust-strip {
    background: var(--surface);
    border-bottom: var(--border);
    padding: var(--space-5) 0;
}

.trust-strip__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.faq-list {
    display: grid;
    gap: var(--space-3);
}

.faq-item {
    border: var(--border);
    border-radius: var(--radius-card);
    background: var(--paper);
    padding: var(--space-4) var(--space-5);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--blue-900);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-height: 28px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] summary {
    margin-bottom: var(--space-3);
    color: var(--blue-700);
}

.faq-item p {
    color: var(--muted);
    font-size: 0.9375rem;
}

.auth-mobile-strip {
    display: none;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    margin-bottom: var(--space-5);
    border-radius: var(--radius-sm);
    background: var(--blue-900);
    color: #FFFFFF;
    font-size: 0.8125rem;
    position: relative;
    overflow: hidden;
}

@media (max-width: 900px) {
    .auth-mobile-strip {
        display: flex;
    }
    .auth-main {
        padding: var(--space-5) var(--space-4);
        align-items: flex-start;
    }
    .auth-card {
        padding: var(--space-6) var(--space-5);
    }
}
/* ── Fase 5: Studio Laporan 3-Panel, Mobile 3-Tab & Print PDF ──── */

.studio-mobile-tabs {
    display: none;
    margin-bottom: var(--space-4);
}

.studio-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 310px;
    gap: var(--space-5);
    align-items: start;
}

.studio-panel {
    background: var(--paper);
    border: var(--border);
    border-radius: var(--radius-card);
    padding: var(--space-5);
}

.studio-doc {
    line-height: 1.75;
    font-size: 0.96875rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.match-hl {
    padding: 1px 4px;
    border-radius: 4px;
    cursor: pointer;
    border-bottom: 2px solid var(--blue-700);
    background: var(--blue-100);
    color: var(--ink);
    transition: outline var(--ease), background-color var(--ease);
}

.match-hl--mirip {
    background: var(--red-100);
    border-bottom-color: var(--red-600);
}

.match-hl--active {
    outline: 2px solid var(--blue-900);
    outline-offset: 1px;
}

.source-item {
    border: var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-3);
    cursor: pointer;
    transition: border-color var(--ease), background-color var(--ease);
}

.source-item--active,
.source-item:hover {
    border-color: var(--blue-700);
    background: var(--surface);
}

@media (max-width: 1023px) and (min-width: 768px) {
    .studio-grid {
        grid-template-columns: 1fr 1fr;
    }
    .studio-panel--left {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .studio-mobile-tabs {
        display: flex;
    }
    .studio-grid {
        grid-template-columns: 1fr;
    }
    .studio-panel--hidden-mobile {
        display: none;
    }
}

@media print {
    .no-print { display: none !important; }
    body { background: #FFFFFF !important; }
    .card, .studio-panel { border: 1px solid #CBD5E1 !important; box-shadow: none !important; }
}
