/* =============================================================
   Laboratorium Kimia Dasar — UPN "Veteran" Yogyakarta
   Open Recruitment Asisten Laboratorium 2026/2027
   Design: lab-worksheet editorial — paper, ink, deep green, brass
   ============================================================= */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --paper: #f4f1e8;
  --paper-2: #ece7d8;
  --card: #faf8f1;
  --ink: #22271f;
  --ink-2: #5a6053;
  --ink-3: #63685b;
  --line: #d8d2bf;
  --line-strong: #b9b29a;
  --green: #1d4a38;
  --green-2: #163a2c;
  --green-ink: #0e2b1f;
  --green-tint: #e3e8dd;
  --brass: #a3760e;
  --brass-2: #7a570a;
  --red: #9c3a2b;
  --red-tint: #f6e8e4;
  --field-bg: #fffdf7;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'Consolas', monospace;

  --wrap: 1120px;
  --r: 2px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

.wrap {
  width: min(var(--wrap), calc(100% - 3rem));
  margin-inline: auto;
}

::selection { background: var(--green); color: var(--paper); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.count-strip :focus-visible,
.cta-band :focus-visible,
.success-card .top :focus-visible { outline-color: var(--paper); }

/* ---------- type utilities ---------- */
.overline {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-2);
}

.sec-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 2.2rem;
}
.sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }

.lead { font-size: 1.09rem; color: var(--ink-2); max-width: 34em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--green-ink);
  border-radius: var(--r);
  background: var(--green);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 3px 3px 0 rgba(14, 43, 31, 0.18);
}
.btn:hover { background: var(--green-2); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(14, 43, 31, 0.22); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(14, 43, 31, 0.2); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn--ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--green-tint); box-shadow: none; }

.btn--paper {
  background: var(--paper);
  color: var(--green-ink);
  border-color: var(--paper);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}
.btn--paper:hover { background: #fff; }

.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

.btn--danger {
  background: transparent; color: var(--red); border-color: var(--red);
  box-shadow: none;
}
.btn--danger:hover { background: var(--red-tint); }

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.8rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}
.brand-mark {
  width: 40px; height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--green-ink);
  border-radius: var(--r);
  background: var(--green);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-logos { display: flex; align-items: center; gap: 0.4rem; flex: none; }
.brand-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-strong);
  object-fit: contain;
  padding: 2px;
}
.brand-text b {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}
.brand-text span {
  display: block;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
}
.site-nav a:not(.btn):hover { color: var(--green); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='194' viewBox='0 0 112 194'%3E%3Cg fill='none' stroke='%23d8d2bf' stroke-width='1' opacity='0.55'%3E%3Cpath d='M56 0 L112 32.3 L112 97 L56 129.3 L0 97 L0 32.3 Z'/%3E%3Cpath d='M56 129.3 L56 194'/%3E%3Cpath d='M112 97 L112 161.7'/%3E%3Cpath d='M0 97 L0 161.7'/%3E%3C/g%3E%3C/svg%3E")
    var(--paper);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--paper) 38%, rgba(244, 241, 232, 0.72) 62%, rgba(244, 241, 232, 0.25));
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
  padding-block: 5.5rem 5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  margin: 1.1rem 0 1.3rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--green);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }
.hero-note {
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-2);
}
.hero-note b { color: var(--brass-2); font-weight: 600; }

