/* Template detail page: standard 10-section structure. Scoped to single invitation_template pages. */
body.single-invitation_template .td-sec{padding-block:var(--sp-6)}
body.single-invitation_template .td-sec h2,body.single-invitation_template .td-final h2,body.single-invitation_template .pricing .section-head h2{font-size:30px;line-height:1.25;font-weight:600;margin:0 0 var(--sp-4)}
body.single-invitation_template .td-center{text-align:center}
body.single-invitation_template .td-narrow{max-width:820px}
body.single-invitation_template .td-badges{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.5rem}
body.single-invitation_template .td-story__body p{font-size:17px;line-height:1.75;margin:0 0 1rem;color:var(--ink)}

/* balanced grids (24 columns, equal-size cards, centred uneven last row) */
body.single-invitation_template .td-grid{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:18px;align-items:stretch}
body.single-invitation_template .td-grid-r2 > *{grid-column:span 12}
body.single-invitation_template .td-grid-r3 > *{grid-column:span 8}
body.single-invitation_template .td-grid-r4 > *{grid-column:span 6}
@media (min-width:900px){
  body.single-invitation_template .td-grid-r2 > .is-last-start{grid-column:var(--gcs) / span 12}
  body.single-invitation_template .td-grid-r3 > .is-last-start{grid-column:var(--gcs) / span 8}
  body.single-invitation_template .td-grid-r4 > .is-last-start{grid-column:var(--gcs) / span 6}
}
@media (min-width:601px) and (max-width:899px){
  body.single-invitation_template .td-grid-r3 > *,body.single-invitation_template .td-grid-r4 > *{grid-column:span 12}
  body.single-invitation_template .td-grid > *:last-child:nth-child(odd){grid-column:7 / span 12}
}
@media (max-width:600px){
  body.single-invitation_template .td-grid{grid-template-columns:1fr;gap:12px}
  body.single-invitation_template .td-grid > *{grid-column:auto !important}
}
body.single-invitation_template .td-card{display:flex;gap:14px;align-items:flex-start;height:100%;padding:18px 20px;border:1px solid var(--line-soft);border-radius:var(--r-md);background:var(--surface)}
body.single-invitation_template .td-card__icon{flex:0 0 44px;width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--plum-700),var(--rose-600));color:#fff}
body.single-invitation_template .td-card__icon svg{width:22px;height:22px}
body.single-invitation_template .td-card__text{display:flex;flex-direction:column;gap:4px;min-width:0}
body.single-invitation_template .td-card__text strong{font-size:16px;line-height:1.35;font-weight:600;color:var(--ink)}
body.single-invitation_template .td-card__text span{font-size:14.5px;line-height:1.5;color:var(--ink-soft)}
body.single-invitation_template .td-card__text em{font-style:normal;font-size:12.5px;font-weight:600;letter-spacing:.03em;color:var(--rose-600);margin-top:2px}

/* perfect for */
body.single-invitation_template .td-tags{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
body.single-invitation_template .td-tags li{padding:8px 16px;border:1px solid var(--line-soft);border-radius:var(--r-pill);background:var(--surface);font-size:14.5px;color:var(--ink)}

/* how it works */
body.single-invitation_template .td-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
body.single-invitation_template .td-steps li{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:18px 14px}
body.single-invitation_template .td-steps__icon{width:52px;height:52px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--plum-700),var(--rose-600));color:#fff}
body.single-invitation_template .td-steps__icon svg{width:24px;height:24px}
body.single-invitation_template .td-steps__n{font-size:12.5px;font-weight:700;letter-spacing:.08em;color:var(--rose-600)}
body.single-invitation_template .td-steps strong{font-size:16px;font-weight:600}
body.single-invitation_template .td-steps li > span:last-child{font-size:14.5px;color:var(--ink-soft);line-height:1.5}
@media (max-width:900px){body.single-invitation_template .td-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){body.single-invitation_template .td-steps{grid-template-columns:1fr}}

/* faq + related + final */
body.single-invitation_template .faq .faq-list{max-width:760px;margin-inline:auto}
body.single-invitation_template .td-related .featured-grid{align-items:stretch}
body.single-invitation_template .td-final{padding-block:var(--sp-7);background:linear-gradient(135deg,var(--plum-800),var(--rose-600));color:#fff}
body.single-invitation_template .td-final h2{color:#fff}
body.single-invitation_template .td-final p{margin:0 0 var(--sp-4);opacity:.95}
body.single-invitation_template .td-final__actions{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:center}

/* compact sticky CTA: phones only */
body.single-invitation_template .td-sticky{display:none}
@media (max-width:720px){
  body.single-invitation_template .td-sticky{display:flex;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:40;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:rgba(255,253,249,.96);border-top:1px solid var(--line-soft);backdrop-filter:blur(6px)}
  body.single-invitation_template .td-sticky .btn{flex:1 1 0;justify-content:center;text-align:center;white-space:nowrap}
  body.single-invitation_template{padding-bottom:64px}
  body.single-invitation_template .td-sec h2,body.single-invitation_template .td-final h2,body.single-invitation_template .pricing .section-head h2{font-size:24px}
  body.single-invitation_template .td-story__body p{font-size:16px}
}

/* readable secondary buttons on the dark final section */
body.single-invitation_template .td-final .btn-secondary{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.75)}
body.single-invitation_template .td-final .btn-secondary:hover{background:rgba(255,255,255,.14)}
