/* MERGED OPENROCKETS STYLES */

:root {
    --rio-background: url('https://images.wallpapersden.com/image/download/rio-de-janeiro-hd-brazil_bW5oaG2UmZqaraWkpJRnZWdqrWZlbWU.jpg');
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #1f2730;
    min-height: 100vh;
    overflow-x: hidden;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
    padding-top: 20vh;
    padding-bottom: 3rem;
    isolation: isolate;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: -24px;
    background-image: var(--rio-background);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

body::before {
    z-index: 0;
    filter: blur(18px);
    opacity: 0.96;
    transform: scale(1.04);
}

body::after {
    z-index: 0;
    
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 900ms ease, transform 1200ms ease;
}

body.bg-ready::after {
    opacity: 1;
    transform: scale(1);
}

/* Promo banner (above navbar) */
.promo-banner {
    max-width: 1140px;
    margin: 0 auto 14px auto;
   
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(1.12);
    backdrop-filter: blur(14px) saturate(1.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
    position: relative;
    z-index: 1;
}

.promo-banner__share {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.85);
    color: #111827;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    font-family: "Space Grotesk", "Segoe UI", Roboto, Arial, sans-serif;
}
.promo-banner__share:hover { background: rgba(255, 255, 255, 0.95); }
.promo-banner__share-icon { display: inline-flex; }

.promo-banner__share-tooltip {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(320px, 78vw);
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(17, 24, 39, 0.94);
    color: #f9fafb;
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: none;
    z-index: 5;
}
.promo-banner__share-tooltip-link {
    display: block;
    margin-top: 6px;
    color: #93c5fd;
    font-weight: 800;
}
.promo-banner__share:hover .promo-banner__share-tooltip,
.promo-banner__share:focus-visible .promo-banner__share-tooltip {
    display: block;
}
.promo-banner__image {
    width: 150px;
    height: auto;
    border-radius: 10px;
    flex: 0 0 auto;
}
.promo-banner__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.promo-banner__headline {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    font-family: "Space Grotesk", "Segoe UI", Roboto, Arial, sans-serif;
}
.promo-banner__url {
    font-size: 24px;
    font-weight: 800;
    color: #2563eb;
    text-decoration: none;
    letter-spacing: -0.02em;
}
.promo-banner__url:hover { text-decoration: underline; }

@media (max-width: 720px) {
    .promo-banner { flex-direction: column; text-align: center; }
    .promo-banner__url { font-size: 20px; }
}

/* Base resets & layout */
.main-wrapper {
    max-width: 100%;
   
    position: relative;
    z-index: 1;
}
.container {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(14px) saturate(1.12);
    backdrop-filter: blur(14px) saturate(1.12);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    max-width: 1140px;
    margin: 0 auto;
}
#content {
    min-height: 55vh;
}
.loading-wrap {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}
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;
    font-family: "Space Grotesk", "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 600;
}
.nav-link:hover { text-decoration: underline; }
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}
.nav-btn {
    background: #fff;
    border: 1px solid #111;
    color: #111;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 4px;
}
.nav-btn:hover { background: #111; color: #fff; }
.navbar img {
    width: 50px;
    height: 50px;
    border: 1px solid #000;
    object-fit: contain;
}
.logo-text {
    font-family: "Space Grotesk", "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 28px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.logo-o {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 0.9em;
    margin: 0;
    letter-spacing: 0;
}
.logo-o .logo-letter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 120ms ease;
}
.logo-o .logo-spinner {
    position: absolute;
    inset: 0;
    background-image: url("https://media2.giphy.com/media/v1.Y2lkPTZjMDliOTUydTAzOHhyczR2ZGVjNzNzeW0wYmFoejk5c3VoZnJpaXQ0NTJlNzI4byZlcD12MV9zdGlja2Vyc19zZWFyY2gmY3Q9cw/L05HgB2h6qICDs5Sms/200.gif");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 120ms ease;
}
body.is-loading .logo-o .logo-letter {
    opacity: 0;
}
body.is-loading .logo-o .logo-spinner {
    opacity: 1;
}
.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;
    font-family: "Space Grotesk", "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 600;
}
.login a,
.submit-btn,
.pagination button,
.menu-link {
    font-family: "Space Grotesk", "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 600;
}

/* 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;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.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%;
    box-sizing: border-box;
}
.footer img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.footer h4 {
    margin: 6px 0 10px 0;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.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;
}
.location-tag {
    position: relative;
    z-index: 1;
    width: max-content;
    max-width: calc(100vw - 2rem);
    margin: 20px auto;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #f0f8ff;
    color: #000;
    border: 1px solid #000;
    box-sizing: border-box;
    font-size: 15px;
    font-family: "Space Grotesk", "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 600;
    text-decoration: none;
}
.location-tag:hover { text-decoration: underline; }
.location-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* FORMS (Login/Submit) */
.form {
    padding: 20px;
}
.form form {
    max-width: 360px;
    margin: 0 auto;
}
.input-container {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.input-container label { width: 90px; text-align: right; }
.input-container input, .input-container textarea { flex: 1; }
.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;}

