/* tul-templates-v1.css - the Templates shelf (tul/templates.html, package T1a). Every colour, radius and height is the
   token sheet's (tul-tokens-v1.css, linked last); the width tier and table.tbl are tul-layout-v1.css's. Screen first; print
   is black on white. */
.tp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tp-skip{position:absolute;left:12px;top:-60px;padding:8px 12px;background:var(--s1);color:var(--ink);border:1px solid var(--line);border-radius:var(--r-ctl,4px);z-index:5}
.tp-skip:focus{top:8px}
/* the top bar: back to the Desk, the person, Sign out */
.tp-top{display:flex;align-items:center;gap:16px;padding:10px clamp(16px,2vw,32px);border-bottom:1px solid var(--line);background:var(--s1);flex-wrap:wrap}
.tp-back{color:var(--ink-2);text-decoration:none;font-size:13px}
.tp-back:hover{color:var(--ink);text-decoration:underline}
.tp-who{margin-left:auto;display:flex;gap:10px;align-items:center;font-size:13px;color:var(--ink-2)}
.tp-link{background:none;border:0;padding:0;color:var(--ink-2);font-size:13px;cursor:pointer;text-decoration:underline}
.tp-link:hover{color:var(--ink)}
/* the head */
.tp-main{padding-top:20px;padding-bottom:48px}
.tp-head{margin:0 0 18px}
.tp-head h1{font-family:var(--fdisplay);font-weight:600;font-size:26px;margin:0 0 4px;color:var(--ink)}
.tp-sub{margin:0;color:var(--ink-2);font-size:13px;max-width:880px}
/* the shelf: one card a kind */
.tp-group{border:1px solid var(--line);border-radius:var(--r-card,8px);background:var(--s1);padding:14px 18px;margin:0 0 16px}
.tp-group h2{font-family:var(--fdisplay);font-weight:600;font-size:16px;margin:0 0 8px;color:var(--ink)}
.tp-n{font-family:var(--fbody);font-weight:500;font-size:13px;color:var(--ink-2)}
.tp-scroll{max-width:100%}
.tp-tbl{--tbl-min:0}
.tp-tbl th,.tp-tbl td{padding:8px;font-size:13px;text-align:left;vertical-align:top}
.tp-tbl thead th{font-size:12px;font-weight:600;color:var(--ink-2)}
.tp-tbl tbody th{font-weight:500;color:var(--ink)}
.tp-tbl .tp-ver{width:30%}
.tp-tbl .tp-added{width:150px}
.tp-tbl .tp-token{width:42%}
.tp-open{color:var(--ink);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.tp-open:hover{color:var(--taupe)}
.tp-flags{display:inline-flex;gap:6px;margin-left:8px;flex-wrap:wrap}
.tp-flag{font-size:12px;color:var(--ink-2);border:1px solid var(--line);border-radius:var(--r-pill,999px);padding:0 8px;line-height:20px;white-space:nowrap}
.tp-st-active{color:var(--ok)}
.tp-st-draft{color:var(--attn)}
.tp-st-retired{color:var(--faint)}
.tp-none{color:var(--ink-2);font-size:13px;margin:4px 0 0}
/* one template, read only */
.tp-view{border:1px solid var(--line);border-radius:var(--r-card,8px);background:var(--s1);padding:16px 18px;max-width:1120px}
.tp-view h2{font-family:var(--fdisplay);font-weight:600;font-size:20px;margin:0 0 6px;color:var(--ink)}
.tp-view h3{font-size:14px;font-weight:600;margin:18px 0 6px;color:var(--ink)}
.tp-view p{margin:0 0 8px;font-size:13px;color:var(--ink);max-width:880px}
.tp-view .tp-flags{margin:0 0 8px}
.tp-facts{display:grid;grid-template-columns:max-content 1fr;gap:4px 16px;margin:10px 0 0;font-size:13px}
.tp-facts dt{color:var(--ink-2)}
.tp-facts dd{margin:0;color:var(--ink)}
.tp-file code,.tp-token code{font-size:12px;overflow-wrap:anywhere}
.tp-small{color:var(--ink-2);font-size:12px}
.tp-versions{margin:0;padding-left:18px;font-size:13px}
.tp-backbtn{display:inline-flex;align-items:center;min-height:var(--h-ctl,36px);padding:0 12px;margin:0 0 12px;border:1px solid var(--line);border-radius:var(--r-ctl,4px);background:var(--s1);color:var(--ink);font-size:13px;cursor:pointer}
.tp-backbtn:hover{background:var(--s2)}
@media (max-width:760px){
  .tp-skip,.tp-back,.tp-link,.tp-backbtn{min-height:44px;display:inline-flex;align-items:center}
  .tp-group,.tp-view{padding:12px}
  /* a row folds into a block: the name, then its facts */
  .tp-tbl thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .tp-tbl,.tp-tbl tbody,.tp-tbl tr,.tp-tbl th,.tp-tbl td{display:block;width:auto !important}
  .tp-tbl tr{padding:8px 0;border-top:1px solid var(--line-soft,var(--line))}
  .tp-tbl th,.tp-tbl td{padding:2px 0}
  /* 1.190.0 design gate F1: the shared table rule (linked after this sheet) fixes every cell at 44px with a rule under it -
     a name that wraps drew its pills over the next fact. Two classes outrank it */
  .tbl.tp-tbl th,.tbl.tp-tbl td{height:auto;border-bottom:0}
  .tp-open{display:inline-flex;align-items:center;min-height:44px}
  .tp-facts{grid-template-columns:1fr}
  .tp-facts dd{margin:0 0 6px}
}
@media print{
  .tp-top,.tp-skip,.tp-backbtn{display:none !important}
  .tp-group,.tp-view{border:0;background:none;padding:0}
  .tp-tbl th,.tp-tbl td,.tp-tbl thead th,.tp-n,.tp-sub,.tp-small,.tp-flag,.tp-facts dt,.tp-none,.tp-st-active,.tp-st-draft,.tp-st-retired{color:#000}
  .tp-open{color:#000}
}
