/* Targeted stability fixes. Keep this file small and override-only. */
.navbar-brand{height:56px;display:inline-flex;align-items:center;padding:0;margin-right:1.25rem;line-height:1}
.navbar-brand .brand-logo{display:block;width:auto;height:58px;max-width:190px;object-fit:contain;content:url('/static/img/hobbias-logo.svg')}
.navbar .navbar-nav{gap:0}
.navbar .nav-link{display:inline-flex;align-items:center;min-height:38px;padding:.45rem .65rem}
.navbar .navbar-toggler{margin-left:auto}
.navbar .dropdown-menu{margin-top:.35rem;border:1px solid rgba(11,18,32,.08);border-radius:12px;box-shadow:0 12px 28px rgba(11,18,32,.10)}
html{scroll-padding-top:76px}
main.container{position:relative}

/* Signup profile picture uploader */
.profile-upload{position:relative;min-height:170px;border:2px dashed rgba(94,132,88,.28);border-radius:18px;background:rgba(94,132,88,.035);display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden;cursor:pointer;transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease,transform .18s ease}
.profile-upload:hover,.profile-upload:focus-visible{border-color:rgba(94,132,88,.55);background:rgba(94,132,88,.07);box-shadow:0 8px 24px rgba(11,18,32,.07);outline:none}
.profile-upload.drag-over{border-color:rgba(94,132,88,.85);background:rgba(94,132,88,.11);box-shadow:0 0 0 4px rgba(94,132,88,.10)}
.profile-upload.has-file{border-style:solid;background:rgba(94,132,88,.025);cursor:default}
.profile-upload>input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.profile-upload-content{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px}
.profile-upload-icon{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:10px;background:rgba(94,132,88,.12);font-size:24px;font-weight:700;line-height:1}
.profile-upload-title{font-weight:700;font-size:15px;color:#0b1220}
.profile-upload-subtitle{margin-top:4px;font-size:14px;color:#6c757d}
.profile-upload-subtitle span{color:#5e8458;font-weight:600}
.profile-upload-preview{width:100%;align-items:center;gap:18px;padding:18px 22px;text-align:left}
.profile-upload-preview img{width:96px;height:96px;flex:0 0 96px;object-fit:cover;border-radius:50%;box-shadow:0 4px 14px rgba(11,18,32,.12);background:#fff}
.profile-upload-preview-info{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.profile-upload-preview-info strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.profile-upload-preview-info span{font-size:13px;color:#6c757d;margin-bottom:7px}
.profile-upload-preview-info .btn{cursor:pointer}

/* Patreon: preserve the original green pill while making the folded state clean and non-overlapping. */
.patreon-side-link{box-sizing:border-box;white-space:nowrap;overflow:hidden;cursor:default;will-change:width,padding;isolation:isolate}
.patreon-side-link>a{display:flex;align-items:center;justify-content:center;gap:9px;flex:1 1 auto;width:auto;min-width:0;height:100%;padding:0;margin:0;color:#fff!important;text-decoration:none!important;line-height:1;overflow:hidden}
.patreon-side-link .patreon-side-label{display:inline-block;max-width:150px;overflow:hidden;white-space:nowrap;opacity:1;font-weight:700;transition:max-width .24s ease,opacity .16s ease}
.patreon-side-link.patreon-folded{width:42px;height:42px;padding:10px;min-width:42px;min-height:42px;border-radius:50%;gap:0;justify-content:center;cursor:pointer;transition:width .3s cubic-bezier(.22,.61,.36,1),padding .3s ease,border-radius .24s ease,transform .15s ease,box-shadow .15s ease,background-color .15s ease}
.patreon-side-link.patreon-folded>a{gap:0;pointer-events:none}
.patreon-side-link.patreon-folded .patreon-side-label{max-width:0;opacity:0}

/* Folded state: the small control sits at the lower-right as an unobtrusive expand hint. */
.patreon-side-link.patreon-folded .patreon-side-toggle{right:1px;top:auto;bottom:1px;width:15px;height:15px;border-radius:50%;background:rgba(255,255,255,.24)!important;color:#fff;font-size:11px;font-weight:700;line-height:15px;padding:0;border:0;z-index:3;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px rgba(0,0,0,.10)}
.patreon-side-link.patreon-folded .patreon-side-toggle:hover{background:rgba(255,255,255,.38)!important}
.patreon-side-link.patreon-folded .patreon-side-toggle:focus-visible{outline:2px solid rgba(255,255,255,.9);outline-offset:2px}

/* Expanded state: show the support text clearly and reserve a dedicated collapse area. */
.patreon-side-link:not(.patreon-folded){width:194px;padding-right:40px;gap:9px;cursor:default}
.patreon-side-link:not(.patreon-folded) .patreon-side-label{display:inline-block!important;max-width:150px;opacity:1;visibility:visible}
.patreon-side-link:not(.patreon-folded) .patreon-side-toggle{right:8px;top:50%;bottom:auto;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:22px;height:22px;line-height:22px;border-radius:50%;font-size:13px;z-index:3}
.patreon-side-link:not(.patreon-folded) .patreon-side-toggle:hover{transform:translateY(-50%)}
.patreon-side-link:not(.patreon-folded) .patreon-side-toggle:focus-visible{outline:2px solid rgba(255,255,255,.9);outline-offset:2px}
.patreon-side-logo{position:relative;width:20px;height:20px;display:inline-block;flex:none}
.patreon-side-logo:before{content:"";position:absolute;left:1px;bottom:0;width:6px;height:18px;border-radius:4px;background:#fff}
.patreon-side-logo:after{content:"";position:absolute;right:0;top:0;width:14px;height:14px;border-radius:50%;background:#fff}

@media (max-width:991px){
.navbar-brand{height:52px;margin-right:.75rem}
.navbar-brand .brand-logo{height:52px;max-width:170px}
.navbar .navbar-collapse{padding-top:.5rem}
.navbar .navbar-nav{align-items:stretch}
.navbar .nav-item{width:100%}
.navbar .nav-link{width:100%;justify-content:flex-start}
.navbar .dropdown-menu{width:100%;border:0;box-shadow:none;background:rgba(94,132,88,.035);margin:0}
}
@media (max-width:767px){
.patreon-side-link:not(.patreon-folded) .patreon-side-label{display:inline-block!important}
}
@media (max-width:575px){
.navbar-brand .brand-logo{height:48px;max-width:150px}
main.container{padding-left:.85rem;padding-right:.85rem}
.profile-upload{min-height:155px}
.profile-upload-preview{padding:16px;gap:14px}
.profile-upload-preview img{width:78px;height:78px;flex-basis:78px}
}

@media (prefers-reduced-motion:reduce){
.patreon-side-link,.patreon-side-link .patreon-side-label{transition:none!important}
}

.user-card .stat-box .metric-value{overflow-wrap:anywhere}

/* Hobbias palette: a tiny shift toward a warmer/yellower tea green. */
:root{
  --primary:#648458;
  --primary-600:#51714a;
  --primary-soft:rgba(100,132,88,.08);
  --primary-soft-strong:rgba(100,132,88,.12);
}
.patreon-side-link{background:#648458!important;border-color:#51714a!important}
.profile-upload{border-color:rgba(100,132,88,.28);background:rgba(100,132,88,.035)}
.profile-upload:hover,.profile-upload:focus-visible{border-color:rgba(100,132,88,.55);background:rgba(100,132,88,.07)}
.profile-upload.drag-over{border-color:rgba(100,132,88,.85);background:rgba(100,132,88,.11);box-shadow:0 0 0 4px rgba(100,132,88,.10)}
.profile-upload.has-file{background:rgba(100,132,88,.025)}
.profile-upload-icon{background:rgba(100,132,88,.12)}
.profile-upload-subtitle span{color:#648458}
