/* Ambient guides: the article template, reused by every guide and the guides hub.
   Load after /fonts.css and /style.css. style.css draws the frame (page border, [a],
   footer); this file draws everything inside it. White page, black text, #dfdfdf rules.
   Body text in DejaVu Sans Mono Regular, headings in Bold. #00FF00 appears only on
   black: the button hover and the "copied" state of a script box. */

/* ---- white page ---------------------------------------------------------- */
html.light{--bg:#fff;--fg:#000;--grid:#dfdfdf;--dim:.55;color-scheme:light}
html.light body{font-weight:400}
html.light .logo,html.light .foot{font-weight:700}
html.light .nav a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}

/* ---- column -------------------------------------------------------------- */
.guide{--col:70ch;--out:80px;flex-grow:1;width:100%;max-width:var(--col);margin:0 auto;padding:40px 0 72px}
.guide .back{margin:0 0 44px;font-size:12px;letter-spacing:.08em;font-weight:700}
.guide .back a{color:var(--fg);text-decoration:none;opacity:var(--dim)}
.guide .back a:hover,.guide .back a:focus-visible{opacity:1}

/* small labels: kicker, meta, step numbers, box captions */
.guide .lbl{font-size:12px;letter-spacing:.08em;line-height:1.4;text-transform:uppercase;font-weight:700;opacity:var(--dim)}

/* ---- title block --------------------------------------------------------- */
.guide .kicker{margin:0 0 16px}
.guide h1{margin:0 0 20px;font-size:clamp(26px,1.4vw + 16px,36px);line-height:1.15;font-weight:700;letter-spacing:-.01em;overflow-wrap:anywhere}
.guide .sub{margin:0 0 22px;font-size:18px;line-height:1.5}
.guide .meta{margin:0 0 44px;padding-bottom:22px;border-bottom:1px solid var(--grid);display:flex;flex-wrap:wrap;gap:6px 0}
.guide .meta span+span::before{content:"\00a0\00a0·\00a0\00a0"}

/* ---- running text -------------------------------------------------------- */
.guide p{margin:0 0 18px;font-size:17px;line-height:1.65}
.guide .lede{font-size:17px;line-height:1.65;margin:0 0 18px}
.guide .kick{margin:0 0 10px}
.guide h2{margin:64px 0 20px;font-size:24px;line-height:1.25;font-weight:700;letter-spacing:-.01em}
.guide h2 .n{display:block;margin-bottom:10px}
.guide h3{margin:30px 0 8px;font-size:17px;line-height:1.4;font-weight:700}
.guide strong{font-weight:700}
.guide a{color:var(--fg);text-decoration:underline;text-underline-offset:3px}
.guide a:hover,.guide a:focus-visible{text-decoration-thickness:2px}

.guide ul,.guide ol{margin:0 0 20px;padding:0;list-style:none}
.guide li{margin:0 0 12px;padding-left:3ch;text-indent:-3ch;font-size:17px;line-height:1.6}
.guide ul li::before{content:"// ";opacity:.5}
.guide ol{counter-reset:s}
.guide ol[start="4"]{counter-reset:s 3}
.guide ol li{counter-increment:s}
.guide ol li::before{content:counter(s,decimal-leading-zero) " ";opacity:.5}
.guide li b{font-weight:700}

/* two short lines side by side: weak / strong buyer definitions */
.guide .pairs{margin:0 0 24px;border-top:1px solid var(--grid)}
.guide .pairs div{display:grid;grid-template-columns:7ch 1fr;gap:4px 16px;padding:14px 0;border-bottom:1px solid var(--grid);font-size:15px;line-height:1.55}
.guide .pairs .lbl{padding-top:3px}
.guide .pairs p{margin:0;font-size:inherit;line-height:inherit}
.guide .pairs p+p{margin-top:6px}
.guide .pairs s{text-decoration:line-through;text-decoration-thickness:1px;opacity:var(--dim)}

