/* The community's two look choices (Branding > Look), on every public design. Set as data attributes on <body>; without them nothing here applies. */
body[data-corners=sharp] :is(.btn, .btn-main, .btn-red, .card, .form-control, .form-select, .dropdown-menu, .pricing-item, .accordion-item, .accordion-button, .badge) { border-radius: 0 !important; }
body[data-corners=soft] :is(.btn, .btn-main, .btn-red, .card, .form-control, .form-select, .dropdown-menu, .pricing-item, .accordion-item, .badge) { border-radius: 8px !important; }
body[data-corners=round] :is(.btn, .btn-main, .btn-red, .badge) { border-radius: 999px !important; }
body[data-corners=round] :is(.card, .dropdown-menu, .pricing-item, .accordion-item) { border-radius: 18px !important; }
body[data-corners=round] :is(.form-control, .form-select) { border-radius: 12px !important; }

body[data-header=light] { --hdr-bg: #fff; --hdr-fg: #222; }
body[data-header=dark] { --hdr-bg: #14161a; --hdr-fg: #fff; }
body[data-header=accent] { --hdr-bg: var(--hdr-acc); --hdr-fg: #fff; }
body[data-header] .site-header { background: var(--hdr-bg) !important; }
body[data-header] .site-header :is(.navbar-brand, .navbar-brand span, .navbar-nav .nav-link, .navbar-toggler, .navbar-toggler > span, .navbar-toggler > i, #menu-btn, #menu-btn .text) { color: var(--hdr-fg) !important; }
body:is([data-header=dark], [data-header=accent]) .site-header .navbar-light .navbar-toggler-icon { filter: invert(1) brightness(2); }
body[data-header=light] .site-header .navbar-dark .navbar-toggler-icon { filter: invert(1); }
@media (max-width: 991.98px) { body[data-header] .site-header .navbar-collapse { background: var(--hdr-bg) !important; } }
/* The original design carries two logos: the dark one for light headers, the white one for dark headers. */
body[data-header=light] .site-header .logo-default, body:is([data-header=dark], [data-header=accent]) .site-header .logo-white { display: block !important; }
body[data-header=light] .site-header .logo-white, body:is([data-header=dark], [data-header=accent]) .site-header .logo-default { display: none !important; }

/* Look options of the stats blocks (lib/puck/look.ts). */
section.ms-look.ms-bg-none { background: transparent !important; color: var(--bs-body-color, inherit) !important; }
section.ms-look.ms-bg-soft { background: rgba(127, 127, 127, .12) !important; color: var(--bs-body-color, inherit) !important; }
section.ms-look.ms-bg-dark { background: #1d212b !important; color: #fff !important; }
section.ms-look:is(.ms-bg-none, .ms-bg-soft, .ms-bg-dark) :is(.ms-stat-value, .ms-stat-label, .counter, h3, h4, span, i) { color: inherit !important; }
section.ms-look.ms-size-compact { padding-block: 1.5rem !important; }
section.ms-look.ms-size-compact :is(.ms-stat-value, .count, .counter) { font-size: 1.75rem !important; }
section.ms-look.ms-size-large :is(.ms-stat-value, .count, .counter) { font-size: clamp(2.5rem, 7vw, 4.5rem) !important; }
section.ms-look.ms-cols-2 :is(.row > [class*="col-6"], .row > [class*="col-md-3"], .counter-box li) { flex: 0 0 auto; width: 50%; }
section.ms-look.ms-cols-3 :is(.row > [class*="col-6"], .row > [class*="col-md-3"], .counter-box li) { flex: 0 0 auto; width: 33.333%; }
section.ms-look.ms-cols-4 :is(.row > [class*="col-6"], .row > [class*="col-md-3"], .counter-box li) { flex: 0 0 auto; width: 25%; }
@media (max-width: 767.98px) { section.ms-look:is(.ms-cols-3, .ms-cols-4) :is(.row > [class*="col-6"], .row > [class*="col-md-3"], .counter-box li) { width: 50%; } }

/* Background and spacing of any layout block. Text on cards keeps the card's own colour. */
section.ms-look:is(.ms-bg-soft, .ms-bg-dark) :is(h1, h2, h3, h4, h5, h6, p, li, span, cite, figcaption, .section-title):not([class*="card"] *, [class*="price"] *, .accordion *, .btn *) { color: inherit !important; }
section.ms-look.ms-space-tight { padding-block: 2rem !important; }
section.ms-look.ms-space-roomy { padding-block: 8rem !important; }
/* Team photo shape. */
section.ms-look:is(.ms-photo-round, .ms-photo-square) img { aspect-ratio: 1; object-fit: cover; }
section.ms-look.ms-photo-round img { border-radius: 50% !important; }
section.ms-look.ms-photo-square img { border-radius: 0 !important; }
section.ms-look.ms-bg-dark [class*="btn-outline"]:not([class*="card"] *) { color: #fff !important; border-color: #fff !important; }
section.ms-look.ms-bg-dark [class*="btn-outline"]:not([class*="card"] *):hover { background: rgba(255, 255, 255, .15) !important; }