/* — element tiles (AsLaB) — */
.hero-art { display: grid; place-items: center; }
.tile-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  width: min(330px, 100%);
}
.el-tile {
  position: relative;
  aspect-ratio: 1;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: var(--card);
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 4px 4px 0 rgba(34, 39, 31, 0.14);
}
.el-tile .num {
  position: absolute;
  top: 0.55rem;
  left: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-2);
}
.el-tile .mass {
  position: absolute;
  top: 0.55rem;
  right: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #8b9082; /* dekoratif (aria-hidden), boleh lebih pudar dari --ink-3 */
}
.el-tile .sym {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.el-tile .name {
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.el-tile--green { background: var(--green); border-color: var(--green-ink); color: var(--paper); }
.el-tile--green .num, .el-tile--green .mass, .el-tile--green .name { color: rgba(244, 241, 232, 0.75); }
.el-tile--brass { background: #f0e5c9; }
.el-tile--label {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
  box-shadow: none;
  align-items: flex-start;
  justify-content: flex-end;
}
.el-tile--label .sym { font-size: 1rem; font-weight: 400; font-style: italic; color: var(--ink-2); }

/* ---------- countdown strip ---------- */
.count-strip {
  background: var(--green-ink);
  color: var(--paper);
  border-bottom: 1px solid var(--green-ink);
}
.count-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding-block: 1.15rem;
}
.count-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.66);
}
.countdown {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
}
.count-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 66px;
  padding: 0.5rem 0.7rem 0.45rem;
  border: 1px solid rgba(244, 241, 232, 0.26);
  border-radius: var(--r);
  background: rgba(244, 241, 232, 0.05);
}
.count-cell .n {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.count-cell .n.tick { animation: numTick 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes numTick {
  from { transform: translateY(-0.5em); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.count-cell .u {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.62);
}
.count-sep {
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(244, 241, 232, 0.45);
  animation: sepPulse 2s ease-in-out infinite;
}
@keyframes sepPulse {
  50% { opacity: 0.2; }
}
.count-track {
  height: 3px;
  background: rgba(244, 241, 232, 0.14);
}
.count-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #c9a24b;
  transition: width 1s linear;
}
.count-until {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: rgba(244, 241, 232, 0.66);
}

/* ---------- sections ---------- */
.section { padding-block: 5.2rem; }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 0.9rem; }
.section .intro { color: var(--ink-2); max-width: 40em; margin-bottom: 2.8rem; }

/* — requirement tiles grid — */
.req-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.req-tile {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  padding: 1.15rem 1.15rem 1.05rem;
  min-height: 172px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.req-tile:hover {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 rgba(34, 39, 31, 0.1);
  transform: translate(-1px, -1px);
}
.req-tile .num {
  position: absolute;
  top: 0.8rem;
  right: 0.95rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-3);
}
.req-tile .sym {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
}
.req-tile .sym small {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brass-2);
  margin-left: 0.3rem;
}
.req-tile h3 { font-family: var(--sans); font-size: 0.98rem; font-weight: 600; margin-top: auto; padding-top: 1.4rem; }
.req-tile p { font-size: 0.86rem; color: var(--ink-2); line-height: 1.5; margin-top: 0.25rem; }

/* — timeline — */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
}
.tl-step { padding: 1.6rem 1.5rem 1.8rem; border-left: 1px solid var(--line); position: relative; }
.tl-step:first-child { border-left: 0; }
.tl-step .idx {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.tl-step .date {
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--green);
  margin-top: 0.9rem;
}
.tl-step h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; margin-top: 0.3rem; }
.tl-step p { font-size: 0.86rem; color: var(--ink-2); margin-top: 0.45rem; line-height: 1.5; }
.tl-step--now { background: var(--green-tint); }
.tl-badge {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--green);
  padding: 0.2rem 0.5rem;
  border-radius: var(--r);
}

/* — berkas list — */
.doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 760px; }
.doc-item {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
}
.doc-item .doc-ic {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--brass-2);
}
.doc-item h3 { font-family: var(--sans); font-size: 0.98rem; font-weight: 600; }
.doc-item p { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.2rem; line-height: 1.5; }

