/* canvaswp.com: the template showcase link grids. Loaded by the home page and every /templates/ page. */

/* Link grids */
.tpl-group-title { display: flex; align-items: baseline; gap: .625rem; font-size: var(--t-lg); font-weight: 700; margin: 3rem 0 1rem; }
.tpl-group-title:first-child { margin-top: 0; }
.tpl-group-title span { font-size: var(--t-xs); font-weight: 600; color: var(--site-muted); font-variant-numeric: tabular-nums; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: .625rem; margin: 0; padding: 0; list-style: none; }
.tpl-tile { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3rem; padding: .625rem 1rem; border: 1px solid var(--site-line); border-radius: var(--r-sm); background: #fff; color: var(--site-ink); font-size: var(--t-sm); font-weight: 600; text-decoration: none; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.tpl-tile i { flex: none; font-size: var(--t-xs); color: var(--site-muted); transition: color .15s ease, transform .15s ease; }
.tpl-tile:hover, .tpl-tile:focus-visible { border-color: var(--site-accent); color: var(--site-accent-text); background: var(--site-accent-soft); }
.tpl-tile:hover i, .tpl-tile:focus-visible i { color: var(--site-accent-text); transform: translate(1px, -1px); }

/* Icon cards: elements that carry a glyph render as a centred card, like the showcase. */
.tpl-grid--icons { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .75rem; }
.tpl-tile--icon { flex-direction: column; align-items: center; justify-content: flex-start; gap: .625rem; min-height: 7rem; padding: 1.375rem .75rem 1.25rem; text-align: center; }
.tpl-tile--icon > i:first-child { font-size: var(--t-3xl); line-height: 1; color: var(--site-accent-text); transition: color .15s ease; }
.tpl-tile--icon span { font-size: var(--t-sm); line-height: 1.35; }
.tpl-tile--icon .bi-arrow-up-right { position: absolute; top: .5rem; right: .5625rem; opacity: 0; transition: opacity .15s ease; }
.tpl-tile--icon { position: relative; }
.tpl-tile--icon:hover .bi-arrow-up-right, .tpl-tile--icon:focus-visible .bi-arrow-up-right { opacity: 1; transform: none; }

/* Other families */
.tpl-siblings { display: flex; flex-wrap: wrap; justify-content: center; gap: .625rem; margin: 0; padding: 0; list-style: none; }
.tpl-siblings a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border: 1px solid var(--site-line); border-radius: var(--r-pill); background: #fff; color: var(--site-ink); font-size: var(--t-sm); font-weight: 600; text-decoration: none; }
.tpl-siblings a:hover, .tpl-siblings a:focus-visible { border-color: var(--site-accent); color: var(--site-accent-text); }
.tpl-siblings span { font-size: var(--t-xs); font-weight: 600; color: var(--site-muted); font-variant-numeric: tabular-nums; }

/* Jump list on a family page with several groups */
.tpl-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.tpl-jump a { display: inline-block; padding: .3125rem .75rem; border-radius: var(--r-pill); background: var(--site-band); color: var(--site-muted); font-size: var(--t-sm); font-weight: 600; text-decoration: none; }
.tpl-jump a:hover, .tpl-jump a:focus-visible { background: var(--site-accent-soft); color: var(--site-accent-text); }
