/*
 * Wandergang shared controls. Tokens only (see app.css); every tappable control is at least 44px tall.
 */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--on-accent);
}

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

.btn-ghost {
    border-color: transparent;
    background: transparent;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Segmented control and chips */
.segmented {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: var(--surface-2);
}

.segmented > button,
.segmented > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-2);
    font-weight: 600;
    text-decoration: none;
}

.segmented > [aria-pressed="true"],
.segmented > [aria-current="true"],
.segmented > [aria-current="page"] {
    background: var(--surface);
    color: var(--ink);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.chip[aria-pressed="true"] {
    background: var(--accent);
    color: var(--on-accent);
}

/* Lists */
.list {
    border-radius: var(--radius-card);
    background: var(--surface);
    overflow: hidden;
}

.list-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}

.list-row:last-child {
    border-bottom: 0;
}

/* Forms */
.label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
}

.input {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface-2);
    color: var(--ink);
    font-size: 16px;
}

.input::placeholder {
    color: var(--ink-2);
}

.input[aria-invalid="true"] {
    border-color: var(--danger);
}

/* Pill and headings */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 11px;
    font-weight: 600;
}

.screen-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
}