/* — foto sampingan di banner CTA — */
.cta-photo {
  margin: 0;
  flex: none;
  width: min(330px, 100%);
  padding: 9px 9px 12px;
  background: var(--paper);
  border-radius: var(--r);
  transform: rotate(-1.6deg);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.28);
}
.cta-photo img { display: block; width: 100%; border-radius: 1px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='194' viewBox='0 0 112 194'%3E%3Cg fill='none' stroke='%23234d3b' stroke-width='1' opacity='0.5'%3E%3Cpath d='M56 0 L112 32.3 L112 97 L56 129.3 L0 97 L0 32.3 Z'/%3E%3Cpath d='M56 129.3 L56 194'/%3E%3Cpath d='M112 97 L112 161.7'/%3E%3Cpath d='M0 97 L0 161.7'/%3E%3C/g%3E%3C/svg%3E")
    var(--green-ink);
  color: var(--paper);
}
.cta-band .wrap {
  padding-block: 4.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.cta-band h2 em { font-style: italic; font-weight: 400; color: #cfe0d0; }
.cta-band p { color: rgba(244, 241, 232, 0.72); margin-top: 0.6rem; max-width: 32em; }
.cta-copy .btn { margin-top: 1.7rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--paper); }
.site-foot .wrap {
  padding-block: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-foot p { font-size: 0.85rem; color: var(--ink-2); line-height: 1.6; }
.site-foot a { color: var(--green); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-foot a:hover { color: var(--green-2); }
.site-foot .mono {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* =============================================================
   FORM PENDAFTARAN
   ============================================================= */
.page-head { border-bottom: 1px solid var(--line); background: var(--paper-2); }
.page-head .wrap { padding-block: 3.2rem 2.8rem; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 1rem; }
.page-head .lead { margin-top: 0.8rem; }

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 3.4rem;
  padding-block: 3.6rem 5rem;
  align-items: start;
}

.form-aside { position: sticky; top: 84px; display: grid; gap: 1.6rem; }
.aside-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  padding: 1.4rem 1.5rem;
}
.aside-card h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 0.9rem;
}
.aside-card ul { list-style: none; display: grid; gap: 0.55rem; }
.aside-card li {
  font-size: 0.88rem;
  color: var(--ink-2);
  padding-left: 1.15rem;
  position: relative;
  line-height: 1.5;
}
.aside-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 6px; height: 6px;
  background: var(--brass);
  border-radius: 1px;
}
.aside-card .mono-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  line-height: 1.7;
}
.aside-card a { color: var(--green); font-weight: 500; text-underline-offset: 3px; }
.aside-card a:hover { color: var(--green-2); }

.reg-form { display: grid; gap: 2.6rem; }

.form-sec {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
}
.form-sec-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.form-sec-head .idx {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brass-2);
}
.form-sec-head h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; }
.form-sec-body { padding: 1.6rem 1.5rem 1.8rem; display: grid; gap: 1.4rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }

.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.88rem;
  font-weight: 600;
}
.field label .req { color: var(--red); }
.field .hint { font-size: 0.78rem; color: var(--ink-3); font-weight: 400; }
.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field input[type='password'],
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--field-bg);
  width: 100%;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 74, 56, 0.14);
}
.field .count {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  justify-self: end;
}

/* blok unduh template surat pernyataan */
.tpl-note {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-left-width: 3px;
  border-left-color: var(--brass);
  border-radius: var(--r);
  padding: 0.85rem 1rem 0.9rem;
}
.tpl-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green);
  text-underline-offset: 3px;
}
.tpl-link::before { content: "93"; font-size: 0.9rem; }
.tpl-link:hover { color: var(--green-2); }

/* custom file input */
.file-drop {
  position: relative;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r);
  background: var(--field-bg);
  padding: 1.3rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.file-drop:hover, .file-drop.drag { border-color: var(--green); background: var(--green-tint); }
.file-drop:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29, 74, 56, 0.14); }
/* tetap bisa difokus keyboard: disembunyikan visual, bukan display:none */
.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  outline: none;
}
.file-drop .doc-ic {
  flex: none;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--brass-2);
  background: var(--card);
}
.file-drop .file-label b { display: block; font-size: 0.92rem; font-weight: 600; }
.file-drop .file-label span { display: block; font-size: 0.78rem; color: var(--ink-3); margin-top: 0.15rem; }
.file-drop.has-file { border-style: solid; border-color: var(--green); background: var(--green-tint); }
.file-drop.has-file .doc-ic { color: var(--green); border-color: var(--green); }

