/* Studio Sachet: styles for content made in the block editor.
   .ss-entry  = new pages / archives (inside the page-title banner layout)
   .ss-block  = a block added between the designed sections of a designed page
   .elementor-widget-theme-post-content = journal posts and case studies */

.ss-entry-wrap { padding: 70px 20px 100px; background: #fff; }
.ss-entry { max-width: 820px; margin: 0 auto; }
.ss-entry--grid { max-width: 1200px; }
/* Full-width white band, content centred at the site's 1200px width */
.ss-block { box-sizing: border-box; width: 100%; margin: 0; padding: 14px max(20px, calc((100% - 1200px) / 2)); background: #fff; box-shadow: 0 1px 0 #fff; position: relative; }
:not(.ss-block) + .ss-block { padding-top: 72px; }
.ss-block:not(:has(+ .ss-block)) { padding-bottom: 72px; }
.ss-block.alignfull { padding-left: 0; padding-right: 0; }
.ss-block > .wp-block-columns { margin-bottom: 0; }

.ss-entry, .ss-block {
	font-family: "DM Sans", sans-serif;
	font-size: 17px;
	line-height: 1.75;
	color: #3a3a3a;
}
body .ss-entry :is(p, li, td, th, figcaption), body .ss-block :is(p, li, td, th, figcaption) { font-family: "DM Sans", sans-serif; font-size: 17px; line-height: 1.75; color: #3a3a3a; }
body .ss-entry figcaption, body .ss-block figcaption { font-size: 14px; color: #6b6b6b; }
.ss-entry > * + *, .ss-block > * + * { margin-top: 1.25em; }
.ss-entry :is(h1, h2, h3, h4, h5, h6), .ss-block :is(h1, h2, h3, h4, h5, h6),
.elementor-widget-theme-post-content :is(h2, h3, h4) {
	font-family: "Syne", sans-serif;
	color: #0E0E0E;
	line-height: 1.25;
	font-weight: 600;
	margin: 1.6em 0 .6em;
}
.ss-entry h2, .ss-block h2 { font-size: clamp(26px, 3vw, 36px); }
.ss-entry h3, .ss-block h3 { font-size: clamp(21px, 2.2vw, 26px); }
.ss-entry h4, .ss-block h4 { font-size: 20px; }
.ss-entry > :first-child, .ss-block > :first-child { margin-top: 0; }
.ss-entry a:not(.wp-block-button__link):not(.elementor-button):not(.elementor-post__thumbnail__link),
.ss-block a:not(.wp-block-button__link) { color: #FF5101; text-decoration: underline; text-underline-offset: 3px; }
.ss-entry a:hover, .ss-block a:hover { color: #0E0E0E; }
.ss-entry img, .ss-block img { max-width: 100%; height: auto; }
.ss-entry ul, .ss-entry ol, .ss-block ul, .ss-block ol { padding-left: 1.3em; }
.ss-entry li + li, .ss-block li + li { margin-top: .35em; }
.ss-entry blockquote, .ss-block blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid #FF5101; font-size: 1.12em; color: #0E0E0E; }
.ss-entry table, .ss-block table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ss-entry th, .ss-entry td, .ss-block th, .ss-block td { border: 1px solid #E6E3DD; padding: 10px 12px; text-align: left; }
.ss-entry hr, .ss-block hr { border: 0; border-top: 1px solid #E6E3DD; margin: 2.5em 0; }
.ss-entry figcaption, .ss-block figcaption { font-size: 14px; color: #6b6b6b; }

/* Wide / full-width blocks */
.ss-entry .alignwide { max-width: 1200px; margin-left: calc((820px - 1200px) / 2); margin-right: calc((820px - 1200px) / 2); width: auto; }
.ss-entry .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
@media (max-width: 1240px) { .ss-entry .alignwide { margin-left: 0; margin-right: 0; } }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Buttons in the studio style (black, orange on hover) */
.wp-block-button__link { transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.wp-block-button__link:hover { background-color: #FF5101 !important; color: #fff !important; transform: translateY(-2px); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 1px solid currentColor; color: #0E0E0E; }

/* Journal / search grid */
.ss-entry--grid .elementor-posts-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px; }
@media (max-width: 767px) { .ss-entry--grid .elementor-posts-container { grid-template-columns: 1fr; } }
.ss-archive-intro { max-width: 820px; margin: 0 auto 40px; }
.ss-search { max-width: 820px; margin: 0 auto 40px; }
.ss-search form { display: flex; gap: 10px; }
.ss-search input[type="search"] { flex: 1; padding: 12px 14px; border: 1px solid #ccc; font: inherit; }
.ss-search input[type="submit"] { padding: 12px 22px; background: #0E0E0E; color: #fff; border: 0; cursor: pointer; }
.ss-empty { text-align: center; color: #6b6b6b; }

/* Blocks inside journal posts / case studies */
body .elementor-widget-theme-post-content h2 { font-size: clamp(24px, 2.6vw, 32px); }
body .elementor-widget-theme-post-content h3 { font-size: clamp(20px, 2vw, 24px); }
body .elementor-widget-theme-post-content h4 { font-size: 19px; }
.elementor-widget-theme-post-content .wp-block-button__link { font-size: 15px; }
.elementor-widget-theme-post-content .alignwide, .elementor-widget-theme-post-content .alignfull { max-width: 100%; margin-left: 0; margin-right: 0; }
.elementor-widget-theme-post-content blockquote { border-left: 3px solid #FF5101; margin: 1.5em 0; padding-left: 22px; }
