/* The Game Guide's look. Loaded after guide.css (the old site's guide styling, which still sets
   the icon sheets and sizes) and restyles it to match the rest of the site: black Montserrat on
   the parchment, thick black frames, black buttons that turn red, and the tan fading line. */

.page:has(.guide-shell) {
  max-width: 1320px;
}

/* ---------- Layout: sections down the left, the open one on the right ---------- */

.guide-shell {
  --gold: #9c1f1f;        /* the old guide's accent colour, now the site's dark red */
  --gold-light: #9c1f1f;
  --text: #000;
  --text-dim: #4d4033;
  --panel-border: rgba(0, 0, 0, 0.3);
  --rule: linear-gradient(to right, #a67c52, #a67c52 60%, rgba(166, 124, 82, 0));

  /* Scales the whole guide: text, icons, spacing and all. 1 = full size, lower = smaller, so
     more fits on the screen. */
  zoom: 0.8;

  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0 44px;
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
  color: #000;
  font-family: "Montserrat", Arial, sans-serif;
  text-align: left;
}

.guide-shell .guide-panel {
  display: block;
}

/* The page already has the GAME GUIDE title above. */
.guide-shell .guide-panel h3 {
  display: none;
}

.guide-shell .guide-cats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

/* A section button: black capitals; the open one is a black box with white text. */
.guide-shell .guide-cat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: auto;
  margin: 0;
  padding: 6px 12px 6px 6px;
  border: 3px solid transparent;
  border-radius: 0;
  background: none;
  cursor: pointer;
}

/* The game's icons, with no background behind them. */
.guide-shell .guide-cat .icon,
.guide-shell .guide-item .gi-icon {
  flex: none;
  margin: 0;
  border: 0;
  background-color: transparent;
  box-shadow: none;
}

.guide-shell .guide-cat .label {
  margin: 0;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-shell .guide-cat:hover {
  border-color: #000;
  background: none;
}

.guide-shell .guide-cat.is-active {
  border-color: #000;
  background: #000;
}

.guide-shell .guide-cat.is-active .label {
  color: #fff;
}

.guide-shell .guide-detail {
  display: block;
  min-height: 420px;
  animation: none;
}

/* The list of sections is always on screen, so there is nothing to go back to. */
.guide-shell .guide-back {
  display: none;
}

/* Section title, with the tan line under it. */
.guide-shell .guide-detail h3 {
  margin: 0 0 20px;
  padding: 0 0 12px;
  border: 0;
  background: var(--rule) left bottom / 100% 2px no-repeat;
  color: #000;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: 0;
  line-height: 1.15;
  text-align: left;
  text-transform: uppercase;
}

/* Tabs inside a section: black boxes with white capitals; the open one is red. */
.guide-shell .sys-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 24px;
}

.guide-shell .sys-navbreak {
  display: none;
}

.guide-shell .sys-tab {
  margin: 0;
  padding: 0.55em 1.2em;
  border: 0;
  border-radius: 0;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.guide-shell .sys-tab:hover,
.guide-shell .sys-tab.active {
  border: 0;
  background: #c62828;
  color: #fff;
}

/* ---------- Articles ---------- */

.guide-shell .sys-article {
  max-width: none;
}

.guide-shell .sys-article h4 {
  margin: 0 0 10px;
  color: #000;
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
}

.guide-shell .sys-article p,
.guide-shell .sys-article li {
  color: #000;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7;
}

.guide-shell .sys-article p {
  margin: 0 0 14px;
}

.guide-shell .sys-article .sys-lede {
  font-size: 16px;
}

.guide-shell .sys-article p.dim,
.guide-shell .sys-shot-cap {
  color: var(--text-dim);
}

.guide-shell .sys-article b,
.guide-shell .sys-card b,
.guide-shell .sys-note b {
  color: #9c1f1f;
}

/* Sub-heading inside an article: bold capitals with the tan line running off to the right. */
.guide-shell .sys-article .sys-sub {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 12px;
  padding: 0;
  border: 0;
  color: #000;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-shell .sys-article .sys-sub::after {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--rule);
}

.guide-shell .sys-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 6px 0 18px;
}

