/* Archive-only tweaks — keep the vBulletin skin, tighten chrome, host search
   in the notice panel, and add a phone layout. Board type is 13px Segoe UI. */

#breadcrumb table tr {
  height: auto;
}
.body_wrapper {
  padding-top: 14px;
}
.visit-new {
  margin: 0 0 8px;
  padding: 4px 0 6px;
  text-align: center;
  font: 13px/1.3 Segoe ui, Tahoma, Verdana, sans-serif;
}
.visit-new a {
  color: #777;
  text-decoration: none;
}
.visit-new a:hover {
  color: #555;
  text-decoration: underline;
}
#breadcrumb {
  padding: 4px 0 2px;
}

/* Skin paints EVERY div in .notices blue — keep that for the title bar only. */
.notices {
  margin: 8px 0 12px;
}
.notices div {
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  padding: 0;
}
.notices > ol > div {
  background: #156eba;
  color: #fff;
  font: bold 13px Segoe ui, Tahoma, Calibri, Verdana, Geneva, sans-serif;
  padding: 8px 10px;
}
.notices .restore,
.notices .welcome-note,
.notices .welcome-hint,
.notices .welcome-masters,
.notices .welcome-actions,
.notices .board-col > label {
  font-family: Segoe ui, Tahoma, Calibri, Verdana, Geneva, sans-serif;
}
.notices .welcome-note {
  font-size: 13px;
  margin: 0 0 10px;
}
.notices .welcome-q-wrap {
  position: relative;
  margin: 0;
}
.notices .welcome-q {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font: 13px Segoe ui, Tahoma, Calibri, Verdana, Geneva, sans-serif;
  padding: 6px 140px 6px 8px;
  margin: 0;
  border: 1px solid #555753;
}
.notices .welcome-q-wrap.tips-open .welcome-q {
  border-bottom-color: #ccc;
}
.welcome-q-wrap .welcome-go,
#search-tips-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  height: 22px;
  line-height: 20px;
  border: 1px solid #555753;
  background: #f5f5ff;
  color: #222;
  font: bold 11px Segoe ui, Tahoma, Calibri, Verdana, Geneva, sans-serif;
  padding: 0 10px;
  cursor: pointer;
  margin: 0;
}
.welcome-q-wrap .welcome-go {
  right: 56px;
  min-width: 64px;
}
#search-tips-btn {
  right: 6px;
}
.welcome-q-wrap .welcome-go:hover,
#search-tips-btn:hover,
.welcome-q-wrap.tips-open #search-tips-btn {
  background: #156eba;
  color: #fff;
  border-color: #156eba;
}
.notices .welcome-under-q {
  display: none;
}
#search-tips {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 5;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #555753;
  border-top: 0;
  padding: 10px 12px 12px;
  font: 13px Segoe ui, Tahoma, Calibri, Verdana, Geneva, sans-serif;
  color: #222;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
