/* guides-hub.css v1 (2026-10-11, task 278): the /guides Library, Guy's pick (direction A). Loads after guide.css and reuses its
   tokens. Card images are the v8 thumbnails from tools/build_thumbs.py (16:9). Industry dots = the journey-map wires
   (SYSTEM.md section 2): olive insurance, tan lending, teal fintech, copper across. Punch stays in the wordmark. */
.page-guides-hub{--ins:#8b9f67;--len:#b88965;--fin:#6d9b8f;--across:#b8714a;--muted:#5b625e}
.page-guides-hub [data-k=insurance]{--k:var(--ins)}.page-guides-hub [data-k=lending]{--k:var(--len)}.page-guides-hub [data-k=fintech]{--k:var(--fin)}.page-guides-hub [data-k=across]{--k:var(--across)}
.page-guides-hub [hidden]{display:none!important}

/* hero: short, so the library starts in the first screen */
.page-guides-hub .gh-hero{padding:clamp(28px,3.4vw,52px) 0 clamp(22px,2.4vw,34px)}
.page-guides-hub .gh-hero .g-crumbs ol{margin-bottom:clamp(16px,2vw,24px)}
.page-guides-hub .gh-hero h1{font-size:clamp(32px,3.5vw,52px);line-height:1.05;letter-spacing:-.05em;font-weight:450;max-width:30ch;text-wrap:balance}
.page-guides-hub .gh-hero h1 span{display:block;color:var(--grey-2)}
.gh-lead{margin-top:14px;max-width:60ch;font-size:clamp(16px,1.25vw,18.5px);line-height:1.55;color:var(--muted)}

/* layout: filter rail + results */
.gh-lib{display:grid;gap:20px;padding-bottom:clamp(48px,5vw,80px)}
@media(min-width:1024px){.gh-lib{grid-template-columns:220px minmax(0,1fr);gap:clamp(40px,4vw,64px);align-items:start}}
.gh-rail{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
@media(min-width:1024px){.gh-rail{position:sticky;top:96px;max-height:calc(100vh - 112px);overflow:auto;border:0}}
.gh-rail-d>summary{display:flex;justify-content:space-between;align-items:center;min-height:48px;cursor:pointer;list-style:none;font-size:15px;font-weight:500}
.gh-rail-d>summary::-webkit-details-marker{display:none}
.gh-rail-d>summary:after{content:'+';font-size:20px;color:var(--muted)}
.gh-rail-d[open]>summary:after{content:'\2212'}
@media(min-width:1024px){.gh-rail-d>summary{display:none}}
.gh-rail-in{padding-bottom:14px}
.gh-facet{border:0;margin:0;padding:0 0 16px}
.gh-facet+.gh-facet{box-shadow:inset 0 1px 0 var(--line);padding-top:16px}
.gh-facet legend{float:left;width:100%;padding:0;margin-bottom:6px;font-size:13px;font-weight:600;color:var(--ink)}
.gh-facet ul{clear:both;list-style:none;margin:0;padding:0}
.gh-facet label{display:flex;align-items:center;gap:10px;min-height:36px;font-size:15px;color:var(--strong);cursor:pointer}
.gh-facet label.is-zero{color:#9aa39d;cursor:default}
.gh-facet input{width:18px;height:18px;margin:0;accent-color:var(--green)}
.gh-facet em{margin-left:auto;font-style:normal;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.gh-facet .is-zero em{color:#aab2ad}
.gh-textbtn{appearance:none;background:none;border:0;padding:8px 0;font:500 14px/1.3 var(--font);color:var(--ink);text-decoration:underline;text-decoration-color:#b9c2bd;text-underline-offset:3px;cursor:pointer}
.gh-textbtn:hover{text-decoration-color:var(--ink)}

/* toolbar */
.gh-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-bottom:24px}
.gh-search{position:relative;flex:1 1 280px}
.gh-search svg{position:absolute;left:15px;top:50%;width:18px;height:18px;transform:translateY(-50%);fill:none;stroke:var(--muted);stroke-width:1.6;stroke-linecap:round}
.gh-search input{width:100%;min-height:48px;padding:10px 16px 10px 44px;border:1px solid #c7cfca;border-radius:50px;background:#fff;font:400 16px/1.3 var(--font);color:var(--ink)}
.gh-search input::placeholder{color:#6b726e}
.gh-search input:focus-visible,.gh-sort select:focus-visible{outline:2px solid #c96146;outline-offset:2px}
.gh-count{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.gh-sort{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}
.gh-sort select{min-height:44px;padding:8px 34px 8px 14px;border:1px solid #c7cfca;border-radius:50px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23202323' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center/12px;font:500 14px/1 var(--font);color:var(--ink);appearance:none}
.gh-stress{margin-bottom:16px;padding:10px 14px;border-radius:10px;background:#fdf6f3;color:#7a3a28;font-size:13.5px}

/* cards */
.gh-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:40px 24px}
.gh-card{position:relative;display:flex;flex-direction:column;gap:14px;min-width:0}
.gh-thumb{position:relative;display:block;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#f4f6f0;border:1px solid var(--line)}
.gh-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .55s cubic-bezier(.2,.7,.2,1)}
.gh-card:hover .gh-thumb img{transform:scale(1.03)}
.gh-badge{position:absolute;left:12px;bottom:12px;display:inline-flex;align-items:center;gap:6px;padding:6px 11px 6px 9px;border-radius:50px;background:rgba(19,28,23,.86);color:#fff;font-size:12.5px;font-weight:500;font-variant-numeric:tabular-nums;line-height:1}
.gh-badge svg{width:11px;height:11px;fill:currentColor}
.gh-body{display:flex;flex-direction:column;gap:6px;min-width:0}
.gh-dot{display:inline-block;width:3px;height:3px;border-radius:50%;background:#aab2ad;margin:0 8px;vertical-align:middle}
.gh-meta{display:flex;flex-wrap:wrap;align-items:center;font-size:13px;line-height:1.5;color:var(--muted)}
.gh-v{display:inline-flex;align-items:center;gap:7px;color:var(--ink);font-weight:500}
.gh-v:before{content:'';width:8px;height:8px;border-radius:50%;background:var(--k,#aab2ad)}
.gh-card h3{font-size:19px;line-height:1.28;letter-spacing:-.025em;font-weight:500;text-wrap:balance}
.gh-link{color:var(--ink);text-decoration:none}
.gh-link:after{content:'';position:absolute;inset:0;border-radius:14px}
.gh-card:hover .gh-link{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.gh-link:focus-visible{outline:none}
.gh-link:focus-visible:after{outline:2px solid #c96146;outline-offset:6px}
.gh-line{font-size:15.5px;line-height:1.5;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gh-when{font-size:13.5px;line-height:1.5;color:var(--muted);font-variant-numeric:tabular-nums}
.gh-go{display:inline-flex;align-items:center;gap:8px;margin-top:10px;font-size:14.5px;font-weight:500;color:var(--ink)}
.gh-go svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}
.gh-card:hover .gh-go svg{transform:translateX(4px)}
.gh-paged{display:none!important}
.gh-copy .gh-link:before{content:'Layout Copy. ';color:#a0522d;font-weight:400}

/* the newest guide leads, wide */
@media(min-width:760px){
 .gh-card.is-lead{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:clamp(24px,3vw,44px);align-items:center;padding-bottom:clamp(28px,3vw,40px);border-bottom:1px solid var(--line)}
 .gh-card.is-lead h3{font-size:clamp(25px,2.3vw,34px);line-height:1.1;letter-spacing:-.045em;font-weight:450}
 .gh-card.is-lead .gh-line{font-size:17px;-webkit-line-clamp:4}
 .gh-card.is-lead .gh-badge{left:16px;bottom:16px;padding:8px 14px 8px 11px;font-size:14px}
 .is-sorted .gh-card.is-lead{grid-column:auto;display:flex;padding-bottom:0;border-bottom:0}
 .is-sorted .gh-card.is-lead h3{font-size:19px;letter-spacing:-.025em;font-weight:500}
 .is-sorted .gh-card.is-lead .gh-go{display:none}
}
.gh-card.is-lead:last-child{border-bottom:0;padding-bottom:0}
.gh-empty{padding:36px 0;border-top:1px solid var(--line)}
.gh-empty p{font-size:18px;color:var(--ink)}
.page-guides-hub .gh-more{display:block;margin:32px auto 0;min-height:48px;padding:12px 26px;border:1px solid #c7cfca;border-radius:50px;background:#fff;font:500 14px/1 var(--font);color:var(--ink);cursor:pointer;transition:border-color .18s}
.page-guides-hub .gh-more:hover{border-color:var(--ink)}
.page-guides-hub .gh-more[hidden]{display:none}

/* coming next: 3 dates, no links */
.gh-next{margin-top:clamp(40px,4.5vw,64px);padding-top:20px;border-top:1px solid var(--line)}
.gh-next h2{font-size:13px;font-weight:600;letter-spacing:0;color:var(--ink);margin-bottom:12px}
.gh-next ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.gh-next li{display:grid;grid-template-columns:4.2em minmax(0,1fr);gap:14px;align-items:baseline;padding:4px 20px 4px 0}
.gh-next li+li{border-left:1px solid var(--line);padding-left:20px}
.gh-next time{font-size:20px;letter-spacing:-.035em;color:var(--copper);white-space:nowrap;font-variant-numeric:tabular-nums}
.gh-next b{display:block;font-size:15.5px;line-height:1.35;font-weight:500;color:#3d4541}
.gh-next small{display:block;margin-top:2px;font-size:13px;color:var(--muted)}

/* reference links */
.gh-ref{border-top:1px solid var(--line)}
.gh-ref .g-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:10px 26px;padding-top:22px;padding-bottom:22px}
.gh-ref span{font-size:13px;font-weight:600;color:var(--ink)}
.gh-ref a{font-size:15px;font-weight:500;color:var(--ink);text-decoration:none;border-bottom:1px solid #c7cfca;padding-bottom:2px}
.gh-ref a:hover{border-color:var(--ink)}

@media(max-width:1199px){
 .gh-next ol{grid-template-columns:1fr}
 .gh-next li,.gh-next li+li{border-left:0;padding:12px 0;border-top:1px solid var(--line)}
 .gh-next li:first-child{border-top:0}
}
@media(max-width:599px){
 .gh-grid{grid-template-columns:1fr;gap:32px}
 .gh-card h3{font-size:18px}
 .gh-card.is-lead h3{font-size:22px;letter-spacing:-.035em}
 .gh-next time{font-size:18px}
}
@media(prefers-reduced-motion:reduce){.gh-thumb img,.gh-go svg,.page-guides-hub .gh-more{transition:none}.gh-card:hover .gh-thumb img{transform:none}}
