/* canvaswp.com demo library. Loaded through page_start()'s extra_css; the rest of the page uses site.css.
   Radii, shadows and section spacing come from the tokens in site.css. */

/* The library leads with demos, so the hero states the promise and the numbers and stops. */
.demos-page .page-hero { padding: 1.5rem 0 1rem; }
.demos-page .page-hero .breadcrumb-nav { margin-bottom: .75rem; }
.demos-page .page-hero h1 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.1; margin-bottom: .625rem; max-width: 58rem; }
.demos-page .page-hero .lead-copy { font-size: var(--t-lg); line-height: 1.55; max-width: 54rem; }
.demos-page .page-hero .hero-actions { margin-top: .875rem !important; }

.demo-facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; padding: 0; margin: 0; font-size: var(--t-sm); color: var(--site-muted); }
.demo-facts strong { color: var(--site-ink); font-variant-numeric: tabular-nums; }

/* Section rhythm: one scale for the page, tightened at the top so demos sit above the fold. */
.demos-page .section { padding-block: var(--space-section); }
.demo-featured { padding-block: 1.25rem 2.25rem; }
.demo-catalogue { padding-top: 2.25rem; }
.demos-page .section-heading { margin-bottom: 2rem; }

/* Curated selections: the heading and the selector share a line, the note explains the row. */
.demo-featured-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: .75rem; }
.demo-featured-head .section-title-sm { font-size: var(--t-2xl); margin: 0; }
.demo-featured .showcase-tablist { margin-bottom: 0; justify-content: flex-start; }
.demo-featured .showcase-tablist [role="tab"] { font-size: var(--t-sm); padding: .5rem .9375rem; min-height: 38px; }
.demo-row-note { font-size: var(--t-sm); color: var(--site-muted); margin: 0 0 .75rem; max-width: 62rem; }
.demo-row-note strong { color: var(--site-ink); }
html:not(.js) .demo-featured .showcase-panel + .showcase-panel { margin-top: 1.5rem; }

/* One grid for every demo wall on the page: five across at desktop, never below two. */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
@media (max-width: 575.98px) { .demo-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }

/* The card ships with kit spacing utilities, which carry !important; the grid owns the rhythm instead. */
.demo-grid .portfolio-item { padding: 0 !important; }
.demo-grid .portfolio-desc { padding: .625rem .125rem 0 !important; }
.demo-grid .portfolio-image { border-radius: var(--r-md); border: 1px solid var(--site-line); box-shadow: var(--shadow-sm) !important; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.demo-grid .portfolio-image img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.demo-grid .portfolio-item:hover .portfolio-image, .demo-grid .portfolio-item:focus-within .portfolio-image { transform: translateY(-4px); box-shadow: var(--shadow-md) !important; }
.demo-grid .portfolio-desc h3 { font-size: var(--t-sm); line-height: 1.3; }
.demo-grid .portfolio-desc h3 a { text-decoration: none; }
.demo-grid .portfolio-desc span { font-size: var(--t-xs); line-height: 1.4; color: var(--site-muted); }

/* Two filter axes: the industry row, then the capability row beside the search field. */
.demo-filter { margin-bottom: 1.25rem; }
.demo-filter .section-title-sm { font-size: var(--t-2xl); margin-bottom: .875rem; }
.demo-filter-row { display: flex; align-items: flex-start; gap: .75rem; }
.filter-axis { flex: none; min-width: 4.75rem; padding-top: .625rem; font-size: var(--t-2xs); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--site-muted); }
.demo-filter .filter-chips { margin-bottom: .625rem; }
.demo-filter-second { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .625rem 1.5rem; }
.demo-filter-second .demo-filter-row { flex: 1 1 32rem; }
.demo-filter-second .filter-chips { margin-bottom: 0; }
.demo-filter .filter-chip { font-size: var(--t-xs); padding: .4375rem .8125rem; min-height: 36px; }
.demo-filter .filter-chips.is-secondary .filter-chip { background: var(--site-band); border-style: dashed; }
.demo-filter .filter-chips.is-secondary .filter-chip[aria-pressed="true"] { background: var(--site-accent-text); border-color: var(--site-accent-text); border-style: solid; color: #fff; }
.demo-filter .filter-search { flex: 1 1 14rem; max-width: 22rem; }
.demo-filter .filter-search input { min-height: 36px; padding: .375rem .875rem; font-size: var(--t-sm); }
.demo-filter .filter-count { margin: .875rem 0 0; font-size: var(--t-sm); }

.demo-industry-links { margin: 2rem 0 0; font-size: var(--t-sm); color: var(--site-muted); }
.demo-industry-links a { text-decoration: none; }

/* 65 single-page designs stay one click away rather than 13 rows of thumbnails. */
.demo-onepage-head { max-width: 46rem; margin: 0 auto 1.5rem; text-align: center; }
.demo-onepage-head .section-title-sm { margin-bottom: .75rem; }
.demo-onepage-head .lead-copy { font-size: var(--t-lg); }
.demo-disclosure { max-width: 64rem; margin: 0 auto; }
.demo-disclosure .onepage-grid { padding: 1.25rem 0 1.5rem; }
.demo-disclosure .onepage-card h3 { font-size: var(--t-sm); margin-top: .5rem; }

.demo-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.demo-steps li { counter-increment: step; position: relative; padding-left: 2.5rem; margin-bottom: 1rem; color: var(--site-muted); }
.demo-steps li:last-child { margin-bottom: 0; }
.demo-steps li strong { color: var(--site-ink); }
.demo-steps li::before { content: counter(step); position: absolute; left: 0; top: .0625rem; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--site-accent-soft); color: var(--site-accent-text); font-weight: 700; font-size: var(--t-sm); }

.demo-roadmap-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
@media (min-width: 768px) { .demo-roadmap-list { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.demo-roadmap-list li { color: var(--site-muted); font-size: var(--t-sm); }
.demo-roadmap-list li strong { display: block; color: var(--site-ink); }

@media (max-width: 991.98px) {
	.demos-page .page-hero { padding: 1.5rem 0 1.25rem; }
	.demo-featured-head { gap: .75rem; }
	.demo-featured .showcase-tablist { justify-content: center; width: 100%; }
}
