/* Project template pages + the template cards on the Templates home. Builds on school.css and ../kits/kits.css. */
.tpl-hero .ic{width:56px;height:56px;border-radius:16px;background:var(--accent);color:#fff;display:grid;place-items:center;margin-bottom:4px}
.tpl-hero .ic svg{width:30px;height:30px}
/* 1. what this covers */
.covers{margin-top:16px;border:2px solid var(--ink);border-radius:16px;background:#fff;padding:14px 16px}
.covers .top2{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap}
.covers .top2 b{font:800 1.15rem var(--display)}
.covers .n{font:700 14px var(--mono);color:var(--muted)}
.covers .meter{height:8px;border-radius:99px;background:var(--track);overflow:hidden;margin:10px 0 4px}
.covers .meter i{display:block;height:100%;background:var(--ok);border-radius:99px;transition:width .35s cubic-bezier(.16,1,.3,1)}
.covers ul{list-style:none;padding:0;margin:10px 0 0;display:flex;flex-wrap:wrap;gap:8px}
.covers li{display:inline-flex;align-items:center;gap:7px;padding:7px 12px 7px 8px;border-radius:999px;background:var(--track);font-weight:600;font-size:.92rem}
.covers li::before{content:"";width:18px;height:18px;border-radius:50%;border:2px solid var(--line2);background:#fff;flex:none}
.covers li.on{background:var(--ok-bg);color:#14513f}
.covers li.on::before{border-color:var(--ok);background:var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat}
@media (prefers-reduced-motion:reduce){.covers .meter i{transition:none}}
/* 2. the brief is the form */
.dl{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.dl .btn{min-height:50px}
/* template cards (Templates home) */
.tcards{display:grid;gap:12px;margin-top:18px}
@media (min-width:700px){.tcards{grid-template-columns:1fr 1fr}}
.tcard{display:grid;grid-template-columns:48px 1fr;gap:12px;align-items:start;padding:14px;border:2px solid var(--ink);border-radius:16px;background:#fff;color:var(--ink);text-decoration:none}
.tcard:hover{background:var(--card)}
.tcard .ic{width:48px;height:48px;border-radius:14px;background:var(--accent);color:#fff;display:grid;place-items:center}
.tcard .ic svg{width:26px;height:26px}
.tcard b{display:block;font:800 1.1rem/1.2 var(--display)}
.tcard p{margin:4px 0 0;font-size:.93rem;color:var(--muted)}
.tcard .chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.tcard .chips span{font:700 11px/1 var(--text);padding:5px 8px;border-radius:99px;background:var(--track)}
.tcard .chips span.go{background:#E3F1ED;color:#155c50}
.more{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.more .chip{text-decoration:none}

.covers li.part::before{border-color:var(--ok);background:linear-gradient(90deg,var(--ok) 50%,#fff 50%)}

.mini{font:700 14px var(--text);min-height:40px;padding:6px 12px;border-radius:999px;border:1px solid var(--line2);background:var(--card);color:var(--ink);cursor:pointer}
.mini.talk.on{background:var(--accent);border-color:var(--accent);color:#fff}
.mini.go{background:var(--ink);border-color:var(--ink);color:var(--paper,#FBFAF7)}
.work{display:grid;gap:16px;margin-top:22px}
@media (min-width:900px){.work{grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:24px}.side{position:sticky;top:84px}}
.dochead{display:flex;justify-content:space-between;align-items:end;gap:12px;flex-wrap:wrap}
.dochead h2{margin:0}
.cnt{font:700 13px var(--mono);color:var(--muted);display:flex;align-items:center;gap:8px}
.cnt .meter{display:inline-block;width:70px;height:6px;border-radius:99px;background:var(--track);overflow:hidden}
.cnt .meter i{display:block;height:100%;background:var(--ok);transition:width .35s cubic-bezier(.16,1,.3,1)}
.how{margin:6px 0 12px;color:var(--muted);font-size:.95rem}
.linkbtn{background:none;border:0;padding:0;font:inherit;font-weight:700;color:var(--ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.doc{background:#fff;border:2px solid var(--ink);border-radius:16px;padding:6px 18px;font-size:1.06rem;line-height:1.9}
.doc .sec{margin:0;padding:12px 0;border-bottom:1px dashed var(--line2)}
.doc .sec:last-child{border-bottom:0}
.doc .sec>b{display:block;font:700 12px/1.4 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--accent);margin-bottom:2px}
.blank{display:inline;min-width:4ch;padding:1px 4px;border-radius:4px;background:#FFF6E0;border-bottom:2px dashed #C9A24A;color:var(--ink);outline:none;white-space:pre-wrap;word-break:break-word;-webkit-user-modify:read-write-plaintext-only;cursor:text}
.blank:empty::before{content:attr(data-ph);color:#8a7a55;font-style:italic}
.blank.has{background:#EAF4EF;border-bottom:2px solid var(--ok)}
.blank:focus{background:#fff;box-shadow:0 0 0 3px var(--accent);border-bottom-color:transparent}
.helper{border:2px solid var(--ink);border-radius:14px;background:var(--warn-bg,#FFF6E0);padding:12px 14px;margin:6px 0 10px;line-height:1.45;font-size:1rem}
.helper b{font:800 1.02rem var(--display)}
.helper p{margin:4px 0 0;color:var(--muted)}
.helper .exq{color:var(--ink);font-style:italic}
.helper .acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.helper.idle{background:#fff}
.side .helper{margin-top:0}
.dl{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.dl .btn{min-height:50px;flex:1 1 auto}
.dl .small2{flex-basis:100%;margin:2px 0 0}
@media (max-width:899px){.doc .helper{font-size:.95rem}.work .side .helper.idle{display:none}}
@media (prefers-reduced-motion:reduce){.cnt .meter i{transition:none}}
.blank:empty{display:inline-block;min-height:1.5em;vertical-align:baseline}

/* phones: compact summary so the first blank shows sooner */
@media (max-width:899px){.tpl-hero .covers{margin-top:12px;padding:10px 12px;border-width:1px}.tpl-hero .covers .top2 b{font-size:1rem}.tpl-hero .covers ul{gap:6px;margin-top:6px}.tpl-hero .covers li{padding:4px 9px 4px 6px;font-size:.82rem;gap:5px}.tpl-hero .covers li::before{width:14px;height:14px}.tpl-hero .ic{width:44px;height:44px;border-radius:12px}.tpl-hero .ic svg{width:24px;height:24px}.work{margin-top:14px}}
#where b{color:var(--ink)}

/* phones: get the first blank onto the first screen */
@media (max-width:899px){.tpl-hero .meta{display:none}.tpl-hero h1{margin-bottom:4px}.tpl-hero .covers ul{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.tpl-hero .covers ul::-webkit-scrollbar{display:none}.tpl-hero .covers li{flex:none}.dochead h2{font-size:1.35rem}.how{margin:4px 0 8px}}
