:root {
    --primary: #2563eb;
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg: #f3f4f6;
    --card: #ffffff;
    --border: #e5e7eb;
}
html, body {
    overflow-x: hidden;
}
img, a {
    max-width: 100%;
}
body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 20px;
    line-height: 1.5;
}
main {
    max-width: 800px;
    margin: 0 auto;
}
h1 {
    font-size: 1.5rem;
    margin-top: 0;
}
.search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    position: sticky;
    top: 20px;
    z-index: 10;
}
input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
button {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}
button:hover {
    background: #1d4ed8;
}
.honesty-line {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.hidden {
    display: none !important;
}
.results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-x: hidden;
}
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
    overflow-x: hidden;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}
.badge.direct { background: #dcfce7; color: #166534; }
.badge.partial { background: #fef9c3; color: #854d0e; }
.badge.topical { background: #f3f4f6; color: #374151; }
.context {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.passage {
    margin-bottom: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}
mark {
    background: #fde047;
    color: inherit;
}
.links {
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.links a {
    color: var(--primary);
    text-decoration: none;
}
.links a:hover {
    text-decoration: underline;
}
.also-in {
    color: var(--text-muted);
}
.state-message {
    padding: 24px;
    background: var(--card);
    border-radius: 8px;
    border: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}
footer {
    max-width: 800px;
    margin: 40px auto 20px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}
@media (max-width: 375px) {
    body { padding: 12px; }
    .search-box { flex-direction: column; }
    button { width: 100%; }
    .links { flex-direction: column; gap: 8px; }
    .links a {
        display: block;
        padding: 8px;
        background: var(--bg);
        text-align: center;
        border-radius: 4px;
    }
}
