/* The parts every server hub shares: the server picker, the hub's own menu, its framed panels and
   the lists inside them. Loaded after vault.css on every page. The colours and materials come from
   tokens; a theme file beside this one (`theme` in network.toml) changes them, and nothing else
   needs to. With no theme file a hub wears the network's Ember look. */

:root {
  --hub-accent: var(--primary);
  --hub-bar-bg: var(--surface2);
  --hub-bar-text: var(--text);
  --panel-frame: var(--surface);
  --panel-bg: var(--surface);
  --panel-head-bg: var(--surface2);
  --panel-head-text: var(--primary);
  --panel-text: var(--text);
  --panel-muted: var(--muted);
  --panel-link: var(--primary);
  --panel-line: var(--line);
  --panel-up: var(--up);
  --panel-down: var(--down);
  --slot-bg: var(--surface2);
  /* What the widgets inside a panel (market, hiscores, auctions) are drawn on. */
  --panel-card: #2a1c2b;
  --panel-card2: #35243a;
  --panel-line-hi: #5a4258;
  --panel-btn-ink: #1a0f05;
}

/* A theme with a layered sky draws it in this element; for any other it is not there. */
.sky { display: none; }

/* ---------- The server picker, in every page's header ---------- */
.servers { position: relative; flex: none; }
.servers > summary { gap: 10px; padding-inline: 16px; list-style: none; white-space: nowrap; user-select: none; }
.servers > summary::-webkit-details-marker { display: none; }
.servers > summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.servers[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
/* `.nav .servers-list` outweighs the header's own link rules, whatever their order. */
.nav .servers-list {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; width: min(340px, calc(100vw - 32px)); margin: 0; padding: 8px; list-style: none;
  border: 1px solid #5a4258; border-radius: 12px; background: #1f1420; box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.nav .servers-list a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; justify-content: stretch; align-items: center; min-height: 56px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: #f3ecdc; text-decoration: none; }
.nav .servers-list a:hover { background: #2a1c2b; }
.nav .servers-list a[aria-current] { background: #2a1c2b; box-shadow: inset 3px 0 0 #f7c431; }
.servers-list b { display: block; font-family: var(--f-pixel); font-size: .85rem; }
.servers-list small { display: block; color: #bdb19a; font-size: .8rem; }
.servers-list em { font-style: normal; font-size: .8rem; color: #bdb19a; white-space: nowrap; font-variant-numeric: tabular-nums; }
.servers-list em b { display: inline; font-family: var(--f-body); color: #5fd35a; }
.swatch { display: block; width: 40px; height: 40px; border: 2px solid #5a4258; border-radius: 6px; background: #3d2a3c; image-rendering: pixelated; }
.swatch[data-theme="hearthstone"] { border-color: #8c8175; background: linear-gradient(#e8d7ae 0 62%, #e06a1f 62% 70%, #523428 70%); }
.swatch[data-theme="lantern-quay"] { border-color: #6b4a2f; background: radial-gradient(circle at 50% 38%, #ffd98a 0 22%, #c9a227 26% 30%, transparent 34%), linear-gradient(#7fa8c9 0 66%, #6b4a2f 66%); }
.swatch[data-theme="saltreach"] { border-color: #874220; background: linear-gradient(#56747a 0 46%, #e0a05a 46% 56%, #1e454c 56% 74%, #474f53 74%); }
.swatch[data-theme="emberfall"] { border-color: #8a6a2a; background: radial-gradient(circle at 66% 30%, #fff0b0 0 8%, #ff8a2a 16%, transparent 34%), linear-gradient(#191233 0 58%, #8a2e22 70%, #241214 70%); }
.swatch[data-theme="saltdeep"] { border-color: #68503a; background: linear-gradient(#ebe8e2 0 28%, #dea4a0 28% 50%, #429088 50% 72%, #7c9cc2 72% 88%, #3a3a44 88%); }

@media (max-width: 559.98px) {
  .panel-head { gap: 6px; flex-wrap: nowrap; }
  .panel-head :is(h1, h2) { font-size: .9rem; min-width: 0; }
  .panel-head a { white-space: nowrap; font-size: .82rem; }
}

/* On a phone the picker sits in the bar between the logo and Menu. */
@media (max-width: 1079.98px) {
  .nav { grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .nav .brand { grid-column: 1; grid-row: 1; }
  .nav .servers { grid-column: 2; grid-row: 1; }
  .nav .side { grid-column: 3; }
  .nav .menu-btn { grid-column: 4; }
}
@media (max-width: 559.98px) {
  .nav .side { display: none; }
  .nav .menu-btn { grid-column: 4; justify-self: end; }
  .nav .servers > summary { padding-inline: 12px; }
  .nav .servers-list { position: fixed; top: 68px; left: 16px; }
}

/* ---------- The hub's shell and menu ---------- */
.hubshell { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hubbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hubbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding-block: 10px;
  padding-inline: max(var(--gutter), (100% - var(--page)) / 2);
  background: var(--hub-bar-bg); color: var(--hub-bar-text); border-bottom: 1px solid var(--line);
}
.hubname { display: inline-flex; align-items: center; min-height: var(--touch); font-family: var(--f-pixel); font-weight: 700; font-size: 1.35rem; color: var(--hub-accent); text-decoration: none; white-space: nowrap; }
.hubnav { flex: 1; min-width: 0; }
.hubnav ul { display: flex; gap: 6px; margin: 0; padding: 4px 2px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.hubnav a { display: flex; align-items: center; justify-content: center; min-height: var(--touch); padding: 0 16px; border-radius: 8px; color: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hubnav a:hover { background: var(--line); }
.hubnav a[aria-current="page"] { background: var(--bg); box-shadow: inset 0 -3px 0 var(--hub-accent); }
@media (max-width: 759.98px) {
  .hubbar { gap: 0; padding-block: 6px; }
  .hubname { width: 100%; justify-content: center; font-size: 1.15rem; }
  .hubnav { flex-basis: 100%; }
  .hubnav ul { flex-wrap: wrap; justify-content: center; overflow: visible; }
  .hubnav a { padding: 0 12px; font-size: .92rem; }
}

/* ---------- Hub home: the sign and the panels ---------- */
.hubhero { padding-block: 28px 8px; padding-inline: max(var(--gutter), (100% - var(--page)) / 2); }
.sign { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px; border: 1px solid var(--panel-line); border-radius: var(--radius-lg); background: var(--panel-bg); color: var(--panel-text); }
.sign h1 { margin: 0; color: var(--panel-head-text); font-size: clamp(2rem, 8vw, 3.6rem); overflow-wrap: normal; }
.sign .kicker { margin: 0 0 6px; color: var(--panel-muted); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sign .tagline { margin: 10px 0 0; color: var(--panel-text); font-size: 1.15rem; }
.sign .live { margin-top: 14px; color: var(--panel-text); font-weight: 500; }
.sign .live b { color: var(--panel-up); }
.sign-art { display: none; align-self: center; }
.sign-art img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.sign-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sign-actions .ip { flex: 0 1 380px; margin: 0; }
@media (min-width: 860px) {
  .sign.with-art { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); column-gap: 32px; }
  .sign.with-art .sign-art { display: block; grid-column: 2; grid-row: 1; }
  .sign.with-art .sign-actions { grid-column: 1 / -1; }
}

.panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 22px 8px; padding-inline: max(var(--gutter), (100% - var(--page)) / 2); align-items: start; }
@media (min-width: 900px) {
  .panels { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .panel { grid-column: span 6; }
  .panel.major { grid-column: span 7; }
  .panel.minor { grid-column: span 5; }
  .panel.full { grid-column: 1 / -1; }
}
.panel { display: flex; flex-direction: column; min-width: 0; align-self: stretch; border: 1px solid var(--panel-line); border-radius: var(--radius-lg); background: var(--panel-frame); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 52px; padding: 6px 18px; background: var(--panel-head-bg); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.panel-head :is(h1, h2) { margin: 0; color: var(--panel-head-text); font-size: 1.05rem; }
.panel-head a { display: inline-flex; align-items: center; min-height: var(--touch); color: var(--panel-head-text); font-size: .9rem; font-weight: 600; }
.panel-body > * { min-width: 0; }
.panel-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding: 16px 18px 18px; background: var(--panel-bg); color: var(--panel-text); }
/* Everything inside a panel reads in the panel's own ink, the existing widgets included. */
.panel-body, .sign {
  --text: var(--panel-text); --muted: var(--panel-muted); --primary: var(--panel-link); --line: var(--panel-line);
  --up: var(--panel-up); --down: var(--panel-down); --surface: var(--panel-card); --surface2: var(--panel-card2); --bg: var(--panel-card);
  --line-hi: var(--panel-line-hi); --primary-ink: var(--panel-btn-ink); --primary-hi: var(--panel-link);
  /* The medal colours, dark enough for a light panel where a theme has one. */
  --silver: var(--panel-silver, #d6dbe3); --a1: var(--panel-bronze, #ff7a3d);
}
.panel-body p { margin: 0; }
.panel-body h3 { margin: 4px 0 0; color: var(--panel-text); font-size: .85rem; }

.hublist { display: grid; margin: 0; padding: 0; list-style: none; }
.hublist > li + li { border-top: 1px solid var(--panel-line); }
.hubrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 56px; padding: 6px 0; text-decoration: none; color: var(--panel-text) !important; }
.slot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; background: var(--slot-bg); }
.slot img { width: 32px; height: 32px; image-rendering: pixelated; }
.hubrow .name { display: grid; min-width: 0; line-height: 1.35; }
.hubrow .name strong { font-weight: 600; }
.hubrow .name small { color: var(--panel-muted); font-size: .84rem; }
.hubrow .val { display: grid; justify-items: end; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.35; }
.hubrow .val small { color: var(--panel-muted); font-size: .8rem; font-weight: 600; }
.hubrow .val small.up { color: var(--panel-up); }
.hubrow .val small.down { color: var(--panel-down); }
.place { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 4px; border-radius: 50%; background: var(--slot-bg); font-family: var(--f-pixel); font-size: .85rem; font-weight: 700; color: var(--panel-text); }
.place[data-place="1"] { background: #f7c431; color: #241503; }
.place[data-place="2"] { background: #d6dbe3; color: #1d2026; }
.place[data-place="3"] { background: #d98d55; color: #241003; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 4px 24px; }

.hubmap { display: block; overflow: hidden; aspect-ratio: 16 / 10; border: 3px solid var(--panel-line); border-radius: 6px; background: var(--slot-bg); }
.hubmap img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.panel-actions .btn { padding-inline: 20px; }

.hub .foot { margin-top: 32px; }

/* A section staff switched off leaves its neighbour the whole row. */
@media (min-width: 900px) {
  .panels > .panel[hidden] + .panel.minor, .panels > .panel.major:has(+ .panel.minor[hidden]) { grid-column: 1 / -1; }
}
/* A map not drawn yet leaves the theme's own picture. */
.hubmap.none img, .sign-art.none img { visibility: hidden; }

/* The configured boards inside a panel: the top five, numbered. */
.panel-body .boards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px 24px; }
.panel-body .board .rows { counter-reset: place; }
.panel-body .board .row { counter-increment: place; grid-template-columns: 40px minmax(0, 1fr) auto; min-height: 52px; border-bottom: 1px solid var(--panel-line); }
.panel-body .board .row:last-child { border-bottom: 0; }
.panel-body .board .row:nth-child(n + 6) { display: none; }
.panel-body .board .row i { display: grid; place-items: center; width: 32px; height: 32px; margin: 0 4px; border: 0; border-radius: 50%; background: var(--slot-bg); color: var(--panel-text); font-style: normal; }
.panel-body .board .row i::before { content: counter(place); font-family: var(--f-pixel); font-size: .85rem; font-weight: 700; }
.panel-body .board .row:nth-child(1) i { background: #f7c431; color: #241503; }
.panel-body .board .row:nth-child(2) i { background: #d6dbe3; color: #1d2026; }
.panel-body .board .row:nth-child(3) i { background: #d98d55; color: #241003; }
.panel-body .board .row a { color: var(--panel-text); font-weight: 600; text-decoration: none; }
.panel-body .board .row em { color: var(--panel-text); font-weight: 600; }

/* ---------- The network home's server cards: each wears its hub's colours ---------- */
.worlds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* As many in a row as fit at a readable width: five servers on a desktop. */
@media (min-width: 1100px) { .worlds { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.world { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); text-decoration: none; }
.world:hover { border-color: var(--primary); }
.world-art { display: block; height: 132px; background: #2a1c2b; image-rendering: pixelated; border-bottom: 4px solid var(--line-hi); }
.world[data-theme="hearthstone"] .world-art { background: url("/static/img/hubs/vale.png") center bottom / auto 132px no-repeat, linear-gradient(180deg, #2c2440, #a8502a 62%, #f0a050); border-bottom-color: #e06a1f; }
.world[data-theme="lantern-quay"] .world-art { background: url("/static/img/hubs/isles.png") center / auto 124px no-repeat, linear-gradient(180deg, #4f7396, #a9bfce 75%, #e2c8a4); border-bottom-color: #c9a227; }
.world[data-theme="saltreach"] .world-art { background: url("/static/img/hubs/saltreach/siltwife.png") center / auto 128px no-repeat, linear-gradient(180deg, #263b42, #56747a 52%, #e0a05a 66%, #1e454c 67%); border-bottom-color: #ad5f2c; image-rendering: auto; }
.world[data-theme="emberfall"] .world-art { background: url("/static/img/hubs/emberfall/kindlemark.png") center / auto 126px no-repeat, linear-gradient(180deg, #0a0a22, #3a1a46 62%, #8a2e22); border-bottom-color: #e8b13a; image-rendering: auto; }
.world[data-theme="saltdeep"] .world-art { background: url("/static/img/hubs/saltdeep/shaft.png") center / auto 128px no-repeat, linear-gradient(180deg, #4a7d94, #8fbcc2 55%, #e4dcd2); border-bottom-color: #2e6c6c; image-rendering: auto; }
.world[data-theme=""] .world-art { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #2a1c2b 0 14px, #231723 14px 28px); }
.world[data-theme=""] .world-art::after { content: attr(data-initial); font-family: var(--f-pixel); font-size: 3.4rem; font-weight: 700; color: #5a4258; }
.world:nth-child(4n + 2)[data-theme=""] .world-art { background: linear-gradient(160deg, #5a2c1c, #24161a 70%); }
.world:nth-child(4n + 3)[data-theme=""] .world-art { background: radial-gradient(80% 90% at 50% 100%, rgba(255, 122, 61, .55), transparent 70%), #241320; }
.world[data-theme=""] .world-art::after { color: rgba(243, 236, 220, .35); }
.world .name { flex: 1; display: grid; align-content: start; gap: 6px; padding: 14px 16px 6px; }
.world strong { font-family: var(--f-pixel); font-size: 1.15rem; color: var(--primary); }
.world small { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.world .foot-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 16px; font-weight: 600; font-size: .9rem; }
.world .foot-line b { color: var(--up); }
.world .enter { color: var(--primary); white-space: nowrap; }

/* ---------- The depth the later hubs share: layered sky, framed hero, floating panels ---------- */
body:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) { position: relative; overflow-x: clip; }
body:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep)::after { content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none; background: radial-gradient(125% 100% at 50% 42%, transparent 58%, var(--vignette) 100%); }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sky { display: block; position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sky i { position: absolute; display: block; background-repeat: no-repeat; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .hubshell, :is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .foot { position: relative; z-index: 1; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .nav { position: relative; z-index: 40; }

:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .hubbar { flex-direction: column; gap: 0; padding-block: 30px 0; background: none; border: 0; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .hubname { position: relative; z-index: 2; justify-content: center; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .hubnav { position: relative; flex: none; width: 100%; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .hubnav ul { position: relative; flex-wrap: wrap; justify-content: center; overflow: visible; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .hubnav li { position: relative; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .hubnav a { position: relative; z-index: 1; }

:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 6px max(var(--gutter), (100% - var(--page)) / 2) 0; padding: 12px 18px; text-align: center; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .notice p { margin: 0; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .notice a { font-weight: 600; }

/* The art's glow and corner lashings may run past the page on a phone; they never scroll it. */
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .hubhero { overflow-x: clip; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sign { column-gap: 30px; row-gap: 22px; padding: 0; border: 0; background: none; box-shadow: none; align-items: center; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sign .words { position: relative; padding: 34px 36px 30px; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sign .words > * { position: relative; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sign-actions { gap: 12px; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sign .sign-art { position: relative; display: block; order: -1; align-self: center; justify-self: center; width: 100%; max-width: 680px; padding: 0; border: 0; background: none; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sign .sign-art::before { content: ""; position: absolute; inset: -8% -6% 0; background: radial-gradient(closest-side, var(--spill), transparent); }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sign-art img { position: relative; z-index: 1; width: 100%; height: auto; max-height: 560px; object-fit: contain; image-rendering: auto; border: 0; }
@media (min-width: 860px) {
  :is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sign.with-art { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); grid-template-rows: auto auto; }
  :is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sign.with-art .words { grid-column: 1; grid-row: 1; align-self: end; }
  :is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sign.with-art .sign-actions { grid-column: 1; grid-row: 2; align-self: start; }
  :is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sign.with-art .sign-art { grid-column: 2; grid-row: 1 / span 2; order: 0; }
}
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sign .btn, :is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .panel-actions .btn { min-height: 48px; padding-inline: 20px; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sign-actions .btn { padding-inline: 15px; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .panel-actions { padding-top: 6px; }

:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .panel { position: relative; box-shadow: var(--float); }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .panel-head { position: relative; gap: 8px; min-height: 58px; padding: 0 4px 12px; background: none; border-radius: 0; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .panel-head :is(h1, h2) { margin: 0; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .panel-head a { min-height: 40px; padding: 0 14px; text-decoration: none; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .panel-body { position: relative; padding: 22px 22px 24px; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .panel-body small { line-height: 1.4; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .hubrow { grid-template-columns: 44px minmax(0, 1fr) auto; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .slot { width: 44px; height: 44px; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .slot img { width: 32px; height: 32px; object-fit: contain; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .place { margin: 0 6px; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .hubmap { position: relative; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .hubmap::after { content: ""; position: absolute; inset: 0; box-shadow: inset 4px 6px 16px rgba(0, 0, 0, .5); pointer-events: none; }
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .hubmap.square { aspect-ratio: 1; width: 100%; max-width: 460px; justify-self: center; }

@media (max-width: 759.98px) {
  :is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .hubbar { padding-top: 24px; }
  :is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .hubnav a { min-width: 0; min-height: 46px; padding: 0 14px; font-size: .9rem; }
}
@media (max-width: 559.98px) {
  :is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .panel { padding: 8px; }
  :is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .panel-head { padding: 2px 0 10px; min-height: 50px; }
  :is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .panel-head a { padding: 0 10px; }
  :is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .panel-body { padding: 16px 14px 18px; }
  :is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sign .words { padding: 22px 18px; }
  :is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .sign-actions > * { flex: 1 1 100%; }
}
/* A landing page alone has no menu: its name board keeps clear of what follows. */
:is(.theme-saltreach, .theme-emberfall, .theme-saltdeep) .hubbar:not(:has(.hubnav)) { padding-bottom: 22px; }
