/* What every public page shares on top of its own styles: the phone menu, small layout fixes and quiet motion.
   Loaded last on the blog, the server's site and schem.beezzland.com. */
header.top nav { align-items: center; }
.fx-burger { display: none; }

@media (max-width: 860px) {
  html.fx-menu header.top .wrap { position: static; height: 62px; flex-wrap: nowrap; }
  .fx-burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-left: auto; padding: 0 10px; flex: none;
    background: transparent; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
  .fx-burger i { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
  .fx-burger[aria-expanded=true] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .fx-burger[aria-expanded=true] i:nth-child(2) { opacity: 0; }
  .fx-burger[aria-expanded=true] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  html.fx-menu header.top nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 6px 16px 14px; gap: 0; flex-direction: column; flex-wrap: nowrap; align-items: stretch;
    max-height: calc(100vh - 62px); overflow-y: auto; background: #0a1120; border-bottom: 1px solid var(--border); box-shadow: 0 18px 30px rgba(0,0,0,.45); white-space: normal; }
  html.fx-menu header.top nav.fx-open { display: flex; animation: fx-drop .16s ease-out; }
  html.fx-menu header.top nav a, html.fx-menu header.top nav a.hide-sm { display: block; padding: 12px 4px; font-size: 16px; border-bottom: 1px solid rgba(29,43,74,.6); }
  html.fx-menu header.top nav a:last-child { border-bottom: 0; }
  html.fx-menu header.top nav a.srv { margin-top: 10px; padding: 12px; border-radius: 10px; text-align: center; border-bottom: 0; }
  html.fx-menu header.top nav a.lang { align-self: flex-start; margin-top: 8px; padding: 6px 12px; border: 1px solid var(--border); font-size: 14px; }
  footer a { display: inline-block; padding: 7px 0; }
  .toc a { padding: 5px 0; }
  .crumbs a { display: inline-block; padding: 5px 0; }
}
@keyframes fx-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* blog */
.secs { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.acard .noimg { font-size: 0; background: radial-gradient(circle at 50% 45%, #1d3158, #101b31 70%) ; position: relative; }
.acard .noimg::after { content: ""; width: 72px; height: 72px; background: url(/assets/bee-256.png) center / contain no-repeat; opacity: .9; }

/* server's site */
.cmd { font-size: 12px !important; }
@media (min-width: 821px) { .main > .panel:first-child { position: sticky; top: 84px; } }
@media (min-width: 761px) {
  .news-grid:has(> .news-card:only-child) { grid-template-columns: 1fr; }
  .news-grid > .news-card:only-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto auto 1fr; column-gap: 26px; align-content: start; }
  .news-grid > .news-card:only-child img { grid-row: 1 / 4; width: calc(100% + 24px); height: calc(100% + 48px); margin: -24px 0 -24px -24px; }
}

.atabs { flex-wrap: wrap; }
.two > .panel, .panel { min-width: 0; }

/* the offer: the seller's lines stay inside on a phone */
.req { grid-template-columns: minmax(0, 140px) minmax(0, 1fr); }
.req dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .req { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .req dd { margin-bottom: 10px; }
}

/* motion */
a.card, .acard, .secard { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
a.card, .acard { overflow: hidden; }
a.card img, .acard img { transition: transform .35s ease; }
a.card:hover, .acard:hover, .secard:hover { transform: translateY(-3px); border-color: rgba(250,204,21,.65); box-shadow: 0 12px 28px rgba(0,0,0,.35); }
a.card:hover img, .acard:hover img { transform: scale(1.03); }
.btn { transition: transform .1s ease, filter .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(1px) scale(.985); }
.fx-hide { opacity: 0; transform: translateY(14px); }
.fx-show { transition: opacity .35s ease, transform .35s ease; }
@media print { .fx-hide { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  a.card:hover, .acard:hover, .secard:hover, a.card:hover img, .acard:hover img, .btn:active { transform: none; }
}

@media (max-width: 760px) { table.top { display: block; max-width: 100%; overflow-x: auto; } }

/* a mod's page: version and loader */
.modbox { margin: 18px 0; padding: 20px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid rgba(250,204,21,.45); border-radius: var(--radius, 14px); }
.modbox h2 { margin: 0 0 12px; }
.modsel { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.modsel label { flex: 1 1 150px; font-size: 14px; font-weight: 700; color: var(--muted); }
.modsel select { display: block; width: 100%; min-height: 46px; margin-top: 5px; padding: 8px 40px 8px 14px; border-radius: 10px; border: 1px solid var(--border); color: var(--text); font: 700 16px var(--body); cursor: pointer; -webkit-appearance: none; appearance: none; transition: border-color .15s ease;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23facc15' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.modsel select:hover { border-color: rgba(250,204,21,.65); }
.modsel select:focus-visible { outline: 2px solid var(--honey); outline-offset: 1px; }
.modsel select:disabled { cursor: default; opacity: .75; background-image: none; padding-right: 14px; }
.modsel select option { background: #0e1729; color: #e7eefb; }
.modsel .btn { flex: 1 1 150px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
.modinfo { margin: 10px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
