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

body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #fff;
}

a { color: #2980b9; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ── */
#header {
    background: #fff;
    border-bottom: 2px solid #333;
    padding: 18px 0;
}

#header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.site-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.site-title a { color: #333; }
.site-title a:hover { text-decoration: none; color: #555; }

.site-desc {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

/* ── Navigation ── */
#nav {
    background: #333;
}

#nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

#nav ul li a {
    display: block;
    padding: 11px 18px;
    color: #fff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.15s;
}

#nav ul li a:hover {
    background: #555;
    text-decoration: none;
}

#nav .user-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: #aaa;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    gap: 12px;
}

#nav .user-info a {
    color: #ccc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Main content ── */
#main {
    min-height: 500px;
    padding: 48px 0;
}

/* ── Homepage two-column layout ── */
.home-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 36px 0;
}

.home-main {
    flex: 1;
    min-width: 0;
}

.home-main h2 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-desc {
    font-size: 15px;
    color: #444;
    font-style: italic;
    border-left: 3px solid #e5e5e5;
    padding-left: 16px;
    line-height: 1.7;
}

/* ── Sidebar ── */
.home-sidebar {
    width: 200px;
    flex-shrink: 0;
}

.widget {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 14px 16px;
    margin-bottom: 16px;
    background: #fafafa;
}

.widget-title {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Language selector ── */
.lang-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lang-widget ul li {
    margin: 5px 0;
}

.lang-widget ul li a {
    font-size: 14px;
    color: #2980b9;
}

.lang-widget ul li.active a {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    pointer-events: none;
}

/* ── Google sign-in button ── */
.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #444;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 10px 14px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    transition: box-shadow 0.2s, background 0.2s;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.btn-google:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    background: #f8f9fa;
    text-decoration: none;
    color: #444;
}

.btn-google svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Facebook button ── */
.btn-facebook {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1877F2;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 14px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-facebook:hover {
    background: #166fe5;
    text-decoration: none;
    color: #fff;
}

.btn-facebook svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ── Welcome (logged in) ── */
.home-main p {
    color: #555;
    font-size: 15px;
}

/* ── Footer ── */
#footer {
    background: #f5f5f5;
    border-top: 1px solid #e5e5e5;
    padding: 20px 0;
    text-align: center;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    color: #999;
}

/* ── Blipmaps iframe layout ── */
body.blipmaps-page #main {
    padding: 0;
}

.iframe-wrap {
    width: 1020px;
    margin: 0 auto;
    overflow: visible;
}

.iframe-wrap iframe {
    display: block;
    width: 1020px;
    border: none;
}

/* ── Responsive ── */
@media (max-width: 680px) {
    .site-title { font-size: 20px; }
    #nav ul { flex-direction: column; }
    #nav .user-info { padding: 10px 18px; flex-direction: column; align-items: flex-start; gap: 4px; }
    .home-layout { flex-direction: column; }
    .home-sidebar { width: 100%; }
    .home-main h2 { font-size: 22px; }
}
