/*
  Shared size sync.
  This file is always loaded last so every page inherits the same outer width
  from the frontpage layout instead of redefining it per page.
*/
:root{
  --fluxo-shared-shell-width: 100%;
  --fluxo-shared-shell-top-gap: 6px;
  --fluxo-shared-shell-pad-x: 13px;
  --fluxo-standard-shell-min-height: 1038px;
  --fluxo-profile-header-height: 98px;
  --fluxo-profile-header-pad-x: 14px;
  --fluxo-profile-header-pad-top: 12px;
  --fluxo-profile-content-pad-top: 28px;
  --fluxo-profile-content-pad-x: 14px;
  --fluxo-profile-content-pad-bottom: 14px;
  --fluxo-profile-main-gap: 34px;
  --fluxo-profile-right-col: 392px;
}



/* Shared outer shell used by register and now reused by content/profile pages.
   Add .page-standard-shell to any new page that should inherit the same outer size. */
.page-standard-shell{
  margin-top: var(--fluxo-shared-shell-top-gap);
  padding: 10px var(--fluxo-shared-shell-pad-x) 12px;
  background: var(--orange) center top / 100% 100% no-repeat;
  min-height: var(--fluxo-standard-shell-min-height);
  position: relative;
  overflow: hidden;
}

.page-standard-shell > *{
  position: relative;
  z-index: 1;
}

/* Default: the first content block inside the center column always spans the full width. */
.center > *{
  width: var(--fluxo-shared-shell-width);
  max-width: none;
  box-sizing: border-box;
}

/* Common shells used throughout the project. */
.hero,
.articles-page,
.rules-page,
.vip-page,
.profile-shell,
.center > section,
.center > div{
  width: var(--fluxo-shared-shell-width);
  max-width: none;
  box-sizing: border-box;
}

.articles-shell,
.rules-shell,
.vip-shell,
.profile-top-header,
.profile-content,
.center > section > div:first-child,
.center > div > div:first-child{
  width: var(--fluxo-shared-shell-width);
  max-width: none;
  box-sizing: border-box;
}

/* Frontpage-driven spacing for content pages. */
.vip-page{
  margin-top: var(--fluxo-shared-shell-top-gap);
}

.articles-shell,
.vip-shell{
  padding-left: var(--fluxo-shared-shell-pad-x);
  padding-right: var(--fluxo-shared-shell-pad-x);
}

.articles-hero{
  margin-left: calc(var(--fluxo-shared-shell-pad-x) * -1);
  margin-right: calc(var(--fluxo-shared-shell-pad-x) * -1);
}

/* Lock profile pages to one shared outer size.
   This overrides old experimental profile rules earlier in profile.css. */
.page-profile .profile-shell{
  width: var(--fluxo-shared-shell-width);
  max-width: none;
  margin-top: var(--fluxo-shared-shell-top-gap);
  min-height: 1140px;
}

.page-profile .profile-top-header{
  width: var(--fluxo-shared-shell-width);
  height: var(--fluxo-profile-header-height);
  padding: var(--fluxo-profile-header-pad-top) var(--fluxo-profile-header-pad-x) 0;
}

.page-profile .profile-title{
  gap: 10px;
  margin-top: 6px;
}

.page-profile .profile-title-logo{
  height: 52px;
}

.page-profile .profile-title-sep{
  font-size: 26px;
}

.page-profile .profile-title-icon{
  width: 18px;
  height: 18px;
}

.page-profile .profile-title-name{
  font-size: 25px;
}

.page-profile .profile-sub{
  right: 14px;
  top: 24px;
  font-size: 11px;
}

.page-profile .profile-tabs{
  left: 12px;
  right: 12px;
  bottom: 1px;
  gap: 2px;
  padding: 0 104px 0 0;
  flex-wrap: nowrap;
  position: absolute;
}

.page-profile .profile-tabs a{
  padding: 7px 10px;
  font-size: 11px;
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(80,20,30,.5);
  margin-right: 0;
}

