/* Blog posts and free tools (scripts/blog.mjs). The landing's tokens and type, at reading width:
   one column, the short answer first, numbers in mono, tables on a white surface with the one
   hairline. Green only for what is up or done, as everywhere else. */
.blog-nav{display:flex;gap:24px;margin-left:auto}
.blog-nav a{font-size:14px;color:var(--ink-2);text-decoration:none}
.blog-nav a:hover{color:var(--ink)}
.nav .blog-nav+.nav-cta{margin-left:8px}

.post{padding-block:56px 32px}
.post .wrap{max-width:760px}
.post section{padding:0}
.post-crumbs{display:flex;gap:8px;font-size:13px;color:var(--ink-2);margin-bottom:20px}
.post-crumbs a{color:inherit;text-decoration:none}
.post-crumbs a:hover{color:var(--ink)}
.post h1{margin:0 0 14px}
.post-meta{font-size:13px;color:var(--ink-2);margin:0 0 32px}
.post-meta a{color:inherit}
.post-short{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:18px 20px;margin:0 0 40px}
.post-short p{font-size:17px;line-height:1.6;color:var(--ink)}

.post-body{font-size:17px;line-height:1.7;color:var(--ink)}
.post-body>*+*{margin-top:18px}
.post-body h2{font-size:clamp(22px,2.4vw,27px);line-height:1.25;letter-spacing:-0.02em;margin-top:48px}
.post-body h3{font-size:19px;line-height:1.3;margin-top:32px}
.post-body h2+*,.post-body h3+*{margin-top:12px}
.post-body ul,.post-body ol{padding-left:22px;display:flex;flex-direction:column;gap:6px}
.post-body ul{list-style:disc}
.post-body ol{list-style:decimal}
.post-body a{color:inherit;text-underline-offset:3px}
.post-body a.btn-p{color:var(--btn-ink)}
.post-body code{font-family:var(--mono);font-size:.88em;background:var(--bg-3);border-radius:4px;padding:1px 5px}
.post-body pre{background:#161618;color:#F2F1EF;border-radius:10px;padding:16px 18px;overflow-x:auto;font-size:14px;line-height:1.55}
.post-body pre code{background:none;padding:0;color:inherit;font-size:inherit}
.post-body .num{font-family:var(--mono);font-variant-numeric:tabular-nums}
.post-body figure figcaption,.post-body .note{font-size:13px;line-height:1.5;color:var(--ink-2)}
.post-body figure figcaption{margin-top:8px}

.post-table{overflow-x:auto;-webkit-overflow-scrolling:touch;background:var(--bg);border:1px solid var(--line);border-radius:10px}
.post-table table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.45}
.post-table th,.post-table td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--line);vertical-align:top}
.post-table tr:last-child td{border-bottom:none}
.post-table th{font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
.post-table td.n,.post-table th.n{text-align:right}
.post-table td.n{font-family:var(--mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.post-table tr.total td{font-weight:500}

.post-faq{margin-top:56px}
.post-faq h2{font-size:clamp(22px,2.4vw,27px);letter-spacing:-0.02em;margin-bottom:12px}
.post-faq summary{font-size:17px}

.post-cta{margin-top:56px;background:#161618;color:#F2F1EF;border-radius:12px;padding:28px;display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.post-cta .label{color:#A6A29C}
.post-cta-h{font-size:22px;line-height:1.25;letter-spacing:-0.02em;font-weight:500}
.post-cta p{color:#D9D6D1;font-size:16px;line-height:1.6;max-width:56ch}
.post-cta .btn-p{background:#F2F1EF;color:#161618;margin-top:6px}

.post-related{margin-top:56px}
.post-related h2.label,.blog-index h2.label{margin:0 0 14px}
.post-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.post-card{display:flex;flex-direction:column;gap:8px;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:18px;text-decoration:none;color:var(--ink);transition:border-color var(--t-fast) ease-out}
.post-card:hover{border-color:var(--ink-3)}
.post-card-h{font-size:18px;line-height:1.3;font-weight:500;letter-spacing:-0.01em}
.post-card-d{font-size:14px;line-height:1.5;color:var(--ink-2)}

.blog-index .lede{margin:12px 0 48px}
.blog-index h2.label{margin-top:40px}

/* the tools: a form on the white surface, results as tiles, everything computed in the page */
.tool-box{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:22px;display:flex;flex-direction:column;gap:18px}
.tool-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px 18px}
.tool-field{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--ink-2)}
.tool-field input,.tool-field select,.tool-box textarea{font:inherit;font-size:16px;color:var(--ink);background:var(--bg-2);border:1px solid var(--line-2);border-radius:6px;padding:9px 11px;width:100%}
.tool-field input:focus,.tool-field select:focus,.tool-box textarea:focus{outline:2px solid var(--ink);outline-offset:1px}
.tool-box textarea{font-family:var(--mono);font-size:13px;line-height:1.5;min-height:180px;resize:vertical}
.tool-box [hidden]{display:none!important}
.tool-box h3,.post-body .tool-box h3{margin:0;font-size:15px;font-weight:500}
.tool-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.tool-row .btn{height:40px;font-size:14px;padding:0 16px}
.tool-hint{font-size:13px;color:var(--ink-2)}
.tool-err{font-size:14px;color:var(--alert)}
.tool-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:10px}
.tool-tile{border:1px solid var(--line);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;background:var(--bg-2)}
.tool-tile b{font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:24px;line-height:1.1;font-weight:500}
.tool-tile span{font-size:13px;line-height:1.4;color:var(--ink-2)}
.tool-bars{display:flex;flex-direction:column;gap:10px}
.tool-bar{display:grid;grid-template-columns:minmax(0,190px) minmax(0,1fr) 92px;gap:12px;align-items:center;font-size:14px}
.tool-bar i{display:block;height:10px;border-radius:5px;background:var(--ink-3);min-width:2px}
.tool-bar.ours i{background:var(--ok)}
.tool-bar b{font-family:var(--mono);font-variant-numeric:tabular-nums;font-weight:500;text-align:right}

.tool-drop{border:1.5px dashed var(--line-2);border-radius:10px;padding:22px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;transition:border-color var(--t-fast) ease-out,background var(--t-fast) ease-out}
.tool-drop.on{border-color:var(--ink);background:var(--bg-2)}
.tool-drop-h{font-size:17px;font-weight:500}
.tool-drop .tool-row{justify-content:center;margin-top:6px}
.tool-hours{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:12px;min-width:0}
.tool-check{display:flex;align-items:center;gap:8px;font-size:15px;cursor:pointer}
.tool-check input,.tool-days input{accent-color:var(--ink);width:16px;height:16px;margin:0}
.tool-days{display:flex;flex-wrap:wrap;gap:6px}
.tool-days label{display:inline-flex;align-items:center;gap:5px;font-size:14px;color:var(--ink);border:1px solid var(--line-2);border-radius:6px;padding:7px 9px;cursor:pointer;background:var(--bg-2)}
.tool-say{border-left:3px solid var(--ok);padding:4px 0 4px 14px;display:flex;flex-direction:column;gap:6px}
.tool-say p{font-size:16px;line-height:1.55}
.tool-say .tool-hint a{color:inherit}
.tool-more{border-top:1px solid var(--line);padding-top:12px}
.tool-more summary{cursor:pointer;font-size:14px;color:var(--ink-2)}
.tool-more[open] summary{margin-bottom:14px}
.tool-box textarea{min-height:120px}

@media (max-width:760px){
  .blog-nav{display:none}
  .post{padding-block:40px 24px}
  .post-body{font-size:16px}
  .tool-bar{grid-template-columns:minmax(0,1fr) 84px}
  .tool-bar i{grid-column:1/-1;grid-row:2}
}
/* a post's video: the still with a play button until pressed, then YouTube's player */
.post-video{margin:0 0 40px}
.post-video-play,.post-video iframe{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:12px;overflow:hidden}
.post-video-play{position:relative;padding:0;cursor:pointer;background:var(--line);box-shadow:0 0 0 1px var(--line)}
.post-video-play img{display:block;width:100%;height:100%;object-fit:cover}
.post-video-icon{position:absolute;left:50%;top:50%;width:76px;height:76px;margin:-38px 0 0 -38px;border-radius:50%;background:#fff;box-shadow:0 6px 24px rgba(22,22,24,.28);transition:transform .15s}
.post-video-icon::after{content:"";position:absolute;left:31px;top:24px;border-style:solid;border-width:14px 0 14px 22px;border-color:transparent transparent transparent #161618}
.post-video-play:hover .post-video-icon{transform:scale(1.06)}
.post-video-play:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* product pages (content/pages): a post's reading column with the landing's hero above it, a
   silent demo of the real product, setup steps as code blocks with a Copy button */
.lp h1{max-width:18ch}
.lp .lede{margin:0 0 28px}
.lp .cta-row{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:40px}
.lp-demo{margin:0 0 48px}
.lp-demo video{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--line);background:var(--bg-2)}
.lp-demo figcaption{font-size:13px;line-height:1.5;color:var(--ink-2);margin-top:10px}
.lp-code{position:relative;min-width:0;margin-bottom:14px}
.lp-code pre{margin:0;padding-right:76px}
.lp-copy{position:absolute;top:10px;right:10px;font:inherit;font-size:12px;color:#D9D6D1;background:#2A2A2D;border:1px solid #3C3C40;border-radius:5px;padding:4px 9px;cursor:pointer;box-shadow:-14px 0 10px -2px #161618}
.lp-copy:hover{background:#3C3C40}
.lp .post-body .steps-lp{list-style:none;padding:0;counter-reset:s;gap:20px}
.lp .post-body .steps-lp>li{counter-increment:s;display:grid;grid-template-columns:32px 1fr;gap:4px 12px}
.lp .post-body .steps-lp>li::before{content:counter(s,decimal-leading-zero);font-family:var(--mono);font-size:13px;color:var(--ink-3);padding-top:4px}
.lp .post-body .steps-lp>li>*{grid-column:2}
.lp .post-body .steps-lp>li>*+*{margin-top:10px}
.lp .add-btns{display:flex;gap:10px;flex-wrap:wrap}
.lp .add-btns .btn{height:40px;font-size:14px;padding:0 16px}
.lp .post-video{margin-top:48px}
