/* Toolkit landing pages (/toolkits/). Theme tokens only, so light and dark both follow site.css. */
.tk-page .section { padding: var(--section-y) 0; }
.tk-page .crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; color: var(--faint); margin-bottom: 20px; }
.tk-page .crumbs a { color: var(--muted); text-decoration: none; }
.tk-page h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); max-width: 22em; }
.tk-page h2 { font-size: clamp(1.35rem, 2.8vw, 1.9rem); }
.tk-page h3 { font-size: 1.02rem; font-weight: 500; }

/* Hero */
.tk-hero { padding-top: clamp(28px, 4vw, 56px) !important; }
.tk-hero-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .tk-hero-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 48px; } }
.tk-logo { display: inline-flex; align-items: center; }
.tk-logo svg, .tk-logo .std-logo-seal { max-height: 30px; }
.tk-buy { margin: 26px 0 0; padding: 20px; border: var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.tk-price { margin: 0 0 14px; color: var(--muted); font-size: 0.9rem; }
.tk-price strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); margin-right: 6px; letter-spacing: -0.02em; }
.tk-buy-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.tk-buy-btns .btn { flex: 1 1 180px; }
.tk-cart-link { display: inline-block; margin-top: 12px; font-size: 0.82rem; color: var(--muted); }
.tk-facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.tk-facts li::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 2px; }

/* Three sample sheets */
.tk-samples-cap { font-size: 0.84rem; color: var(--faint); margin: 0 0 12px; }
.tk-sheets { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) and (max-width: 979px) { .tk-sheets { grid-template-columns: repeat(3, 1fr); } }
.tk-sheet { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; border: var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); transition: box-shadow .18s ease, transform .18s ease; }
.tk-sheet:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.tk-sheet strong { color: var(--ink); font-family: var(--font-display); font-size: 0.98rem; line-height: 1.3; }
.tk-sheet-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.74rem; color: var(--faint); }
.tk-sheet ol { margin: 0; padding-left: 18px; font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.tk-sheet .tk-more { list-style: none; margin-left: -18px; color: var(--faint); }
.tk-sheet-link { font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-top: auto; }

/* Format pills */
.tk-fmt { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em; background: var(--bg-alt); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tk-fmt.is-docx { box-shadow: inset 0 0 0 1px var(--ink); }
.tk-fmt.is-xlsx { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }

/* File list */
.tk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.tk-group { border-top: var(--border); }
.tk-group:last-of-type { border-bottom: var(--border); }
.tk-group summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); min-height: 44px; }
.tk-group summary::-webkit-details-marker { display: none; }
.tk-count { font-size: 0.8rem; color: var(--muted); background: var(--bg-alt); border-radius: 999px; padding: 2px 10px; }
.tk-rows { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
@media (min-width: 860px) { .tk-rows { grid-template-columns: 1fr 1fr; } }
.tk-row { padding: 14px 16px; border: var(--border); border-radius: var(--radius-sm); background: var(--surface); min-width: 0; }
.tk-row a { text-decoration: none; }
.tk-row a strong { color: var(--ink); font-size: 0.95rem; line-height: 1.35; }
.tk-row a:hover strong { text-decoration: underline; }
.tk-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 6px; font-size: 0.74rem; color: var(--faint); }
.tk-row-meta code { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); overflow-wrap: anywhere; }
.tk-row p { margin: 0; font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.tk-buy-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.tk-buy-inline .tk-price { margin: 0; }

/* Order of work */
.tk-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
@media (min-width: 860px) { .tk-steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.tk-steps li { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: var(--border); }
.tk-step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--fill); color: var(--on-fill); font-weight: 700; font-size: 0.85rem; }
.tk-steps p { margin: 0 0 6px; font-size: 0.86rem; color: var(--muted); }
.tk-step-files { font-size: 0.78rem !important; color: var(--faint) !important; }

