/* The page frame since 2026-10-25 (owner-approved mockup): the one-row header, the site footer and the ground.
   Loaded on every page after mcwm-original.css and archive.css. */

/* ---- Ground, top to bottom (owner 2026-10-25): the original sky, grass and dirt (the top 384 px of background.jpg);
   stone with ore veins (pipeline/draw-ground.py, 64 px blocks on the same grid); in the footer the deepest rows
   (redstone, diamond); one row of the original's bedrock at the very bottom, under the footer's text. The original's
   own stone and bedrock rows (384-1023 px) are not shown. */
html {
  height: auto; min-height: 100%;  /* mcwm-original.css sets html and body to the window's height, which put the bottom
                                      bedrock row one window down on every longer page */
  background: url('/assets/bedrock-bottom.png') repeat-x left bottom, url('/assets/ground/stone.png') repeat 0 0, #7b7b7b;  /* the stone's own grey until its picture arrives (owner: black flash on load) */
}
body { height: auto; background: transparent; }
/* No rubber-band stretch at the top and bottom of the page (owner 2026-10-26: "the header seems to bounce when on
   mobile and scrolling"): Android stretches the whole page there, the sticky header with it. */
html { overscroll-behavior-y: none; }
/* The footer stays at the window's bottom on short pages, so its bedrock row is the only one (owner 2026-10-25). */
body { display: flex; flex-direction: column; min-height: 100vh; }
#all_content { flex: 1 0 auto; width: 100%; padding-left: 0; padding-right: 0; }  /* the page runs edge to edge under the header */
body::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 384px; z-index: -1;
  background: url('/assets/background.jpg') repeat-x 0 0;
}

/* ---- Skip link and focus (every page) ---- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: 6px;
  background: #fff; color: #1d4a70; font-weight: bold; box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.skip-link:focus { top: 8px; }
/* Bootstrap 3 removes the outline from dropdown toggles, button groups and the menu button; every control shows
   where the keyboard is. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible, .btn:focus-visible, .dropdown-toggle:focus-visible,
.navbar-toggle:focus-visible { outline: 2px solid #2d6da3 !important; outline-offset: 2px; }
#main:focus { outline: none; }

/* ---- Header (owner 2026-10-25): a frosted bar across the whole window that stays at the top and stands on a strip
   of grass, 60 px tall with room between its parts ("header is cramped"); the logo, Browse and More with their
   dropdowns, Forums, Servers, the search box (search as you type), then the account: the bell and the player's head
   and name as one menu, or Sign in. ---- */
