/* Additions on top of the original theme (style.css). */

/* The logo image carries the left end of the blue menu bar. Drawn at its real size and lowered a few pixels,
   its bar lines up with the menu cells, so there is no visible step where the two meet. */
#header h1 { background-size: 305px 231px; background-position: 0 4px; }

/* Text boxes can be made taller but never wider than the column. */
textarea { resize: vertical; max-width: 100%; }

/* ---------- small helpers ---------- */
.centered { text-align: center; }
.strong   { font-weight: bold; }
.big      { font-size: 16px; }
.small    { font-size: 11px; }
.clearfix::after { content: ""; display: table; clear: both; }
.inline   { display: inline; }

/* Soft rounded bottom corners, both on the white side and on the dark sidebar side. */
#content { border-radius: 0 0 16px 16px; }

#content .cont { padding: 34px 0 24px; }
#content .cont.flashes { padding: 18px 0 0; }
#content .cont.flashes + .cont { padding-top: 12px; }
#content h2.page-title { font-weight: normal; font-size: 24px; left: 0; margin: 4px 0 14px; font-family: Verdana, Arial, sans-serif; }
#content h3.sub-title, #content h3.reg-head { background: none; width: auto; height: auto; top: 0; left: 0; font-weight: bold; }
h3.sub-title { font-size: 22px; text-align: center; margin: 38px 0 12px; text-decoration: underline; font-weight: bold; color: #000; }
h4.profile-head, .profile h4 { color: #0d7a95; font-size: 20px; font-weight: normal; text-transform: uppercase; margin: 26px 0 8px; }
.cont a { color: #014f63; }

.crumbs { font-size: 12px; margin: 0 0 14px; }
.crumbs img { vertical-align: -2px; }

/* ---------- messages ---------- */
.msg { padding: .8em 1em; margin: 14px 0 6px; border: 2px solid; font-family: Verdana, Arial, sans-serif; font-size: 12px; line-height: 17px; }
.msg-error   { background: #FBE3E4; color: #D12F19; border-color: #FBC2C4; }
.msg-success { background: #E6EFC2; color: #529214; border-color: #C6D880; }
.msg-info    { background: #FFF6BF; color: #817134; border-color: #FFD324; }
.notice { width: auto; margin-top: 14px; }

/* ---------- buttons and form controls ---------- */
.black_button, input[type=submit].black_button {
    background: linear-gradient(#f7f7f7, #dcdcdc);
    border: 1px solid #b5b5b5;
    border-radius: 4px;
    color: #6b6b6b;
    cursor: pointer;
    font: bold 13px Verdana, Arial, sans-serif;
    padding: 6px 14px;
}
input[type=submit].black_button.post-answers { color: #014f63; padding: 7px 14px; }
.black_button:hover { background: linear-gradient(#fcfcfc, #e8e8e8); color: #444; }
.button-link { display: inline-block; margin: 0 6px 6px 0; padding: 6px 12px; background: #22444c; color: #fff !important; text-decoration: none; border-radius: 3px; }
.button-link:hover { background: #2f6874; }
.link-button { background: none; border: 0; padding: 0; color: #014f63; cursor: pointer; font: inherit; text-decoration: underline; }

select, input[type=email], input[type=number], input[type=text], input[type=password] { font-family: Tahoma, sans-serif; font-size: 12px; }
input[type=email], input[type=number], select { border: 2px solid #ccc; padding: 5px; }

/* ---------- sidebar ---------- */
#content .rmenu a:link, #content .rmenu a:visited { color: #fff; }
.side-char { text-align: center; margin: 0; }
#content .rmenu p.side-char { left: 0; bottom: 0; padding-top: 14px; }
form#signin_menu { display: none; position: absolute; left: 24px; top: 100px; width: 210px; background: #ddeef6; color: #345; border: 2px solid rgba(0,0,0,.3); border-radius: 5px; padding: 10px; z-index: 50; font-size: 12px; }
form#signin_menu.open { display: block; }
form#signin_menu label.pick { display: block; margin: 3px 0; }
form#signin_menu .black_button { margin-top: 8px; }

.side-block { margin-top: 18px; }
.side-title { background: #14383f url('../images/rlink.png'); padding: 8px 10px; font-weight: bold; font-size: 14px; }
.side-block a { display: block; text-align: center; padding: 7px 4px; font-size: 14px; background: #1f4a52; border: 0; border-bottom: 1px solid #14383f; text-decoration: none; outline: none; }
.side-block a:hover { background: #28606a; }
.side-info { background: #20444b; padding: 12px 8px; font-size: 14px; }
.side-info .up { color: #7ee07e; font-weight: bold; }

/* ---------- login pop-up ---------- */
.ucp-dialog { border: 1px solid #9fc9d4; border-radius: 8px; padding: 0 0 6px; width: 405px; background: #fff; color: #222; font-family: Arial, Helvetica, sans-serif; font-size: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); overflow: hidden; }
.ucp-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: linear-gradient(#97ccd8, #82bccb); color: #fff; font-weight: bold; font-size: 15px; }
.dlg-close { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; font-weight: bold; }
.dlg-close:hover { color: #014f63; }
.dlg-body { padding: 14px 16px 16px; }
.dlg-body label { display: block; font-weight: bold; margin: 0 0 6px; }
.dlg-body input[type=text], .dlg-body input[type=password], .dlg-body input[type=email] { width: 275px; box-sizing: border-box; margin-bottom: 18px; padding: 7px; border: 2px solid #ccc; font: 13px Arial, sans-serif; }
.dlg-body label.remember { display: flex; align-items: center; gap: 4px; font-weight: normal; margin: -12px 0 22px; }
.dlg-note { font-size: 13px; line-height: 17px; color: #333; margin: 0 0 18px; max-width: 360px; }
input[type=submit].dlg-button { color: #014f63; padding: 8px 14px; font: bold 13px Arial, sans-serif; }
.dlg-links { margin: 22px 0 0; font-size: 14px; }
.dlg-links a { color: #222; }

/* ---------- home: slider and news ---------- */
.home .slider { position: relative; width: 750px; height: 150px; overflow: hidden; margin-top: 24px; background: #123; }
.home .slider img { position: absolute; inset: 0; width: 750px; height: 150px; opacity: 0; transition: opacity .8s; }
.home .slider img.on { opacity: 1; }
.slider-dots { text-align: center; margin: 8px 0 16px; }
.slider-dots span { display: inline-block; width: 11px; height: 11px; margin: 0 3px; border: 1px solid #888; background: #fff; }
.slider-dots span.on { background: #6a9fd0; border-color: #4a7fb0; }

.post { margin: 14px 0 18px; }
.post-meta { position: relative; background: #ecf3f7; border-bottom: 4px solid #102b31; min-height: 40px; }
.post-meta .post-title { margin: 0; padding: 11px 12px; background: none; border: 0; width: auto; height: auto; font-size: 17px; }
.post-meta .post-title a { color: #014f63; text-decoration: none; }
.post-meta .post-info { position: absolute; right: 0; top: 0; bottom: 0; margin: 0; width: 195px; height: auto; padding: 6px 10px; background: #f4f7f8; border-bottom: 4px solid #889398; box-sizing: border-box; text-align: right; font-size: 11px; }
.post-content { padding: 10px 14px; line-height: 17px; }
.post-content img.post-image { max-width: 700px; width: 100%; }
.post-footer { margin: 0; padding: 12px 14px; font-size: 12px; border-top: 1px solid #e8ebec; }
.pager a, .pager b { margin: 0 6px; }
.comment { border-bottom: 1px solid #e3e8ea; padding: 8px 4px; }
.comment small { color: #888; margin-left: 8px; }
.comment-form textarea { width: 98%; }

/* ---------- dashboard ---------- */
/* Welcome heading: "Welcome to" on top, the logo in the middle, "User Control Panel" underneath. */
.welcome-title { width: 100%; margin: 0 auto 10px; text-align: center; line-height: 1; font-family: Georgia, 'Times New Roman', serif; font-variant: small-caps; font-weight: bold; color: #8c8c8c; letter-spacing: 2px; user-select: none; }
.welcome-title span { display: block; text-shadow: 1px 1px 0 #cfcfcf; }
.welcome-title .w-top { font-size: 19px; }
.welcome-title .w-logo { display: block; margin: 4px auto 6px; max-width: 100%; height: auto; }
.welcome-title .w-sub { font-size: 24px; color: #a5a5a5; text-shadow: 1px 1px 0 #d6d6d6; }
.dash-head { margin: 26px 0 8px; font: bold 12px Tahoma, Verdana, sans-serif; text-decoration: underline; color: #000; text-transform: none; }
.dash-text { font: 12px/18px Tahoma, Verdana, sans-serif; margin: 0 0 18px; }
.dash-icons { display: flex; justify-content: center; align-items: center; gap: 110px; margin: 22px 0 28px; }
.dash-icons a { display: block; line-height: 0; opacity: .95; }
.dash-icons a:hover { opacity: 1; }
.dash-peaks { margin: 0 0 6px; }
#pinboard { margin-top: 26px; }
#pinboard a { text-decoration: none; color: #333; font-size: 10px; }
/* Colours come from the theme: sidebar teals (#14383f, #20444b) and the menu bar's blue gradient. */
.stats-panel { background: #122a30; border: 1px solid #0f2b30; border-radius: 4px; color: #d7eaf0; margin: 12px 0 8px; padding: 0 16px 12px; font-family: Georgia, serif; box-shadow: inset 0 0 0 1px #20444b; }
.stats-head { display: flex; justify-content: space-between; margin: 0 -16px; padding: 9px 16px; background: linear-gradient(#1b4a54, #14383f); border-bottom: 1px solid #34a9c2; font-weight: bold; font-size: 14px; color: #fff; border-radius: 3px 3px 0 0; }
.stats-head .range { font-weight: normal; color: #8ec5d6; font-size: 12px; }
.stats-tiles { display: flex; gap: 10px; margin: 14px 0 8px; }
.stats-tiles div { flex: 1; background: #1f4a52; border: 1px solid #0f2b30; border-top-color: #34a9c2; text-align: center; padding: 8px 4px; }
.stats-tiles b { display: block; font-size: 22px; color: #fff; }
.stats-tiles span { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #8ec5d6; }
.stats-chart { position: relative; display: flex; align-items: stretch; gap: 6px; height: 170px; margin: 26px 8px 34px 34px; }
.stats-chart .grid-line { position: absolute; left: -34px; right: 0; border-top: 1px dashed #2c6571; height: 0; }
.stats-chart .grid-line i { position: absolute; left: 0; top: -7px; width: 26px; text-align: right; font-style: normal; font-size: 10px; color: #8ec5d6; font-family: Verdana, Arial, sans-serif; }
.stats-chart .col { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; z-index: 1; }
.stats-chart .bar { display: block; width: 100%; background: linear-gradient(#8ec5d6, #1a7f99); border: 1px solid #0f2b30; border-bottom: 0; border-radius: 2px 2px 0 0; box-sizing: border-box; }
.stats-chart .bar.zero { background: #20444b; border-color: #20444b; }
.stats-chart .val { font-size: 10px; color: #fff; min-height: 14px; font-family: Verdana, Arial, sans-serif; }
.stats-chart .day { position: absolute; bottom: -20px; font-size: 10px; color: #8ec5d6; font-family: Verdana, Arial, sans-serif; }
.stats-chart .col:hover .bar { background: linear-gradient(#b9e0ea, #34a9c2); }
.stats-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; font-size: 13px; color: #8ec5d6; z-index: 2; pointer-events: none; }

/* ---------- registration and generic forms ---------- */
.reg-title { font-weight: normal !important; font-size: 24px !important; left: 0 !important; margin-top: 28px !important; }
.step { text-align: center; font-weight: bold; font-size: 11px; margin: 26px 0 18px; }
.reg .notice { margin: 22px 0 30px; text-align: center; font-weight: bold; font-size: 13px; line-height: 19px; font-family: Verdana, Arial, sans-serif; }
.reg-restart { margin: 34px 0 0; }
.reg-restart a { font: 16px Tahoma, Verdana, sans-serif; color: #014f63; text-decoration: underline; }
.reg .notice a { text-decoration: underline; }
.reg .notice a img { vertical-align: -1px; }
fieldset.question { width: auto; border: 0; padding: 0; margin: 0 0 34px; }
fieldset.question legend { font: bold 15px Tahoma, Verdana, sans-serif; border: 0; color: #000; padding: 0; margin-bottom: 6px; }
fieldset.question label { display: block; font-size: 11px; line-height: 22px; }
fieldset.question input[type=radio] { margin-right: 3px; vertical-align: -2px; }
.reg-sub { text-align: center; text-decoration: underline; font-size: 15px; margin: 18px 0; color: #000; }
.reg-text { text-align: center; font-size: 13px; line-height: 21px; }
.reg-text.left { text-align: left; font-family: Tahoma, Verdana, sans-serif; font-size: 12px; line-height: 19px; }
.reg-text p { margin: 0 0 18px; }
.accept-form { text-align: center; margin: 26px 0 8px; }
.accept-form.left { text-align: left; }
.accept-form input[type=text] { width: 190px; margin-right: 80px; }
.accept-form.left input[type=text] { width: 150px; margin-right: 60px; }
.license { background: #ecf3f7; padding: 18px; text-align: center; font-family: Verdana, sans-serif; font-size: 12px; line-height: 20px; border: 1px solid #dfe8ec; margin-bottom: 8px; }
.reg-head { text-align: center; text-decoration: underline; font-size: 24px; margin: 30px 0 8px; color: #000; }
.reg-form label { display: block; font-weight: bold; margin: 14px 0 4px; font-size: 12px; }
.reg-form input[type=text], .reg-form input[type=email], .reg-form input[type=password], .reg-form input[type=number], .reg-form select { width: 450px; box-sizing: border-box; border: 1px solid #aaa; padding: 6px; }
.reg-form small { display: block; max-width: 520px; color: #555; font-size: 11px; line-height: 14px; margin-top: 3px; }
.reg-form textarea { width: 100%; box-sizing: border-box; }

/* ---------- character application ---------- */
.app .info-box { background: #f6fafc; border: 1px solid #e1ebf2; border-radius: 4px; padding: 12px 14px; margin: 18px 0 28px; font-size: 12px; line-height: 18px; color: #333; }
.info-icon { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border-radius: 50%; background: #3aa83a; color: #fff; font: bold 10px/14px Georgia, serif; text-align: center; vertical-align: 1px; }
.app-form .app-label { display: block; font: bold 13px Tahoma, Verdana, sans-serif; margin: 22px 0 6px; color: #000; }
.app-form .app-label.center { text-align: center; margin-top: 30px; }
.app-form input[type=text], .app-form input[type=number], .app-form select { border: 2px solid #ccc; padding: 6px; font: 12px Tahoma, sans-serif; box-sizing: border-box; }
.app-form .app-wide { width: 300px; }
.app-form .app-short { width: 80px; }
.app-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 8px; }
.app-row > div { flex: 1; }
.app-row > div:nth-child(2) { text-align: center; }
.app-row > div:nth-child(3) { text-align: right; }
.app-form textarea { width: 100%; box-sizing: border-box; font: 12px "Courier New", monospace; }
.app-form textarea { background-repeat: no-repeat; }
.app-form textarea#copy, .app-form textarea#copy2, .app-form textarea#copy3 { background-size: auto; }
.advice { margin: 26px 0; padding: 18px 22px; background: #fff6bf; border: 2px solid #ffd324; color: #817134; text-align: center; font: 12px/18px Verdana, Arial, sans-serif; }
input[type=submit].dark-button { background: linear-gradient(#4a4a4a, #2c2c2c); color: #fff; border: 1px solid #1c1c1c; border-radius: 4px; padding: 8px 14px; font: bold 12px Verdana, Arial, sans-serif; cursor: pointer; }
input[type=submit].dark-button:hover { background: linear-gradient(#5a5a5a, #383838); }

/* ---------- tables ---------- */
table.data { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 12px; }
table.data th { background: #14383f; color: #fff; text-align: left; padding: 6px 8px; font-size: 12px; }
table.data td { padding: 6px 8px; border-bottom: 1px solid #e3e8ea; background: #f4f8f8; }
table.data.dark-head th { text-align: center; }
.st-pending  { color: #c07400; font-weight: bold; }
.st-accepted { color: #2a8a2a; font-weight: bold; }
.st-rejected { color: #b82020; font-weight: bold; }
table.plain-table td { padding: 5px 24px 5px 0; vertical-align: top; }
table.plain-table td:first-child { font-weight: bold; white-space: nowrap; }
table.plain-table.wide { margin-bottom: 8px; }

/* ---------- characters ---------- */
.char-pick { margin-top: 22px; }
.char-row { display: block; margin: 0 0 4px; }
.char-row span { display: inline-block; width: 380px; padding: 6px 7px; border: 2px solid #ddd; background: #fafafa; font-size: 12px; vertical-align: middle; margin-left: 4px; }
.char-pick .black_button { margin-top: 14px; }

.profile-grid { display: flex; gap: 40px; align-items: flex-start; margin-top: 8px; }
.skin-render { width: 190px; text-align: center; padding-top: 30px; }
.profile-info { flex: 1; }
.profile .state { font-size: 28px; margin: 6px 0 0; text-align: center; }
.profile .state.off { color: #e0141e; }
.profile .state.on  { color: #2a9a2a; }
.profile .cols { display: flex; gap: 30px; }
.profile .cols ul, ul.plain { list-style: none; margin: 0; padding: 0 0 0 14px; font-size: 12px; text-transform: uppercase; line-height: 21px; }
.profile .cols ul { flex: 1; }
.profile .cols b, ul.plain b { text-transform: none; color: #000; font-size: 13px; }
.profile h4.admin-area { border-top: 1px solid #aaa; padding-top: 14px; }

#skinlist { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
#skinlist img { width: 76px; height: 126px; object-fit: contain; border: 1px solid #ddd; background: #f5f5f5; }
#skinlist a:hover img { border-color: #0d7a95; }
.skin-preview { display: flex; gap: 20px; align-items: center; background: #ecf3f7; padding: 12px; margin-bottom: 12px; }
.skin-preview img { height: 140px; }

/* ---------- account tabs ---------- */
.tab_style .tab-nav { list-style: none; display: flex; margin: 0; padding: 0; background: #f3f3f3; border: 1px solid #e3e3e3; }
.tab_style .tab-nav li { flex: 1; text-align: center; border-top: 4px solid transparent; }
.tab_style .tab-nav li.active { border-top-color: #2ec08a; background: #fff; }
.tab_style .tab-nav a { display: block; padding: 14px 4px 12px; font-size: 11px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; color: #777; text-decoration: none; }
.tab_style .tab-nav li.active a { color: #2ec08a; text-decoration: underline; }
.tab-panel { display: none; padding: 28px 12px 12px; }
.tab-panel.active { display: block; }
.tab-form { display: grid; grid-template-columns: 200px 1fr; gap: 10px 0; align-items: center; max-width: 640px; }
.tab-form label { font-weight: bold; }
.tab-form input[type=text], .tab-form input[type=password], .tab-form input[type=email] { width: 300px; border: 2px solid #ccc; padding: 7px; }
.tab-form .hint { font-size: 11px; color: #888; }
.foot-note { text-align: center; font-weight: bold; margin-top: 30px; }

/* ---------- staff page ---------- */
.staff .sbox { margin: 0 0 22px; }
.sbox-body { border-left: 1px solid #bfbfbf; border-right: 1px solid #bfbfbf; padding: 5px 20px; min-height: 36px; }
.sbox-body ul { margin: 10px 0 14px 8px; padding: 0 0 0 14px; }
.sbox-body li { margin: 4px 0; font-size: 12px; }
.sbox-bottom { height: 13px; background: url('../images/widecontentbottom.jpg') no-repeat left bottom; }
.sbox.wide { width: 737px; }
.sbox.thin { width: 355px; margin: 0; }
.sbox.thin .sbox-bottom { background-image: url('../images/thincontentbottom.jpg'); height: 14px; }
.sgrid { display: grid; grid-template-columns: 355px 355px; gap: 22px 27px; margin-bottom: 22px; }
.sbox.top-intro      { background: url('../images/widecontenttop.jpg') no-repeat left top; padding-top: 13px; }
.sbox.top-management { background: url('../images/managementtop.jpg') no-repeat left top; padding-top: 31px; }
.sbox.top-lead       { background: url('../images/leadadmintop.jpg') no-repeat left top; padding-top: 34px; }
.sbox.top-developers { background: url('../images/developerstop.jpg') no-repeat left top; padding-top: 34px; }
.sbox.top-testers    { background: url('../images/testerstop.jpg') no-repeat left top; padding-top: 29px; }
.sbox.top-four  { background: url('../images/lvl4adminstop.jpg') no-repeat left top; padding-top: 27px; }
.sbox.top-three { background: url('../images/lvl3adminstop.jpg') no-repeat left top; padding-top: 27px; }
.sbox.top-two   { background: url('../images/lvl2adminstop.jpg') no-repeat left top; padding-top: 27px; }
.sbox.top-one   { background: url('../images/lvl1adminstop.jpg') no-repeat left top; padding-top: 27px; }
.sbox-body.intro p { margin: 10px 0; font-size: 11px; }
.staff .sbox-body li { list-style: square; }

/* ---------- premium info page (the packages use the theme's own #bronze, #silver, #gold boxes) ---------- */
#content h2.donate-title { left: 0; margin: 4px 0 6px; text-align: center; font: bold 21px Verdana, Arial, sans-serif; color: #000; }
.static-page .wrapper { left: 0; width: 750px; padding-top: 10px; }
.donate-notes { margin-top: 30px; }
.donate-notes .sbox-body.intro p { font-size: 12px; line-height: 18px; margin: 12px 0; }

/* ---------- static pages and admin ---------- */
.staff-table input[type=text] { width: 150px; padding: 3px; border: 1px solid #aaa; }
.staff-table .nowrap { white-space: nowrap; }
.staff-add input[type=text], .staff-add select { width: 300px; }
.static-page { padding-top: 20px; }
.static-page .page-body { line-height: 19px; }
.static-page h2 { left: 0; }
.updated { margin-top: 30px; font-size: 11px; }
.stat-row { display: flex; gap: 12px; margin: 14px 0 18px; }
.stat { flex: 1; background: #14383f; color: #fff; text-align: center; padding: 14px 6px; }
.stat b { display: block; font-size: 24px; }
.stat span { font-size: 11px; }
.admin-links { line-height: 26px; font-size: 13px; }
.answer { background: #f4f8f8; border: 1px solid #e3e8ea; padding: 8px 10px; margin-bottom: 8px; }
.decision { margin-top: 18px; padding: 12px; background: #ecf3f7; }
.decision input[type=text] { width: 360px; margin: 0 8px; }