.page-profile .profile-tabs a.more-tab{
  margin-left: 0;
  margin-right: 0;
  min-width: 92px;
  height: 25px;
  padding: 5px 30px 6px 20px;
  background: linear-gradient(#f7eed6, #e8d7ae);
  color: #16120f;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
  border: 1px solid #b79b6d;
  border-bottom: none;
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  position: absolute;
  right: 0;
  bottom: 0;
  overflow: visible;
  clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%, 0 15px);
  z-index: 8;
}

.page-profile .profile-tabs a.more-tab::before{
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 100%;
  border-left: 1px solid #b79b6d;
  background: linear-gradient(#f0e4c4, #ddc797);
}

.page-profile .profile-tabs a.more-tab::after{
  content: "";
  display: block;
  position: absolute;
  right: 7px;
  top: 8px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid #16120f;
}

.page-profile .profile-content{
  width: var(--fluxo-shared-shell-width);
  padding: var(--fluxo-profile-content-pad-top) var(--fluxo-profile-content-pad-x) var(--fluxo-profile-content-pad-bottom);
  min-height: 1020px;
}

.page-profile .profile-main{
  grid-template-columns: minmax(0, 1fr) var(--fluxo-profile-right-col);
  gap: var(--fluxo-profile-main-gap);
}

.page-profile .profile-right{
  width: var(--fluxo-profile-right-col);
}

/* Shared top chrome used by every page. */
.topbar::before{
  background:var(--top-art) top center / 100% 100% no-repeat;
}

.topbar{
  height:85px;
}

.logo{
  left:2px;
  top:8px;
  width:154px;
  height:94px;
}

.login-row{
  left:160px;
  right:180px;
  top:13px;
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}

.user-links{
  gap:10px;
}

.user-links a,
#top-login a,
.logout-inline button,
.find-label,
.online-count,
.top-sep{
  font-family:Georgia, "Times New Roman", serif;
  font-size:12px;
  font-weight:700;
  color:#fff;
  text-shadow:0 1px 2px rgba(0,0,0,.85);
}

.online-count{
  display:inline-block;
  min-width:128px;
  font-size:15px;
  text-align:left;
}

.user-links a,
#top-login a{
  text-decoration:none;
}

.user-links a:hover,
#top-login a:hover,
.logout-inline button:hover{
  text-decoration:underline;
}

.logout-inline,
.inline-login,
.top-search-form{
  display:inline-flex;
  align-items:center;
}

.logout-inline button{
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  box-shadow:none;
  line-height:1;
  cursor:pointer;
}

.inline-login span{
  margin:0 4px 0 2px;
}

.inline-login input[type="text"],
.inline-login input[type="password"]{
  width:76px;
  height:22px;
  margin:0 4px 0 2px;
  border:1px solid #5f9a90;
  background:rgba(0,0,0,.35);
  color:#fff;
  padding:0 5px;
  font-size:11px;
}

.top-search-form input[type="text"]{
  width:88px;
  height:22px;
  margin:0;
  border-top:0;
  border-left:0;
  border-right:0;
  border-bottom:1px solid rgba(255,255,255,.9);
  background:transparent;
  color:#fff;
  padding:0 0 1px;
  font-size:11px;
}

.profile-jump-wrap{
  right:10px;
  top:10px;
}

.profile-jump{
  width:210px;
  height:39px;
  border:4px solid rgba(245,245,245,.85);
  background:#0b5a52;
  color:#fff;
  font-family:Georgia, "Times New Roman", serif;
  font-size:13px;
  font-weight:700;
  padding:4px 8px;
  box-shadow:0 1px 0 rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.16);
}

.nav{
  left:148px;
  right:6px;
  bottom:0;
  gap:3px;
  height:31px;
}

.nav a{
  min-width:106px;
  max-width:122px;
  height:29px;
  font-size:10px;
  border-radius:8px 8px 0 0;
  background:rgba(8,114,115,.48);
}

.nav a:hover,
.nav a:focus-visible{
  background:rgba(18,145,146,.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.26),
    inset 0 -10px 14px rgba(0,0,0,.08),
    0 0 10px rgba(172,233,225,.16);
}

.nav a:not(.active):hover,
.nav a:not(.active):focus-visible{
  color:#fff;
  text-shadow:0 1px 0 rgba(0,0,0,.28);
}
