/* ==========================================================================
   Interior pages — layout that belongs to one page type rather than to the
   shared component set. Order: features, join, vote, wiki, community, 404.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Sub-navigation: a row of jump links that sticks under the main bar.
   -------------------------------------------------------------------------- */

.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: var(--z-raised);
  background: rgba(5, 8, 15, 0.94);
  border-bottom: 1px solid var(--line);
}

/* Centred while it fits; once it has to scroll it starts from the left,
   which plain justify-content: center would clip. */
.subnav__list {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  display: flex;
  gap: var(--s-1);
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav__list::-webkit-scrollbar {
  display: none;
}

.subnav__list a {
  display: block;
  padding: var(--s-4) var(--s-3);
  border-bottom: 3px solid transparent;
  color: var(--ink-mute);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.subnav__list a:hover {
  color: var(--ink);
}

.subnav__list a.is-active {
  border-bottom-color: var(--oasis-lime);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Feature rows — image and copy side by side, alternating.
   -------------------------------------------------------------------------- */

.feature {
  padding-block: calc(var(--section-y) * 0.7);
  border-bottom: 1px solid var(--line);
  /* Clear both the main bar and the sticky sub-navigation. */
  scroll-margin-top: calc(var(--nav-h) + 3.5rem);
}

.feature:nth-of-type(even) {
  background: var(--night-900);
}

.feature__grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}

.feature__media {
  --block-edge: var(--line-strong);
  padding: 1px;
}

.feature__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature__copy > * + * {
  margin-top: var(--s-4);
}

.feature__copy h2 {
  font-size: var(--text-2xl);
}

@media (min-width: 900px) {
  .feature__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }

  .feature:nth-of-type(even) .feature__media {
    order: 2;
  }
}

/* Facts — the hard numbers behind a feature, as a compact grid. */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: var(--s-5) 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.facts > div {
  padding: var(--s-4);
  background: var(--night-950);
}

.feature:nth-of-type(even) .facts > div {
  background: var(--night-900);
}

.facts dt {
  color: var(--ink-mute);
  font-size: var(--text-xs);
  line-height: 1.35;
}

.facts dd {
  margin: var(--s-1) 0 0;
  color: var(--ink);
  font-family: var(--font-hud);
  font-size: var(--text-lg);
  line-height: 1.2;
}

@media (min-width: 560px) {
  .facts--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Name tags — a wrapped list of short names (jobs, skills, enchantments). */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* --------------------------------------------------------------------------
   Join — live status strip
   -------------------------------------------------------------------------- */

.livebar {
  display: grid;
  gap: 1px;
  background: var(--line);
  padding: 1px;
  --block-fill: var(--line);
}

.livebar > div {
  padding: var(--s-4) var(--s-5);
  background: var(--night-900);
}

.livebar dt {
  color: var(--ink-mute);
  font-size: var(--text-xs);
}

.livebar dd {
  margin: var(--s-1) 0 0;
  color: var(--ink);
  font-family: var(--font-hud);
  font-size: var(--text-base);
}

@media (min-width: 760px) {
  .livebar {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.split {
  display: grid;
  gap: var(--s-7);
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--s-8);
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   Vote
   -------------------------------------------------------------------------- */

.field {
  display: grid;
  gap: var(--s-2);
}

.field label {
  color: var(--ink);
  font-weight: 600;
}

.field__row {
  display: flex;
  gap: var(--s-2);
}

.field input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0 var(--s-4);
  border: 0;
  background: var(--night-950);
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.6), inset -2px -2px 0 rgba(150, 190, 255, 0.14);
  color: var(--ink);
  font-family: var(--font-hud);
  font-size: var(--text-base);
}

.field input::placeholder {
  color: var(--ink-mute);
}

.field__hint {
  color: var(--ink-mute);
  font-size: var(--text-sm);
}

.sites {
  display: grid;
  gap: var(--s-3);
  counter-reset: site;
}

.site {
  counter-increment: site;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  color: inherit;
  text-decoration: none;
}

.site::after {
  content: none;
}

.site__n {
  color: var(--ink-mute);
  font-size: var(--text-sm);
}

.site__n::before {
  content: counter(site, decimal-leading-zero);
}

.site__name {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
}

.site__host {
  display: block;
  color: var(--ink-mute);
  font-size: var(--text-sm);
}

.site__go {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--oasis-lime);
  font-family: var(--font-display);
  font-weight: 700;
}

.site:hover {
  --block-edge: var(--oasis-lime);
  color: inherit;
}

.site:hover .site__go .icon {
  transform: translate(2px, -2px);
}

.site__go .icon {
  transition: transform var(--t-fast) var(--ease-out);
}

@media (max-width: 480px) {
  .site__go span {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Wiki — search and section layout
   -------------------------------------------------------------------------- */

.search {
  position: relative;
  max-width: 40rem;
  margin-top: var(--s-6);
}

.search input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0 var(--s-5) 0 3.25rem;
  border: 1px solid var(--line-strong);
  background: var(--night-950);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-lg);
}

.search input:focus-visible {
  outline-offset: 0;
  border-color: var(--algo-sky);
}

.search > .icon {
  position: absolute;
  left: var(--s-4);
  top: 1.1rem;
  color: var(--ink-mute);
}

.search__results {
  position: absolute;
  inset: calc(100% + 4px) 0 auto 0;
  z-index: var(--z-raised);
  max-height: 22rem;
  overflow-y: auto;
  background: var(--night-700);
  border: 1px solid var(--line-strong);
}

.search__results a {
  display: block;
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  text-decoration: none;
}

.search__results a strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
}