/* Cards, notes and tables share the framed look of the panels on the other pages. */
.guide-shell .sys-card,
.guide-shell .sys-note {
  margin: 0;
  padding: 16px 18px;
  border: 3px solid #000;
  border-radius: 0;
  background: rgba(255, 250, 235, 0.45);
  color: #000;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
}

.guide-shell .sys-note {
  margin-top: 18px;
  border-width: 0 0 0 6px;
}

.guide-shell .sys-card .sys-card-title {
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.guide-shell .sys-table {
  width: 100%;
  margin: 4px 0 18px;
  border: 3px solid #000;
  border-collapse: collapse;
  background: rgba(255, 250, 235, 0.45);
}

.guide-shell .sys-table th {
  padding: 9px 12px;
  border-bottom: 3px solid #000;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-shell .sys-table td,
.guide-shell .sys-table td.num {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  color: #000;
  font-weight: 500;
  font-size: 14px;
}

.guide-shell .sys-table td.num {
  font-weight: 700;
}

/* The game's quality colours (grey, green, blue, magenta, orange) need a dark background. */
.guide-shell .q-chip {
  padding: 2px 8px;
  border-radius: 0;
  background: #17161b;
  font-weight: 700;
}

.guide-shell .sys-gem,
.guide-shell .sys-flow .step {
  border: 3px solid #000;
  border-radius: 0;
  background: #17161b;
}

.guide-shell .sys-gem .gl,
.guide-shell .sys-flow .step {
  color: #fff;
}

.guide-shell .sys-flow .arr {
  color: #000;
}

.guide-shell .sys-shot {
  border: 3px solid #000;
  border-radius: 0;
}

/* ---------- Item, weapon and technique lists ---------- */

.guide-shell .guide-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 0;
}

.guide-shell .guide-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 14px 10px 10px;
  border: 3px solid #000;
  border-radius: 0;
  background: rgba(255, 250, 235, 0.45);
  text-align: left;
}

.guide-shell .guide-item:hover {
  border-color: #c62828;
}

.guide-shell .guide-item .gi-name {
  color: #000;
  font-weight: 700;
  font-size: 14px;
}

.guide-shell .guide-item .gi-sub {
  color: var(--text-dim);
  font-size: 12px;
}

/* ---------- Techniques: all the icons side by side ---------- */

.guide-shell .tech-hint {
  margin: 0 0 18px;
}

