/* Store pages: tools.html and tools/*.html (written by the library's store generator).
   Loaded after style.css, only by the store pages. The components are the tool library's
   reference page's (bundle cards, tool links, the deck panel, segmented controls, index
   rows); every colour is a token from style.css, so both palettes come for free. */

/* ---- the catalog page ---- */
.st-status{margin-top:28px;max-width:720px;padding:16px 20px;border-radius:14px;border:1px solid var(--line);background:var(--soft)}
.st-status .kicker{margin:0 0 6px}
.st-status p{margin:0;font-size:14.5px;line-height:1.6;color:var(--body2)}
.st-list{margin:0 0 16px;padding-left:1.2em;font-size:14.5px;line-height:1.6;color:var(--body3);max-width:820px}
.st-list li{margin:0 0 6px}
section .go{margin-top:8px}

/* a tool by name: its ID chip in the family hue, then the title */
a.tl{display:inline-flex;align-items:center;gap:7px;font-weight:600;color:var(--head);margin-right:4px}
a.tl .tid{font-size:10.5px}
@media (hover:hover) and (pointer:fine){a.tl:hover b{text-decoration:underline;text-underline-offset:3px;
text-decoration-color:color-mix(in srgb,var(--c,var(--head)) 55%,transparent)}}

/* bundles: cards with the family square before the name, the complete library across */
.bundles{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr));gap:16px}
.bundle{display:flex;flex-direction:column;gap:10px;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px;padding:22px 24px 18px}
.bundle h3{display:flex;align-items:center;gap:9px;margin:0;font-size:16px;font-weight:600;color:var(--head)}
.bundle h3::before{content:"";flex:none;width:9px;height:9px;border-radius:3px;background:var(--c,var(--acc))}
.bundle p{margin:0;font-size:14px;line-height:1.55;color:var(--body3)}
.bmain{display:flex;flex-direction:column;gap:6px;margin:0;font-size:13.5px}
.bundle .st-cost{margin-top:auto;padding-top:10px;border-top:1px solid var(--hair)}
.bundle.all{grid-column:1/-1;background:var(--soft)}
.bundle.all .st-list{margin:0}

/* prices and actions */
.st-cost{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;margin:0}
.st-action{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.st-soon{font:inherit;font-size:12px;font-weight:600;padding:4px 11px;border-radius:999px;cursor:default;
border:1px dashed var(--line);background:none;color:var(--mut)}
.st-notify{font-size:13px;font-weight:600;color:var(--acc);text-decoration:underline;text-underline-offset:3px}
.st-count{margin:0;font-size:13.5px}
@media (hover:hover) and (pointer:fine){.st-notify:hover{color:var(--head)}}

/* the deck-only tools: one soft green panel */
.deck{border-radius:20px;padding:30px 32px 20px;border:1px solid color-mix(in srgb,var(--f-org) 22%,var(--line));
background:linear-gradient(160deg,color-mix(in srgb,var(--f-org) 8%,var(--panel)),var(--panel) 62%);box-shadow:var(--shadow)}
.deck .lead{margin:0 0 16px;font-size:15.5px;line-height:1.6;color:var(--body2);max-width:820px}
.dlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,460px),1fr));gap:0 40px;margin:0;padding:0;list-style:none}
.dlist li{padding:11px 0;border-top:1px solid color-mix(in srgb,var(--f-org) 12%,var(--line));font-size:14px;line-height:1.5;color:var(--body3)}
.flow li .tl{margin-right:2px}

/* questions, no script */
.st-faq{max-width:860px;border-top:1px solid var(--line)}
.st-faq details{border-bottom:1px solid var(--line)}
.st-faq summary{cursor:pointer;padding:15px 0;font-size:15.5px;font-weight:600;color:var(--head)}
.st-faq details p{margin:0 0 16px;font-size:14.5px;line-height:1.65;color:var(--body3)}

/* the close: the contact line in the serif on paper, a soft glow in two family hues */
.cta{position:relative;overflow:hidden;isolation:isolate;padding:44px 48px;border-radius:24px;
border:1px solid var(--line);background:var(--panel);box-shadow:var(--shadow);display:flex;gap:24px;align-items:center;flex-wrap:wrap}
.cta::before{content:"";position:absolute;inset:0;z-index:-1;
background:radial-gradient(60% 130% at 0% 0%,color-mix(in srgb,var(--f-build) 10%,transparent),transparent 70%),
radial-gradient(50% 130% at 100% 100%,color-mix(in srgb,var(--f-sect) 9%,transparent),transparent 70%)}
.cta p{margin:0;flex:1;min-width:240px;font:400 26px/1.3 var(--serif);color:var(--head);text-wrap:balance}

