/* GladCraft look over GuideME's default site: the colours of gladcraft.ru, Minecraft-style recipe frames kept. */
:root {
  --gc-pit: #0d0f13;
  --gc-panel: #14171c;
  --gc-raised: #1b1f26;
  --gc-line: #262b34;
  --gc-line-bright: #343a45;
  --gc-ember: #d98b3a;
  --gc-ember-hot: #f0a44e;
  --gc-ink: #dcdfe4;
  --gc-ink-dim: #9aa1ac;

  --color-body-text: var(--gc-ink);
  --color-link: var(--gc-ember-hot);
  --color-header1-separator: var(--gc-line-bright);
  --color-header2-separator: var(--gc-line);
  --color--navbar-bg-top: var(--gc-panel);
  --color--navbar-bg-bottom: var(--gc-panel);
  --color--navbar-row-hover: var(--gc-raised);
  --color--table-border: var(--gc-line-bright);
  --color--icon-button-hover: var(--gc-ember-hot);

  --gui-scale: 2;
  --document-rect-margin: 24px;
  --minecraft-font: "IBM Plex Sans", system-ui, sans-serif;

  background-image: none;
  background-color: var(--gc-pit);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

body {
  background: var(--gc-pit);
}

body > main {
  max-width: 1320px;
  margin: 0 auto;
  grid-template-columns: 300px 1fr;
  column-gap: 24px;
}

.topLogoBar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 4px 18px;
  border-bottom: 1px solid var(--gc-line);
  margin-bottom: 20px;
}

.gc-logo {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}

.gc-mark {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gc-ember);
  font-size: 20px;
}

.gc-sub {
  color: var(--gc-ink);
  font-weight: 600;
  font-size: 17px;
}

.gc-links {
  margin-left: auto;
  display: flex;
  gap: 20px;
}

.gc-links a {
  color: var(--gc-ink-dim);
  text-decoration: none;
  font-size: 15px;
}

.gc-links a:hover {
  color: var(--gc-ember-hot);
}

/* The page's own h1 already names it. */
body > main .page-title {
  display: none;
}

@media (min-width: 768px) {
  body > main > aside {
    grid-column: 1;
    grid-row: 2;
  }

  body > main > article {
    grid-column: 2;
    grid-row: 2 / span 2;
  }

  body > main > .version-picker {
    grid-column: 1;
    grid-row: 3;
  }
}

/* Floated item pictures sit beside the text, not on their own line. */
article .item-image-float-left,
article [style*="float: left"] {
  margin-right: 16px;
}

aside {
  background: var(--gc-panel);
  border: 1px solid var(--gc-line);
  border-radius: 10px;
  padding: 10px 6px;
  align-self: start;
}

article {
  background: var(--gc-panel);
  border: 1px solid var(--gc-line);
  border-radius: 10px;
  padding: 8px 32px 32px;
  min-width: 0;
}

article h1 {
  font-size: 30px;
  font-weight: 700;
  color: #fff;
}

article h2 {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-top: 1.6em;
}

article a {
  text-decoration: none;
}

article a:hover {
  text-decoration: underline;
}

table {
  border-collapse: collapse;
}

th, td {
  padding: 8px 14px;
}

th {
  background: var(--gc-raised);
  font-family: "IBM Plex Sans", sans-serif;
}

.version-picker {
  color: var(--gc-ink-dim);
  font-size: 14px;
}

/* Stack sizes on recipe slots, drawn like Minecraft draws them. */
.gc-counted {
  position: relative;
  display: inline-block;
}

.gc-counted::after {
  content: attr(data-count);
  position: absolute;
  right: 3px;
  bottom: 0;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 16px;
  text-shadow: 2px 2px 0 #3f3f3f;
  pointer-events: none;
}

.gc-results {
  display: flex;
  gap: 4px;
}

/* Scenes are pictures on the site (the 26.2 GuideME exports no 3D meshes yet), drawn on the page's panel. */
.game-scene-static {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  image-rendering: pixelated;
}
