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

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

nav {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

nav .logo {
    font-weight: 700;
    font-size: 16px;
    color: #1565c0;
    text-decoration: none;
}

nav .nav-links { display: flex; gap: 16px; }

nav .nav-links a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

nav .nav-links a:hover { background: #f0f0f0; }
nav .nav-links a.active { color: #1565c0; font-weight: 600; background: #e3f2fd; }

main {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 16px 64px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.last-updated {
    color: #999;
    font-size: 13px;
    margin-bottom: 32px;
}

section {
    margin-bottom: 32px;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}

h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: #444;
}

p {
    margin-bottom: 12px;
    color: #555;
}

ul {
    padding-left: 24px;
    margin-bottom: 12px;
}

li {
    margin-bottom: 6px;
    color: #555;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

th, td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

td { color: #555; }

code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

a { color: #1565c0; }

.note {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

footer {
    text-align: center;
    padding: 24px;
    color: #aaa;
    font-size: 12px;
    border-top: 1px solid #e0e0e0;
}

footer a { color: #999; }

/* Index page cards */
.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 540px) { .cards { grid-template-columns: 1fr; } }

.index-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}

.index-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

.index-card h2 {
    font-size: 16px;
    color: #1565c0;
    margin-bottom: 6px;
}

.index-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Print */
@media print {
    nav, footer { display: none; }
    main { padding: 0; max-width: none; }
    body { font-size: 11pt; background: #fff; }
    table { box-shadow: none; }
}