/**
 * ====================================================================
 * ARSIP AS-BUILT DRAWING & OPNAME LAPANGAN (PROTOTIPE APP)
 * 01-reset.css - CSS Reset & Base Normalization
 * ====================================================================
 * Aturan:
 * - Tidak ada sudut lancip pada kontrol antarmuka
 * - Target sentuh minimum >= 44px
 * - Zero overflow horizontal pada 360px
 * ====================================================================
 */

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-family);
  font-size: var(--font-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-main);
  background-color: var(--color-bg-base);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Aksesibilitas: Ring Fokus Terlihat */
:focus-visible {
  outline: 2px solid var(--color-primary-base);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Media & Gambar */
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Tautan */
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

/* Form Controls & Tombol Normalisasi */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  background: transparent;
  border: 1px solid transparent;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
  -webkit-appearance: button;
  touch-action: manipulation;
  user-select: none;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Semantik List */
ul,
ol {
  list-style: none;
}

/* Tabel */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: middle;
}

/* Tipografi Heading */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-main);
}

h1 { font-size: var(--font-3xl); }
h2 { font-size: var(--font-2xl); }
h3 { font-size: var(--font-xl); }
h4 { font-size: var(--font-lg); }
h5 { font-size: var(--font-base); }
h6 { font-size: var(--font-sm); }

p {
  margin-bottom: var(--space-3);
}

p:last-child {
  margin-bottom: 0;
}

/* Target Sentuh Wajib >= 44px untuk Semua Elemen Interaktif Utama */
button,
.btn,
.form-control,
.form-select,
.chip,
.topbar__link,
.sidebar__link,
.bottom-nav__item {
  min-height: var(--min-touch-target);
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-md); /* Menghilangkan sudut lancip */
}

/* Penegasan Tanpa Sudut Lancip pada Seluruh Kontainer */
dialog,
fieldset,
.card,
.stat-card,
.task-card,
.badge,
.modal__content,
.bottom-sheet__content,
.alert,
.offline-banner {
  border-radius: var(--radius-lg);
}

/* Utility Screen Reader Only */
.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;
}
