/* Shared base styles — clean corporate hiring page */

:root {
    --text: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #888;
    --bg: #fff;
    --bg-secondary: #f5f5f5;
    --border: #ddd;
    --link: #0066cc;
    --link-visited: #551a8b;
    --accent: #2563eb;
    --accent-light: #dbeafe;
    --success: #16a34a;
    --success-light: #dcfce7;
    --code-bg: #f4f4f4;
    --max-width: 740px;
}

[data-theme="dark"] {
    --text: #e0e0e0;
    --text-secondary: #aaa;
    --text-muted: #777;
    --bg: #1a1a1a;
    --bg-secondary: #252525;
    --border: #333;
    --link: #6baaef;
    --link-visited: #b39ddb;
    --accent: #3b82f6;
    --accent-light: #1e3a5f;
    --success: #22c55e;
    --success-light: #14532d;
    --code-bg: #2d2d2d;
}

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

html { font-size: 16px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

header {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    margin-bottom: 40px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

header h1 { font-size: 1.4rem; font-weight: 700; margin: 0; }
header h1 a { color: var(--text); text-decoration: none; }
header h1 a:hover { text-decoration: underline; }

header nav {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    align-items: center;
}

header nav a { color: var(--text-secondary); text-decoration: none; }
header nav a:hover { color: var(--link); text-decoration: underline; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    margin-top: 60px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.error {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 4px solid #dc2626;
    padding: 16px 20px;
    color: var(--text);
    font-size: 0.95rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

@media (max-width: 600px) {
    html { font-size: 15px; }
    header .container { flex-direction: column; gap: 8px; }
    .container { padding: 0 16px; }
}