.surface-panel,
.reply-panel {
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(12px) saturate(1.08);
    backdrop-filter: blur(12px) saturate(1.08);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.reply-panel {
    background: rgba(255, 255, 255, 0.86);
}

@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 { padding: 12px; }
    .footer h4 { font-size: 11px; margin: 4px 0 8px 0; }
    .footer img { max-width: 90vw; max-height: 200px; }
    .footer-brand img { max-width: 90vw !important; width: 90vw !important; height: auto !important; max-height: 200px !important; }
    .menu-links { gap: 4px; flex-wrap: wrap; }
    .menu-link { font-size: 10px; margin: 2px; }
    .copyright { font-size: 10px; }
}

.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;}
.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;}

/* ========== GAMIFICATION: Comment Nodes & Telescope ========== */
.comment-node {
    margin-top: 12px;
    padding: 10px 14px;
    border-left: 3px solid #ff6600;
    background: rgba(255,255,255,0.6);
    border-radius: 0 6px 6px 0;
    transition: background 0.2s ease;
}
.comment-node:hover { background: rgba(255,255,255,0.85); }
.comment-vote-row {
    display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.vote-arrow {
    background: none; border: none; cursor: pointer; font-size: 13px; padding: 1px 3px;
    transition: transform 0.15s ease, color 0.15s ease;
}
.vote-arrow:hover { transform: scale(1.3); color: #ff6600; }
[data-vote-btn].voted-up { color: #3b82f6; }
[data-vote-btn].voted-down { color: #ef4444; }
.vote-count { min-width: 20px; font-size: 12px; text-align: center; font-weight: 600; }
.comment-meta { font-size: 12px; color: #828282; margin: 2px 0 6px 0; }
.comment-author { color: #111; text-decoration: none; font-weight: 600; }
.comment-author:hover { text-decoration: underline; }
.comment-time { margin-left: 6px; }
.comment-body { font-size: 13px; line-height: 1.5; margin-bottom: 6px; }
.comment-badge-inline {
    display: inline-block; font-size: 14px; margin-left: 4px;
    animation: badgePop 0.4s ease;
}
@keyframes badgePop { 0% { transform: scale(0); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* Collapse/Expand */
.collapse-toggle {
    background: none; border: 1px dashed #ccc; color: #666; cursor: pointer;
    font-size: 11px; padding: 4px 10px; margin-top: 6px; border-radius: 4px;
    transition: background 0.15s ease;
}
.collapse-toggle:hover { background: #f0f0f0; }

/* Telescope dive deeper */
.telescope-dive { margin-top: 8px; }
.telescope-btn {
    font-size: 11px !important; padding: 5px 12px !important;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    border: none !important; color: #fff !important; border-radius: 4px !important;
    cursor: pointer; transition: transform 0.15s ease;
}
.telescope-btn:hover { transform: scale(1.04); }

/* Surfaced Gems */
.surfaced-gems-container {
    margin: 16px 0; padding: 14px; border-radius: 8px;
    background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(139,92,246,0.08));
    border: 1px solid rgba(251,191,36,0.25);
}
.surfaced-gems-title {
    font-size: 13px; font-weight: 600; margin: 0 0 10px 0; color: #444;
}
.surfaced-gem-card {
    padding: 10px 12px; margin-bottom: 8px; border-radius: 6px; cursor: pointer;
    background: rgba(255,255,255,0.8); border: 1px solid rgba(139,92,246,0.15);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.surfaced-gem-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 12px rgba(139,92,246,0.15);
}
.gem-card-header { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.gem-card-votes { color: #22c55e; font-weight: 700; }
.gem-card-depth { color: #888; font-size: 10px; margin-left: auto; }
.gem-card-preview { font-size: 12px; color: #555; margin: 4px 0 0 0; line-height: 1.4; }

/* Thread Focus Modal */
.thread-focus-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.thread-focus-overlay.thread-focus-open { opacity: 1; }
.thread-focus-modal {
    background: #fff; border-radius: 12px; max-width: 700px; width: 92vw;
    max-height: 80vh; overflow-y: auto; padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.thread-focus-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eee;
}
.thread-focus-header h3 { margin: 0; font-size: 16px; }
.thread-ancestors {
    margin-bottom: 16px; padding: 10px; border-radius: 6px;
   
}
.thread-ancestor-item {
    font-size: 12px; color: #666; padding: 4px 0;
    border-bottom: 1px dashed #ddd;
    border: 1px solid black;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    padding: 3px;
}

/* Toast Notifications */
#toast-container {
    position: fixed; bottom: 20px; right: 20px; z-index: 99999;
    display: flex; flex-direction: column-reverse; gap: 8px;
}
.toast-notification {
    background: rgb(255, 255, 255); color: #000000; padding: 12px 18px;
    border-radius: 8px; font-size: 13px; max-width: 320px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transform: translateX(120%); transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    border: 2px solid black;
    
}
.toast-notification.toast-show { transform: translateX(0); opacity: 1; }
.toast-notification.toast-hide { transform: translateX(120%); opacity: 0; }

/* Tier Badge */
.tier-badge { font-weight: 700; cursor: default; }
.tier-badge svg { width: 14px; height: 14px; }
.icon-inline { width: 14px; height: 14px; vertical-align: -2px; }

/* Vote Pulse Animation */
.vote-pulse { animation: votePulse 0.3s ease; }
@keyframes votePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); color: #ff6600; }
    100% { transform: scale(1); }
}

/* ========== PROFILE ENHANCEMENTS ========== */
.profile-header {
    display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.profile-avatar {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
    border: 2px solid #e5e5e5;
}
.profile-name-row { display: flex; align-items: center; gap: 6px; }
.profile-bio { margin: 8px 0 12px 0; }
.profile-post-link { color: #3b82f6; text-decoration: none; }
.profile-post-link:hover { text-decoration: underline; }
.profile-tier-icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.profile-tier-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.profile-stats {
    display: flex; gap: 0; margin: 12px 0; border-radius: 8px; overflow: hidden;
    border: 1px solid #e5e5e5;
}
.profile-stat {
    flex: 1; text-align: center; padding: 12px 8px;
    border-right: 1px solid #e5e5e5;
}
.profile-stat:last-child { border-right: none; }
.profile-stat strong { display: block; font-size: 18px; color: #111; }
.profile-stat span { font-size: 11px; color: #000000; }

/* Tier Progress Bar */
.tier-progress { margin: 12px 0;  width: max-content;}
.tier-progress-label { font-size: 11px; color: #000000; margin-bottom: 4px; }
.tier-progress-bar {
    height: 8px; background: #ffffff; border-radius: 4px; overflow: hidden;
    border: 1px solid black;
}
.tier-progress-fill {
    height: 100%; border-radius: 4px;

    transition: width 0.5s ease;        
}

/* Profile Badges Grid */
.profile-badges-grid {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0;
}
.profile-badge-item {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; background: #f8f9fa; border: 1px solid #e5e5e5;
    border-radius: 12px; font-size: 11px; font-weight: 600; cursor: default;
}
.profile-badge-item svg { width: 14px; height: 14px; }

/* Integration only: recovered stylesheet above is unchanged. */
#page-title{text-align:center;font-size:1.5em;margin:6px 0 14px}#app{min-height:55vh}#app a{overflow-wrap:anywhere}.story-content{min-width:0;overflow-wrap:anywhere}.story .enum{flex-shrink:0}.story .enum button{background:none;border:0;cursor:pointer;font-size:16px;padding:0}.story .enum button:focus-visible,.nav-btn:focus-visible,.submit-btn:focus-visible{outline:2px solid #2257ff;outline-offset:2px}.group-information{padding:0 20px 12px;border-bottom:1px solid #e5e5e5;font-size:13px;line-height:1.5}.group-information p{margin:5px 0}.group-information a{color:#111}.discussion-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5}.story-content .title a{font-weight:500}.form input,.form textarea{min-width:0;max-width:100%;box-sizing:border-box}.form label{font-size:13px}.group-list .story{padding:12px}.group-list .story-content{padding-left:12px}.notice{padding:20px;text-align:center;font-size:13px}.page-links{padding:12px 20px;font-size:12px}.page-links a{color:#111}.comment-body{white-space:pre-wrap;overflow-wrap:anywhere}#toast-region{position:fixed;bottom:12px;right:12px;z-index:10}.toast{background:#111;color:#fff;padding:10px;margin-top:5px;font-size:13px;max-width:280px}.logo-text{text-decoration:none}body.bg-ready:after{opacity:1}@media(max-width:768px){body{padding-left:8px;padding-right:8px}.group-information{padding:0 12px 10px}.single-post{padding:12px!important}.story .enum{width:24px;margin-right:6px}.input-container label{width:55px}.comment-node{padding:8px;margin-left:0!important}}

.story .info .submit-btn{color:#fff;text-decoration:none;display:inline-block}.story .info a:not(.submit-btn){color:#111;text-decoration:none}.story .info a:not(.submit-btn):hover{text-decoration:underline}.pagination a{color:#fff;text-decoration:none}

/* Recovered byte-exact images from the original HAR, served locally. */
:root{--rio-background:url(/assets/forum-rio-original.jpg)}.logo-o .logo-spinner{background-image:url(/assets/forum-spinner-original.gif)}

.forum-profile-avatar{display:block;object-fit:cover;border-radius:50%;width:64px;height:64px;margin:8px 0}form[data-profile] label{display:inline-block;margin:5px 0}form[data-profile] [data-adult-options]{margin:10px 0}form[data-profile] input[type=checkbox]{width:auto}#request-history{padding:12px 0}#request-history button{margin-left:8px}