/* pernyataan */
.agree {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-2);
  cursor: pointer;
}
.agree input {
  flex: none;
  width: 19px; height: 19px;
  margin-top: 0.2rem;
  accent-color: var(--green);
  cursor: pointer;
}

/* alert */
.alert {
  border: 1px solid var(--red);
  border-left-width: 4px;
  background: var(--red-tint);
  color: var(--red);
  border-radius: var(--r);
  padding: 0.95rem 1.2rem;
  font-size: 0.92rem;
  display: none;
}
.alert.show { display: block; }

.form-foot { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.form-foot .mono-note { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }

/* closed notice */
.closed-note {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  padding: 3rem 2.5rem;
  text-align: center;
  display: none;
}
.closed-note.show { display: block; }
.closed-note h2 { font-size: 1.8rem; margin-bottom: 0.7rem; }
.closed-note p { color: var(--ink-2); max-width: 34em; margin-inline: auto; }

/* =============================================================
   SUKSES
   ============================================================= */
.success-wrap {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding-block: 4rem;
}
.success-card {
  width: min(560px, 100%);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: 6px 6px 0 rgba(34, 39, 31, 0.14);
  overflow: hidden;
  text-align: center;
}
.success-card .top {
  background: var(--green);
  color: var(--paper);
  padding: 2.2rem 2rem 2rem;
}
.success-card .top .overline { color: rgba(244, 241, 232, 0.7); }
.success-card .top h1 { font-size: 1.9rem; margin-top: 0.7rem; }
.success-card .body { padding: 2.2rem 2rem 2.4rem; }
.reg-no {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r);
  padding: 0.9rem 1.4rem;
  display: inline-block;
  margin-block: 1rem 1.4rem;
  background: var(--field-bg);
}
.success-card .body .next ol {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
}
.success-card .body .next li { padding-left: 0; }
.success-card .body p { font-size: 0.95rem; color: var(--ink-2); max-width: 30em; margin-inline: auto; }
.join-wa {
  margin-top: 1.7rem;
  padding: 1.4rem 1.3rem 1.3rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--green-tint);
}
.join-wa-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-2);
  margin-bottom: 0.9rem;
}
.join-wa-note {
  font-size: 0.82rem;
  color: var(--ink-2);
  margin-top: 0.8rem;
}

.success-card .body .next {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 2;
  color: var(--ink-2);
  text-align: left;
}

/* =============================================================
   PENGUMUMAN
   ============================================================= */
.peng-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  gap: 3rem;
  padding-block: 3.4rem 5rem;
  align-items: start;
}
.peng-aside { position: sticky; top: 84px; display: grid; gap: 1.4rem; }

.peng-state {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  padding: 3rem 2.4rem;
  text-align: center;
}
.peng-state h2 { font-size: 1.7rem; margin: 0.7rem 0 0.6rem; }
.peng-state p { color: var(--ink-2); max-width: 34em; margin-inline: auto; }

.peng-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.peng-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.peng-toolbar input {
  font-family: var(--sans);
  font-size: 0.92rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--field-bg);
  width: min(280px, 100%);
}
.peng-toolbar input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 74, 56, 0.14);
}

