/* /templates — the social template gallery. Built by brand/build_templates.py.
   Editorial gallery: generous margins, 4:5 shots on a warm surface, caption set as a quote so
   the reader can judge the words as well as the layout. */

.t-hero{padding:74px 0 26px;border-bottom:1px solid var(--border)}
.t-hero h1{font-size:clamp(34px,4.4vw,58px);line-height:1.04;letter-spacing:-.03em;margin:14px 0 0;max-width:16ch}
.t-hero h1 em{font-family:var(--font-editorial);font-style:italic;font-weight:400}
.t-hero .lede{max-width:720px;margin:20px 0 0;font-size:16.5px;line-height:1.6;color:var(--ink-secondary)}
.t-ctas{display:flex;gap:12px;margin-top:26px;flex-wrap:wrap}
.t-ctas .button-primary,.t-ctas .button-outline{min-height:48px;display:inline-flex;align-items:center}

.t-grid-wrap{padding:64px 0}
.t-grid-wrap.is-alt{background:var(--surface-warm);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.t-h2{font-size:clamp(24px,2.6vw,34px);letter-spacing:-.02em;margin:0}
.t-sub{margin:10px 0 0;color:var(--ink-secondary);font-size:15.5px;max-width:760px;line-height:1.55}

.t-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-top:34px}
.t-grid.is-wide{grid-template-columns:repeat(3,minmax(0,1fr))}
.t-card{background:var(--surface);border:1px solid var(--border);border-radius:20px;overflow:hidden;display:flex;flex-direction:column}
.t-shot{display:block;background:var(--surface-muted);line-height:0}
.t-shot img{width:100%;height:auto;display:block}
.t-body{padding:22px 24px 26px;display:flex;flex-direction:column;gap:9px}
.t-trigger{align-self:flex-start;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--primary);background:rgba(33,72,216,.08);border-radius:999px;padding:5px 10px}
.t-body h3{margin:2px 0 0;font-size:18.5px;letter-spacing:-.015em}
.t-note{margin:0;font-size:14px;line-height:1.5;color:var(--ink-secondary)}
.t-cap{margin:8px 0 0;padding:14px 0 0;border-top:1px solid var(--border);font-size:14px;line-height:1.55;font-style:normal;color:var(--ink)}
.t-tags{font-size:12px;line-height:1.5;color:var(--ink-muted);word-break:break-word}

.t-card.is-wide .t-shot img{aspect-ratio:16/9;object-fit:cover}
.t-card.is-wide .t-body{padding:18px 20px 20px}

.t-close{padding:76px 0 88px}
.t-close-card{background:var(--ink);color:#FEFBF4;border-radius:24px;padding:44px 44px 46px;max-width:900px}
.t-close-card h2{margin:0;font-size:clamp(23px,2.6vw,32px);letter-spacing:-.02em}
.t-close-card p{margin:12px 0 0;font-size:15.5px;line-height:1.55;color:#DAD4CE}
.t-close-card .button-outline{border-color:rgba(254,251,244,.5);color:#FEFBF4}
.t-close-card .button-outline:hover{background:rgba(254,251,244,.1)}

@media(max-width:1000px){.t-grid.is-wide{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .t-hero{padding:52px 20px 22px}
  .t-grid,.t-grid.is-wide{grid-template-columns:1fr;gap:22px}
  .t-grid-wrap{padding:48px 20px}
  .t-h2,.t-sub{padding:0}
  .t-close{padding:56px 20px 64px}
  .t-close-card{padding:28px 22px 30px;border-radius:20px}
  .t-ctas .button-primary,.t-ctas .button-outline{width:100%;justify-content:center}
}
