:root {
    --primary: #181d26;
    --primary-active: #0d1218;
    --ink: #181d26;
    --body-text: #333840;
    --muted: #41454d;
    --hairline: #dddddd;
    --canvas: #ffffff;
    --surface-soft: #f8fafc;
    --surface-strong: #e0e2e6;
    --signature-coral: #aa2d00;
    --signature-forest: #0a2e0e;
    --signature-cream: #f5e9d4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--body-text); margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; }
a:hover { text-decoration: none; }
h1, h2, h3 { font-weight: 400; color: var(--ink); margin: 0 0 16px; }
h1 { font-size: 38px; line-height: 1.2; }
h2 { font-size: 26px; margin-top: 40px; }
p { line-height: 1.6; margin: 0 0 16px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff; padding: 8px 16px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }

.sw-topbar { background: var(--canvas); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 40; }
.sw-topbar-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 64px; }
.sw-logo { font-size: 18px; font-weight: 500; color: var(--ink); text-decoration: none; }
.sw-logo span { color: var(--muted); font-weight: 400; }
.sw-top-nav { display: flex; gap: 28px; }
.sw-top-nav a { color: var(--ink); font-size: 15px; text-decoration: none; font-weight: 500; }
.sw-nav-toggle { display: none; background: var(--primary); color: #fff; border: none; border-radius: 12px; padding: 8px 16px; font-size: 14px; }
.sw-mobile-nav { display: none; flex-direction: column; padding: 12px 24px 20px; border-top: 1px solid var(--hairline); }
.sw-mobile-nav a { padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.sw-mobile-nav.open { display: flex; }

.sw-layout { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 0 24px; }
.sw-sidebar { padding: 32px 0; }
.sw-sidebar h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.sw-sidebar ul { list-style: none; margin: 0; padding: 0; }
.sw-sidebar li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.sw-count { color: var(--muted); }
.sw-main { padding: 32px 0 64px; min-width: 0; }

.sw-hero { padding: 20px 0 24px; }
.sw-hero h1 { max-width: 680px; }
.sw-hero p { font-size: 18px; max-width: 600px; }

.btn-airtable { display: inline-block; padding: 16px 24px; border-radius: 12px; font-size: 15px; font-weight: 500; text-decoration: none; border: none; cursor: pointer; }
.btn-airtable-primary { background: var(--primary); color: #fff; }
.btn-airtable-primary:hover { background: var(--primary-active); text-decoration: none; }
.btn-airtable-secondary { background: var(--canvas); color: var(--ink); border: 1px solid var(--hairline); }
.btn-airtable-secondary:hover { text-decoration: none; }

.signature-card { border-radius: 12px; padding: 48px; color: #fff; margin: 40px 0; }
.signature-coral { background: var(--signature-coral); }
.signature-forest { background: var(--signature-forest); }
.signature-card h2 { color: #fff; margin-top: 0; }
.signature-card p { color: rgba(255,255,255,0.85); }

.sw-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.sw-card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.sw-card:hover { text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.sw-card .sw-tag { display: inline-block; background: var(--surface-soft); color: var(--ink); font-size: 11px; font-weight: 500; padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; align-self: flex-start; text-transform: uppercase; letter-spacing: 0.4px; }
.sw-card h3 { font-size: 18px; margin-bottom: 8px; }
.sw-card p { font-size: 14px; margin-bottom: 0; color: var(--muted); }
.sw-card .sw-date { font-size: 12px; color: var(--muted); margin-top: 16px; }

.sw-breadcrumb { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.sw-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0; gap: 4px; }
.sw-breadcrumb a { color: var(--muted); text-decoration: none; }
.sw-breadcrumb .sep { margin: 0 4px; }

.sw-toc { background: var(--surface-soft); border-radius: 12px; padding: 24px; margin: 24px 0 32px; }
.sw-toc h2 { margin: 0 0 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.sw-toc ul { margin: 0; padding-left: 20px; }

.sw-faq-item { border-bottom: 1px solid var(--hairline); padding: 16px 0; }
.sw-faq-item summary { cursor: pointer; font-weight: 500; font-size: 16px; list-style: none; }
.sw-faq-item summary::-webkit-details-marker { display: none; }
.sw-faq-item summary::before { content: '+ '; }
.sw-faq-item[open] summary::before { content: '– '; }
.sw-faq-item p { margin-top: 12px; }

.sw-disclaimer { background: var(--signature-cream); border-radius: 12px; padding: 20px 24px; font-size: 14px; color: #333; margin: 24px 0; }

.sw-related { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--hairline); }
.sw-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.sw-related-card { display: block; background: var(--surface-soft); border-radius: 10px; padding: 16px; text-decoration: none; color: inherit; }
.sw-related-card:hover { text-decoration: none; }
.sw-related-category { font-size: 11px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.sw-related-title { font-size: 14px; }

form.sw-form { max-width: 520px; }
.sw-form-group { margin-bottom: 20px; }
.sw-form-group label { display: block; margin-bottom: 6px; font-size: 14px; }
.sw-form-group input, .sw-form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--hairline); border-radius: 6px; font-family: inherit; font-size: 15px; }
.sw-form-group input:focus, .sw-form-group textarea:focus { outline: none; border-color: var(--ink); }
.sw-form-status { font-size: 14px; margin-top: 12px; }
.sw-form-status.success { color: #1a7f43; }
.sw-form-status.loading { color: var(--muted); }

.sw-cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary); color: #fff; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; z-index: 100; }
.sw-cookie-banner p { color: #fff; margin: 0; font-size: 14px; max-width: 640px; }
.sw-cookie-actions { display: flex; gap: 12px; }
.sw-cookie-actions button { border-radius: 12px; padding: 8px 18px; border: none; cursor: pointer; font-size: 14px; }
#cookie-accept { background: #fff; color: var(--ink); }
#cookie-reject { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }

.sw-footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: 56px 24px 32px; margin-top: 40px; }
.sw-footer-inner { max-width: 1280px; margin: 0 auto 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.sw-footer-col h3, .sw-footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.sw-footer-col ul { list-style: none; padding: 0; margin: 0; }
.sw-footer-col li { margin-bottom: 8px; }
.sw-footer-col a { font-size: 14px; color: var(--muted); text-decoration: none; }
.sw-footer-col p { font-size: 13px; color: var(--muted); }
.sw-footer-bottom { max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--hairline); padding-top: 24px; font-size: 12px; color: var(--muted); }
.sw-footer-bottom a { color: var(--muted); }

@media (max-width: 900px) {
    .sw-top-nav { display: none; }
    .sw-nav-toggle { display: block; }
    .sw-layout { grid-template-columns: 1fr; }
    .sw-sidebar { padding: 16px 0; }
    .sw-hero h1 { font-size: 28px; }
    .signature-card { padding: 28px; }
    .sw-footer-inner { grid-template-columns: 1fr; }
}
