/* Templates page only (/toolkit/): the file preview opens in place under the shelf filters instead of as an overlay.
   Loaded only by build/build.py toolkit_index. Rollback: remove that link and the script tag there. */
.toolkit-inplace .tpl-inline-slot {
  scroll-margin-top: 96px;
  margin: 18px 0 8px;
}
.toolkit-inplace .tpl-inline-slot .tpl-inspector-backdrop {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  padding: 0;
  background: none;
  backdrop-filter: none;
}
.toolkit-inplace .tpl-inline-slot .tpl-inspector-backdrop[hidden] {
  display: none !important;
}
/* Keep the page header inside the screen: a plain 1fr column grew to its widest child (1181px on a 375px phone). */
.toolkit-inplace .tpl-ed-header { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 1024px) {
  .toolkit-inplace .tpl-ed-header { grid-template-columns: minmax(0, 1fr); }
}
/* Line icons on the sector cards, animated like the home page illustrations. JS toggles .is-drawn while on screen. */
.toolkit-inplace .sfc-art { margin: 10px 0 6px; text-align: center; }
.toolkit-inplace .sfc-art-icon { height: 150px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.toolkit-inplace .sfc-art-icon svg { width: 112px; height: 112px; overflow: visible; }
.toolkit-inplace .sfc-art-icon .ic-bg { fill: var(--bg, #FFFFFF); }
.toolkit-inplace .sfc-art-icon .ic-accent { fill: #D41317; stroke: none; transform-box: fill-box; transform-origin: center; }
.toolkit-inplace .sfc-art-icon .ic-badge, .toolkit-inplace .sfc-art-icon .ic-ring { transform-box: fill-box; transform-origin: center; }
.toolkit-inplace .sfc-art-icon .ic-badge-disc { fill: currentColor; stroke: none; }
.toolkit-inplace .sfc-art-icon .ic-tick { stroke: var(--bg, #FFFFFF); stroke-width: 2.6; stroke-dasharray: 1; stroke-dashoffset: 0; }
.toolkit-inplace .sfc-art-icon .ic-dots { stroke-dasharray: 2 5; }
.toolkit-inplace .sfc-art-icon .ic-ring { stroke: #D41317; stroke-width: 1.6; opacity: .45; }
.toolkit-inplace .sfc-art-icon.is-drawn .ic-badge { animation: sfc-pop 4.2s cubic-bezier(.2,0,0,1) infinite; }
.toolkit-inplace .sfc-art-icon.is-drawn .ic-tick { animation: sfc-tick 4.2s cubic-bezier(.2,0,0,1) infinite; }
.toolkit-inplace .sfc-art-icon.is-drawn .ic-dots { animation: sfc-run .9s linear infinite; }
.toolkit-inplace .sfc-art-icon.is-drawn .ic-ring { animation: sfc-ring 1.8s ease-in-out infinite; }
.toolkit-inplace .sfc-art-icon.is-drawn .ic-accent { animation: sfc-breathe 3.2s ease-in-out infinite; }
@keyframes sfc-pop { 0%, 18% { scale: 0; } 28% { scale: 1.12; } 34%, 88% { scale: 1; } 96%, 100% { scale: 0; } }
@keyframes sfc-tick { 0%, 30% { stroke-dashoffset: 1; } 44%, 100% { stroke-dashoffset: 0; } }
@keyframes sfc-run { to { stroke-dashoffset: -14; } }
@keyframes sfc-ring { 0%, 100% { scale: 1; opacity: .45; } 50% { scale: 1.35; opacity: .15; } }
@keyframes sfc-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.18; } }
@media (prefers-reduced-motion: reduce) {
  .toolkit-inplace .sfc-art-icon * { animation: none !important; }
}
/* Bundle cards: on a phone the crossed-out price was clipped under the sale flap; let it wrap to its own line. */
.toolkit-inplace .tpl-club-top { flex-wrap: wrap; }
.toolkit-inplace .tpl-inline-slot .tpl-inspector-dialog {
  max-width: none;
  max-height: none;
  overflow: visible;
  box-shadow: none;
}
/* Standards badges (ISO 27001, ISO 27701, NIST and the rest) larger so the marks read clearly. */
.toolkit-inplace .std-logo-seal, .toolkit-inplace .std-logo-seal svg { width: 88px; height: 88px; }
.toolkit-inplace .std-logo-seal { border-radius: 16px; }
.toolkit-inplace .tpl-fw-chip .std-logo-seal, .toolkit-inplace .tpl-fw-chip .std-logo-seal svg,
.toolkit-inplace .tpl-fw-chip-ico svg { width: 34px; height: 34px; }

/* Card head: the standard's logo with the title beside it (no number or file-count chip). */
.toolkit-inplace .step-file-card .sfc-head { display: flex; align-items: center; gap: 14px; text-align: left; }
.toolkit-inplace .step-file-card .sfc-badge-pair { flex: none; display: flex; }
.toolkit-inplace .step-file-card .sfc-head h3 { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 1.02rem; line-height: 1.3; text-align: left; }
@media (max-width: 480px) {
  .toolkit-inplace .std-logo-seal, .toolkit-inplace .std-logo-seal svg { width: 64px; height: 64px; }
}
/* Explanations sit in a small plain white card. */
.toolkit-inplace .step-file-card .sfc-tag { font-family: var(--font-display) !important; font-weight: 400 !important; background: var(--bg, #FFFFFF) !important; border: 1px solid var(--line, #E2E8F0) !important; border-radius: 10px !important; padding: 10px 12px !important; font-size: 0.82rem !important; line-height: 1.5 !important; color: var(--muted) !important; }
/* Files: Word/Excel glyph and a plain name. */
.toolkit-inplace .step-file-card .sfc-files { flex-direction: column; gap: 4px; }
.toolkit-inplace .step-file-card .sfg-file { border-radius: 0 !important; background: none !important; border: 0 !important; padding: 2px 0 !important; font-family: var(--font-display) !important; font-size: 0.8rem !important; gap: 8px; }
.toolkit-inplace .sfg-file .fmt-ico { display: inline-flex; align-items: center; padding: 0; background: none; border: 0; }
.toolkit-inplace .sfg-file .ft-ico { width: 14px; height: 18px; flex: none; }
/* Buttons: one line, fully round sides; "Access" reads as a text link. */
.toolkit-inplace .sfc-actions .btn-ed-cart, .toolkit-inplace .sfc-actions .btn-ed-preview,
.toolkit-inplace .tpl-club-btns button { border-radius: 999px; white-space: nowrap; }
.toolkit-inplace .sfc-actions .btn-ed-page { background: none; border: 0; box-shadow: none; padding: 6px 4px; border-radius: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; min-height: 0; }
/* Sticky cart bar on this page: only the checkout link and the offer, short labels (set in toolkit-inplace.js). */
.toolkit-inplace #tpl-sticky-quick-drawer { display: none !important; }
.toolkit-inplace .tpl-sticky-cart-bar .btn { border-radius: 999px !important; white-space: nowrap; }
/* Checkout: pill with the same travelling edge glow as the home page cards (glow-turn and --angle from site.css). */
.toolkit-inplace #tpl-sticky-checkout-link { position: relative; isolation: isolate; border-radius: 999px !important; }
.toolkit-inplace #tpl-sticky-checkout-link::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--angle), var(--sweep-1), var(--sweep-2) 25%, var(--sweep-3) 50%, var(--sweep-4) 75%, var(--sweep-1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: glow-turn 7s linear infinite; }
@media (prefers-reduced-motion: reduce) { .toolkit-inplace #tpl-sticky-checkout-link::before { animation: none; } }
/* Organisation seal beside the name field: a red rubber stamp, slightly turned, as if pressed by hand. */
.toolkit-inplace .tpl-live-org-input-row { display: flex; align-items: center; gap: 12px; }
.toolkit-inplace .tpl-live-org-input-row input { flex: 1 1 auto; min-width: 0; }
.toolkit-inplace .tpl-stamp { flex: none; width: 58px; height: 58px; color: #D41317; opacity: .9; transform: rotate(-12deg); }
.toolkit-inplace .tpl-stamp svg { display: block; width: 100%; height: 100%; }
/* Search on phones: one full-width bar that stays under the header while the cards scroll, one row of short tabs
   below it; the standards strip is dropped (the cards below already show every standard). */
@media (max-width: 760px) {
  .toolkit-inplace .tpl-smart-toolbar { position: sticky; top: var(--header-h, 64px); z-index: 30; margin: 0 -20px; padding: 10px 20px 8px; border: 0; border-radius: 0; box-shadow: none; background: var(--bg, #FFFFFF); border-bottom: 1px solid var(--line, #E2E8F0); }
  .toolkit-inplace .tpl-toolbar-top { display: grid !important; grid-template-columns: 1fr; gap: 8px; }
  .toolkit-inplace .tpl-search-field { width: 100%; }
  .toolkit-inplace .tpl-search-field input { font-size: 16px; min-height: 44px; }
  .toolkit-inplace .tpl-tier-segmented { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding: 0; background: none; border: 0; scrollbar-width: none; }
  .toolkit-inplace .tpl-tier-segmented::-webkit-scrollbar { display: none; }
  .toolkit-inplace .tpl-tier-btn { flex: none; min-height: 36px; padding: 6px 14px; border-radius: 999px; font-size: 0.84rem; white-space: nowrap; background: var(--bg, #FFFFFF); border: 1px solid var(--line-strong, #CBD5E1); color: var(--ink); box-shadow: none; }
  .toolkit-inplace .tpl-tier-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg, #FFFFFF); }
  .toolkit-inplace .tpl-fw-scroller { display: none; }
}
/* Seals: hairline edge only, no drop shadow (owner, 29 Oct 2026). */
.toolkit-inplace .std-logo-seal { box-shadow: none !important; }
.toolkit-inplace .std-logo-seal svg > rect:first-child { stroke-width: 0.5; }
/* In-place file list on phones: one column that fits the screen; file names wrap instead of running off the edge. */
@media (max-width: 760px) {
  .toolkit-inplace .tpl-inline-slot .tpl-manifest-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .toolkit-inplace .tpl-inline-slot .tpl-manifest-sidebar, .toolkit-inplace .tpl-inline-slot .tpl-manifest-preview { min-width: 0; width: auto !important; max-width: 100%; }
  .toolkit-inplace .tpl-inline-slot .tpl-manifest-row > * { min-width: 0; white-space: normal !important; }
}
/* Search box: keep our own clear button only (hide the browser's built-in one). */
.toolkit-inplace #tpl-market-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