/* ---- inner pages: a tool, the index, pricing ---- */
.st-page{padding:40px 0 0}
.st-crumbs{margin:0 0 22px;font-size:13px;color:var(--mut)}
.st-crumbs a{color:var(--body2);text-decoration:underline;text-underline-offset:3px}
.st-meta{margin:0 0 12px;gap:8px;flex-wrap:wrap}
.st-meta .tver{margin-left:0}
.st-h1{margin:0 0 14px;font:400 clamp(32px,4vw,48px)/1.1 var(--serif);letter-spacing:-.016em;color:var(--head)}
.st-lead{margin:0 0 28px;font-size:17px;line-height:1.6;color:var(--body2);max-width:760px}
.st-page h2{margin:36px 0 12px;font:400 23px/1.25 var(--serif);color:var(--head)}
.st-page p{font-size:15px;line-height:1.65;color:var(--body2)}
.st-tool-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,320px);gap:40px;align-items:start}
.st-tool-main>h2:first-child{margin-top:0}
.st-figure{margin:0 0 8px}
.st-figure img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
.st-figure figcaption{margin-top:8px;font-size:13px;color:var(--mut)}
.st-chips{display:flex;flex-wrap:wrap;gap:6px}
.st-note{font-size:13.5px!important;color:var(--mut)!important}
.st-buybox{position:sticky;top:96px}
.st-buybox .st-cost{margin-top:0;padding-top:0;border-top:0}
.st-buybox .price{font-size:30px}
.st-back{display:flex;flex-wrap:wrap;gap:12px 28px;margin-top:40px}
.st-section{margin-top:8px}
.st-dl{margin:0;max-width:820px}
.st-dl dt{margin-top:14px;font-weight:600;color:var(--head)}
.st-dl dd{margin:4px 0 0;font-size:15px;line-height:1.6;color:var(--body3)}
.st-facts{margin:24px 0 20px}
.st-facts s{color:var(--mut)}

/* quiet tables (pricing): hairlines, the head on the soft paper; they scroll inside their frame on a phone */
.st-tablewrap{overflow-x:auto;background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
.st-table{width:100%;border-collapse:collapse;font-size:14px;color:var(--body2)}
.st-table th,.st-table td{padding:11px 16px;border-bottom:1px solid var(--hair);text-align:left;white-space:nowrap}
.st-table th{font-size:11px;color:var(--mut);font-weight:600;letter-spacing:.07em;text-transform:uppercase;background:var(--soft);border-bottom:1px solid var(--line)}
.st-table tr:last-child td{border-bottom:0}
.st-table th:first-child,.st-table td:first-child{padding-left:22px}
.st-table td.st-wrap{white-space:normal;min-width:14em}

/* ---- the index: a toolbar, then a row per tool ---- */
.st-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 0 18px;padding:14px 0;
border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.st-search{flex:1 1 260px;min-width:0;padding:9px 13px;border-radius:10px;border:1px solid var(--line);background:var(--panel);
color:var(--ink);font:inherit;font-size:14px;transition:border-color 150ms,box-shadow 150ms}
.st-search::placeholder{color:var(--mut)}
.st-search:focus,.st-select select:focus{outline:0;border-color:color-mix(in srgb,var(--acc) 55%,var(--line));
box-shadow:0 0 0 3px color-mix(in srgb,var(--acc) 16%,transparent)}
.st-select{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:var(--mut)}
.st-select select{max-width:220px;padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font:inherit;font-size:13.5px}
/* segmented controls: a track, the chosen button raised out of it */
.seg{display:flex;gap:2px;padding:3px;border-radius:11px;background:var(--track);max-width:100%;overflow-x:auto}
.seg button{flex:none;background:none;color:var(--body3);border:0;padding:6px 13px;font:inherit;font-size:13px;
cursor:pointer;font-weight:600;border-radius:8px;transition:background 150ms,color 150ms}
@media (hover:hover) and (pointer:fine){.seg button:not(.on):hover{color:var(--head)}}
.seg button.on{background:var(--panel);color:var(--head);box-shadow:0 1px 2px rgba(29,35,48,.12),0 0 0 1px var(--line)}
.st-toolbar .st-count{margin-left:auto;color:var(--mut)}
/* each row a small card: the family ribbon, ID chip and title, the one line; program, bundle, price and action at the side */
.st-rows .tool{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 24px;align-items:center;
background:var(--panel);border:1px solid var(--line);border-radius:9px;border-left:3px solid var(--c,var(--line));
margin:7px 0;padding:11px 14px 12px}
.st-rows .tool[hidden]{display:none}
.st-rows .tool:target{outline:2px solid var(--acc);outline-offset:1px}
.st-page .st-tt{margin:0;font:600 14.5px/1.35 var(--sans);color:var(--head);flex:1;min-width:0}
.st-tt a{color:var(--head);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--c,var(--head)) 45%,transparent);text-underline-offset:3px}
.st-rows .d{margin:4px 0 0;font-size:13px;line-height:1.45;color:var(--mut)}
.st-row-side{display:flex;align-items:center;justify-content:flex-end;gap:8px 16px;flex-wrap:wrap}
.st-tags{display:flex;gap:5px;flex-wrap:wrap;margin:0}
a.chip{text-decoration:none}
@media (hover:hover) and (pointer:fine){a.chip:hover{color:var(--head);background:var(--track)}}
.st-row-side .st-cost{min-width:90px;justify-content:flex-end}
.st-row-side .price{font-size:18px}
.st-empty{color:var(--mut);text-align:center;padding:48px 0;font-size:15px}

@media (max-width:900px){
.st-tool-layout{grid-template-columns:minmax(0,1fr)}
.st-buybox{position:static}}
@media (max-width:760px){
.st-rows .tool{grid-template-columns:minmax(0,1fr)}
.st-row-side{justify-content:flex-start}
.st-row-side .st-cost{min-width:0;justify-content:flex-start}
.st-toolbar .st-count{margin-left:0;width:100%}}
@media (max-width:600px){
.cta{padding:30px 24px}.cta p{font-size:21px}
.deck{padding:22px 20px 12px}
.st-select{width:100%}.st-select select{flex:1;max-width:none}
.st-toolbar .seg{flex-wrap:wrap}
.st-table th:first-child,.st-table td:first-child{padding-left:14px}}
