/* medea.quest. Self-hosted fonts, no scripts, no tracking. */

@font-face { font-family: "Cormorant Infant"; src: url("/assets/fonts/cormorant-infant.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Infant"; src: url("/assets/fonts/cormorant-infant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Unicase"; src: url("/assets/fonts/cormorant-unicase-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Google Sans"; src: url("/assets/fonts/google-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Google Sans"; src: url("/assets/fonts/google-sans-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  /* Void */
  --void-900: #120B1E;   /* tooltip, toast */
  --void-800: #1A1028;   /* dark page, header, footer */
  --void-line: #3A2C52;  /* rules on dark */
  --void-text: #F3EEFB;  /* text on dark */
  --void-muted: #BFB3D6; /* supporting text on dark */

  /* Light pages */
  --page: #F6F3FA;
  --ink: #24133A;
  --muted: #5E4D73;
  --rule: #D9CFE6;
  --band: #D9C8F0;       /* instructions band */
  --field-border: #7A6A90;

  /* Accents */
  --pink-on-dark: #FF5CAD;
  --pink-on-dark-hover: #FFA3D1;
  --pink: #B8005F;
  --pink-hover: #80003F;
  --pink-on-band: #A0004F;
  --fel: #8CF25A;
  --shard: #A273EE;     /* soul shard facet, menu hover */
  --focus: #FFD100;

  /* WoW tooltip colours */
  --legendary: #FF8000;
  --wow-gold: #FFD100;
  --wow-green: #1EFF00;
  --tooltip-border: #7D7396;

  /* Type: 16px base, steps of about 1.2 */
  --step--1: 0.875rem;  /* 14px */
  --step-0: 1rem;       /* 16px */
  --step-1: 1.1875rem;  /* 19px */
  --logo: 1.5rem;       /* 24px */
  --step-3: 1.75rem;    /* 28px, section headings */
  --step-4: 2.25rem;    /* 36px, page titles */
  --headline: clamp(2rem, 1.3rem + 2.6vw, 3rem); /* 32 to 48px */

  --sans: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Cormorant Infant", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, Consolas, "Cascadia Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  background: var(--page);
  color: var(--ink);
}
body.dark { background: var(--void-800); color: var(--void-text); }

main { flex: 1; width: 100%; }
img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0; }

a { color: var(--pink); text-underline-offset: 0.15em; }
a:hover { color: var(--pink-hover); }
body.dark a { color: var(--pink-on-dark); }
body.dark a:hover { color: var(--pink-on-dark-hover); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
body:not(.dark) main :focus-visible { outline-color: var(--ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.6rem 0.9rem; border-radius: 6px;
  background: var(--void-text); color: var(--void-800); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: 2rem; padding-right: 2rem; }
.wrap.narrow { max-width: 720px; }
@media (max-width: 480px) { .wrap { padding-left: 1.25rem; padding-right: 1.25rem; } }

/* Header and footer: dark on every page */
.site-header { background: var(--void-800); border-bottom: 1px solid var(--void-line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  justify-content: space-between; align-items: center;
  padding-top: 1rem; padding-bottom: 1rem;
}
.logo { font-family: "Cormorant Unicase", var(--serif); font-weight: 700; font-size: var(--logo); line-height: 1; color: var(--void-text); }
a.logo, body.dark a.logo { display: inline-flex; align-items: center; gap: 0.625rem; color: var(--void-text); text-decoration: none; padding: 0.6rem 0; }
a.logo img { width: 30px; height: 30px; }
a.logo:hover, body.dark a.logo:hover { color: var(--void-text); text-decoration: none; }
.site-nav ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.site-nav a, body.dark .site-nav a {
  display: block; padding: 0.6rem 0.85rem; min-height: 44px;
  color: var(--void-text); text-decoration: none;
}
.site-nav a:hover, body.dark .site-nav a:hover { color: var(--void-text); text-decoration: underline; text-decoration-color: var(--shard); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav a[aria-current="page"], body.dark .site-nav a[aria-current="page"]:hover, .site-nav a[aria-current="page"]:hover {
  text-decoration: underline; text-decoration-color: var(--fel);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}

.site-footer { background: var(--void-800); border-top: 1px solid var(--void-line); color: var(--void-muted); font-size: var(--step--1); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.75rem;
  padding-top: 1.75rem; padding-bottom: 1.75rem;
}
.heart { width: 1em; height: 1em; vertical-align: -0.15em; fill: var(--pink-on-dark); }

/* Home */
.home-main { display: flex; align-items: center; }
.hero {
  width: 100%;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 3rem; align-items: center;
  padding-top: 6rem; padding-bottom: 6rem;
}
.hero h1 { font-size: var(--headline); line-height: 1.08; max-width: 16ch; }
.hero p { margin-top: 1.25rem; }

/* Home: one card per addon, stacked */
.toasts { justify-self: end; width: 100%; max-width: 460px; display: grid; gap: 1rem; }
.toasts .toast { max-width: none; }

.toast {
  justify-self: end; width: 100%; max-width: 460px;
  display: flex; gap: 1.1rem; align-items: center;
  padding: 1.1rem 1.5rem 1.1rem 1.1rem;
  background: var(--void-900); border: 1px solid #5B4A7A; border-radius: 10px;
  color: var(--void-text); text-decoration: none;
}
body.dark .toast, body.dark .toast:hover { color: var(--void-text); }
.toast:hover { border-color: var(--legendary); }
.toast:hover .toast-name { text-decoration: underline; }
.toast-type, .toast-name, .toast-date { display: block; }
.toast-type, .toast-date { font-size: var(--step--1); }
.toast-type { color: var(--void-muted); }
.toast-name { color: var(--legendary); font-weight: 700; font-size: var(--step-1); }

/* Item slot: the icon in its legendary frame */
.slot {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 64px; height: 64px;
  border: 2px solid var(--legendary); border-radius: 6px; background: var(--void-800);
}
.slot img { width: 42px; height: 42px; }

/* Mouldy page */
.item { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 3.5rem; align-items: start; padding-top: 4rem; padding-bottom: 5rem; }
.item-left { min-width: 0; }
.tooltip-row { display: flex; gap: 0.5rem; align-items: flex-start; }
.tooltip-row .slot { background: var(--void-900); }

.tooltip {
  flex: 1; min-width: 0;
  font-size: var(--step--1); line-height: 1.5;
  background: var(--void-900); color: var(--void-text);
  border: 1px solid var(--tooltip-border); border-radius: 6px;
  padding: 1.125rem 1.375rem 1.25rem;
  box-shadow: 0 24px 60px rgba(36, 19, 58, 0.28);
}
.tooltip h1 { font-size: var(--step-3); line-height: 1.1; color: var(--legendary); }
.tooltip .ilvl { margin-top: 0.375rem; color: var(--wow-gold); }
.tooltip .pair { display: flex; justify-content: space-between; gap: 0.75rem; }
.tooltip .gap { margin-top: 0.75rem; }
.tooltip .effects { margin: 0.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.375rem; color: var(--wow-green); }
.tooltip .flavour { margin-top: 0.75rem; color: var(--wow-gold); }
.coin { display: inline-block; width: 14px; height: 14px; margin: 0 0.4rem 0 0.2rem; vertical-align: -2px; }

.download {
  margin: 1.25rem 0 0 72px;
  display: flex; justify-content: center; align-items: center; min-height: 52px;
  border-radius: 8px; background: var(--pink); color: #FFFFFF; font-weight: 700; text-decoration: none;
}
.download:hover { background: var(--pink-hover); color: #FFFFFF; }
@media (max-width: 480px) { .download { margin-left: 0; } }

.changelog { padding-top: 19px; }
.changelog h2 { font-size: var(--step-3); line-height: 1.1; margin-bottom: 1.25rem; }
.versions { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.375rem; }
.versions li { padding-left: 1.125rem; border-left: 3px solid var(--rule); }
.versions li.latest { border-left-color: #5A2D91; }
.versions h3 { font-size: var(--step-1); line-height: 1.2; }
.versions .date { font-family: var(--sans); font-weight: 400; font-size: var(--step-0); color: var(--muted); }
.versions p { margin-top: 0.25rem; }

details { margin-top: 1.375rem; }
summary { cursor: pointer; color: var(--pink); text-decoration: underline; text-underline-offset: 0.15em; width: fit-content; }
summary:hover { color: var(--pink-hover); }
details[open] > summary { margin-bottom: 1.375rem; }

.band { background: var(--band); }
.band .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 2.5rem 3.5rem; padding-top: 4rem; padding-bottom: 4.5rem;
}
.band h2 { font-size: var(--step-3); margin-bottom: 0.75rem; }
.band p + p { margin-top: 0.5rem; }
.band a, .band summary { color: var(--pink-on-band); }
.band a:hover, .band summary:hover { color: var(--pink-hover); }
.band details { margin-top: 0.5rem; }
.band details[open] > summary { margin-bottom: 0.625rem; }
.steps { margin: 0; padding-left: 1.3em; display: grid; gap: 0.375rem; }
.credits { margin: 0; padding-left: 1.2em; display: grid; gap: 0.375rem; }
.path {
  display: block; margin: 0.5rem 0 0.25rem; padding: 0.5rem 0.75rem;
  background: var(--page); border-radius: 6px;
  font-family: var(--mono); font-size: var(--step--1); overflow-wrap: anywhere;
}

/* About and contact */
.page { padding-top: 3.5rem; padding-bottom: 4rem; }
.page h1 { font-size: var(--step-4); line-height: 1.05; margin-bottom: 1.5rem; }
.page h2 { font-size: var(--step-3); margin: 3.5rem 0 0.75rem; }
.page p + p { margin-top: 1rem; }

.form { margin-top: 1.75rem; }
.form-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.25rem 2rem; }
.form-col { display: grid; gap: 1.25rem; align-content: start; }
.field-message { display: flex; flex-direction: column; }
.field-message textarea { flex: 1; }
.form-foot { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.field label { font-weight: 700; }
.hint { margin-top: 0.125rem; color: var(--muted); font-size: var(--step--1); }
.field input, .field select, .field textarea {
  display: block; width: 100%; margin-top: 0.375rem;
  padding: 0.6rem 0.8rem; min-height: 44px;
  font: inherit; color: var(--ink); background: #FFFFFF;
  border: 1px solid var(--field-border); border-radius: 8px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }
.field-error { margin-top: 0.25rem; color: var(--pink); font-weight: 700; }
.button {
  min-height: 48px; padding: 0 1.75rem;
  font: inherit; font-weight: 700; color: #FFFFFF; background: var(--pink);
  border: 0; border-radius: 8px; cursor: pointer;
}
.button:hover { background: var(--pink-hover); }
.small { font-size: var(--step--1); }
.notice { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: 8px; border: 2px solid var(--ink); background: #FFFFFF; }
.notice.problem { border-color: var(--pink); }
.notice h2 { margin: 0 0 0.375rem; font-size: var(--step-1); }
.notice ul { margin: 0.5rem 0 0; padding-left: 1.2em; }

/* Trap field for bots. Hidden from people and screen readers. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* 404 */
.lost { padding-top: 6rem; padding-bottom: 6rem; }
.lost-bread { display: block; width: 160px; height: 160px; margin-bottom: 2rem; }
.lost h1 { font-size: var(--step-4); margin-bottom: 1rem; }
.lost p + p { margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .download, .skip-link { display: none; } body, body.dark { background: #FFFFFF; color: #000000; } }
.after-notice { margin-top: 1.5rem; }
.verify { margin: 1rem 0 0 72px; font-size: var(--step--1); }
.verify[open] > summary { margin-bottom: 0.5rem; }
.verify p + .path, .verify .path + p, .verify p + p { margin-top: 0.5rem; }
.verify .path { background: #FFFFFF; }
@media (max-width: 480px) { .verify { margin-left: 0; } }
.more { margin-top: 1.375rem; }
.back { margin-bottom: 1.5rem; font-size: var(--step--1); }
.changelog-page .release { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.changelog-page .release h2 { margin: 0 0 0.75rem; }
.changelog-page .release h2 .date { font-family: var(--sans); font-weight: 400; font-size: var(--step-0); color: var(--muted); }
.changelog-page .release h3 { font-size: var(--step-1); margin: 1.25rem 0 0.375rem; }
.changelog-page .release ul { margin: 0; padding-left: 1.2em; display: grid; gap: 0.375rem; }
.changelog-page .release p + p, .changelog-page .release p + ul { margin-top: 0.75rem; }
.changelog-page .release-note { font-weight: 700; }

/* Help and credits pages */
.lead { max-width: 60rem; }
.terms { margin: 0.5rem 0 0; display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.625rem 1.5rem; }
.terms dt { font-weight: 700; }
.terms dd { margin: 0; }
@media (max-width: 640px) { .terms { grid-template-columns: 1fr; gap: 0.125rem; } .terms dd { margin-bottom: 0.625rem; } }
.credits-page h2 { margin: 2.5rem 0 0.5rem; }
.help-layout { display: flex; flex-wrap: wrap; gap: 2rem 3.5rem; margin-top: 2.5rem; align-items: flex-start; }
.help-toc { flex: 1 1 13rem; max-width: 16rem; position: sticky; top: 1.5rem; padding: 1.25rem 1.375rem; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 10px; }
.help-toc h2 { margin: 0 0 0.5rem; font-size: var(--step-1); }
.help-toc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.25rem; }
.help-toc a { display: block; padding: 0.2rem 0; text-decoration: none; }
.help-toc a:hover { text-decoration: underline; }
.help-body { flex: 999 1 30rem; min-width: 0; }
.help-body section { scroll-margin-top: 1.5rem; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.help-body section:last-child { border-bottom: 0; }
.help-body h2 { margin: 0 0 0.75rem; }
.help-body p + p, .help-body p + ul, .help-body ul + p, .help-body dl + p, .help-body p + dl, .help-body ul + dl, .help-body dl + ul { margin-top: 0.75rem; }
.help-body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 0.375rem; }
.commands { width: 100%; margin-top: 1rem; border-collapse: collapse; }
.commands th, .commands td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.commands th { font-weight: 700; background: #FFFFFF; }
.commands code { font-family: var(--mono); font-size: var(--step--1); white-space: nowrap; }
@media (max-width: 640px) { .help-toc { position: static; max-width: none; } .commands code { white-space: normal; overflow-wrap: anywhere; } }

/* Menu: full bar on wide screens, a menu button on small ones (no scripts). */
.nav-menu { display: none; margin: 0; }
.nav-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; color: var(--void-text); }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary:hover { background: #2E1A46; }
.nav-menu svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-menu .close-icon, .nav-menu[open] .menu-icon { display: none; }
.nav-menu[open] .close-icon { display: block; }
@media (max-width: 640px) {
  .nav-wide { display: none; }
  .nav-menu { display: block; }
  .site-header .wrap { flex-wrap: nowrap; position: relative; }
  .nav-menu .site-nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--void-800); border-bottom: 1px solid var(--void-line); padding: 0.5rem 1.25rem 1rem; }
  .nav-menu .site-nav ul { flex-direction: column; gap: 0; }
  .nav-menu .site-nav a { padding: 0.75rem 0; font-size: var(--step-1); border-top: 1px solid var(--void-line); }
  .nav-menu .site-nav li:first-child a { border-top: 0; }
}
.credits-page .terms { grid-template-columns: minmax(0, 15rem) 1fr; }
@media (max-width: 640px) { .credits-page .terms { grid-template-columns: 1fr; } }
.roadmap-page .stage { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.roadmap-page .stage h2 { margin: 0 0 1rem; }
.roadmap-page .stage h3 { font-size: var(--step-1); margin: 0 0 0.375rem; }
.roadmap-page .stage h3 .date { font-family: var(--sans); font-weight: 400; font-size: var(--step-0); color: var(--muted); }
.roadmap-page .stage p + p { margin-top: 0.75rem; }
.callout { margin-top: 1.25rem !important; padding: 0.875rem 1.125rem; background: var(--band); border-radius: 8px; }
.callout a { color: var(--pink-on-band); }
.tooltip .pair span { white-space: nowrap; }
/* A long item type wraps, as long tooltip text does in the game. */
.tooltip .pair-wrap span:first-child { white-space: normal; }
@media (max-width: 400px) { .tooltip-row { flex-direction: column; } .tooltip-row .tooltip { width: 100%; } }

/* About: dark intro band with Medea on the right */
.about-hero { background: radial-gradient(ellipse 60% 90% at 78% 45%, #3A1F66 0%, var(--void-800) 70%); color: var(--void-text); border-bottom: 1px solid var(--void-line); }
.about-hero-inner { display: flex; align-items: center; justify-content: flex-start; gap: 4rem; padding-top: 3rem; padding-bottom: 2.5rem; }
.about-hero-text { flex: 1; max-width: 40rem; }
.about-hero h1 { font-size: var(--step-4); line-height: 1.05; margin-bottom: 1.5rem; color: var(--void-text); }
.about-hero p { color: var(--void-text); }
.about-hero p + p { margin-top: 1rem; }
.about-hero-pic { width: 240px; height: auto; flex: none; }
.about-rest { padding-top: 0.5rem; }
@media (max-width: 640px) {
  .about-hero-inner { flex-direction: column-reverse; align-items: flex-start; gap: 1.5rem; padding-top: 2rem; }
  .about-hero { background: radial-gradient(ellipse 90% 50% at 50% 25%, #3A1F66 0%, var(--void-800) 75%); }
  .about-hero-pic { width: 170px; align-self: center; }
}

/* Mouldy page: the lavender band as tabs. Radio buttons, so it works with no
   scripts (the site's security policy allows none) and with the keyboard:
   Tab reaches the group, the arrow keys switch. Without :has(), every
   section shows, as before. */
.band .wrap.tabs { display: block; }
.tab-list {
  display: flex; flex-wrap: wrap; gap: 0.25rem 2rem;
  border-bottom: 1px solid rgba(36, 19, 58, 0.25); margin-bottom: 1.75rem;
}
.tab-input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tab {
  font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1.15;
  color: var(--muted); cursor: pointer;
  padding: 0.5rem 0 0.625rem; margin-bottom: -1px; border-bottom: 3px solid transparent;
}
.tab:hover { color: var(--ink); }
.tab-input:checked + .tab { color: var(--ink); border-bottom-color: var(--pink-on-band); }
.tab-input:focus-visible + .tab { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.tab-panel { max-width: 46rem; }
.tab-panel + .tab-panel { margin-top: 2.5rem; }
@supports selector(:has(a)) {
  .tab-panel { display: none; }
  .tab-panel + .tab-panel { margin-top: 0; }
  .tabs:has(#tab-install:checked) #install,
  .tabs:has(#tab-help:checked) #help,
  .tabs:has(#tab-update:checked) #update,
  .tabs:has(#tab-gallery:checked) #gallery,
  .tabs:has(#tab-credits:checked) #credits { display: block; }
}
@media print { .tab-list { display: none; } .tab-panel { display: block !important; margin-top: 1.5rem; } }

/* Help, changelog and roadmap: Back to Mouldy on the left, the other two pages on the right. */
.page-links { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; }
.page-links ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
/* Help page (Mouldy 3.0): button names and keys in the two-column rows */
.help-body h3 { margin: 1.75rem 0 0.5rem; font-size: var(--step-1); }
.help-body .chip { display: inline-block; padding: 0 0.45em; border: 1px solid #8F7BAF; border-radius: 6px; font-weight: 700; white-space: nowrap; }
.help-body kbd { display: inline-block; padding: 0 0.4em; border: 1px solid #8F7BAF; border-bottom-width: 2px; border-radius: 4px; font: inherit; font-weight: 700; }
.help-body dd > p + p, .help-body dd > p + ul, .help-body dd > ul + p { margin-top: 0.375rem; }
.help-body dd > ul { margin-top: 0.375rem; }
/* Mouldy screenshots: gallery page and the Gallery tab */
.gallery-page h1 + p { margin-bottom: 2rem; }
.tab-panel .shot-grid { margin: 1.5rem 0; }
.shot { margin: 0; }
.shot a { display: block; border-radius: 10px; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: contain; border-radius: 10px; box-shadow: 0 0 0 1px var(--rule); background: var(--void-900); }
.shot figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.9375rem; }
.shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.5rem; margin-top: 2rem; align-items: start; }
.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .shot-grid, .gallery-grid { grid-template-columns: 1fr; } }
