/* The free meeting templates (/templates/, src/templates/render.js).
   Loaded on those pages only, after content.css: the pages use the help
   centre's look (main.c-hc) and its colour variables, so header, footer and
   dark mode follow by themselves. Every class here starts with c-tpl-. */

/* The two buttons that lead to the downloads. */
.c-tpl-cta { margin: 18px 0 8px; }
.c-hc .c-tpl-cta .btn.primary { font-family: var(--sans); font-size: 1.02rem; font-weight: 650; min-height: 48px; border-radius: 10px; }

/* What's included: one line for each file. */
.c-tpl-included { padding-left: 1.2em; }
.c-tpl-included li { margin-bottom: .6em; }


/* The preview. With no script, the documents follow one another; with the
   script, tabs show one at a time (templates.js). */
.c-tpl-hint { color: var(--muted); }
.c-tpl-preview { margin: 18px 0 8px; }
.c-tpl-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.c-tpl-tabs button {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); font: 600 .95rem/1.2 var(--sans); cursor: pointer;
}
.c-tpl-tabs button:hover { background: var(--surface-2); }
.c-tpl-tabs button[aria-selected="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.c-tpl-tabs button:focus-visible { outline: 3px solid var(--hl); outline-offset: 2px; }
.c-tpl-doc { margin: 0 0 28px; }
.c-tpl-doc[hidden] { display: none; }
.c-hc .c-tpl-doc-title { margin: 0 0 10px; font-size: 1.05rem; }
.c-tpl-doc-title span { font-weight: 400; color: var(--muted); }
/* A tab shows its own heading only when there are no tabs. */
.c-tpl-preview.has-tabs .c-tpl-doc-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Each page: the real document, white on any theme, like paper. */
.c-tpl-page { margin: 0 0 14px; }
.c-tpl-page a { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 6px 24px rgba(25, 25, 24, .08); }
.c-tpl-page a:focus-visible { outline: 3px solid var(--hl); outline-offset: 3px; }
.c-tpl-page img { display: block; width: 100%; height: auto; }
.c-tpl-page figcaption { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.c-tpl-more { margin: 0 0 12px; }
.c-tpl-more > summary { min-height: 44px; padding: 11px 16px; font-weight: 600; cursor: pointer; }
.c-tpl-more > .c-tpl-page { margin: 0 16px 16px; }
.c-tpl-doc-get { margin: 4px 0 0; }

/* The downloads: one row for each file, with its kind and size. */
.c-tpl-files { list-style: none; padding: 0; margin: 14px 0 8px; display: grid; gap: 10px; }
.c-tpl-files li { display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.c-tpl-ficon { width: 32px; height: 40px; flex: none; }
.c-tpl-ficon-docx { color: #2b5797; }
.c-tpl-ficon-pptx { color: #c4471d; }
.c-tpl-fname { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.c-tpl-fname span { color: var(--muted); font-size: .9rem; }
.c-hc .c-tpl-files .btn { min-height: 44px; padding: 8px 18px; background: var(--fg); color: var(--bg); font-family: var(--sans); font-size: .95rem; border-radius: 10px; text-decoration: none; }
.c-hc .c-tpl-files .btn:hover { background: var(--accent-hover); color: var(--accent-fg); }
@media (prefers-color-scheme: dark) {
  .c-tpl-ficon-docx { color: #7fa7e6; }
  .c-tpl-ficon-pptx { color: #ee8a63; }
  .c-tpl-page a { box-shadow: none; }
}
@media (max-width: 480px) {
  .c-tpl-files li { flex-wrap: wrap; }
  .c-hc .c-tpl-files .btn { flex: 1 1 100%; justify-content: center; }
}

/* The agenda table has three short columns: no sideways scroll on a phone. */
@media (max-width: 640px) { .c-article .c-tpl-agenda table { min-width: 0; } }
.c-tpl-agenda td:first-child { white-space: nowrap; }

/* The library page: jump links to each group, then a card for each template. */
.c-tpl-jump ul { list-style: none; padding: 0; margin: 18px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.c-tpl-jump li { margin: 0; }
.c-tpl-jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-size: .95rem; }
.c-tpl-jump a:hover { background: var(--surface-2); }
.c-tpl-hub section { margin-top: 30px; scroll-margin-top: 16px; }
.c-tpl-hub .c-hitems { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.c-tpl-hub .lead { max-width: 44em; }

/* "Make the slides match your brand" (templates with a PowerPoint deck): four numbered steps, then the prompt. */
.c-tpl-steps { padding-left: 1.4em; }
.c-tpl-steps li { margin-bottom: .8em; }
.c-tpl-step-title { display: block; font-weight: 700; }
.c-tpl-prompt { margin: 14px 0 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.c-tpl-prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--muted); }
.c-hc .c-tpl-prompt-bar .btn { min-height: 40px; padding: 6px 14px; background: var(--fg); color: var(--bg); font-family: var(--sans); font-size: .9rem; border-radius: 8px; }
.c-tpl-prompt pre { margin: 0; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; font: .9rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--fg); background: none; border: 0; }
.c-tpl-prompt pre:focus-visible { outline: 3px solid var(--hl); outline-offset: -3px; }