.search__results a:hover,
.search__results a.is-active {
  background: var(--night-600);
}

.search__results mark {
  background: none;
  color: var(--oasis-lime);
}

.search__empty {
  padding: var(--s-4) var(--s-5);
  color: var(--ink-mute);
  font-size: var(--text-sm);
}

.wiki-section {
  scroll-margin-top: calc(var(--nav-h) + 1.25rem);
}

.wiki-section + .wiki-section {
  margin-top: var(--s-8);
  padding-top: var(--s-8);
  border-top: 1px solid var(--line);
}

.wiki-section > h2 {
  margin-bottom: var(--s-5);
  font-size: var(--text-2xl);
}

.wiki-section > * + * {
  margin-top: var(--s-4);
}

.wiki-section > p,
.wiki-section > ul {
  max-width: var(--w-prose);
}

/* Briefly lights the section a link or search result jumped to. */
@keyframes flash {
  from { background: rgba(182, 227, 50, 0.12); }
  to { background: transparent; }
}

.wiki-section:target > h2,
.faq__item:target > summary {
  animation: flash 1.6s ease-out;
}

.faq__item {
  scroll-margin-top: calc(var(--nav-h) + 1.25rem);
}

.wiki-section h3 {
  font-size: var(--text-lg);
}

/* The search field sits in the page head and its results hang below it,
   over the next section. */
.page-head--search {
  overflow: visible;
  z-index: var(--z-raised);
}

.page-head--search .scene {
  overflow: hidden;
}

.search__where {
  margin-left: var(--s-2);
  color: var(--ink-mute);
  font-family: var(--font-hud);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Sidebar search on the topic pages. */
.search--compact {
  max-width: none;
  margin: 0 0 var(--s-4);
}

.search--compact input {
  min-height: 2.75rem;
  padding-left: 2.75rem;
  font-size: var(--text-base);
}

.search--compact > .icon {
  left: var(--s-3);
  top: 0.75rem;
}

.search--compact .search__results a {
  padding-inline: var(--s-4);
}

@media (min-width: 960px) {
  /* The sidebar is narrow; let the results spill over the article. */
  .search--compact .search__results {
    right: auto;
    width: 26rem;
  }

  /* A scrolling sidebar would clip those results, and fifteen links fit. */
  .wiki-nav {
    max-height: none;
    overflow: visible;
  }
}

/* Breadcrumb above a topic page's title. */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  color: var(--ink-mute);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.crumbs a {
  color: var(--oasis-lime);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--oasis-gold);
}

.wiki-article {
  min-width: 0;
}

.wiki-checked {
  margin-top: var(--s-8);
  color: var(--ink-mute);
  font-size: var(--text-sm);
}

/* Previous / next at the foot of a topic page. */
.pager {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.pager__link {
  --n: var(--notch-sm);
  display: grid;
  gap: var(--s-1);
  padding: var(--s-4) var(--s-5);
  color: var(--ink);
  text-decoration: none;
}

.pager__link span {
  color: var(--ink-mute);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pager__link strong {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.pager__link:hover {
  --block-edge: var(--oasis-lime);
  color: var(--oasis-lime);
}

@media (min-width: 620px) {
  .pager {
    grid-template-columns: 1fr 1fr;
  }

  .pager__link--next {
    text-align: right;
  }
}

/* Wiki home: topic cards, grouped. Each card leads with the same scene that
   heads its page, so the two read as one place. */
.wiki-group {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
  color: var(--ink-mute);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  scroll-margin-top: calc(var(--nav-h) + 1.25rem);
}

.wiki-group::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.wiki-cards + .wiki-group {
  margin-top: var(--s-7);
}

.wiki-cards {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
}

/* The one page every new player should read gets the full row. */
@media (min-width: 700px) {
  .wiki-cards--lead .wiki-card {
    flex-direction: row;
  }

  .wiki-cards--lead .wiki-card__media {
    flex: 0 0 42%;
    aspect-ratio: auto;
    min-height: 13rem;
  }

  .wiki-cards--lead .wiki-card__media::after {
    background: linear-gradient(90deg, rgba(14, 22, 35, 0) 55%, var(--night-800) 100%);
  }

  .wiki-cards--lead .wiki-card__body {
    align-content: center;
    padding: var(--s-6);
  }

  .wiki-cards--lead .wiki-card__title {
    font-size: var(--text-2xl);
  }

  .wiki-cards--lead .wiki-card__text {
    max-width: 30rem;
    font-size: var(--text-base);
  }
}

/* Each wiki page carries the item that stands for it across the site. */
.wiki-nav .index__list a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.wiki-card {
  display: flex;
  flex-direction: column;
  color: var(--ink-soft);
  text-decoration: none;
}

.wiki-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--night-950);
}

.wiki-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

/* Fades the photo into the card so the title never fights it. */
.wiki-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 22, 35, 0) 45%, var(--night-800) 100%);
}