.peng-list {
  list-style: none;
  counter-reset: peng;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
}
.peng-item {
  counter-increment: peng;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 1.4rem 0.95rem 3.6rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.peng-item:first-child { border-top: 0; }
.peng-item::before {
  content: counter(peng, decimal-leading-zero);
  position: absolute;
  left: 1.4rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--brass-2);
  font-weight: 600;
}
.peng-item b {
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.peng-nim {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.peng-empty {
  text-align: center;
  padding: 2.4rem 1rem;
  color: var(--ink-3);
  font-size: 0.95rem;
}

/* varian pengumuman akhir: lebih meriah */
.peng-final .page-head {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='194' viewBox='0 0 112 194'%3E%3Cg fill='none' stroke='%23234d3b' stroke-width='1' opacity='0.45'%3E%3Cpath d='M56 0 L112 32.3 L112 97 L56 129.3 L0 97 L0 32.3 Z'/%3E%3Cpath d='M56 129.3 L56 194'/%3E%3Cpath d='M112 97 L112 161.7'/%3E%3Cpath d='M0 97 L0 161.7'/%3E%3C/g%3E%3C/svg%3E")
    var(--green-ink);
  border-bottom-color: var(--green-ink);
}
.peng-final .page-head .overline { color: #c9a24b; }
.peng-final .page-head h1 { color: var(--paper); }
.peng-final .page-head .lead { color: rgba(244, 241, 232, 0.8); max-width: 42em; }
.peng-final .page-head .lead b { color: var(--paper); }
.peng-final .peng-list { border-color: var(--ink); box-shadow: 5px 5px 0 rgba(34, 39, 31, 0.12); }
.peng-final .peng-item::before { color: var(--green); }
.peng-final .peng-item b { font-size: 1.14rem; }

/* banner pengumuman di beranda */
.peng-banner {
  display: block;
  background: var(--green-ink);
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--green-ink);
}
.peng-banner .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.95rem;
}
.peng-banner .pb-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9a24b;
}
.peng-banner .pb-text { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.peng-banner .pb-cta {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 232, 0.78);
  white-space: nowrap;
}
.peng-banner:hover .pb-cta { color: var(--paper); }

/* status seleksi di panel admin */
.stat-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  background: var(--paper-2);
  white-space: nowrap;
}
.stat-pill--lolos { background: var(--green); border-color: var(--green-ink); color: var(--paper); }
.stat-pill--gagal { background: var(--red-tint); border-color: var(--red); color: var(--red); }
.stat-pill--mati { background: transparent; border-style: dashed; color: var(--ink-3); }

.publish-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line-strong);
  border-left-width: 3px;
  border-left-color: var(--brass);
  border-radius: var(--r);
  background: var(--card);
  padding: 1rem 1.3rem;
  margin-bottom: 1.8rem;
}
.publish-bar--final { border-left-color: var(--green); }
.publish-bar .pb-info b { font-family: var(--sans); font-size: 0.95rem; }
.publish-bar .pb-info p { font-size: 0.84rem; color: var(--ink-2); margin-top: 0.15rem; }

/* =============================================================
   ADMIN
   ============================================================= */
.admin-body { background: var(--paper-2); min-height: 100vh; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.login-card {
  width: min(400px, 100%);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: 6px 6px 0 rgba(34, 39, 31, 0.14);
  padding: 2.4rem 2.2rem;
}
.login-card h1 { font-size: 1.5rem; margin: 0.8rem 0 1.6rem; }

.admin-main .wrap { padding-block: 2.4rem 4rem; }
.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.admin-topbar h1 { font-size: 1.6rem; }
.admin-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.stat-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  padding: 1.1rem 1.3rem;
}
.stat-card .k {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat-card .v {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--green);
  margin-top: 0.3rem;
  font-variant-numeric: tabular-nums;
}

.table-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
}
.table-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.3rem;
  border-bottom: 1px solid var(--line);
}
.table-tools input {
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--field-bg);
  width: min(320px, 100%);
}
.table-tools input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 74, 56, 0.14);
}
.table-scroll { overflow-x: auto; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 900px; }
.admin-table th {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-2);
  background: var(--paper-2);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.admin-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table tbody tr:hover { background: rgba(29, 74, 56, 0.045); }
.admin-table .mono { font-family: var(--mono); font-size: 0.8rem; }
.admin-table .nowrap { white-space: nowrap; }
.admin-table a { color: var(--green); font-weight: 500; }
.file-links { display: flex; gap: 0.7rem; white-space: nowrap; }
.detail-row td {
  background: var(--paper-2);
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.7;
  padding: 1.1rem 1.3rem;
}
.detail-row b { color: var(--ink); }

