/* The growth pages (control/site/growth.mjs): the blog, the theme pages and the store gallery, on top of landing.css (.inc). */
.g-wide { max-width: 1120px; }
.g-center { justify-content: center; }
.g-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.g-crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.g-crumbs a { color: var(--muted); }
.g-meta { font-size: 14px; color: var(--muted); }
.g-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.g-tags span { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--page); border: 1px solid var(--line); color: var(--muted); }

/* blog index */
.g-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.g-post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); }
.g-post h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 6px 0 8px; }
.g-post h2 a { color: var(--ink); text-decoration: none; }
.g-post h2 a:hover { color: var(--brand); }
.g-post p { color: var(--muted); }

/* article */
.g-article-wrap { max-width: 820px; }
.g-article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 4vw, 48px); }
.g-article h1 { font-size: clamp(32px, 4.4vw, 50px); margin: 10px 0 0; }
.g-lede { font-size: 20px; color: var(--muted); margin-top: 14px; }
.g-body { margin-top: 26px; font-size: 18px; line-height: 1.7; }
.g-body > * + * { margin-top: 16px; }
.g-body h2 { font-size: clamp(24px, 2.8vw, 30px); margin-top: 36px; scroll-margin-top: calc(var(--nav) + 12px); }
.g-body h3 { font-size: 21px; margin-top: 26px; }
.g-body ul, .g-body ol { padding-inline-start: 1.3em; }
.g-body li + li { margin-top: 6px; }
.g-body blockquote { margin: 18px 0; padding: 12px 18px; border-inline-start: 4px solid var(--violet); background: var(--page); border-radius: 0 12px 12px 0; color: var(--ink); }
.g-body code { font-size: .88em; background: var(--page); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.g-body hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.g-body a { overflow-wrap: anywhere; }
.g-table { overflow-x: auto; margin-top: 16px; }
.g-table table { border-collapse: collapse; width: 100%; font-size: 16px; }
.g-table th, .g-table td { text-align: start; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.g-table th { font-weight: 800; }
.g-back { text-align: center; }

/* themes */
.g-themes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.g-theme a { display: grid; gap: 4px; height: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.g-theme a:hover, .g-theme a:focus-visible { border-color: var(--violet); box-shadow: var(--soft); }
.g-theme span { color: var(--muted); font-size: 15px; }
.g-theme small { color: var(--muted); font-size: 13px; }
.g-sw { display: flex; height: 26px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 6px; }
.g-sw i { flex: 1; }
.g-pal { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.g-pal__r { position: absolute; opacity: 0; width: 1px; height: 1px; }
.g-pal__l { display: grid; gap: 4px; min-width: 120px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 14px; color: var(--muted); }
.g-pal__l .g-sw { margin: 0; height: 18px; }
.g-pal__r:checked + .g-pal__l { border-color: var(--violet); color: var(--ink); font-weight: 700; }
.g-pal__r:focus-visible + .g-pal__l { outline: 3px solid var(--violet); outline-offset: 2px; }
.g-frame { flex-basis: 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; max-height: 760px; overflow-y: auto; box-shadow: var(--soft); }
.g-pv { display: none; }
#pal-0:checked ~ .g-frame .g-pv--0, #pal-1:checked ~ .g-frame .g-pv--1, #pal-2:checked ~ .g-frame .g-pv--2, #pal-3:checked ~ .g-frame .g-pv--3 { display: block; }

/* store gallery */
.g-stores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.g-store a { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: var(--ink); height: 100%; }
.g-store a:hover, .g-store a:focus-visible { border-color: var(--violet); box-shadow: var(--soft); }
.g-store img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; background: var(--page); }
.g-store__t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 18px; }
.g-store small { color: var(--muted); font-size: 14px; }
.g-badge { font-style: normal; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--night); color: #fff; }

@media (max-width: 640px) {
  .g-body { font-size: 17px; }
  .g-pal__l { min-width: 0; flex: 1 1 40%; }
  .g-frame { max-height: 620px; }
}
