:root {
    --bg: #f7f6f2;
    --surface: #ffffff;
    --ink: #1b1d1f;
    --muted: #5f666d;
    --accent: #0f5c58;
    --accent-soft: #e6f1ef;
    --border: #dfe3e1;
    --radius: 12px;
    --danger: #8a1c1c;
    --danger-soft: #fbeaea;
    --success: #1f5c37;
    --success-soft: #e8f4ec;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
}

h1,
h2,
h3 {
    line-height: 1.25;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(1.65rem, 6vw, 2.1rem);
}

h2 {
    font-size: 1.35rem;
}

h3 {
    font-size: 1.08rem;
}

p {
    margin: 0 0 12px;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-thickness: 2px;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    overflow-wrap: anywhere;
}

:focus-visible {
    outline: 3px solid var(--accent-soft);
    outline-offset: 2px;
}

.wrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 16px 48px;
}

.site-head {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.head-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    font-weight: 800;
    letter-spacing: 0.12em;
    font-size: 1.02rem;
}

.brand-sub {
    color: var(--muted);
    font-size: 0.86rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    color: var(--ink);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.94rem;
}

.site-nav a:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.site-foot {
    margin-top: 24px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.9rem;
}

.site-foot .wrap {
    padding-top: 20px;
    padding-bottom: 24px;
}

.site-foot p {
    margin: 0 0 4px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lead {
    font-size: 1.06rem;
    max-width: 60ch;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.875rem;
}

.hero {
    padding: 16px 0 8px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: var(--accent);
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    background: #0b4a47;
    border-color: #0b4a47;
}

.btn.secondary {
    background: transparent;
    color: var(--accent);
}

.btn.secondary:hover {
    background: var(--accent-soft);
}

.btn.danger {
    background: transparent;
    border-color: var(--danger);
    color: var(--danger);
}

.btn.danger:hover {
    background: var(--danger-soft);
}

.btn.small {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.card h2,
.card h3 {
    margin-top: 0;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.steps {
    margin-top: 24px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
}

.note {
    margin-top: 24px;
}

.page-head {
    margin: 8px 0 20px;
}

.section {
    margin-top: 32px;
}

.section > h2 {
    margin-bottom: 12px;
}

.error,
.success {
    border-radius: var(--radius);
}

.error {
    border-color: #e2b6b6;
    background: var(--danger-soft);
    color: var(--danger);
}

.success {
    border-color: #b9dbc6;
    background: var(--success-soft);
    color: var(--success);
}

.flash {
    margin-bottom: 18px;
    border-color: #b9dbc6;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.link-box {
    display: block;
    padding: 12px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: var(--accent-soft);
}

.form .field + .field {
    margin-top: 14px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.field input,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}

.field textarea {
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--accent);
}

.help {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.form .btn {
    margin-top: 18px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.92rem;
}

.tabs a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tabs a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

th,
td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.table-data {
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.table-data th,
.table-data td {
    min-width: 90px;
}

.inline-form {
    display: inline-flex;
    margin: 4px 6px 4px 0;
}

.link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-right: 8px;
    font-weight: 600;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
    border-left: 2px solid var(--border);
}

.timeline li {
    position: relative;
    padding: 0 0 18px 6px;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 5px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    background: var(--accent);
}

.timeline .time {
    display: block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.88rem;
}

.timeline strong {
    display: block;
}

.day + .day {
    margin-top: 20px;
}

.agenda-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.agenda-time {
    margin: 0 0 4px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.copy-fallback {
    position: fixed;
    top: -1000px;
    left: 0;
    opacity: 0;
}

@media (max-width: 719px) {
    .table-jadwal,
    .table-jadwal tbody,
    .table-jadwal tr,
    .table-jadwal td {
        display: block;
        width: 100%;
    }

    .table-jadwal thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .table-jadwal tr {
        margin-bottom: 12px;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--surface);
    }

    .table-jadwal td {
        padding: 4px 0;
        border-bottom: 0;
    }

    .table-jadwal td::before {
        content: attr(data-label);
        display: block;
        color: var(--muted);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }
}

@media (min-width: 720px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding-top: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}