/* Template detail page: tidier header notices, compact usage card and sectioned introduction. Loaded last on the page. */

/* Header notices: one quiet line each, details on demand. */
.repo .template-type-notice { display: flex; align-items: center; gap: 10px; margin: -6px 0 14px; padding: 0; border: 0; background: none; }
.repo .template-type-notice p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.template-beta-notice { align-items: center; gap: 12px; margin: 0 0 20px; padding: 10px 14px; }
.template-beta-notice > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; flex: 1; }
.template-beta-notice h2 { margin: 0; font-size: 14px; }
.template-beta-more { flex: 1 1 100%; }
.template-beta-more summary { display: inline-block; cursor: pointer; color: var(--blue); font-size: 13px; list-style: none; }
.template-beta-more summary::-webkit-details-marker { display: none; }
.template-beta-more summary::after, .template-intro-more > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.template-beta-more[open] summary::after, .template-intro-more[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.template-beta-more p { margin-top: 6px; font-size: 13px; }
@media (min-width: 900px) { .template-beta-more { flex: 0 1 auto; margin-left: auto; } .template-beta-more[open] { flex-basis: 100%; margin-left: 0; } }

/* Free-use card: headline + three short points instead of long paragraphs. */
.template-usage-notice { padding: 22px 24px; margin-bottom: 24px; }
.template-usage-head h2 { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; margin: 10px 0 6px; }
.template-usage-head p { margin: 0; color: var(--fg-2); line-height: 1.7; }
.template-usage-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.template-usage-points li { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px; border: 1px solid var(--border-muted); border-radius: 10px; background: rgba(255,255,255,.015); }
.template-usage-points b { font-size: 14px; color: var(--fg); }
.template-usage-points span { flex: 1; color: var(--muted); font-size: 13px; line-height: 1.65; }
.template-usage-points a { color: var(--blue); font-size: 13px; min-height: 28px; display: inline-flex; align-items: center; }
.template-usage-notice .template-usage-note { margin: 14px 0 0; font-size: 12px; line-height: 1.6; }
@media (max-width: 760px) { .template-usage-points { grid-template-columns: minmax(0, 1fr); } .template-usage-notice { padding: 18px; } }

/* Introduction: one card per section, two columns on wide screens. */
.template-intro { display: grid; gap: 14px; margin-bottom: 24px; }
.template-intro-lead { margin: 0; color: var(--fg-2); }
.template-intro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.template-intro-card { min-width: 0; margin: 0; padding: 18px 20px; border: 1px solid var(--border-muted); border-radius: 12px; background: var(--bg-1); overflow-wrap: anywhere; }
.template-intro-card h3 { margin: 0 0 8px; font-size: 15.5px; line-height: 1.5; }
.template-intro-card p, .template-intro-card li { font-size: 13.5px; line-height: 1.75; color: var(--fg-2); }
.template-intro-card p { margin: 0 0 8px; }
.template-intro-card p:last-child { margin-bottom: 0; }
.template-intro-card ul, .template-intro-card ol { margin: 0; padding-left: 18px; }
.template-intro-more > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--border-muted); border-radius: 999px; cursor: pointer; color: var(--fg-2); font-size: 13.5px; list-style: none; }
.template-intro-more > summary::-webkit-details-marker { display: none; }
.template-intro-more[open] > summary { margin-bottom: 14px; }
@media (max-width: 760px) { .template-intro-grid { grid-template-columns: minmax(0, 1fr); } .template-intro-card { padding: 16px; } }

/* Creator promo: a slim strip rather than a second hero. */
.repo .creator-support-promo { padding: 16px 20px; gap: 8px 20px; }
.repo .creator-support-reach b { font-size: 22px; }
.repo .creator-support-message h3 { font-size: 15px; margin: 0 0 4px; }
.repo .creator-support-message p { font-size: 13px; margin: 0 0 10px; }
.repo .creator-support-links .btn { min-height: 34px; padding: 0 14px; font-size: 13px; }

/* Acquire box: tighter sign-up note. */
.download-account-note { padding: 10px 12px; }
.download-account-note p { font-size: 12.5px; line-height: 1.6; margin: 4px 0 0; }

/* Acquire box: one size for every disclosure row. */
.repo-acquire details > summary { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.repo-acquire details > summary:hover { color: var(--fg); }
@media (max-width: 600px) {
  .template-beta-notice { flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px 14px; margin-bottom: 16px; }
  .template-usage-points li { padding: 12px; }
}