.wiki-card__glyph {
  display: grid;
  place-items: center;
  height: 100%;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px;
  color: var(--oasis-lime);
}

.wiki-card__glyph .item {
  width: var(--item-3x);
  height: var(--item-3x);
}

.wiki-card__body {
  display: grid;
  gap: var(--s-2);
  flex: 1;
  align-content: start;
  padding: var(--s-2) var(--s-5) var(--s-5);
}

.wiki-card__title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.wiki-card__text {
  font-size: var(--text-sm);
}

.wiki-card .more {
  margin-top: var(--s-2);
  font-size: var(--text-sm);
}

.wiki-card:hover {
  --block-edge: var(--oasis-lime);
  color: var(--ink-soft);
}

.wiki-card:hover .wiki-card__title {
  color: var(--oasis-lime);
}

.wiki-card:hover .wiki-card__media img {
  transform: scale(1.05);
}

.wiki-card:hover .more .icon {
  transform: translateX(4px);
}

.wiki-faq {
  display: grid;
  gap: var(--s-6);
}

@media (min-width: 960px) {
  .wiki-faq {
    grid-template-columns: 20rem minmax(0, 1fr);
    gap: var(--s-8);
    align-items: start;
  }
}

/* --------------------------------------------------------------------------
   Community — staff roles and the rank ladder
   -------------------------------------------------------------------------- */

.roles {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.role {
  display: grid;
  gap: var(--s-1) var(--s-5);
  padding: var(--s-4) var(--s-5);
  background: var(--night-900);
}

.role__name {
  color: var(--role, var(--ink));
  font-size: var(--text-sm);
}

@media (min-width: 700px) {
  .role {
    grid-template-columns: 9rem 1fr;
    align-items: baseline;
  }
}

/* Each rung is wider than the one before it: the ladder reads as a climb. */
.ladder {
  display: grid;
  gap: var(--s-2);
}

.ladder li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  width: calc(60% + var(--rung) * 10%);
  min-width: min(100%, 14rem);
  padding: var(--s-3) var(--s-4);
  background: linear-gradient(90deg, rgba(182, 227, 50, calc(0.05 + var(--rung) * 0.04)), transparent), var(--night-800);
  border-left: 3px solid var(--oasis-lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
}

.ladder li .hud {
  color: var(--ink-mute);
  font-size: var(--text-xs);
}

.ladder__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
}

/* The rank's own chat badge from the server pack, 9 px tall, shown at 2x. */
.ladder__badge {
  width: auto;
  height: 18px;
  image-rendering: pixelated;
}

/* --------------------------------------------------------------------------
   Wiki — crate keys and playtime levels, laid out the way the game's own
   menus lay them out: a row of slots, one thing in each.
   -------------------------------------------------------------------------- */

.keyrack,
.levels {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.keyrack {
  grid-template-columns: repeat(auto-fit, minmax(6.25rem, 1fr));
}

.keyrack__slot {
  display: grid;
  justify-items: center;
  gap: var(--s-1);
  padding: var(--s-4) var(--s-2);
  background: var(--night-900);
  text-align: center;
}

.keyrack__slot .slot-icon {
  margin-bottom: var(--s-2);
}

.keyrack__slot strong {
  color: var(--ink);
  font-family: var(--font-display);
}

.keyrack__slot .hud {
  color: var(--oasis-gold);
  font-size: var(--text-xs);
}

.keyrack--premium .hud {
  color: var(--algo-sky);
}

.levels {
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
}

.level {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  padding: var(--s-4);
  background: var(--night-900);
}

/* Level badges are 16 px tall and 16 to 22 px wide; doubled, never smoothed. */
.level__badge {
  width: auto;
  height: var(--item-2x);
  image-rendering: pixelated;
}

.level__xp {
  color: var(--oasis-lime);
  font-size: var(--text-xs);
  text-align: right;
  white-space: nowrap;
}

.level__pay {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: 1.4;
}

/* A feature's keys, shown as a single hotbar-like run. */
.keyline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  margin-top: var(--s-5);
}