.empty-note {
  text-align: center;
  padding: 3.5rem 2rem;
  color: var(--ink-3);
  font-size: 0.95rem;
}

/* =============================================================
   ANIMASI
   ============================================================= */

/* entrance hero saat halaman dimuat */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero-copy > * { animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.23s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.41s; }

@keyframes tilePop {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
.tile-stack .el-tile { animation: tilePop 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.tile-stack .el-tile:nth-child(1) { animation-delay: 0.35s; }
.tile-stack .el-tile:nth-child(2) { animation-delay: 0.47s; }
.tile-stack .el-tile:nth-child(3) { animation-delay: 0.59s; }
.tile-stack .el-tile:nth-child(4) { animation-delay: 0.71s; }

/* 3D tilt + parallax — dikendalikan JS lewat --rx / --ry / --py */
.hero-art { perspective: 900px; }
.tile-stack {
  transform: translateY(var(--py, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  will-change: transform;
}
.tile-stack .el-tile:hover { transform: translateZ(22px); transition: transform 0.25s ease; }

/* scroll reveal — muncul seperti lensa yang menemukan fokus */
.rv {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(4px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rvd, 0s);
}
.rv.in { opacity: 1; transform: none; filter: none; }

/* garis section "tumbuh" saat masuk layar */
.sec-label::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.sec-label.in::after { transform: scaleX(1); }

/* foto CTA menetap miring dengan halus */
.cta-photo.rv { transform: translateY(30px) rotate(1.5deg) scale(0.96); }
.cta-photo.rv.in { transform: rotate(-1.6deg); }

/* foto tim: zoom halus saat hover */
.photo-frame { overflow: hidden; }
.photo-frame img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.photo-frame:hover img { transform: scale(1.035); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .tile-stack .el-tile { animation: none; }
  .rv { opacity: 1; transform: none; filter: none; transition: none; }
  .sec-label::after { transform: none; transition: none; }
  .count-sep { animation: none; }
  .count-cell .n.tick { animation: none; }
  .cta-photo.rv, .cta-photo.rv.in { transform: rotate(-1.6deg); }
  .tile-stack { transform: none !important; transition: none; }
  .photo-frame img { transition: none; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 3.6rem; gap: 2.6rem; }
  .hero::after { background: linear-gradient(180deg, var(--paper) 30%, rgba(244, 241, 232, 0.7)); }
  .hero-art { justify-self: start; }
  .req-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: 1fr 1fr; }
  .tl-step { border-top: 1px solid var(--line); }
  .tl-step:nth-child(-n+2) { border-top: 0; }
  .tl-step:nth-child(odd) { border-left: 0; }
  .form-layout { grid-template-columns: 1fr; gap: 2.2rem; }
  .form-aside { position: static; }
  .peng-layout { grid-template-columns: 1fr; gap: 2.2rem; }
  .peng-aside { position: static; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 2.2rem); }
  .site-nav a:not(.btn) { display: none; }
  .hero .wrap { padding-block: 2.8rem; }
  .countdown { gap: 0.4rem; }
  .count-cell { min-width: 54px; padding: 0.4rem 0.5rem 0.35rem; }
  .count-cell .n { font-size: 1.25rem; }
  .count-sep { font-size: 1rem; }
  .count-strip .wrap { justify-content: center; text-align: center; }
  .req-grid { grid-template-columns: 1fr 1fr; }
  .req-tile { min-height: 150px; }
  .timeline { grid-template-columns: 1fr; }
  .tl-step { border-left: 0; border-top: 1px solid var(--line); }
  .tl-step:first-child { border-top: 0; }
  .tl-step:nth-child(2) { border-top: 1px solid var(--line); }
  .doc-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding-block: 3.4rem; }
  .tile-stack { width: min(280px, 100%); }
  .brand-logo { width: 34px; height: 34px; }
}

@media (max-width: 820px) {
  .cta-photo { width: min(300px, 100%); }
  .cta-photo.rv.in, .cta-photo { transform: rotate(0deg); }
}