/* ---- script boxes (terminal) --------------------------------------------- */
.script{margin:26px 0 30px;background:#000;color:#fff;border:1px solid #000}
.script figcaption{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 18px;border-bottom:1px solid #202020}
.script figcaption .lbl{opacity:1;color:#fff}
.script figcaption .lbl::before{content:"> ";opacity:.55}
.script pre{margin:0;padding:18px 20px 20px;font:400 15px/1.6 var(--mono);color:#fff;white-space:pre-wrap;overflow-wrap:anywhere}
.script pre b{font-weight:700}
.script .copy{appearance:none;-webkit-appearance:none;background:none;border:0;margin:0;padding:0;color:#fff;font:700 12px/1.4 var(--mono);letter-spacing:.08em;text-transform:uppercase;cursor:pointer;opacity:var(--dim);transition:opacity .12s linear,color .12s linear}
.script .copy:hover,.script .copy:focus-visible{opacity:1;color:var(--live)}
.script .copy:focus-visible{outline:1px solid #fff;outline-offset:3px}
.script .copy.done{opacity:1;color:var(--live)}
@media (prefers-reduced-motion:reduce){.script .copy{transition:none}}

/* weak vs strong: outlined box (dead) next to black box (live) */
.vs{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:26px 0 30px}
.vs .script{margin:0}
.vs .script pre{font-size:14px}
.vs .weak{background:#fff;color:#000;border-color:#000}
.vs .weak figcaption{border-bottom-color:#000}
.vs .weak figcaption .lbl{color:#000}
.vs .weak pre{color:#000}
.vs .weak .copy{display:none}

/* ---- comparison table ---------------------------------------------------- */
.compare{width:100%;border-collapse:collapse;margin:26px 0 24px;font-size:14px;line-height:1.5}
.compare caption{text-align:left;padding:0 0 12px}
.compare th,.compare td{text-align:left;vertical-align:top;padding:14px 16px 14px 0;border-top:1px solid var(--grid)}
.compare th:last-child,.compare td:last-child{padding-right:0}
.compare thead th{padding-top:0;border-top:0}
.compare tbody th{font-weight:700}
.compare tbody th small{display:block;font-weight:400;margin-top:4px}
.compare tbody tr:last-child th,.compare tbody tr:last-child td{border-bottom:1px solid var(--grid)}
.compare col.c1{width:40%}.compare col.c2{width:26%}.compare col.c3{width:34%}
.compare .fn{margin:0 0 24px;font-size:14px;line-height:1.5}

/* ---- pull quote ---------------------------------------------------------- */
.guide .pull{margin:40px 0 44px;padding:2px 0 2px 24px;border-left:3px solid var(--fg)}
.guide .pull p{margin:0;font-size:21px;line-height:1.4;font-weight:700}
.guide .pull cite{display:block;margin-top:10px;font-style:normal}

/* ---- > access panel ------------------------------------------------------ */
.guide .access{margin:60px 0;padding:40px 40px 44px;background:#000;color:#fff;display:grid;gap:18px 48px;
  grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"lbl site" "h h" "p btn";align-items:end}
.guide .access .lbl{grid-area:lbl;opacity:var(--dim);color:#fff;text-transform:none} /* the mark stays lowercase */
.guide .access .site{grid-area:site;justify-self:end} /* textambient.com, top right, styled like the label */
.guide .access h2{grid-area:h;margin:0;color:#fff;font-size:24px;line-height:1.25}
.guide .access p{grid-area:p;margin:0;max-width:58ch;font-size:15px;line-height:1.6;color:#fff}
.guide .access .cta{grid-area:btn;justify-self:end;margin:0;background:#fff;color:#000;border-color:#fff;font-size:21px;padding:18px 28px;text-decoration:none}
.guide .access .cta:hover,.guide .access .cta:focus-visible{background:var(--live);border-color:var(--live);color:#000}
.guide .access .cta:focus-visible{outline:2px solid #fff;outline-offset:3px}
.cta[aria-busy="true"]{cursor:progress}

/* ---- quick answers, see also --------------------------------------------- */
.guide .qa h3{margin:26px 0 6px}
.guide .qa h3::before{content:"? ";opacity:.5}
.guide .qa p{margin-bottom:0}
.guide .seealso{margin:56px 0 0;padding-top:22px;border-top:1px solid var(--grid);font-size:15px}
/* "Published by Node 01": an author card above the see-also line, linking to LinkedIn. */
.guide .byline{margin:56px 0 0;border-top:2px solid var(--fg);padding-top:22px}
.guide .byline a{display:flex;align-items:center;gap:18px;text-decoration:none;color:inherit}
.guide .byline .avatar{flex:none;width:58px;height:58px;border-radius:50%;background:#000;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px}
.guide .byline .lbl{display:block}
.guide .byline .name{display:block;font-size:22px;font-weight:700;margin-top:2px}
.guide .byline .arr{margin-left:auto;font-weight:700;font-size:18px}
.guide .byline + .seealso{margin-top:28px}

/* ---- wide elements: step out of the text column on big screens ----------- */
@media (min-width:1100px){
  .guide .wide{width:calc(100% + 2 * var(--out));margin-left:calc(-1 * var(--out))}
}

/* ---- guides hub ---------------------------------------------------------- */
.hub .glist{margin:44px 0 0;border-top:1px solid var(--grid)}
.hub .glist a{display:grid;grid-template-columns:4ch 1fr auto;gap:0 20px;padding:28px 0;border-bottom:1px solid var(--grid);color:var(--fg);text-decoration:none}
.hub .glist .n{padding-top:7px}
.hub .glist h2{margin:0 0 10px;font-size:21px;line-height:1.3;letter-spacing:-.01em}
.hub .glist p{margin:0;font-size:15px;line-height:1.55}
.hub .glist .m{margin-top:12px}
.hub .glist .arr{padding-top:4px;font-weight:700;opacity:var(--dim)}
.hub .glist a:hover h2,.hub .glist a:focus-visible h2{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.hub .glist a:hover .arr,.hub .glist a:focus-visible .arr{opacity:1}
.hub .seealso{margin-top:32px;padding-top:0;border-top:0}

/* ---- phones -------------------------------------------------------------- */
@media (max-width:760px){
  .vs{grid-template-columns:1fr}
}
@media (max-width:640px){
  .guide{padding:28px 0 56px}
  .guide .back{margin-bottom:36px}
  .guide .sub{font-size:17px}
  .guide .meta{margin-bottom:36px}
  .guide .lede{font-size:17px}
  .guide h2{margin-top:52px;font-size:21px}
  .guide .pairs div{grid-template-columns:1fr;gap:6px}
  .script pre,.vs .script pre{padding:16px 16px 18px;font-size:14px}
  .script figcaption{padding:10px 16px}
  .compare thead{display:none}
  .compare,.compare tbody,.compare tr,.compare th,.compare td{display:block}
  .compare colgroup{display:none}
  .compare tr{padding:16px 0;border-top:1px solid var(--grid)}
  .compare tbody tr:last-child{border-bottom:1px solid var(--grid)}
  .compare th,.compare td,.compare tbody tr:last-child th,.compare tbody tr:last-child td{border:0;padding:0}
  .compare tbody th{margin-bottom:10px}
  .compare td{margin-top:10px}
  .compare td::before{content:attr(data-l);display:block;margin-bottom:3px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;opacity:var(--dim)}
  .guide .pull{margin:32px 0 36px;padding-left:18px}
  .guide .pull p{font-size:19px}
  .guide .access{margin:48px 0;padding:28px 22px 32px;gap:16px;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"lbl site" "h h" "p p" "btn btn"}
  .guide .access h2{font-size:21px}
  .guide .access .cta{justify-self:start;margin-top:6px}
  .hub .glist a{grid-template-columns:1fr auto;gap:0 16px}
  .hub .glist .n{display:none}
  .hub .glist h2{font-size:19px}
}

/* Smallest phones: the mark and textambient.com don't fit on one line, so stack them. */
@media (max-width:384px){
  .guide .access{grid-template-columns:minmax(0,1fr);grid-template-areas:"lbl" "site" "h" "p" "btn";gap:10px}
  .guide .access .site{justify-self:start}
  .guide .access h2{margin-top:8px}
}

/* Body text in DejaVu Sans Mono Regular, like the white legal pages. fonts.css maps every weight to the Bold file,
   so this page-scoped family uses the Regular file up to weight 500 and the Bold file from 600. */
@font-face{font-family:"Ambient Mono Traction";src:url("/fonts/DejaVuSansMono.ttf") format("truetype");font-weight:100 500;font-style:normal;font-display:swap}
@font-face{font-family:"Ambient Mono Traction";src:url("/fonts/DejaVuSansMono-Bold.woff2") format("woff2"),url("/fonts/DejaVuSansMono-Bold.ttf") format("truetype");font-weight:600 900;font-style:normal;font-display:swap}
html.light .guide{--mono:"Ambient Mono Traction","DejaVu Sans Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-family:var(--mono)}

/* "follow me" links, top right of the header: label plus black-and-white logos, styled like the footer nav */
header{display:flex;justify-content:space-between;align-items:center;gap:16px}
.follow{display:flex;align-items:center;gap:16px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;line-height:1}
.follow span{opacity:.55}
.follow a{display:inline-flex;color:var(--fg);opacity:.55;text-decoration:none}
.follow a:hover,.follow a:focus-visible{opacity:1}
.follow svg{width:17px;height:17px;display:block;fill:currentColor}
.follow svg.stroke{fill:none;stroke:currentColor;stroke-width:2.2}
.follow svg.stroke .dot{fill:currentColor;stroke:none}

/* Words for search engines, AI assistants and screen readers only; people see no change. */
.vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
