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

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

.header {
    background: #f8f9fa;
    border-bottom: 1px solid #a2a9b1;
    padding: 0;
}

.header-top {
    background: #f6f6f6;
    padding: 0.3em 0;
    font-size: 0.8em;
    border-bottom: 1px solid #eee;
}

.header-top-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-links {
    display: flex;
    gap: 1em;
}

.user-links span {
    color: #0645ad;
    cursor: pointer;
}

.language-selector {
    display: flex;
    gap: 0.5em;
    align-items: center;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5em 1em;
    display: flex;
    align-items: center;
    gap: 1em;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #000;
}

.search-container {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-box {
    width: 100%;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 0.5em;
    border: 1px solid #a2a9b1;
    border-right: none;
    border-radius: 2px 0 0 2px;
}

.search-btn {
    padding: 0.5em 1em;
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
}

.nav-tabs {
    display: flex;
    gap: 0;
    margin-left: auto;
}

.nav-tab {
    padding: 0.5em 1em;
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-bottom: none;
    color: #0645ad;
    font-size: 0.9em;
    cursor: pointer;
}

.nav-tab.active {
    background: white;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1em;
    padding: 1em;
}

.sidebar {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    padding: 1em;
    height: fit-content;
    border-radius: 3px;
}

.sidebar h3 {
    font-size: 0.9em;
    margin-bottom: 0.5em;
    color: #222;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 0.3em;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin: 0.3em 0;
    color: #0645ad;
    cursor: pointer;
    font-size: 0.85em;
}

.sidebar li:hover {
    text-decoration: underline;
}

.main-content {
    background: white;
    border: 1px solid #a2a9b1;
    padding: 1.5em;
    border-radius: 3px;
}

.page-title {
    font-size: 2.2em;
    font-weight: normal;
    margin-bottom: 0.3em;
    border-bottom: 3px solid #a2a9b1;
    padding-bottom: 0.2em;
}

.disambiguation {
    font-style: italic;
    color: #555;
    margin-bottom: 1em;
    font-size: 0.9em;
}

.infobox {
    float: right;
    width: 300px;
    margin: 0 0 1em 1em;
    border: 1px solid #a2a9b1;
    background: #f8f9fa;
    font-size: 0.9em;
}

.infobox-title {
    background: #ccccff;
    padding: 0.5em;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #a2a9b1;
}

.infobox-image {
    text-align: center;
    padding: 1em;
    background: #f0f0f0;
    border-bottom: 1px solid #a2a9b1;
}

.profile-placeholder {
    width: 200px;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
}

.infobox-content {
    padding: 0;
}

.infobox-row {
    display: flex;
    border-bottom: 1px solid #eee;
}

.infobox-label {
    background: #f0f0f0;
    padding: 0.5em;
    font-weight: bold;
    width: 40%;
    border-right: 1px solid #eee;
}

.infobox-value {
    padding: 0.5em;
    flex: 1;
}

.content-section {
    margin: 1.5em 0;
}

.section-title {
    font-size: 1.4em;
    margin: 1em 0 0.5em 0;
    border-bottom: 1px solid #a2a9b1;
    padding-bottom: 0.2em;
}

.subsection-title {
    font-size: 1.1em;
    margin: 1em 0 0.5em 0;
    font-weight: bold;
}

.reference {
    color: #0645ad;
    font-size: 0.8em;
    vertical-align: super;
}

.toc {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    padding: 1em;
    margin: 1em 0;
    display: inline-block;
    min-width: 200px;
}

.toc-title {
    font-weight: bold;
    margin-bottom: 0.5em;
    text-align: center;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin: 0.2em 0;
    color: #0645ad;
    cursor: pointer;
    font-size: 0.9em;
}

.categories {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #a2a9b1;
    font-size: 0.9em;
}

.categories strong {
    margin-right: 0.5em;
}

.edit-section {
    float: right;
    font-size: 0.8em;
    margin-left: 1em;
}

.edit-link {
    color: #0645ad;
    background: #f8f9fa;
    padding: 0.2em 0.5em;
    border: 1px solid #a2a9b1;
    border-radius: 2px;
    cursor: pointer;
}

.edit-link:hover {
    background: #e8e9ea;
}

.page-tools {
    float: right;
    margin-bottom: 1em;
    display: flex;
    gap: 0.5em;
    font-size: 0.9em;
}

.tool-link {
    color: #0645ad;
    padding: 0.3em 0.6em;
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 2px;
    cursor: pointer;
}

.tool-link:hover {
    background: #e8e9ea;
}

.coordinates {
    float: right;
    font-size: 0.8em;
    color: #555;
    margin-left: 1em;
}

.hatnote {
    background: #f8f9fa;
    border-left: 3px solid #36c;
    padding: 0.5em 1em;
    margin: 1em 0;
    font-style: italic;
    font-size: 0.9em;
}

.navbox {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    margin: 1em 0;
    padding: 0;
}

.navbox-title {
    background: #ccccff;
    padding: 0.5em;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #a2a9b1;
}

.navbox-content {
    padding: 1em;
    text-align: center;
}

.navbox-content span {
    color: #0645ad;
    margin: 0 0.5em;
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.9em;
}

.project-table th,
.project-table td {
    border: 1px solid #a2a9b1;
    padding: 0.5em;
    text-align: left;
}

.project-table th {
    background: #eaecf0;
    font-weight: bold;
}

.award-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #fdcb6e;
    padding: 1em;
    margin: 1em 0;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
    }
    
    .infobox {
        float: none;
        width: 100%;
        margin: 1em 0;
    }
}

a {
    color: #0645ad; /* Standard Wikipedia link blue */
    text-decoration: none; /* No underline by default */
}

a:visited {
    color: #663399; /* Standard Wikipedia visited link purple */
}

a:hover {
    text-decoration: underline; /* Underline appears on hover */
}

/* External link icon, like on Wikipedia */
.main-content a[href^="http"]::after,
.infobox a[href^="http"]::after,
.sidebar a[href^="http"]::after {
    content: '';
    width: 12px;
    height: 12px;
    margin-left: 2px;
    display: inline-block;
    vertical-align: middle;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12"><path d="M6 1h5v5L8.86 3.85 4.7 8 4 7.3l4.15-4.16L6 1Z M2 3h2v1H2v6h6V8h1v2a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z" fill="%230645ad"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

/* Don't show icon for email links */
a[href^="mailto"]::after {
    content: none;
}