/* MERGED OPENROCKETS STYLES */

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f6f6ef; /* Kept standard but you can change to white if needed */
}

/* Base resets & layout */
.main-wrapper {
    max-width: 100%;
}
.container {
    background-color: #fff;
    padding: 8px 10px 16px 10px;
    max-width: 1140px;
    margin: 0 auto;
}
h2 {
    text-align: center;
    margin: 6px 0 14px 0;
}
.enum img {
    width: 15px;
    height: 15px;
    margin-top: 0;
}

/* NAVBAR */
.navbar-wrapper {
    max-width: 1140px;
    margin: 0 auto;
}
.navbar {
    background-color: #ffffff;
    min-height: 56px;
    border-bottom: 1px solid #000;
    align-items: center !important;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}
.navbar * {
    color: #000000;
    text-decoration: none;
}
.login, .nav-links, h4 {
    margin-top: 0px;
}
.menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    margin-right: 7px;
    margin-left: 7px;
}
.nav-link:hover { text-decoration: underline; }
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
}
.navbar img {
    width: 50px;
    height: 50px;
    border: 1px solid #000;
    object-fit: contain;
}
.user-email {
    font-size: 12px;
    word-break: break-word;
}
.signout-btn {
    margin-left: 6px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    padding: 6px 10px;
}

/* NEWS / FEED */
.story {
    min-height: 64px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: baseline;
}
.story .enum {
    text-align: right;
    font-size: 12px;
    padding-top: 2px;
    width: 30px;
    margin-right: 10px;
    color: #111;
}
.story-content {
    flex-grow: 1;
}
.head {
    margin-top: 0%;
    min-height: 35px;
    color: #000;
}
.info, .site {
    color: #111;
}
.site {
    text-decoration: underline;
    margin-left: 8px;
    font-size: small;
}
.title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 24px;
}
.title a {
    color: #000;
    text-decoration: none;
}
.info {
    font-size: small;
    margin: 6px 0;
    height: auto;
}
.info a {
    color: #111;
    text-decoration: underline;
}
.pagination {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pagination button {
    border: 1px solid #000;
    background: #000;
    color: #fff;
    padding: 7px 10px;
    cursor: pointer;
}
.pagination p { margin: 6px 0; }

/* FOOTER */
.footer {
    text-align: center;
    background-color: #fff;
    color: #000;
    padding-bottom: 25px;
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}
.footer img {
    max-width: 100%;
    height: auto;
}
.line {
    background-color: #000;
    height: 3px;
}
.footer-content {
    padding: 14px 10px 8px 10px;
}
.footer-brand {
    margin: 6px 0 10px 0;
    font-size: 14px;
}
.menu-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.menu-link {
    font-size: smaller;
    margin-left: 3px;
    margin-right: 3px;
    text-decoration: underline;
    color: #000;
}
.copyright {
    margin-top: 12px;
    color: #000;
    font-size: 12px;
}

/* FORMS (Login/Submit) */
.form {
    padding: 20px;
}
.input-container {
    margin-bottom: 10px;
}
.submit-btn {
    border: 1px solid #000;
    background: #000;
    color: #fff;
    padding: 6px 15px;
    cursor: pointer;
}
.single-post h2 { margin: 0 0 10px 0; font-size: 16pt; text-align:left;}

@media (max-width: 768px) {
    .navbar { padding: 8px; flex-direction: column; }
    .menu { justify-content: center; margin-bottom: 8px; }
    .nav-links { margin-bottom: 8px; font-size: 12px; }
    .login { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; }
    .story { min-height: 84px; }
    .footer-brand img { max-width: 100% !important; width: 100% !important; height: auto !important; }
    .footer-brand { font-size: 12px; }
    .menu-links { gap: 6px; }
    .menu-link { font-size: 11px; }
}

.comment-textarea {
    width: 100%;
    max-width: 560px;
    padding: 10px;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.reply-form {
    margin-bottom: 6px;
}

.info a {
    color: #000;
    text-decoration: underline;
}


/* UX hotfixes */
.loading-wrap{min-height:56px;}
.loading-gif{width:28px !important;height:28px !important;opacity:.9;}
.footer-brand img{width:min(220px,72vw) !important;max-width:100% !important;height:auto !important;display:block;margin:0 auto;}
@media (max-width:768px){.footer-brand img{width:min(170px,70vw) !important;}}
.submit-btn.tiny{font-size:10px !important;line-height:1;padding:2px 6px !important;border-radius:3px;}
.comment-actions{gap:4px;flex-wrap:wrap;}
.vote-btn{min-width:auto;padding:2px 5px !important;font-size:10px !important;}
