/* SlickyBlocks design system: base classes used by AI generated pages (ds-section, ds-media, ds-card...).
   Loaded by every public site and by the editor / preview, so a page looks right whatever the age of the site's
   theme. The theme only sets the values (CSS variables: spacing, radius, colors) in theme.globalcss.
   Same rules as DESIGN_SYSTEM_BASE_CSS in SlickyWeb/wwwroot/js/theme.js: change both together. */
.ds-section { position: relative; padding-top: var(--ds-section-padding-y, 96px); padding-bottom: var(--ds-section-padding-y, 96px); }
.ds-section-tight { position: relative; padding-top: calc(var(--ds-section-padding-y, 96px) * .55); padding-bottom: calc(var(--ds-section-padding-y, 96px) * .55); }
@media (max-width: 767px) {
  .ds-section { padding-top: var(--ds-section-padding-y-mobile, 56px); padding-bottom: var(--ds-section-padding-y-mobile, 56px); }
  .ds-section-tight { padding-top: calc(var(--ds-section-padding-y-mobile, 56px) * .6); padding-bottom: calc(var(--ds-section-padding-y-mobile, 56px) * .6); }
}
.ds-container { width: 100%; max-width: var(--ds-container-max-width, 1200px); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.ds-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.ds-stack { display: flex; flex-direction: column; gap: var(--ds-gap, 24px); }
.ds-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--ds-gap, 24px) * .6); }
.ds-grid-gap { row-gap: var(--ds-gap, 24px); }
.ds-center { text-align: center; }
.ds-mb-1 { margin-bottom: 8px; } .ds-mb-2 { margin-bottom: 16px; } .ds-mb-3 { margin-bottom: 24px; } .ds-mb-4 { margin-bottom: 40px; } .ds-mb-5 { margin-bottom: 64px; }
.ds-mt-1 { margin-top: 8px; } .ds-mt-2 { margin-top: 16px; } .ds-mt-3 { margin-top: 24px; } .ds-mt-4 { margin-top: 40px; }
.ds-surface { background: var(--default-background); color: var(--text-color); }
.ds-surface-alt { background: var(--ds-alternate-section-background, var(--block-background)); color: var(--block-text); }
.ds-surface-primary { background: var(--primary-background); color: var(--primary-text); }
.ds-surface-gradient { background: linear-gradient(135deg, var(--gradient1), var(--gradient2)); color: var(--gradientText); }
.ds-surface-primary h1, .ds-surface-primary h2, .ds-surface-primary h3, .ds-surface-primary p, .ds-surface-gradient h1, .ds-surface-gradient h2, .ds-surface-gradient h3, .ds-surface-gradient p { color: inherit; }
.ds-card { position: relative; height: 100%; background: var(--ds-card-background, var(--default-background, #fff)); color: var(--text-color); border-radius: var(--ds-radius-card, var(--border-radius, 12px)); padding: var(--ds-card-padding, 32px); box-shadow: var(--ds-shadow-card, 0 10px 30px rgba(0,0,0,.06)); border: var(--ds-border-width, 0px) solid var(--ds-border-color, transparent); }
.ds-card-outline { position: relative; height: 100%; border-radius: var(--ds-radius-card, var(--border-radius, 12px)); padding: var(--ds-card-padding, 32px); border: 1px solid var(--ds-border-color, rgba(0,0,0,.1)); }
.ds-card-glass { position: relative; height: auto; align-self: flex-start; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.35); border-radius: var(--ds-radius-card, var(--border-radius, 12px)); padding: var(--ds-card-padding, 32px); background: rgba(17,24,39,.34); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ds-card-glass h1, .ds-card-glass h2, .ds-card-glass h3, .ds-card-glass h4, .ds-card-glass p, .ds-card-glass li, .ds-card-glass span { color: inherit; }
.row:has(> [class*="col"] + [class*="col"] > .ds-card-glass) > [class*="col"] > .ds-card-glass { height: 100%; align-self: stretch; }
.ds-icon-badge:empty, .ds-icon-badge:not(:has(i, svg, img)) { display: none; }
.ds-eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-background); margin-bottom: 12px; }
.ds-surface-primary .ds-eyebrow, .ds-surface-gradient .ds-eyebrow, .ds-overlay .ds-eyebrow { color: inherit; opacity: .85; }
.ds-display { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: -.02em; }
.ds-lead { font-size: 1.15rem; line-height: 1.7; opacity: .88; }
.ds-muted { opacity: .72; }
.ds-media { position: relative; overflow: hidden; border-radius: var(--ds-radius-image, var(--border-radius, 12px)); }
.ds-media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-ratio-16x9 { aspect-ratio: 16 / 9; } .ds-ratio-4x3 { aspect-ratio: 4 / 3; } .ds-ratio-1x1 { aspect-ratio: 1 / 1; } .ds-ratio-3x4 { aspect-ratio: 3 / 4; }
.ds-hero-media { height: min(560px, 62vh); }
.ds-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex: none; }
.ds-avatar > img { width: 100%; height: 100%; object-fit: cover; }
.ds-icon-badge { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; color: var(--primary-background); background: rgba(var(--primary-background-red), var(--primary-background-green), var(--primary-background-blue), .12); }
.ds-overlay { position: relative; isolation: isolate; color: #fff; }
.ds-overlay h1, .ds-overlay h2, .ds-overlay h3, .ds-overlay h4, .ds-overlay p, .ds-overlay span, .ds-overlay li { color: inherit; }
.ds-media-fill { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ds-media-fill > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-overlay::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ds-image-overlay-color, #000); opacity: var(--ds-image-overlay-opacity, .45); pointer-events: none; }
.ds-bg-cover { background-size: cover; background-position: center; background-repeat: no-repeat; }
.ds-divider { height: 1px; background: currentColor; opacity: .12; border: 0; }
