/* Site-only components of the Landing Templates website (not part of the template specs). */

/* Gallery: every tile carries data-theme="<slug>", so it renders with that template's own tokens. */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile { width: 100%; text-align: left; cursor: pointer; display: grid; gap: 6px; padding: 18px; min-height: 150px; background: var(--bg); background-image: var(--pattern); background-size: var(--psize); color: var(--ink); border: 1px var(--ls) var(--line); border-radius: var(--r); box-shadow: var(--shadow); font: 0.882rem/1.4 var(--body); }
.tile:hover { outline: 2px solid var(--accent); outline-offset: 2px; }
.tile__num { font: 600 0.765rem var(--label); color: var(--muted); }
.tile__name { font: var(--hw) 1.294rem/1.15 var(--head); font-style: var(--hs); letter-spacing: var(--ht); }
.tile__feel { color: var(--muted); }
.tile__bar { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.tile__bar span { height: 10px; flex: 1; border-radius: 999px; }
.tile__bar span:nth-child(1) { background: var(--accent); }
.tile__bar span:nth-child(2) { background: var(--band); }
.tile__bar span:nth-child(3) { background: var(--surface); border: 1px solid var(--line); }

/* Legal pages */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink); margin: 0 0 12px; }
.legal ul { padding-left: 20px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 0.94rem; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-top: 1px var(--ls) var(--line); vertical-align: top; }

/* Toast after email verification and other short notices */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translateX(-50%); max-width: calc(100% - 32px); background: #1d1d1f; color: #fff; padding: 12px 18px; border-radius: 10px; font: 14px/1.4 "Segoe UI", -apple-system, Roboto, Arial, sans-serif; box-shadow: 0 6px 20px rgba(0,0,0,.25); }

/* Code snippets (agent setup) */
.code { margin: 8px 0 16px; padding: 14px 16px; overflow-x: auto; background: var(--surface); border: 1px var(--ls) var(--line); border-radius: var(--r-sm); font: 0.882rem/1.5 var(--mono); color: var(--ink); }
code { font-family: var(--mono); font-size: 0.94em; }
