/*
 * Studio look, step 5 (1.4.386): About, Contact, News, policy pages, Our Work and 404.
 * Same language as the other pages: red poster hero, cream content, ink-outlined cards
 * that lift onto a hard shadow, black information panels, red closing band.
 */

body.ch-studio-look { --px-red: #d90f26; --px-red-2: #b80c20; --px-ink: #0d0d0d; --px-paper: #f4f1ea; --px-card: #fbf9f4; --px-line: #d6cfc0; --px-ease: cubic-bezier(.22, 1, .36, 1); }

/* ---------------------------------------------------------------- page heroes */
body.ch-studio-look :is(.ch-standard-hero, .ch-policy-hero, .cow-hero) { position: relative; color: #fff; background: var(--px-red) !important; background-image: none !important; border: 0 !important; }
body.ch-studio-look :is(.ch-standard-hero, .ch-policy-hero, .cow-hero)::before, body.ch-studio-look :is(.ch-standard-hero, .ch-policy-hero, .cow-hero)::after { display: none !important; }
body.ch-studio-look :is(.ch-standard-hero, .ch-policy-hero, .cow-hero) h1 { color: var(--px-ink) !important; -webkit-text-fill-color: var(--px-ink) !important; background: none !important; font-family: "HS Display", sans-serif; font-weight: 400 !important; font-size: clamp(42px, 6.4vw, 104px) !important; line-height: .95 !important; letter-spacing: -.045em !important; }
body.ch-studio-look :is(.ch-standard-hero, .ch-policy-hero, .cow-hero) :is(p, li, .cow-lead) { color: #fff !important; }
body.ch-studio-look :is(.ch-standard-hero, .ch-policy-hero, .cow-hero) :is(.ch-content-eyebrow, .ch-page-kicker, .cow-kicker, .ch-content-breadcrumbs *, .cow-crumbs, .cow-crumbs *) { color: #fff !important; -webkit-text-fill-color: #fff !important; }
body.ch-studio-look .ch-policy-hero aside, body.ch-studio-look .ch-policy-hero .ch-policy-hero__grid > :last-child:not(:first-child) { color: var(--px-paper); border: 0 !important; border-radius: 20px !important; background: var(--px-ink) !important; box-shadow: 10px 10px 0 rgba(13, 13, 13, .3) !important; backdrop-filter: none !important; }
body.ch-studio-look .ch-policy-hero aside *, body.ch-studio-look .ch-policy-hero .ch-policy-hero__grid > :last-child:not(:first-child) * { color: var(--px-paper) !important; }
body.ch-studio-look :is(.cow-kicker, .ch-content-eyebrow) { font-family: "HS Mono", monospace !important; letter-spacing: .1em !important; }

/* Section headings on these pages */
body.ch-studio-look :is([class*="ch-about-"], [class*="ch-contact-"], .ch-news-grid, .ch-policy-layout, .cow-work, .cow-cta) h2 { font-family: "HS Display", sans-serif; font-weight: 400 !important; letter-spacing: -.035em !important; line-height: 1.02 !important; }

/* ---------------------------------------------------------------- About */
body.ch-studio-look :is(.ch-about-principle, .ch-about-paths__grid > *, .ch-about-values article, .ch-about-values li, .ch-about-process li, .ch-about-intro aside) { border: 2px solid var(--px-ink) !important; border-radius: 22px !important; background: var(--px-card) !important; background-image: none !important; box-shadow: none !important; transition: transform .35s var(--px-ease), box-shadow .35s var(--px-ease); }
body.ch-studio-look :is(.ch-about-principle, .ch-about-paths__grid > *):hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--px-ink) !important; }
body.ch-studio-look .ch-about-paths__grid > :first-child { color: var(--px-paper); background: var(--px-ink) !important; }
body.ch-studio-look .ch-about-paths__grid > :first-child * { color: var(--px-paper) !important; }
body.ch-studio-look .ch-about-paths__grid > :first-child:hover { box-shadow: 8px 8px 0 var(--px-red) !important; }
body.ch-studio-look :is(.ch-about-values, .ch-about-process, .ch-about-story) :is(strong, b, span)[class*="num"], body.ch-studio-look .ch-about-values :is(.ch-num, .ch-about-num) { color: var(--px-red) !important; font-family: "HS Word", sans-serif; font-weight: 400 !important; }
body.ch-studio-look .ch-about-intro aside :is(h2, h3) { color: var(--px-ink) !important; }
body.ch-studio-look .ch-about-cta, body.ch-studio-look .ch-about-cta > div { color: #fff; border: 0 !important; border-radius: 30px !important; background: var(--px-red) !important; background-image: none !important; box-shadow: none !important; }
body.ch-studio-look .ch-about-cta::before, body.ch-studio-look .ch-about-cta::after { display: none !important; }
body.ch-studio-look .ch-about-cta :is(h2, h3) { color: var(--px-ink) !important; font-size: clamp(36px, 5vw, 80px) !important; line-height: .98 !important; }
body.ch-studio-look .ch-about-cta :is(p, .ch-content-eyebrow) { color: #fff !important; }

/* Buttons used across these pages */
body.ch-studio-look :is(.ch-standard-hero, .ch-about-intro, .ch-about-cta, .ch-contact-layout, .ch-contact-faq, .ch-content, .ch-policy-contact) :is(.ch-content-button, .ch-button) { border-radius: 999px !important; background-image: none !important; box-shadow: none !important; }
body.ch-studio-look :is(.ch-standard-hero, .ch-about-intro, .ch-about-cta) :is(.ch-content-button--primary, .ch-button--accent, .ch-button--primary) { color: var(--px-paper) !important; background: var(--px-ink) !important; border: 2px solid var(--px-ink) !important; }
body.ch-studio-look :is(.ch-standard-hero, .ch-about-cta) :is(.ch-content-button--ghost, .ch-button--ghost) { color: #fff !important; background: transparent !important; border: 2px solid #fff !important; }
body.ch-studio-look :is(.ch-standard-hero, .ch-about-intro, .ch-about-cta) :is(.ch-content-button, .ch-button)::before, body.ch-studio-look :is(.ch-standard-hero, .ch-about-intro, .ch-about-cta) :is(.ch-content-button, .ch-button)::after { display: none !important; }

/* ---------------------------------------------------------------- Contact */
body.ch-studio-look .ch-contact-routes > article { border: 2px solid var(--px-ink) !important; border-radius: 20px !important; background: var(--px-card) !important; box-shadow: none !important; }
body.ch-studio-look .ch-standard-hero--contact .ch-contact-routes :is(article, li) { color: var(--px-ink); }
body.ch-studio-look .ch-contact-form-card { border: 2px solid var(--px-ink) !important; border-radius: 26px !important; background: var(--px-card) !important; box-shadow: 12px 12px 0 var(--px-ink) !important; }
body.ch-studio-look .ch-contact-form :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { color: var(--px-ink) !important; border: 2px solid var(--px-ink) !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important; }
body.ch-studio-look .ch-contact-form :is(input, select, textarea):focus { box-shadow: 0 0 0 3px rgba(217, 15, 38, .3) !important; }
body.ch-studio-look .ch-contact-form label { font-family: "HS Mono", monospace; font-size: 12px !important; letter-spacing: .05em; text-transform: uppercase; }
body.ch-studio-look .ch-contact-form :is(button[type="submit"], input[type="submit"]) { color: #fff !important; background: var(--px-red) !important; background-image: none !important; border: 0 !important; border-radius: 999px !important; box-shadow: none !important; }
body.ch-studio-look .ch-contact-form :is(button[type="submit"], input[type="submit"]):hover { background: var(--px-ink) !important; }
body.ch-studio-look .ch-contact-aside > * { border: 2px solid var(--px-ink) !important; border-radius: 20px !important; background: var(--px-card) !important; box-shadow: none !important; }
body.ch-studio-look .ch-contact-aside > :first-child { color: var(--px-paper); background: var(--px-ink) !important; }
body.ch-studio-look .ch-contact-aside > :first-child * { color: var(--px-paper) !important; }
body.ch-studio-look .ch-contact-social a { color: var(--px-ink) !important; border: 1.5px solid var(--px-ink) !important; background: transparent !important; }
body.ch-studio-look .ch-contact-social a:hover { color: #fff !important; background: var(--px-red) !important; border-color: var(--px-red) !important; }
body.ch-studio-look .ch-contact-reassurance { color: var(--px-paper); border: 0 !important; border-radius: 22px !important; background: var(--px-ink) !important; }
body.ch-studio-look .ch-contact-reassurance * { color: var(--px-paper) !important; }
body.ch-studio-look .ch-contact-faq details { border: 0 !important; border-bottom: 2px solid var(--px-ink) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
body.ch-studio-look .ch-contact-faq summary { font-family: "HS Display", sans-serif; font-weight: 400 !important; }

/* ---------------------------------------------------------------- News */
body.ch-studio-look .ch-news-grid > article, body.ch-studio-look .ch-news-grid > * > article { border: 2px solid var(--px-ink) !important; border-radius: 22px !important; background: var(--px-card) !important; box-shadow: none !important; overflow: hidden; transition: transform .35s var(--px-ease), box-shadow .35s var(--px-ease); }
body.ch-studio-look .ch-news-grid article:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--px-red) !important; }
body.ch-studio-look .ch-news-card__image { border-bottom: 2px solid var(--px-ink); }
body.ch-studio-look .ch-news-grid article :is(h2, h3) { font-family: "HS Display", sans-serif; font-weight: 400 !important; letter-spacing: -.02em; }
body.ch-studio-look .ch-news-empty { border: 2px dashed var(--px-ink) !important; border-radius: 24px !important; background: transparent !important; }

/* ---------------------------------------------------------------- Policy pages */
body.ch-studio-look .ch-policy-toc { border: 2px solid var(--px-ink) !important; border-radius: 20px !important; background: var(--px-card) !important; box-shadow: none !important; }
body.ch-studio-look .ch-policy-toc a { color: var(--px-ink) !important; }
body.ch-studio-look .ch-policy-toc a:hover, body.ch-studio-look .ch-policy-toc a[aria-current] { color: var(--px-red) !important; }
body.ch-studio-look .ch-policy-toc :is(h2, h3, strong, p:first-child) { font-family: "HS Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
body.ch-studio-look .ch-policy-notice { color: var(--px-paper); border: 0 !important; border-radius: 18px !important; background: var(--px-ink) !important; }
body.ch-studio-look .ch-policy-notice * { color: var(--px-paper) !important; }
body.ch-studio-look .ch-policy-notice :is(svg, .ch-policy-notice__icon, i) { color: var(--px-red) !important; }
body.ch-studio-look .ch-policy-document h2 { font-size: clamp(24px, 2.6vw, 34px) !important; }
body.ch-studio-look .ch-policy-document li::marker, body.ch-studio-look .ch-policy-document li::before { color: var(--px-red) !important; }
body.ch-studio-look .ch-policy-document a { color: var(--px-red-2) !important; }

/* ---------------------------------------------------------------- Our Work */
body.ch-studio-look .cow-tabs { gap: 8px; }
body.ch-studio-look .cow-tab { color: var(--px-ink) !important; border: 2px solid var(--px-ink) !important; border-radius: 999px !important; background: transparent !important; box-shadow: none !important; font-family: "HS Mono", monospace; font-size: 12.5px !important; font-weight: 500 !important; letter-spacing: .06em; text-transform: uppercase; }
body.ch-studio-look .cow-tab.is-active, body.ch-studio-look .cow-tab[aria-current] { color: var(--px-paper) !important; background: var(--px-ink) !important; }
body.ch-studio-look .cow-card { border: 2px solid var(--px-ink) !important; border-radius: 22px !important; background: var(--px-card) !important; box-shadow: none !important; overflow: hidden; transition: transform .35s var(--px-ease), box-shadow .35s var(--px-ease); }
body.ch-studio-look .cow-card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--px-red) !important; }
body.ch-studio-look .cow-card__bar { background: var(--px-ink) !important; color: var(--px-paper) !important; }
body.ch-studio-look .cow-card__type { color: #fff !important; background: var(--px-red) !important; border-radius: 0 !important; font-family: "HS Mono", monospace; }
body.ch-studio-look .cow-card__body :is(h2, h3) { font-family: "HS Display", sans-serif; font-weight: 400 !important; }
body.ch-studio-look .cow-card__link, body.ch-studio-look .cow-card__result { color: var(--px-red-2) !important; }
body.ch-studio-look .cow-play__icon { color: #fff !important; background: var(--px-red) !important; box-shadow: none !important; }
body.ch-studio-look .cow-btn { color: #fff !important; background: var(--px-red) !important; background-image: none !important; border: 0 !important; border-radius: 999px !important; box-shadow: none !important; }
body.ch-studio-look .cow-cta, body.ch-studio-look .cow-cta__inner { color: #fff; border: 0 !important; border-radius: 30px !important; background: var(--px-red) !important; background-image: none !important; box-shadow: none !important; }
body.ch-studio-look .cow-cta :is(h2, h3) { color: var(--px-ink) !important; }
body.ch-studio-look .cow-cta p { color: #fff !important; }
body.ch-studio-look .cow-cta .cow-btn { color: var(--px-paper) !important; background: var(--px-ink) !important; }
body.ch-studio-look .cow-empty { border: 2px dashed var(--px-ink) !important; border-radius: 24px !important; background: transparent !important; }

/* ---------------------------------------------------------------- 404 */
body.ch-studio-look.error404 .ch-content { min-height: 78vh; display: grid; align-items: center; color: #fff; background: var(--px-red); }
body.ch-studio-look.error404 .ch-content .ch-kicker { color: var(--px-ink) !important; font-family: "HS Word", sans-serif !important; font-size: clamp(140px, 30vw, 420px) !important; line-height: .82 !important; letter-spacing: -.01em !important; text-transform: none !important; }
body.ch-studio-look.error404 .ch-content h1 { color: #fff !important; font-family: "HS Display", sans-serif; font-weight: 400 !important; font-size: clamp(30px, 4vw, 60px) !important; letter-spacing: -.035em !important; }
body.ch-studio-look.error404 .ch-content p { color: #fff !important; }
body.ch-studio-look.error404 .ch-content .ch-button { color: var(--px-paper) !important; background: var(--px-ink) !important; background-image: none !important; border: 0 !important; border-radius: 999px !important; box-shadow: none !important; }
body.ch-studio-look.error404 .ch-content .ch-button:hover { color: var(--px-ink) !important; background: var(--px-paper) !important; }

@media (prefers-reduced-motion: reduce) {
	body.ch-studio-look :is(.ch-about-principle, .ch-about-paths__grid > *, .ch-news-grid article, .cow-card) { transition: none; }
	body.ch-studio-look :is(.ch-about-principle, .ch-about-paths__grid > *, .ch-news-grid article, .cow-card):hover { transform: none; }
}
body.ch-studio-look .ch-contact-routes > article > span { color: var(--px-red) !important; background: none !important; border: 0 !important; font-family: "HS Word", sans-serif; font-size: 34px !important; line-height: 1 !important; }
body.ch-studio-look .ch-contact-routes > article strong { font-family: "HS Display", sans-serif; font-weight: 400 !important; }
body.ch-studio-look .ch-about-cta .ch-content-button:not(.ch-content-button--ghost) { color: var(--px-paper) !important; background: var(--px-ink) !important; border: 2px solid var(--px-ink) !important; border-radius: 999px !important; box-shadow: none !important; }
body.ch-studio-look .ch-about-cta .ch-content-button--ghost { color: #fff !important; background: transparent !important; border: 2px solid #fff !important; border-radius: 999px !important; }
body.ch-studio-look .ch-standard-hero .ch-content-button:not(.ch-content-button--ghost) { color: var(--px-paper) !important; background: var(--px-ink) !important; border: 2px solid var(--px-ink) !important; }
body.ch-studio-look.error404 .ch-content .ch-kicker { margin-bottom: .08em; }

/* 1.4.403: tool page heading block */
.ch-tool-intro { max-width: 1180px; margin: 8px auto 22px; padding: 0 16px; }
.ch-tool-intro__title { margin: 0 0 10px; font-family: var(--font-heading, inherit); font-weight: 400; font-size: clamp(32px, 4.6vw, 64px); line-height: 1; letter-spacing: -.035em; color: var(--text-primary, inherit); }
.ch-tool-intro__lead { max-width: 760px; margin: 0 0 10px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--text-secondary, inherit); }
.ch-tool-intro__cost { max-width: 760px; margin: 0 0 4px; font-size: 15px; line-height: 1.5; color: var(--text-primary, inherit); }
.ch-tool-intro__date { margin: 0; font-size: 13px; color: var(--text-muted, inherit); }

/* 1.4.403: website template category pages (/templates/<type>/) */
.ch-tplcat__crumbs { margin: 0 0 14px; font-size: 13px; }
.ch-tplcat__crumbs a { color: inherit; }
.ch-tplcat__designs, .ch-tplcat__faq, .ch-tplcat__more { padding-top: clamp(40px, 6vw, 72px); }
.ch-tplcat__designs > h2, .ch-tplcat__faq > h2, .ch-tplcat__more > h2 { margin: 0 0 24px; font-family: var(--font-heading, inherit); font-weight: 400; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -.03em; }
.ch-tplcat__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.ch-tplcat__card { display: flex; flex-direction: column; overflow: hidden; border: 1.5px solid var(--px-ink, #0d0d0d); border-radius: 18px; background: var(--px-card, #fff); }
.ch-tplcat__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1.5px solid var(--px-ink, #0d0d0d); background: var(--px-paper, #f4f1ea); }
.ch-tplcat__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ch-tplcat__card h3 { margin: 16px 18px 4px; font-size: 20px; line-height: 1.2; }
.ch-tplcat__card p { margin: 0 18px 10px; font-size: 14.5px; line-height: 1.5; }
.ch-tplcat__meta { font-weight: 600; color: var(--px-red-2, #b80c20); }
.ch-tplcat__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto !important; padding: 6px 0 18px; }
.ch-tplcat__btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1.5px solid var(--px-ink, #0d0d0d); border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; color: #fff; background: var(--px-red, #d90f26); }
.ch-tplcat__btn:hover, .ch-tplcat__btn:focus-visible { background: var(--px-ink, #0d0d0d); color: #fff; }
.ch-tplcat__btn--ghost { color: var(--px-ink, #0d0d0d); background: transparent; }
.ch-tplcat__btn--ghost:hover, .ch-tplcat__btn--ghost:focus-visible { color: #fff; }
.ch-tplcat__prices { margin-top: 26px; }
.ch-tplcat__faq details { max-width: 860px; border-top: 1.5px solid var(--px-line, #d6cfc0); padding: 16px 0; }
.ch-tplcat__faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.ch-tplcat__faq details p { margin: 10px 0 0; line-height: 1.6; }
.ch-tplcat__more { padding-bottom: clamp(48px, 7vw, 96px); }
.ch-tplcat__more ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ch-tplcat__more a { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--px-ink, #0d0d0d); border-radius: 999px; text-decoration: none; color: var(--px-ink, #0d0d0d); font-size: 14px; }
.ch-tplcat__more a:hover, .ch-tplcat__more a:focus-visible { color: #fff; background: var(--px-ink, #0d0d0d); }


/* 1.4.406: both markets' prices under the price on product pages (inc/seo-fixes-4.php). */
.ch-market-note.ch-product-markets { max-width: none; margin: 8px 0 18px; text-align: left; font-size: 14px; }

/* 1.4.407: product gallery without the jump (inc/speed-fixes.php). Measured on a phone-width
   Realty page: the gallery was 3,323px tall for a moment while WooCommerce's slider set itself up
   (each slide as wide as the whole slide strip), then 400px. Now the pictures never get wider than
   the gallery, the slides sit in one row while the slider starts, and before it starts the extra
   pictures are square like the final thumbnails, with a spare row when the thumbnails will need one.
   Final layout and the slider itself are unchanged. */
.ch-gallery-pending { container-type: inline-size; }
.ch-gallery-pending .woocommerce-product-gallery__image img { max-width: 100cqw; }
.ch-gallery-pending .flex-viewport .woocommerce-product-gallery__wrapper { display: flex; align-items: flex-start; }
.ch-gallery-pending:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(n+2) img { aspect-ratio: 1 / 1; object-fit: cover; height: auto; }
.ch-gallery-pending.woocommerce-product-gallery--columns-4:not(:has(.flex-viewport)):has(.woocommerce-product-gallery__image:nth-child(4n+5):last-child)::after { content: ""; display: block; aspect-ratio: 4 / 1; }
