/* templates.css: /templates, the free templates index (design audit U30, specs/templates.md). Linked last in the
   page's own css list (lib/site/pages/templates.ts). Every rule is scoped to a `tp-` class only this page prints,
   so nothing reaches another page. */

/* 1. The hero (round two U23): from 1024 to 1199 the quiet link wraps under the long button, and the open hero's 4%
   downward nudge then sets it 2px below the picture's open band (8% to 92%). Here the column sits centred instead. */
@media (min-width: 1024px) and (max-width: 1199px) { .tp-hero.sx-hero .sx-hero__col { top: 0; } }

/* 2. The templates: three paper cards side by side at 900px, stacked below; the whole card is the link. */
.tp-cards { list-style: none; margin: clamp(20px, 3vw, 32px) 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .tp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tp-cards > li { display: grid; }
.tp-card {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  background: var(--card); color: var(--fg); border: 1px solid var(--rule); border-top: 4px solid var(--amber);
  border-radius: var(--radius); padding: 22px 24px 20px; text-decoration: none;
  box-shadow: 0 1px 0 rgba(21, 23, 28, .04), 0 10px 28px -18px rgba(17, 22, 39, .28);
}
.tp-card__name { margin: 0; font-family: var(--head); font-size: 1.35rem; line-height: 1.2; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tp-card__blurb { margin: 0; font-size: 1.04rem; line-height: 1.5; }
.tp-card__foot { margin: auto 0 0; padding-top: 12px; }
/* The lift on hover and focus is the kit's (.kit-lift, kit.css; build three U28): the card draws no ::after of its own,
   so the kit's shadow layer is free. */
.tp-card:hover .tp-card__name { text-decoration-thickness: 2px; }
.tp-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* The cards and the questions share the paper ground: one band's padding between them, not two. */
.tp-band { padding-bottom: clamp(28px, 4vw, 48px); }
.tp-band + section[id="faq"] { padding-top: clamp(28px, 4vw, 48px); }
/* The questions run with no index here: clear space under their heading, as the indexed grid gives. */
.tp-band + section[id="faq"] > .wrap > div + div { margin-top: clamp(20px, 3vw, 32px); }
