/* Templates (/templates/, template-parts/painted/pages/templates.php): the library under the header, in the route's
   place and in its build (lines.css .gdr): a card for each email page with how many templates it holds, the LinkedIn
   messages of this page, and the public Notion copy, which opens in a new tab. Three to a row on a desktop, two on a
   tablet, one on a phone. */
.tpl-lib { text-align: left; }
.tpl-lib ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tpl-c { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 12px; row-gap: 3px; height: 100%; padding: 15px 16px 16px; border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(70, 50, 36, .06), 0 14px 28px -22px rgba(80, 52, 40, .45); transition: transform .2s ease, box-shadow .2s ease; }
.tpl-c:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--ct), 0 16px 28px -18px rgba(80, 52, 40, .5); }
.tpl-c:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tpl-i { grid-row: 1 / 4; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; }
.tpl-i svg.i { width: 16px; height: 16px; }
.tpl-c b { font-weight: 600; font-size: 15px; line-height: 1.25; letter-spacing: -.01em; }
.tpl-c small { font-size: 13px; line-height: 1.4; color: var(--mute); }
.tpl-c em { display: inline-flex; align-items: center; gap: 5px; align-self: end; margin-top: 6px; font: 600 10.5px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--cd); }
.tpl-c em svg.i { width: 12px; height: 12px; transform: rotate(-45deg); }
@media (max-width: 1000px) {
  .tpl-lib ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tpl-lib ol { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tpl-c { padding: 13px 14px 14px; }
}
