@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,400&display=swap');

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

body {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #222;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    background: #fff;
}

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

h1 + p.subtitle {
    font-weight: 300;
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
}

h2 {
    font-weight: 700;
    font-size: 22px;
    margin-top: 48px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
}

h3 {
    font-weight: 700;
    font-size: 17px;
    margin-top: 28px;
    margin-bottom: 8px;
}

p {
    margin-bottom: 0.6em;
}

strong {
    font-weight: 700;
}

em {
    font-style: italic;
}

a {
    color: #2266aa;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 20px;
    font-size: 14px;
}

th, td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
}

th {
    font-weight: 700;
    background: #f7f7f7;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

tr:last-child td {
    border-bottom: none;
}

code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
}

ul, ol {
    margin: 8px 0 16px 24px;
}

li {
    margin-bottom: 4px;
}

.note {
    background: #f0f6ff;
    border-left: 3px solid #4488cc;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 14px;
}

.warning {
    background: #fff8f0;
    border-left: 3px solid #cc8844;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 14px;
}

.gesture-table td:first-child {
    font-weight: 700;
    white-space: nowrap;
}

.toc {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    padding: 20px 28px;
    margin: 24px 0;
    border-radius: 4px;
}

.toc h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.toc ol {
    margin: 0;
    padding-left: 20px;
}

.toc li {
    margin-bottom: 3px;
    font-size: 15px;
}

.toc a {
    color: #333;
}

.placeholder {
    background: #f9f9f9;
    border: 2px dashed #ccc;
    padding: 24px;
    margin: 16px 0;
    text-align: center;
    color: #999;
    font-style: italic;
    border-radius: 4px;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}
