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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    background: #f8f8fa;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background: #1a1a2e;
    color: white;
    padding: 2.5rem 0;
}

.header-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subtitle {
    color: #e2b714;
    font-size: 1.1rem;
    margin-top: 0.25rem;
}

/* Main */
main {
    padding: 2rem 0 3rem;
}

section {
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #e2b714;
}

/* Document info */
.document-info dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.4rem 1rem;
}

.document-info dt {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.document-info dd {
    font-size: 0.95rem;
}

/* File cards */
.file-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.file-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.file-card:hover {
    border-color: #e2b714;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.file-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #d32f2f;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.file-icon.json {
    background: #1a1a2e;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.file-details strong {
    font-size: 0.95rem;
}

.file-details span {
    font-size: 0.82rem;
    color: #666;
}

.file-type {
    font-family: monospace;
    font-size: 0.75rem !important;
    color: #999 !important;
}

/* PDF viewer */
.pdf-viewer embed {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* JSON relation */
.json-relation p,
.json-relation ul {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.json-relation ul {
    padding-left: 1.5rem;
}

.json-relation li {
    margin-bottom: 0.3rem;
}

code {
    background: #eef;
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.88em;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #999;
    text-align: center;
    padding: 1.25rem 0;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .file-cards {
        grid-template-columns: 1fr;
    }
    .document-info dl {
        grid-template-columns: 1fr;
    }
}