.keyline li {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--night-950);
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.6), inset -2px -2px 0 rgba(150, 190, 255, 0.14);
}

/* Two wiki links under one feature: side by side, stacked when they wrap. */
.more-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
}

/* The article's own facts strip sits on the page, not inside a feature band. */
.wiki-section > .facts {
  margin-top: var(--s-5);
}

/* --------------------------------------------------------------------------
   404 — the game's missing-texture checkerboard, which is exactly what it
   draws when it can't find the thing it was asked for.
   -------------------------------------------------------------------------- */

.lost {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + var(--s-7)) var(--gutter) var(--s-8);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.lost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    conic-gradient(#f800f8 25%, #000 0 50%, #f800f8 0 75%, #000 0) 0 0 / 96px 96px;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 72%);
}

.lost__code {
  display: block;
  margin-bottom: var(--s-4);
  color: #ff5cf4;
  font-size: clamp(4rem, 18vw, 9rem);
  line-height: 0.9;
  text-shadow: 6px 6px 0 #000;
}

.lost h1 {
  font-size: var(--text-3xl);
}

.lost .lede {
  margin-inline: auto;
}

.lost .btn-row {
  justify-content: center;
  margin-top: var(--s-6);
}

.lost__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-6);
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   Live map — the BlueMap viewer, embedded on request (see initMap in
   site.js). Until then the frame holds a still: one real tile from the map's
   own server, drawn with hard pixels because that is what it is.
   -------------------------------------------------------------------------- */

.mapbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  margin-bottom: var(--s-4);
}

.mapbar__label {
  color: var(--algo-sky);
}

.mapbar .more {
  font-size: var(--text-sm);
}

/* Never taller than it is wide: a map tile carries its height data in its
   lower half, and only the upper, square half may show. */
.mapframe {
  --block-fill: var(--night-900);
  aspect-ratio: 1;
}

@media (min-width: 700px) {
  .mapframe {
    aspect-ratio: auto;
    height: clamp(30rem, 72svh, 52rem);
  }
}

.mapframe__open,
.mapframe__viewer {
  position: absolute;
  inset: var(--block-bw);
  width: calc(100% - 2 * var(--block-bw));
  height: calc(100% - 2 * var(--block-bw));
  border: 0;
  clip-path: inherit;
}

/* The chart grid is what shows if the still cannot be fetched. */
.mapframe__open {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--night-900);
}

.mapframe__still {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;
  image-rendering: pixelated;
  transition: transform var(--t-slow) var(--ease-out);
}

/* Dims the terrain so the prompt is the one bright thing in the frame. */
.mapframe__open::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(closest-side, rgba(5, 8, 15, 0.82), rgba(5, 8, 15, 0.5) 70%, rgba(5, 8, 15, 0.66));
  transition: opacity var(--t-base);
}

.mapframe__prompt {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  padding: var(--s-5);
  text-align: center;
}

.mapframe__hint {
  max-width: 24rem;
  color: var(--ink-soft);
  font-size: var(--text-sm);
}

.mapframe__hint--embed {
  display: none;
}

@media (min-width: 700px) {
  .mapframe__hint--embed {
    display: block;
  }

  .mapframe__hint--leave {
    display: none;
  }
}

.mapframe__open:hover .mapframe__still {
  transform: scale(1.03);
}

.mapframe__open:hover::after {
  opacity: 0.85;
}

.mapframe__open:hover .btn {
  filter: brightness(1.08);
}

.mapframe__open:focus-visible {
  outline-offset: -6px;
}

.mapframe__viewer {
  background: var(--night-950);
}

.mapnotes {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding: 0;
  list-style: none;
}

.mapnotes h2 {
  margin-bottom: var(--s-2);
  font-size: var(--text-xl);
}

@media (min-width: 860px) {
  .mapnotes {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Planting calendar (wiki/farming) — a table whose season columns are read
   as a strip of pips: lit when the crop can be planted, hollow when not.
   -------------------------------------------------------------------------- */

.calendar th,
.calendar td {
  vertical-align: middle;
  white-space: nowrap;
}

.calendar th:nth-child(n + 2):nth-child(-n + 5),
.calendar td:nth-child(n + 2):nth-child(-n + 5) {
  padding-inline: var(--s-2);
  text-align: center;
}

.season {
  display: inline-block;
  width: var(--s-3);
  height: var(--s-3);
  border: 1px solid var(--line-strong);
  vertical-align: middle;
}

.season--spring { background: var(--oasis-lime); border-color: var(--oasis-lime); }
.season--summer { background: var(--oasis-gold); border-color: var(--oasis-gold); }
.season--autumn { background: var(--nether); border-color: var(--nether); }
.season--winter { background: var(--algo-sky); border-color: var(--algo-sky); }
