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

/* Body */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8f9fb; /* Milky White */
    color: #1f2937;
    line-height: 1.6;
}

/* Container */
.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 600;
    font-size: 18px;
}

.nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
}

.nav a:hover {
    color: #111827;
}

.login-btn {
    background-color: #111827;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.login-btn:hover {
    opacity: 0.9;
}

.account-menu {
    position: relative;
}

.account-menu summary {
    list-style: none;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #111827;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.account-menu-btn::after {
    content: "▾";
    font-size: 12px;
    line-height: 1;
}

.account-menu-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
    overflow: hidden;
    z-index: 30;
}

.account-menu-list a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
}

.account-menu-list a:hover {
    background: #f9fafb;
    color: #111827;
}

/* Ensure hidden auth links stay hidden even with menu link display rules. */
[hidden] {
    display: none !important;
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: 70vh;
}

/* Footer */
.main-footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}