#search-tips p {
  margin: 0 0 8px;
}
#search-tips ul {
  margin: 0;
  padding: 0 0 0 1.2em;
}
#search-tips li {
  list-style: disc;
  margin: 4px 0;
}
#search-tips code {
  font: 12px Consolas, "Courier New", monospace;
  background: #f5f5ff;
  padding: 1px 4px;
}
.notices .welcome-hint {
  font-size: 11px;
  color: #555753;
  margin: 0 0 8px;
}
.notices .welcome-masters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 8px;
  padding-top: 8px;
  font-size: 13px;
}
.notices .welcome-masters label {
  margin: 0 16px 0 0;
}
.notices .welcome-masters #adv-toggle {
  margin-left: auto;
}
.notices .welcome-actions {
  margin: 6px 0 0;
  font-size: 13px;
  text-align: left;
}
.notices #adv-toggle {
  font-size: 13px;
}
.notices .welcome-sort {
  margin-left: 0;
}
.notices .welcome-actions select {
  font: 13px Segoe ui, Tahoma, Calibri, Verdana, Geneva, sans-serif;
  margin-left: 4px;
}
.notices #advanced {
  display: none;
  margin-top: 10px;
  clear: both;
}
.notices #advanced.open {
  display: block;
}
.notices .board-cols {
  overflow: hidden;
}
.notices .board-col {
  float: left;
  width: 48%;
}
.notices .board-col + .board-col {
  margin-left: 4%;
}
.notices .board-cols-more {
  clear: both;
  padding-top: 8px;
}
.notices .board-col h3 {
  background: #156eba;
  color: #fff;
  font: bold 13px Segoe ui, Tahoma, Calibri, Verdana, Geneva, sans-serif;
  margin: 0 0 4px;
  padding: 4px 8px;
}
.notices .board-col h3 label {
  color: #fff;
  font: inherit;
}
.notices .board-col h3 input {
  margin-right: 6px;
  vertical-align: middle;
}
.notices .board-col > label {
  display: block;
  font-size: 13px;
  padding: 2px 4px;
}

#navbar {
  position: relative;
}

/* Desktop: one centered row, like Home. Skin .navtab is display:block and
   paints a full-width blue bar once we kill the float. */
#navtabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  list-style: none;
  margin: 0;
  padding: 6px 0 10px;
  text-align: center;
}
#navtabs > li {
  display: block;
  float: none !important;
  width: auto !important;
  flex: 0 0 auto;
  padding: 0 0.35em;
  color: #cceeff;
  font: 13px Verdana, Geneva, sans-serif;
}
#navtabs .navtab {
  display: inline !important;
  width: auto !important;
  background: transparent !important;
  color: #fff;
  text-decoration: none;
  padding: 0;
}
#navtabs .navtab:hover,
#navtabs li.selected .navtab {
  text-decoration: underline;
}

.legacy-note {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 9px 10px 9px 14px;
  background: #0d4a82;
  color: #e8f1fa;
  text-align: left;
  font: 13px/1.4 Segoe ui, Tahoma, Verdana, sans-serif;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.legacy-note p {
  margin: 0;
  flex: 1;
}

.legacy-note a {
  color: #fff;
  font-weight: 600;
}

.legacy-note-close {
  flex: 0 0 auto;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font: 600 12px/1.2 Segoe ui, Tahoma, Verdana, sans-serif;
  cursor: pointer;
}
#thread-nav {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font: 13px Segoe ui, Tahoma, Calibri, Verdana, Geneva, sans-serif;
  color: #222;
  white-space: nowrap;
}
#thread-nav a {
  color: #222;
  text-decoration: none;
  padding: 0 8px;
}
#thread-nav a:hover {
  text-decoration: underline;
}
#thread-nav a.is-off {
  opacity: 0.35;
  pointer-events: none;
  text-decoration: none;
}
#thread-nav #nav-pos {
  color: #555753;
  padding: 0 2px;
}

.nav-menu-btn {
  display: none;
}

