/* Template directory: Approach / Angle */

/* Hero: clears the fixed header */
.aa-section { padding-top: 68px; }
.aa-hero { padding: 60px; display: flex; align-items: flex-start; gap: 40px; }
.aa-hero__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.aa-crumbs { display: flex; align-items: center; gap: 16px; font-size: 16px; line-height: 25px; letter-spacing: -0.16px; font-weight: 500; color: var(--ink-60); }
.aa-crumbs a { color: var(--ink-60); transition: color 0.2s var(--ease); }
.aa-crumbs a:hover, .aa-crumbs a:focus-visible { color: var(--ink); }
.aa-crumbs img { width: 5px; height: 9px; }
.aa-hero__text { max-width: 532px; display: flex; flex-direction: column; gap: 15px; }
.aa-hero__title { margin: 0; }
.aa-search { position: relative; max-width: 432px; }
.aa-search svg { position: absolute; left: 12px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%); color: var(--ink-60); pointer-events: none; }
.aa-search input {
  width: 100%; height: 40px; padding: 12px 12px 12px 36px;
  font: inherit; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 0;
  transition: border-color 0.2s var(--ease);
}
.aa-search input::placeholder { color: var(--ink-60); }
.aa-search input:hover { border-color: #e2e2e2; }
.aa-search input:focus { outline: none; border-color: var(--ink-60); }
.aa-hero__art { flex: 0 0 424px; }
.aa-hero__art img { width: 424px; height: 325px; object-fit: cover; }

/* Templates grid */
.aa-list { border-top: 1px solid var(--line); }
.aa-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.aa-card { display: flex; flex-direction: column; padding: 40px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.aa-card:nth-child(3n) { border-right: 0; }
.aa-card__link { display: flex; flex-direction: column; gap: 24px; }
.aa-card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.aa-card__tags .tag { border-color: var(--line); }
.aa-card__text { display: flex; flex-direction: column; gap: 8px; }
.aa-card__subject { font-size: 16px; line-height: 25px; letter-spacing: -0.16px; font-weight: 500; color: var(--ink); }
.aa-card__body { height: 97px; overflow: hidden; }
.aa-card__body p { font-size: 14px; line-height: 19px; letter-spacing: -0.28px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aa-card__body .aa-gap { margin-top: 35px; }
.aa-card__link:hover .aa-card__subject { color: var(--ink-60); }
.aa-card__link, .aa-card__subject { transition: color 0.2s var(--ease); }
.aa-card__actions { margin-top: auto; padding-top: 28px; display: flex; gap: 8px; }
.aa-card__actions > * { flex: 1 1 0; min-width: 0; }
.aa-copy {
  display: grid; place-items: center; min-height: 36px; padding: 8px 12px;
  background: var(--white); border: 1px solid var(--line);
  font-size: 16px; line-height: 16px; letter-spacing: -0.16px; font-weight: 500; color: var(--ink);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.aa-copy:hover { background: var(--surface); border-color: #e2e2e2; }
.aa-copy:active { background: #f2f2f2; }
.aa-copy > span { grid-area: 1 / 1; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.aa-copy__done { opacity: 0; transform: scale(0.3); }
.aa-copy.is-copied .aa-copy__idle { opacity: 0; transform: scale(0.3); }
.aa-copy.is-copied .aa-copy__done { opacity: 1; transform: none; }

/* Pagination */
.aa-pager { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.aa-pager__pages { display: flex; align-items: center; gap: 4px; }
.aa-pager__page { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 37px; font-size: 12px; line-height: 14px; font-weight: 500; color: var(--ink-60); font-variant-numeric: tabular-nums; transition: color 0.2s var(--ease); }
.aa-pager__page[aria-current="page"] { color: var(--ink); }
.aa-pager__page:hover, .aa-pager__page:focus-visible { color: var(--ink); }
.aa-pager__next { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 21px; font-weight: 500; color: var(--ink-60); transition: color 0.2s var(--ease); }
.aa-pager__next:hover, .aa-pager__next:focus-visible { color: var(--ink); }
.aa-pager__next img { width: 18px; height: 18px; opacity: 0.6; }

/* CTA banner */
.aa-banner { position: relative; overflow: hidden; padding: 120px 60px; display: flex; justify-content: center; }
.aa-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.aa-banner__inner { position: relative; max-width: 500px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.aa-banner__text { display: flex; flex-direction: column; gap: 12px; }
.aa-banner__title { font-size: 44px; line-height: 48px; letter-spacing: -1.76px; font-weight: 500; color: var(--ink); }
.aa-banner__lead { font-size: 16px; line-height: 21.7px; font-weight: 400; color: var(--ink); }

@media (min-width: 1200px) {
  .aa-card { min-height: 376px; }
}

/* Footer spacing on this page (source rhythm: 20px under headings, 12px between links, 80px above legal) */
@media (min-width: 810px) {
  .site-footer__brand { gap: 34px; }
  .footer__col { gap: 20px; }
  .footer__links { gap: 12px; }
  .site-footer__legal { margin-top: 80px; }
}
@media (min-width: 810px) and (max-width: 1199px) {
  .site-footer__inner { padding: 60px; }
  .site-footer__top { grid-template-columns: 310px 1fr; gap: 0; }
  .footer__nav { justify-content: flex-end; flex-wrap: wrap; gap: 28px 32px; }
}

@media (max-width: 1199px) {
  .aa-hero { flex-direction: column-reverse; gap: 40px; padding: 0 20px 40px; }
  .aa-hero__main { width: 100%; }
  .aa-hero__text { max-width: 500px; }
  .aa-hero .t-lead { font-size: 16px; line-height: 22px; }
  .aa-hero__art { flex: none; width: 100%; }
  .aa-hero__art img { width: 100%; height: auto; aspect-ratio: 922 / 672; }
  .aa-grid { grid-template-columns: repeat(2, 1fr); }
  .aa-card { padding: 28px; }
  .aa-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .aa-card:nth-child(2n) { border-right: 0; }
  .aa-card__body { height: 116px; }
  .aa-card__body .aa-gap { margin-top: 58px; }
  .aa-banner__title { font-size: 36px; line-height: 40px; letter-spacing: -1.4px; }
}

@media (max-width: 809px) {
  .page > .aa-section, .page > .aa-banner { margin-inline: 4px; }
  .aa-section { padding-top: 40px; }
  .aa-hero { padding: 0 20px 40px; }
  .aa-hero__art img { aspect-ratio: 310 / 237; }
  .t-display.aa-hero__title { font-size: 40px; line-height: 44px; letter-spacing: -1.6px; }
  .aa-hero .t-lead { font-size: 14px; line-height: 19px; }
  .aa-search { max-width: none; }
  .aa-search input { font-size: 14px; }
  .aa-grid { grid-template-columns: 1fr; }
  .aa-card, .aa-card:nth-child(3n) { border-right: 0; padding: 20px; }
  .aa-card__link { gap: 20px; }
  .aa-card__actions { flex-direction: column; }
  .aa-card__actions > * { flex: none; width: 100%; }
  .aa-banner { padding: 40px 20px; }
}
