/* Local layer for /sharing/. The reset, design tokens, .skip-link,
   .nav-links and .footer-copy come from /base.css; the nav shell,
   footer chrome and page body stay local per the note at the top of
   base.css. */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-top: 44px;
}

/* === Site Nav === */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 44px;
    background: var(--surface);
    border-bottom: 1px solid var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.site-nav-inner {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-brand {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.nav-brand:hover {
    color: var(--green);
    background: rgba(61, 169, 252, 0.08);
}
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.15s;
}
.nav-hamburger:hover {
    background: var(--surface2);
}
.theme-toggle {
    margin-left: auto;
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
}
.theme-toggle:hover {
    color: var(--yellow);
    background: rgba(128, 128, 128, 0.1);
}

@media (max-width: 768px) {
    .nav-hamburger { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 44px;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--surface2);
        flex-direction: column;
        padding: 8px 20px 12px;
        gap: 2px;
        z-index: 199;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        display: block;
        padding: 8px 10px;
        font-size: 0.82rem;
    }
}

/* === Page body === */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 40px;
}
.breadcrumb {
    font-size: 0.78rem;
    color: var(--text-dim);
    padding: 8px 0;
    max-width: 820px;
    margin: 0 auto;
}
.breadcrumb a {
    color: var(--green);
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

.doc-content {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 820px;
    margin: 0 auto;
}
.doc-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.doc-content h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--green);
    margin: 28px 0 8px;
}
.doc-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}
.doc-content .lede {
    font-size: 0.95rem;
    color: var(--text-dim);
    border-left: 3px solid var(--accent);
    padding-left: 14px;
}
.doc-content ol,
.doc-content ul {
    padding-left: 24px;
    margin-bottom: 12px;
}
.doc-content li {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 6px;
}
.doc-content a {
    color: var(--green);
}
.doc-content code {
    font-family: var(--mono);
    font-size: 0.82em;
    background: var(--bg);
    border-radius: 4px;
    padding: 1px 5px;
    word-break: break-word;
}
.doc-content .caveat {
    background: var(--bg);
    border-left: 3px solid var(--yellow);
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 0.86rem;
    color: var(--text-dim);
}
.doc-content .caveat strong { color: var(--yellow); }

/* === Control table === */
.control-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 16px;
    font-size: 0.84rem;
}
.control-table th,
.control-table td {
    text-align: left;
    vertical-align: top;
    padding: 8px 10px;
    border-bottom: 1px solid var(--surface2);
    line-height: 1.6;
}
.control-table thead th {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}
.control-table tbody td:first-child {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

/* === Site Footer === */
.site-footer {
    text-align: center;
    padding: 24px 16px;
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.7;
    border-top: 1px solid var(--surface2);
}

@media (max-width: 800px) {
    .doc-content { padding: 20px 16px; }
    .control-table tbody td:first-child { white-space: normal; }
}