.site-nav {
  position: sticky; top: 0; z-index: 1200; min-height: 60px; margin-bottom: 0; border: 0; border-radius: 0; background: none;
  box-shadow: 0 4px 0 #5ea63c, 0 6px 0 #4f8f33, 0 8px 16px rgba(0, 0, 0, .2); font-family: var(--ui-font);
}
/* the bar's frosted glass is a layer behind it, so its menus can blur the page under them too */
.site-nav::before {
  content: ""; display: block; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
}
.site-nav > .container-fluid { max-width: none; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
/* margin-left !important: Bootstrap pulls the brand 15 px out of its container with a more specific rule */
.site-nav .navbar-brand { display: flex; align-items: center; gap: 8px; height: 60px; margin-left: 0 !important;
  padding: 0; color: #333; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.site-nav .navbar-brand:hover { color: #000; }
.site-nav .brand-name { font-weight: 800; letter-spacing: .01em; }  /* the normal face: the pixel one made the "C" read as an "O" */
.brand-tag { font-size: 10px; background: #2f752f; }
.site-nav .brand-tag { padding: 3px 8px; border-radius: 999px; }
.site-nav .navbar-nav > li > a { padding-top: 20px; padding-bottom: 20px; line-height: 20px; font-weight: 500; }
.site-nav .dropdown-menu > li > a { padding: 6px 12px; }  /* the menus' look: site.css popups (9b) */
/* The current section and an open menu: a rounded shape inset from the bar (as the side menu's current page), never
   Bootstrap's square grey band; the :hover and :focus forms beat Bootstrap's own. */
.site-nav .navbar-nav > li > a { isolation: isolate; }
.site-nav .navbar-nav > .active > a, .site-nav .navbar-nav > .active > a:hover, .site-nav .navbar-nav > .active > a:focus,
.site-nav .navbar-nav > .open > a, .site-nav .navbar-nav > .open > a:hover, .site-nav .navbar-nav > .open > a:focus { background: none; }
.site-nav .navbar-nav > .active > a::before, .site-nav .navbar-nav > .open > a::before {
  content: ""; position: absolute; inset: 12px 2px; z-index: -1; border-radius: 10px; }
.site-nav .navbar-nav > .active > a { color: var(--ui-current-text); font-weight: 700; }
.site-nav .navbar-nav > .active > a::before { background: var(--ui-current); }
.site-nav .navbar-nav > .open:not(.active) > a::before { background: var(--ui-menu-hover); }
.site-nav .navbar-toggle .icon-bar { background-color: #fff; box-shadow: 1px 1px 0 #3a3a3a; }
.site-nav-actions { display: flex; align-items: center; gap: 12px; }
.site-search { position: relative; flex: 1 1 320px; min-width: 160px; max-width: 520px; margin: 0; }
.site-search .form-control, .site-search .btn { height: 38px; font-size: 14px; }
/* the box (site.css fields) and its stone button (site.css buttons) are one unit */
.site-search .input-group .form-control { border-radius: 8px 0 0 8px; }
.site-search .btn { margin-left: -2px; border-radius: 0 8px 8px 0; padding: 0 14px; }
.site-account { display: flex; align-items: center; gap: 8px; }
.site-account [hidden] { display: none !important; }  /* !important: the buttons inside set their own display */
/* The header's buttons: the stone look of site.css's buttons, 38 px tall like the search box. */
.site-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px;
  font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.site-user { position: relative; }
.site-user .site-user-head { flex: none; width: 22px; height: 22px; margin-left: -6px; border-radius: 3px; image-rendering: pixelated; }
.site-user .site-user-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }  /* room for g, j, p, q, y (owner 2026-10-26: "name is getting cut off") */
.site-user .dropdown-menu { margin-top: 6px; min-width: 180px; }

/* ---- Notification bell (notifications.js), beside the account menu; signed in only ---- */
.site-bell { position: relative; flex: none; }
.site-bell[hidden] { display: none !important; }
.site-bell-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  margin-left: 8px; padding: 0; cursor: pointer; font-weight: 600;
}  /* the stone look: site.css buttons */
.site-bell-count {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #b03a2e; color: #fff; font-size: 11px; font-weight: bold; line-height: 18px; text-align: center;
}
.site-bell-count[hidden] { display: none; }
.site-bell-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 1100; width: 360px; max-width: calc(100vw - 24px);
}  /* the look: site.css popups (9b) */
.site-bell-panel[hidden] { display: none; }
.site-bell-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid #e9edf1; font-size: 14px; color: #222; }
.site-bell-read { font-weight: 600; }  /* the look: site.css .ui-btn .ui-btn-ghost; disabled: faded */
.site-bell-list { list-style: none; margin: 0; padding: 4px 0; max-height: min(70vh, 520px); overflow-y: auto; }
.site-bell-list li + li { border-top: 1px solid #f0f3f6; }
.site-bell-list a { display: flex; flex-direction: column; gap: 2px; padding: 9px 8px 9px 16px; color: #333 !important;
  text-decoration: none !important; position: relative; }
.site-bell-list li.is-new a::before { content: ""; position: absolute; left: 3px; top: 15px; width: 7px; height: 7px;
  border-radius: 50%; background: #2d6da3; }
.site-bell-text { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.site-bell-text b { color: #222; }
.site-bell-list small { font-size: 12px; color: #5d6874; }
.site-bell-empty { margin: 0; padding: 16px 14px; font-size: 13px; color: #5d6874; }

/* ---- Search as you type (site-search.js): the list under the box ---- */
.site-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 1100; width: max(100%, 380px); max-width: calc(100vw - 24px);
  max-height: min(75vh, 620px); overflow-y: auto;
}  /* the look: site.css popups (9b) */
.site-suggest[hidden] { display: none; }
.site-suggest ul { list-style: none; margin: 0; padding: 0; }

.site-suggest-none { padding: 6px 14px; font-size: 13px; color: #5d6874; }
.site-suggest-item a {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 5px 8px; color: #222 !important;
  text-decoration: none !important;
}
.site-suggest-item img { flex: none; width: 24px; height: 24px; border-radius: 3px; object-fit: cover; image-rendering: pixelated; }
.site-suggest-icon { flex: none; width: 24px; height: 24px; border-radius: 4px; background: #e3f1e3 url('/assets/grass-block.svg') no-repeat center / 16px auto; }
.site-suggest-thread .site-suggest-icon { background: #e7eef5; }
.site-suggest-thread .site-suggest-icon::before { content: "\2261"; display: block; text-align: center; line-height: 24px; color: #2d6da3; font-weight: bold; }
.site-suggest-text { display: flex; flex-direction: column; min-width: 0; }
.site-suggest-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.site-suggest-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #5d6874; }
.site-suggest-all { margin-top: 4px; border-top: 1px solid #e9edf1; }
.site-suggest-all .site-suggest-icon { background: #e7eef5; }
.site-suggest-all b { color: #2a6496; }

/* One row from tablets up (owner 2026-10-25: the short "MCWM Archive" name and Upload out of the header leave room
   for a wide search box): brand, menu, search, then the account (the bell and the name, or Sign in). */
@media (min-width: 768px) {
  .site-nav > .container-fluid { display: flex; align-items: center; }
  .site-nav > .container-fluid::before, .site-nav > .container-fluid::after { display: none; }
  .site-nav .navbar-header { flex: none; margin-left: 0 !important; margin-right: 0 !important; }
  .site-nav .navbar-collapse.collapse { display: flex !important; flex: 1 1 auto; align-items: center; min-width: 0;
    padding-right: 0; margin-right: 0 !important; }
  .site-nav .navbar-nav { display: flex; flex: none; margin-left: 24px; }
  .site-nav .navbar-nav > li { float: none; }
  .site-nav .navbar-nav > li > a { padding-left: 12px; padding-right: 12px; }
  .site-nav-actions { flex: 1 1 auto; justify-content: flex-end; margin-left: 24px; }
  .site-search { flex: 1 1 360px; max-width: 520px; }
  .site-bell-btn { margin-left: 12px; }
}
/* Tablets: a little less room between the parts. */
.site-drawer-head, .site-scrim, .site-drawer-nav { display: none; }  /* phones only (below) */
@media (min-width: 768px) and (max-width: 1099px) {
  .site-nav .navbar-nav { margin-left: 12px; }
  .site-nav .navbar-nav > li > a { padding-left: 9px; padding-right: 9px; }
  .site-nav-actions { margin-left: 12px; gap: 8px; }
  .site-search { flex-basis: 180px; }
  .site-btn { padding: 0 12px; }
}
@media (max-width: 767px) {
  /* Bootstrap pulls the bar's parts 15 px past the container on phones; they stay inside it here. */
  .site-nav .navbar-header, .site-nav .navbar-collapse { margin-left: 0 !important; margin-right: 0 !important; }
  .site-nav .navbar-collapse { padding-left: 0; padding-right: 0; }
  .site-nav .navbar-brand { height: 56px; font-size: 16px; }
  .site-nav .navbar-toggle { margin: 8px 0 0; min-height: 40px; min-width: 44px; }
  .site-nav > .container-fluid { position: relative; }
  .site-bell { position: absolute; top: 8px; right: 77px; }
  .site-bell-btn { width: 44px; height: 40px; margin: 0; }
  .site-bell-panel { position: fixed; top: 60px; left: 12px; right: 12px; width: auto; max-width: none; }
  /* Signed in, the bell takes the tag's place beside the name. */
  .site-nav:has(.site-bell:not([hidden])) .brand-tag { display: none; }
  .site-nav .navbar-nav { margin: 4px 0; }
  .site-nav .navbar-nav > li > a { padding-top: 12px; padding-bottom: 12px; }
  .site-nav .navbar-nav > .active > a::before, .site-nav .navbar-nav > .open > a::before { inset: 2px 0; }
  /* the Browse and More menus open in the flow: their items as the other menu items, not Bootstrap's grey and indented */
  .site-nav .navbar-nav .open .dropdown-menu > li > a { padding: 6px 12px; color: #333; }
  .site-nav-actions { flex-direction: column; align-items: stretch; padding: 4px 0 12px; }
  .site-search { flex: none; max-width: none; }
  /* The menu is a panel that slides in from the right over the page, with a dim layer behind it (owner 2026-10-26:
     "a proper sidebar ... so it doesn't push down inline"): its close button and the search box first, then the
     account, then the links. Search suggestions take their place in the panel's flow. */
  .site-nav .navbar-collapse, .site-nav .navbar-collapse.collapse {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1300; display: flex !important; flex-direction: column;
    width: min(340px, 88vw); height: 100% !important; max-height: none; margin: 0 !important; padding: 0 16px 12px !important;
    overflow-y: auto; overscroll-behavior: contain; border: 0; border-left: 2px solid #2b2b2b; background: #f4f6f8;
    box-shadow: -8px 0 24px rgba(0, 0, 0, .3); transform: translateX(105%); visibility: hidden;
    transition: transform .2s ease-out, visibility 0s linear .2s; }
  .site-nav .navbar-collapse.in { transform: none; visibility: visible; transition: transform .2s ease-out; }
  .site-drawer-head { display: flex; align-items: center; justify-content: space-between; min-height: 60px;
    margin: 0 -16px 4px; padding: 0 16px; border-bottom: 2px solid #e1e5ea; font-size: 18px; }
  .site-drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border: 2px solid #1e1e1e; border-radius: 8px; color: #fff; background: linear-gradient(#8b8b8b, #6f6f6f);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 3px 0 rgba(0, 0, 0, .35); }
  .site-drawer-close:hover { background: linear-gradient(#9a9fd8, #7e85c9); border-color: #fff; }
  .site-drawer-head { order: -2; position: sticky; top: 0; z-index: 10; flex: none; background: #f4f6f8; }  /* stays while the panel scrolls (owner 2026-10-26), over the search box (Bootstrap lifts it to 2) */
  .site-nav .navbar-collapse .site-nav-actions { order: -1; padding: 8px 0 4px; }
  .site-nav .navbar-collapse .navbar-nav { margin: 4px 0; }
  .site-nav .navbar-collapse .navbar-nav > li > a { padding-left: 12px; padding-right: 12px; }
  /* the links: the side menu's sections (site.css .site-side), flat in the panel; Browse and More are not shown here,
     nor the account menu's Upload and My worlds (they are in the "You" section) */
  .site-nav .navbar-collapse > .navbar-nav, .site-user .site-user-narrow { display: none !important; }
  .site-drawer-nav { display: block; margin: 4px -8px 0; }
  .site-drawer-nav .site-side { display: block; position: static; max-height: none; margin: 0; padding: 0; border: 0;
    border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; }
  .site-drawer-nav .site-side a { min-height: 40px; }  /* the whole panel fits a 412 x 915 phone, signed in (owner 2026-10-26) */
  /* the account menu opens as a plain list in the panel too */
  .site-nav .navbar-collapse .site-user .dropdown-menu { margin: 6px 0 0; padding: 0; border: 0; border-radius: 0;
    background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-nav .navbar-collapse .site-user .dropdown-menu::before { content: none; }
  .site-scrim { display: block; position: fixed; inset: 0; z-index: 1250; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none;
    transition: opacity .2s; }
  html.site-menu-open .site-scrim { opacity: 1; pointer-events: auto; }
  html.site-menu-open, html.site-menu-open body { overflow: hidden; }
  .site-suggest { position: static; width: 100%; max-height: none; margin-top: 6px; box-shadow: none; }
  .site-suggest-item a { min-height: 44px; }
  .site-account > a, .site-account > .site-user { flex: 1 1 0; }
  .site-account .site-btn { width: 100%; height: 44px; }
  .site-user .dropdown-menu { position: static; float: none; width: 100%; box-shadow: none; }
}

/* ---- Footer: the deepest ore rows and the one bedrock row under them, all behind the dark tint, which reaches the
   window's bottom (owner 2026-10-25). The ground runs straight on into it ("they should be together"). ---- */
.site-footer {
  position: relative; margin-top: 0; padding-bottom: 16px; color: #c8c8c8; font-family: var(--ui-font);
  background: linear-gradient(rgba(10, 10, 10, .74), rgba(10, 10, 10, .74)) 0 0 / 100% 100% no-repeat,
              url('/assets/bedrock-bottom.png') repeat-x 0 100%,
              url('/assets/ground/deep.png') repeat 0 calc(100% - 64px);
}
.site-footer-inner {  /* the page column, as the header's content */
  display: flex; flex-wrap: wrap; gap: 20px 48px; max-width: calc(var(--ui-width, 1200px) + 30px); margin: 0 auto; padding: 22px 25px 18px;
  box-sizing: border-box;
}
.site-footer p { margin: 0; }
.site-footer-about { flex: 2 1 300px; display: flex; flex-direction: column; gap: 8px; }
.site-footer-title { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 16px; }
.site-footer-title span { color: #aaa; font-size: 13px; }
.site-footer-totals { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer-totals b { color: #fff; font-size: 18px; }
.site-footer-text { max-width: 440px; font-size: 13px; color: #b0b0b0; }
.site-footer .footer-notice { color: #a6a6a6; }
.site-footer-links { flex: 1 1 140px; }
.site-footer-head { margin-bottom: 8px !important; color: #fff; font-size: 13px; font-weight: bold; letter-spacing: .03em;
  text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.site-footer a { color: #cfdcea; font-size: 13px; }
.site-footer li a { display: inline-block; padding: 5px 0; }  /* 26 px tall targets */
.site-footer .footer-notice a { display: inline-block; padding: 5px 0; }
.site-footer a:hover, .site-footer a:focus { color: #fff; }
.site-footer .footer-notice a { font-size: 12px; }

/* Phones: the footer's text 12 px from the screen's edges. */
@media (max-width: 600px) {
  .site-footer-inner { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 400px) {
  .site-nav:has(.site-bell:not([hidden])) .navbar-brand { font-size: 14px; gap: 6px; }
}
/* Account menu items that the side menu already has show only when the side menu is hidden (owner 2026-10-26). */
@media (min-width: 1100px) { .site-user .site-user-narrow { display: none; } }
/* Icons in the header menus, like the side menu's (owner 2026-10-26); the account menu opens with the head and name. */
.site-nav .dropdown-menu > li > a { display: flex; align-items: center; gap: 10px; }
.site-nav .dropdown-menu > li > a .ui-icon { flex: none; width: 16px; height: 16px; color: #4a5560; }
.site-nav .dropdown-menu > li > a:hover .ui-icon { color: #2e7d32; }
.site-user .dropdown-menu { min-width: 240px; }
.site-user-card > a { gap: 12px !important; padding-top: 10px !important; padding-bottom: 10px !important; }
.site-user-card-head { width: 36px; height: 36px; border-radius: 6px; image-rendering: pixelated; }
.site-user-card span { display: flex; flex-direction: column; line-height: 1.25; }
.site-user-card b { font-size: 15px; color: #1f2933; }
.site-user-card small { font-size: 12px; color: #2a6496; }
/* An invisible bridge over the gap between a menu's button and the open menu, so moving down onto it never counts as
   leaving (owner 2026-10-26: "don't close it prematurely"). */
.site-nav .dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