.guide-shell .tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* One technique: its icon at double size (the sheet's icons are 32px). */
.guide-shell .tech-icon {
  width: 64px;
  height: 64px;
  cursor: help;
  transition: transform 0.12s;
}

.guide-shell .tech-icon .gi-icon {
  width: 32px;
  height: 32px;
  margin: 0;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  transform: scale(2);
  transform-origin: 0 0;
  pointer-events: none;
}

.guide-shell .tech-icon:hover {
  transform: translateY(-3px) scale(1.08);
}

/* Page numbers above a list. (Their colours are set inline by the guide code, hence !important.) */
.guide-shell .guide-page-btn {
  min-width: 34px;
  padding: 6px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #000 !important;
  color: #fff !important;
  font-size: 12px !important;
  text-align: center;
}

.guide-shell .guide-page-btn:hover {
  background: #c62828 !important;
}

/* The open page number is the one the guide code gives a tinted background. */
.guide-shell .guide-page-btn[style*="rgba(212"] {
  background: #c62828 !important;
}

/* ---------- Hover card: a black box with white text ---------- */

.guide-tooltip {
  max-width: 320px;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- Narrow screens: the sections become a row across the top ---------- */

@media (max-width: 900px) {
  .guide-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px 0;
  }

  .guide-shell .guide-cats {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ---------- Crafting hover card: one ingredient per line, its icon on the left ---------- */

.guide-tooltip .craft-tip-title {
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-tooltip .craft-tip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* The game's item icons are 34px squares on one sheet. */
.guide-tooltip .craft-tip-icon {
  flex: none;
  width: 34px;
  height: 34px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.guide-tooltip .craft-tip-stats {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

/* The crafting card's look: a solid black border, a dark "Made from" bar, and ingredient rows
   whose black backgrounds alternate between 50% and 35% see-through. */
.guide-tooltip:has(.craft-tip-title) {
  padding: 0;
  border: 2px solid #000;
  background: none;
}

.guide-tooltip .craft-tip-title {
  margin: 0;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.88);
}

.guide-tooltip .craft-tip-row {
  padding: 5px 16px 5px 10px;
  background: rgba(0, 0, 0, 0.5);
  text-shadow: 0 1px 2px #000;
}

.guide-tooltip .craft-tip-row:nth-child(odd) {
  background: rgba(0, 0, 0, 0.65);
}

.guide-tooltip .craft-tip-stats {
  margin: 0;
  padding: 7px 14px;
  border-top: 0;
  background: rgba(0, 0, 0, 0.88);
}

/* ====================================================================================
   Scroll / old book look (replaces the black frames and red tabs above).
   Serif type like "A Classic Online Adventure", ink-brown text, thin brown rules, and the
   open section on a lighter paper panel.
   ==================================================================================== */

.guide-shell {
  --ink: #3b2a1a;
  --ink-dim: #6e5843;
  --line: #a67c52;
  --accent: #8c2f1b;
  --gold: #8c2f1b;
  --gold-light: #8c2f1b;
  --text: #3b2a1a;
  --text-dim: #6e5843;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

/* ---------- The list of sections ---------- */

.guide-shell .guide-cat,
.guide-shell .guide-cat:hover,
.guide-shell .guide-cat.is-active {
  border: 0;
  border-left: 3px solid transparent;
  background: none;
}

.guide-shell .guide-cat .label {
  color: var(--ink-dim);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: none;
}

.guide-shell .guide-cat:hover .label {
  color: var(--ink);
}

.guide-shell .guide-cat.is-active {
  border-left-color: var(--accent);
  background: linear-gradient(to right, rgba(166, 124, 82, 0.28), rgba(166, 124, 82, 0));
}

.guide-shell .guide-cat.is-active .label {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- The open section: a page of lighter paper ---------- */

.guide-shell .guide-detail {
  padding: 30px 38px 36px;
  border: 1px solid rgba(166, 124, 82, 0.7);
  background: rgba(255, 249, 234, 0.6);
  box-shadow: 0 3px 14px rgba(80, 50, 20, 0.18);
}

.guide-shell .guide-detail h3 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: none;
}

/* Tabs: plain words with an underline under the open one. */
.guide-shell .sys-nav {
  gap: 0 22px;
  border-bottom: 1px solid rgba(166, 124, 82, 0.6);
}

.guide-shell .sys-tab,
.guide-shell .sys-tab:hover,
.guide-shell .sys-tab.active {
  margin: 0 0 -1px;
  padding: 8px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink-dim);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: none;
}

.guide-shell .sys-tab:hover {
  color: var(--ink);
}

.guide-shell .sys-tab.active {
  border-bottom-color: var(--accent);
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Articles ---------- */

.guide-shell .sys-article h4 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.1em;
  text-transform: none;
}

.guide-shell .sys-article p,
.guide-shell .sys-article li {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
}

.guide-shell .sys-article .sys-lede {
  font-size: 19px;
  font-style: italic;
}

.guide-shell .sys-article p.dim,
.guide-shell .sys-shot-cap {
  color: var(--ink-dim);
}

.guide-shell .sys-article b,
.guide-shell .sys-card b,
.guide-shell .sys-note b {
  color: var(--accent);
}

.guide-shell .sys-article .sys-sub {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 15px;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  text-transform: none;
}

.guide-shell .sys-article .sys-sub::after {
  height: 1px;
}

.guide-shell .sys-card,
.guide-shell .sys-note {
  border: 1px solid rgba(166, 124, 82, 0.7);
  background: rgba(255, 249, 234, 0.55);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 16px;
}

.guide-shell .sys-card {
  border-top: 2px solid var(--line);
}

.guide-shell .sys-note {
  border-width: 0 0 0 3px;
  border-color: var(--line);
  font-style: italic;
}

.guide-shell .sys-card .sys-card-title {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 16px;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  text-transform: none;
}

/* ---------- Tables ---------- */

.guide-shell .sys-table {
  border: 1px solid rgba(166, 124, 82, 0.8);
  background: rgba(255, 249, 234, 0.5);
}

.guide-shell .sys-table th {
  border-bottom: 1px solid var(--line);
  background: rgba(166, 124, 82, 0.28);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  text-transform: none;
}

.guide-shell .sys-table td,
.guide-shell .sys-table td.num {
  border-bottom: 1px solid rgba(166, 124, 82, 0.35);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 16px;
}

.guide-shell .sys-table td.num {
  font-weight: 700;
}

/* ---------- Item lists ---------- */

.guide-shell .guide-item {
  border: 1px solid rgba(166, 124, 82, 0.7);
  background: rgba(255, 249, 234, 0.55);
}

.guide-shell .guide-item:hover {
  border-color: var(--accent);
}

.guide-shell .guide-item .gi-name {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 16px;
}

.guide-shell .guide-item .gi-sub {
  color: var(--ink-dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.45;
}

.guide-shell .guide-page-btn {
  border: 1px solid var(--line) !important;
  background: none !important;
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", serif;
}

.guide-shell .guide-page-btn:hover,
.guide-shell .guide-page-btn[style*="rgba(212"] {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: #fff !important;
}

/* Small dark tiles that hold the game's own coloured text keep their dark background, thinner frame. */
.guide-shell .sys-gem,
.guide-shell .sys-flow .step,
.guide-shell .sys-shot {
  border: 1px solid var(--ink);
}

.guide-shell .sys-flow .arr {
  color: var(--ink);
}

/* Body text uses the site's own text font (Montserrat); the serif is kept for titles, tabs,
   section names and sub-headings only. */
.guide-shell .sys-article p,
.guide-shell .sys-article li,
.guide-shell .sys-card,
.guide-shell .sys-note,
.guide-shell .sys-table td,
.guide-shell .sys-table td.num,
.guide-shell .guide-item .gi-sub {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  font-style: normal;
}

.guide-shell .sys-article p,
.guide-shell .sys-article li {
  font-size: 16px;
}

.guide-shell .sys-article .sys-lede {
  font-size: 17px;
  font-style: normal;
}

.guide-shell .sys-card,
.guide-shell .sys-note,
.guide-shell .sys-table td {
  font-size: 15px;
}

.guide-shell .sys-table td.num,
.guide-shell .sys-article b,
.guide-shell .sys-card b,
.guide-shell .sys-note b {
  font-weight: 700;
}

.guide-shell .guide-item .gi-sub {
  font-size: 13px;
}

/* Quality names (Normal, Refined, Special, Elite, Beast): each chip is filled with a softened
   version of its own quality colour, with dark text, instead of a black box. */
.guide-shell .q-chip {
  border: 1px solid currentColor;
  background: currentColor;
  background: color-mix(in srgb, currentColor 45%, #fff6df);
  -webkit-text-fill-color: #2a1c10;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
}

/* Section names in the left list: dark and bold enough to read on the parchment when not
   selected. The selected one is marked by its highlight and red bar, and turns dark red. */
.guide-shell .guide-cat .label {
  color: #1e140b;
  font-weight: 700;
}

.guide-shell .guide-cat:hover .label,
.guide-shell .guide-cat.is-active .label {
  color: #8c2f1b;
}

/* Not bold: the section names are regular weight, still near-black. Only the selected one is bold. */
.guide-shell .guide-cat .label {
  font-weight: 400;
}

.guide-shell .guide-cat.is-active .label {
  font-weight: 700;
}

/* One see-through paper box behind the whole list of sections, matching the page panel beside it. */
.guide-shell .guide-cats {
  padding: 12px 10px;
  border: 1px solid rgba(166, 124, 82, 0.7);
  background: rgba(255, 249, 234, 0.6);
  box-shadow: 0 3px 14px rgba(80, 50, 20, 0.18);
}

/* The section list and the page panel sit close together. This is the space between them. */
.guide-shell {
  column-gap: 14px;
}

/* Gem chips (Fire, Water, Earth, Wind, Lightning) and the step boxes in flow diagrams: light
   paper with a thin brown edge and dark text, instead of black boxes. */
.guide-shell .sys-gem,
.guide-shell .sys-flow .step {
  border: 1px solid rgba(166, 124, 82, 0.8);
  background: rgba(255, 249, 234, 0.75);
}

.guide-shell .sys-gem .gl,
.guide-shell .sys-flow .step {
  color: #2a1c10;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
}

/* Every hover card in the Guide (techniques, weapons, equipment, crafting) shares the crafting
   card's look. These are the extra row kinds the other cards use. */
.guide-tooltip .craft-tip-row.craft-tip-text {
  display: block;
  max-width: 300px;
  padding: 8px 14px;
  white-space: normal;
  line-height: 1.5;
}

/* A label at the start of a row, such as a stat's name; its value sits at the right. */
.guide-tooltip .craft-tip-key {
  flex: 1;
  margin-right: 18px;
  padding-left: 4px;
  text-transform: capitalize;
}

.guide-tooltip .craft-tip-row:has(.craft-tip-key) {
  padding: 6px 14px 6px 10px;
}

.guide-tooltip .craft-tip-colors {
  flex-wrap: wrap;
  max-width: 300px;
  white-space: normal;
}

/* The open section's icon, to the left of its title: drawn at twice its size with hard pixel
   edges (nearest neighbor), not smoothed. */
.guide-shell .guide-detail h3 {
  display: flex;
  align-items: center;
  gap: 16px;
}

.guide-shell .title-icon {
  flex: none;
  display: block;
}

.guide-shell .title-icon > span {
  display: block;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  transform: scale(2);
  transform-origin: 0 0;
}

/* An undiscovered technique: a grey tile with a question mark, the same size as a real icon. */
.guide-shell .tech-unknown {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #8d8778;
  background: #b9b3a5;
  color: #6f6a5e;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 34px;
  cursor: default;
}

.guide-shell .tech-unknown:hover {
  transform: none;
}

.guide-shell .tech-hint a {
  color: #8c2f1b;
  font-weight: 700;
}

/* The undiscovered tile's picture (technique-unknown.png, 32px, drawn at double size with hard
   pixel edges), with the question mark on top of it. */
.guide-shell .tech-unknown {
  border: 0;
  background: url("images/technique-unknown.png") center / 100% 100% no-repeat;
  image-rendering: pixelated;
  color: #4d4a44;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Technique sections (General, Fire, Water...): a heading, then that group's tiles. */
.guide-shell .tech-group {
  margin: 22px 0 12px;
}

.guide-shell .tech-hint + .tech-group {
  margin-top: 0;
}

/* Technique sections as boxes side by side (General, Fire, Water...), each four icons wide. */
.guide-shell .tech-sections {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
}

.guide-shell .tech-section {
  padding: 12px 14px 14px;
  border: 1px solid rgba(166, 124, 82, 0.7);
  background: rgba(255, 249, 234, 0.55);
}

.guide-shell .tech-section .tech-group {
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(166, 124, 82, 0.7);
  color: #3b2a1a;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 15px;
  font-variant: small-caps;
  letter-spacing: 0.14em;
}

.guide-shell .tech-section .tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 64px);
  gap: 10px;
}

.guide-shell .tech-section .tech-group {
  text-align: center;
}

/* The line of description under the Techniques title. */
.guide-shell .tech-intro {
  margin-bottom: 14px;
}

.guide-shell .tech-intro p {
  margin: 0;
}

/* Item icons inside tables (the fish beside each fish's name, the crop beside each plant): the
   game's 34px icons, sitting right before the name. */
.guide-shell .sys-table .gi-icon {
  display: inline-block;
  width: 34px;
  height: 34px;
  margin-right: 8px;
  vertical-align: middle;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

/* A small label directly above a table, such as "Level Chart". */
.guide-shell .sys-article .sys-table-caption {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 14px;
  font-variant: small-caps;
  letter-spacing: 0.12em;
}

/* Chips with no icon (the weapon categories on the Equipment page) get even padding. */
.guide-shell .sys-gem:not(:has(.gem-icon)) {
  padding: 8px 16px;
}

/* ---------- Cooking: the item icon on each "what can come out of the pot" card ---------- */

.guide-shell .sys-card .sys-card-title:has(.cook-out-icon) {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-shell .cook-out-icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

/* Burnt: the game's own burnt look. */
.guide-shell .cook-out-icon.is-burnt {
  filter: grayscale(1) contrast(0.8) brightness(0.5);
}

/* Artisan: the inventory's gold ring and small star. */
.guide-shell .cook-out-icon.is-artisan {
  border-radius: 4px;
  box-shadow: 0 0 0 2px #e0a83c;
}

.guide-shell .cook-out-icon.is-artisan::after {
  content: "\2726";
  position: absolute;
  top: -7px;
  right: -6px;
  color: #e0a83c;
  font-size: 11px;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