/* Phone: iOS grouped-list treatment. Desktop skin stays as-is. */
@media (max-width: 700px) {
  html, body {
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    background: #f2f2f7 !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Calibri, Verdana, sans-serif !important;
    color: #1c1c1e;
    padding-bottom: env(safe-area-inset-bottom);
  }
  body > * {
    max-width: 100%;
  }

  .nav-menu-btn {
    display: none !important;
  }
  .above_body {
    position: static;
    padding: 0 !important;
    background: #156eba;
  }
  .doc_header {
    display: block !important;
    float: none !important;
    width: auto !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 8px 8px 6px !important;
    background: #156eba !important;
    text-align: left !important;
    line-height: 0;
  }
  .doc_header > div {
    height: auto !important;
    min-height: 0 !important;
    line-height: 0;
  }
  .doc_header .logo-image {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 0 !important;
  }
  .doc_header hr,
  .doc_header .logo-image + hr {
    display: none !important;
  }
  .doc_header img,
  .logo-image img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .navbar,
  .navtabs,
  #navtabs,
  #navtabs > li,
  #navtabs .navtab {
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.2 !important;
  }
  .navbar {
    background: #156eba !important;
    border: 0 !important;
    padding: 0 !important;
    position: relative;
  }
  .nav-extra {
    display: none !important;
  }
  .navtabs,
  #navtabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    text-align: center !important;
    padding: 4px 2px 8px;
    margin: 0;
    background: #156eba !important;
    white-space: nowrap;
  }
  #navtabs > li {
    display: inline !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ccffff;
    font-size: 9px;
  }
  #navtabs .navtab {
    display: inline-block;
    padding: 4px 3px;
    border-radius: 0;
    background: transparent !important;
    color: #fff !important;
    font: 600 9px/1.2 Verdana, Geneva, sans-serif;
    text-decoration: none !important;
  }
  #navtabs li.selected,
  #navtabs li.selected .navtab {
    background: transparent !important;
    color: #fff !important;
  }
  #navtabs li.selected .navtab {
    text-decoration: underline !important;
  }

  #thread-nav:not([hidden]) {
    position: static;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px 10px;
    background: #e8e8ed;
    border-top: 0;
    font: 15px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1c1c1e;
  }
  #thread-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: #fff;
    color: #156eba;
    font-weight: 600;
    text-decoration: none;
  }
  #thread-nav a.is-off {
    background: transparent;
    color: #8e8e93;
  }

  .body_wrapper {
    margin: 0 !important;
    padding: 0 0 28px !important;
    max-width: none !important;
    background: #f2f2f7 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  #breadcrumb {
    display: none;
  }
  #pagetitle {
    padding: 14px 16px 6px;
  }
  #pagetitle h1 {
    margin: 0;
    font: 700 22px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1c1c1e;
    word-wrap: break-word;
  }

  .notices {
    margin: 12px;
    border-radius: 12px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  }
  .notices > ol {
    margin: 0;
    padding: 0;
  }
  .notices > ol > div {
    border-radius: 12px 12px 0 0;
    padding: 11px 14px;
    font: 600 15px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  .notices .restore {
    padding: 12px 14px 14px;
  }
  .notices .welcome-note {
    font-size: 14px;
    line-height: 1.4;
    color: #3a3a3c;
    margin: 0 0 12px;
  }
  .notices .welcome-q-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
  }
  .notices .welcome-q {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #c6c6c8;
    border-radius: 10px;
    background: #f2f2f7;
    -webkit-appearance: none;
    appearance: none;
  }
  .welcome-q-wrap .welcome-go,
  #search-tips-btn {
    position: static;
    transform: none;
    top: auto;
    right: auto;
    height: 44px;
    line-height: 44px;
    min-width: 0;
    flex: 1;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
  }
  .welcome-q-wrap .welcome-go {
    background: #156eba;
    color: #fff;
    border-color: #156eba;
  }
  #search-tips-btn {
    background: #fff;
  }
  #search-tips {
    position: static;
    order: 5;
    width: 100%;
    border: 1px solid #c6c6c8;
    border-radius: 10px;
    box-shadow: none;
    background: #f2f2f7;
    font-size: 14px;
  }
  .notices .welcome-hint {
    margin-top: 8px;
    font-size: 12px;
  }
  .notices .welcome-masters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
    margin: 0;
  }
  .notices .welcome-masters label,
  .notices .welcome-actions label {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #d1d1d6;
    border-radius: 18px;
    background: #f2f2f7;
    font-size: 14px;
  }
  .notices .welcome-masters #adv-toggle {
    margin-left: 0;
    min-height: 36px;
    padding: 8px 4px;
    font-size: 14px;
  }
  .notices .welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
  }
  .notices .welcome-actions select {
    min-height: 36px;
    font-size: 16px;
  }
  .notices .board-col,
  .notices .board-col + .board-col {
    float: none;
    width: auto;
    margin: 0 0 12px;
  }
  .notices .board-col h3 {
    border-radius: 8px;
    padding: 8px 10px;
  }
  .notices .board-col > label {
    padding: 8px 4px;
    font-size: 15px;
  }

  #forums,
  .childforum,
  .threadlist,
  #postlist,
  .posts {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #forums {
    margin: 0 0 8px !important;
    background: transparent;
    overflow: visible;
  }
  #forums:has(> .L2) {
    margin: 0 12px 16px !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  }
  .threadlist {
    margin: 8px 12px 16px !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  }
  li.forumbit_nopost.L1,
  li.forumbit_post.L1 {
    margin: 0 12px 16px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  }
  li.forumbit_nopost.L1 .childforum {
    margin: 0 !important;
    background: #fff;
    box-shadow: none;
    border-radius: 0;
  }

  .forumhead,
  .forumhead h2 {
    display: block !important;
    float: none !important;
    width: auto !important;
    background: #156eba !important;
    color: #fff !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
  .forumhead .forumtitle,
  .forumhead .forumtitle a {
    display: block;
    float: none !important;
    width: auto !important;
    padding: 10px 14px;
    color: #fff !important;
    font: 600 15px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-decoration: none !important;
  }
  .forumhead .forumlastpost,
  .forumhead .forumthreadpost,
  .forumhead .collapse,
  .forumactionlinks,
  .forumicon,
  .forumbit_post.L1 > .forumhead,
  .lastposttitle a:not(.threadtitle) {
    display: none !important;
  }

  .forumbit_post,
  .forumbit_post .forumrow,
  .forumbit_post .foruminfo,
  .forumbit_post .foruminfo .forumdata,
  .forumbit_post .foruminfo .forumdata .datacontainer,
  .forumbit_post .forumlastpost,
  .forumbit_post .forumstats,
  .forumbit_post .forumstats_2 {
    display: block !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    clear: both;
    background: transparent !important;
  }
  .forumbit_post.L1 > .forumbit_post .forumrow {
    padding-top: 0;
    border-top: 0;
  }
  .forumbit_post.L1 > .forumbit_post .foruminfo {
    background: #156eba !important;
    margin: 0 -14px 10px;
    padding: 10px 14px;
  }
  .forumbit_post.L1 > .forumbit_post .forumtitle a {
    color: #fff !important;
  }
  .forumbit_post .forumrow {
    padding: 12px 14px 10px;
    border-top: 0.5px solid #d1d1d6;
  }
  .forumbit_post .foruminfo .forumdata .datacontainer {
    padding: 0 !important;
  }
  .forumtitle,
  .forumtitle a {
    font: 600 16px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: #156eba !important;
  }
  .forumlastpost h4.lastpostlabel,
  .forumlastpost img,
  .lastposttitle img {
    display: none !important;
  }
  .forumlastpost,
  .forumstats,
  .forumstats_2 {
    padding: 4px 0 0 !important;
    font-size: 13px !important;
    color: #6d6d72 !important;
    line-height: 1.35;
  }
  .lastposttitle a.threadtitle {
    display: inline;
    color: #6d6d72 !important;
    font-weight: 400;
  }
  .forumstats li,
  .forumstats_2 li {
    display: inline;
    margin-right: 10px;
  }

  .threadlisthead {
    display: none !important;
  }
  .threadbit,
  .threadbit .nonsticky,
  .threadbit .sticky {
    display: block !important;
    float: none !important;
    width: auto !important;
    background: #fff !important;
  }
  .threadbit .nonsticky,
  .threadbit .sticky {
    padding: 13px 14px 12px;
    border-bottom: 0.5px solid #d1d1d6;
  }
  .threadbit:last-child .nonsticky,
  .threadbit:last-child .sticky {
    border-bottom: 0;
  }
  .threadbit .threadstatus {
    display: none !important;
  }
  .threadbit .threadinfo,
  .threadbit .threadlastpost,
  .threadbit .threadstats,
  .threadbit .inner {
    display: block !important;
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .threadbit .threadtitle {
    margin: 0 0 4px !important;
  }
  .threadbit .threadtitle a {
    font: 600 16px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: #1c1c1e !important;
    text-decoration: none !important;
  }
  .threadbit .threadmeta,
  .threadbit .threadlastpost,
  .threadbit .threadstats {
    font-size: 13px !important;
    color: #6d6d72 !important;
    line-height: 1.35;
  }
  .threadbit .threadlastpost {
    margin-top: 4px !important;
    background: transparent !important;
    text-align: left !important;
    min-height: 0 !important;
  }
  .threadbit .threadlastpost dd,
  .threadbit .threadlastpost dt {
    background: transparent !important;
    text-align: left !important;
    display: inline !important;
    margin: 0 8px 0 0 !important;
    padding: 0 !important;
    float: none !important;
  }
  .threadbit .threadlastpost img,
  .threadbit .threadlastpost a:has(img) {
    display: none !important;
  }
  .threadbit .threadstats {
    margin-top: 2px !important;
    background: transparent !important;
    text-align: left !important;
  }
  .threadbit .threadstats li {
    display: inline;
    margin-right: 12px;
  }

  #postlist,
  .posts,
  .postlist {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
  }
  #posts {
    margin: 0 12px !important;
    padding: 0 !important;
    background: transparent;
  }
  .postbit {
    display: block !important;
    margin: 0 0 12px !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  }
  .postbit .postdetails_noavatar,
  .postbit .postbody,
  .postbit .userinfo_noavatar,
  .postbit .posthead,
  .postbit .postrow,
  .postbit .content {
    display: block !important;
    float: none !important;
    width: auto !important;
    max-width: none !important;
  }
  .postbit .postdetails_noavatar {
    display: flex !important;
    flex-wrap: wrap;
    background: #156eba;
    color: #fff;
    padding: 10px 14px 8px;
  }
  .postbit .userinfo_noavatar {
    order: 1;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
  }
  .postbit .userinfo_noavatar a,
  .postbit .userinfo_noavatar strong,
  .postbit .usertitle {
    color: #fff !important;
    font-size: 16px;
  }
  .postbit .onlinestatus {
    display: none !important;
  }
  .postbit .posthead {
    order: 2;
    width: 100% !important;
    padding: 4px 0 0 !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 13px;
  }
  .postbit .postdate,
  .postbit .postdate .date,
  .postbit .postcounter {
    color: rgba(255, 255, 255, 0.82) !important;
    float: none !important;
  }
  .postbit .postbody {
    padding: 12px 14px 16px !important;
    background: #fff !important;
  }
  .postbit .posttitle {
    display: none;
  }
  .postbit .postcontent {
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #1c1c1e;
  }
  .postbit img,
  .postcontent img {
    max-width: 100%;
    height: auto;
  }
  .postbit .postfoot,
  .postbit hr,
  .postbit .nodecontrols {
    display: none !important;
  }
  .postcontent .bbcode_quote,
  .postcontent blockquote.bbcode_quote,
  blockquote.quote {
    margin: 10px 0;
    padding: 8px 12px;
    border-left: 3px solid #156eba;
    background: #f2f2f7;
    border-radius: 0 8px 8px 0;
  }

  .footer,
  #footer {
    margin: 8px 16px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    text-align: center;
  }
  #footer_links {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px 0 4px;
    font-size: 14px;
  }
  #footer_links a {
    color: #156eba;
  }
  .below_body {
    padding: 0 16px 20px;
    text-align: center;
    color: #8e8e93;
    font-size: 12px;
    line-height: 1.4;
  }
}