/* Sector table: a table on wide screens, stacked cards on phones */
.tk-table-wrap { margin: 20px 0; }
.tk-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.tk-table th, .tk-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: var(--border); }
.tk-table thead th { font-size: 0.74rem; color: var(--faint); font-weight: 600; }
.tk-table tbody th { color: var(--ink); white-space: nowrap; }
@media (max-width: 759px) {
  .tk-table thead { display: none; }
  .tk-table, .tk-table tbody, .tk-table tr, .tk-table th, .tk-table td { display: block; width: 100%; }
  .tk-table tr { border: var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 6px 4px; background: var(--surface); }
  .tk-table th, .tk-table td { border: 0; padding: 6px 12px; }
  .tk-table td::before { content: attr(data-l); display: block; font-size: 0.7rem; color: var(--faint); font-weight: 600; }
}

/* Cards (related, bundles, index): the site's .glow-card edge beam, slim type, white space */
.tk-cards { display: grid; gap: clamp(20px, 2.4vw, 32px); grid-template-columns: 1fr; margin: clamp(24px, 3vw, 40px) 0 clamp(28px, 4vw, 48px); }
@media (min-width: 700px) { .tk-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tk-cards-3 { grid-template-columns: repeat(3, 1fr); } }
.tk-page .lede { margin-bottom: 0; }
.tk-card { display: flex; flex-direction: column; gap: 10px; padding: clamp(24px, 2.4vw, 32px); min-width: 0; font-family: var(--font-sans); }
.tk-card strong { color: var(--ink); font-family: var(--font-sans); font-weight: 500; font-size: 1.05rem; line-height: 1.35; letter-spacing: 0; }
.tk-card p, .tk-card span { margin: 0; font-size: 0.875rem; font-weight: 400; color: var(--muted); line-height: 1.5; }
.tk-card .btn { align-self: flex-start; }
.tk-card-link { text-decoration: none; transition: box-shadow .18s ease; }
.tk-card-link:hover { box-shadow: var(--shadow-sm); }
.tk-card-price { font-weight: 400; margin-top: auto !important; }
.tk-card .tk-logo { margin-bottom: 6px; }
@media (max-width: 639px) {
  .tk-cards { gap: 16px; }
  .tk-card { padding: 18px 20px; gap: 4px; }
  .tk-card .tk-logo { display: none; }
  .tk-card-link { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 0; }
  .tk-card-link strong { flex: 0 0 100%; }
  .tk-card-link .tk-card-price { margin-top: 0 !important; }
  .tk-card-link .tk-card-price::before { content: '\00b7'; margin: 0 8px; }
}

/* Phone buy bar */
.tk-sticky { display: none; }
@media (max-width: 759px) {
  .tk-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--header-bg); border-top: var(--border); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 0.82rem; color: var(--muted); }
  .tk-sticky strong { color: var(--ink); font-size: 1.05rem; }
  .tk-sticky .btn { min-height: 44px; padding: 8px 16px; font-size: 0.8rem; }
  .tk-page { padding-bottom: 72px; }
  .tk-page ~ .mobile-sticky-cta, body:has(.tk-page) .mobile-sticky-cta { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .tk-sheet, .tk-card-link { transition: none; } .tk-sheet:hover { transform: none; } }

/* Page-1 document images */
.tk-sheet-page { display: block; aspect-ratio: 800 / 1035; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); margin: -4px -4px 4px; }
.tk-sheet-img { width: 100%; height: auto; display: block; }
.tk-sheets { align-items: start; }
@media (min-width: 980px) { .tk-sheets { grid-template-columns: repeat(3, 1fr); } .tk-sheet ol { display: none; } }
.tk-row.has-pv { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
.tk-thumb { display: block; border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line-strong); }
.tk-thumb-img { width: 72px; height: auto; display: block; }
.tk-acts { margin: 0 0 16px; padding-left: 20px; color: var(--muted); font-size: 0.92rem; }
.tk-lb { display: none; }
.tk-lb:target { display: flex; position: fixed; inset: 0; z-index: 90; align-items: center; justify-content: center; padding: 16px; }
.tk-lb-bg { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.78); }
.tk-lb figure { position: relative; margin: 0; max-width: min(820px, 100%); max-height: 100%; overflow: auto; background: var(--surface); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.tk-lb-img { width: 100%; height: auto; display: block; background: #fff; border-radius: 4px; }
.tk-lb figcaption { font-size: 0.82rem; color: var(--muted); text-align: center; }
