/* The template gallery's pages (written to templates/gallery.css by build.mjs). */
:root {
  --ink: #2b3038;
  --slate: #46525f;
  --text: #39434a;
  --muted: #6b7480;
  --line: #e6e4dd;
  --paper: #ffffff;
  --desk: #f7f6f2;
  --marigold: #f2a541;
  --aqua: #5ec8bd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--desk);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, sans-serif;
}
a {
  color: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.g-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: var(--ink);
}
.g-logo {
  font: 600 28px/1 "Prompt", sans-serif;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.g-logo .crux {
  color: var(--marigold);
}
.g-logo .plot {
  color: var(--aqua);
}
.g-head nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.g-head nav a {
  color: #e9ebee;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.g-head nav a.g-cta {
  padding: 7px 14px;
  border: 1.5px solid #e9ebee;
  border-radius: 8px;
}
.g-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 40px) 48px;
}
.g-crumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}
.g-tpl {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
}
.g-figure {
  margin: 0;
  background: var(--paper);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.g-figure .g-svg {
  display: block;
  width: 100%;
  height: auto;
}
.g-figure .g-svg text {
  font-family: "Prompt", sans-serif;
}
.g-figure figcaption {
  margin-top: 6px;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}
h1 {
  font: 600 clamp(28px, 4vw, 38px) / 1.15 "Prompt", sans-serif;
  color: var(--ink);
  margin: 4px 0 12px;
}
h2 {
  font: 600 19px/1.3 "Prompt", sans-serif;
  color: var(--ink);
  margin: 26px 0 8px;
}
.g-summary {
  font-size: 18px;
  margin: 0 0 18px;
}
.g-open {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.g-open:hover {
  background: #14171d;
}
.g-free {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.g-text ul {
  padding-left: 20px;
  margin: 0;
}
.g-terms {
  font-size: 14px;
  color: var(--muted);
  margin-top: 18px;
}
.g-related,
.g-field {
  margin-top: 40px;
}
.g-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.g-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 14px;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.g-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.g-card[hidden],
.g-field[hidden],
.g-none[hidden] {
  display: none;
}
.g-card img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.g-card-title {
  font: 600 15px/1.3 "Prompt", sans-serif;
  color: var(--ink);
}
.g-card-sub {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.g-intro {
  max-width: 720px;
}
.g-search input {
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1.5px solid #d6d9de;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.g-search input:focus {
  outline: none;
  border-color: var(--slate);
}
.g-foot {
  border-top: 1px solid var(--line);
  padding: 22px clamp(16px, 4vw, 40px) 36px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .g-tpl {
    grid-template-columns: 1fr;
  }
  .g-head nav a:not(.g-cta) {
    display: none;
  }
}
