/*
 * Creative Chinuch: shared styles (ported from the V2 site).
 * Section-specific styles live with their blocks in /blocks/<name>/style.css
 * and only load on pages that use them.
 */

:root {
	--cc-pink: var(--wp--preset--color--pink, #EC297B);
	--cc-orange: var(--wp--preset--color--orange, #F05A28);
	--cc-ink: var(--wp--preset--color--ink, #111111);
	--cc-paper: var(--wp--preset--color--paper, #ffffff);
	--cc-graphite: var(--wp--preset--color--graphite, #3C3E43);
	--cc-stone: var(--wp--preset--color--stone, #5A5C61);
	--cc-mist: var(--wp--preset--color--mist, #F1F1F1);
	--cc-line: var(--wp--preset--color--line, #E3E3E3);
	/* One side margin for the whole site: the header's. Every section's content lines up with the logo on the left and the Start a project button on the right. */
	--cc-gutter: var(--wp--custom--gutter, clamp(16px, 4vw, 80px));
	--cc-edge: var(--cc-gutter);
	--cc-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base ---------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cc-paper); color: var(--cc-ink); font-family: var(--wp--preset--font-family--body, "Inter Tight", system-ui, sans-serif); overflow-x: clip; }
img { max-width: 100%; height: auto; }
.cc-sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.he, [lang="he"] { font-family: var(--wp--preset--font-family--hebrew, "Frank Ruhl Libre", "Times New Roman", serif); }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks p, .wp-site-blocks h1, .wp-site-blocks h2, .wp-site-blocks h3, .wp-site-blocks h4, .wp-site-blocks figure { margin-top: 0; margin-bottom: 0; }

/* Page in / page out --------------------------------------------------------- */
@keyframes pgIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes inUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes veil { from { opacity: 1; } to { opacity: 0; } }
.wp-site-blocks { transition: opacity .35s ease; }
.home .wp-site-blocks { animation: pgIn .6s ease both; }
body.cc-leaving .wp-site-blocks { opacity: 0 !important; }
.cc-veil { position: fixed; inset: 0; z-index: 100; background: var(--cc-pink); pointer-events: none; animation: veil 1s cubic-bezier(.4, 0, .2, 1) both; }
.cc-in { animation: inUp 1s var(--cc-ease) both; }
.cc-d-100 { animation-delay: 100ms; } .cc-d-150 { animation-delay: 150ms; } .cc-d-200 { animation-delay: 200ms; }
.cc-d-250 { animation-delay: 250ms; } .cc-d-300 { animation-delay: 300ms; } .cc-d-350 { animation-delay: 350ms; }
.cc-d-400 { animation-delay: 400ms; } .cc-d-450 { animation-delay: 450ms; } .cc-d-500 { animation-delay: 500ms; }
.cc-d-550 { animation-delay: 550ms; } .cc-d-600 { animation-delay: 600ms; } .cc-d-650 { animation-delay: 650ms; }
.cc-d-700 { animation-delay: 700ms; } .cc-d-750 { animation-delay: 750ms; } .cc-d-800 { animation-delay: 800ms; }
.cc-d-900 { animation-delay: 900ms; } .cc-d-1000 { animation-delay: 1000ms; }

/* Header: fixed bar, logo + inline links (no hamburger) ---------------------- */
/* The bar takes the page's own colour (white, near-black or pink, see the skins below), slightly see-through. */
.cc-site-header { --cc-hdr-bg: rgba(255, 255, 255, .9); position: fixed; top: 0; left: 0; right: 0; z-index: 30; padding: clamp(12px, 1.35vw, 26px) var(--cc-gutter); background: var(--cc-hdr-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); transition: background-color .45s ease, box-shadow .45s ease; }
.admin-bar .cc-site-header { top: var(--wp-admin--admin-bar--height, 0px); }
body.cc-hdr-pink .cc-site-header { --cc-hdr-bg: color-mix(in srgb, var(--cc-pink) 94%, transparent); box-shadow: none; }
/* Revision report #2: full horizontal logo (symbol + name), a thin divider, even uppercase links
   with a pink underline on the current page, and a pink "Start a project" pill on the right. */
.cc-hdr { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.cc-hdr__brand { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 28px); flex: none; padding-right: clamp(16px, 2.4vw, 40px); margin-right: clamp(4px, 1vw, 16px); border-right: 1.5px solid currentColor; line-height: 1; }
.cc-hdr__logo { flex: none; width: 44px; height: 44px; margin: 0; }
.cc-hdr__logo a, .cc-hdr__logo img { display: block; width: 100% !important; height: 100% !important; object-fit: contain; }
.cc-hdr__logo img { transition: filter .45s ease; }
.cc-hdr__name { margin: 0; font-size: clamp(16.74px, 1.09vw, 20.46px); font-weight: 800; letter-spacing: -0.045em; text-transform: uppercase; white-space: nowrap; }
.cc-hdr__name a { color: inherit; text-decoration: none; }
.cc-hdr__name a::after { content: "®" / ""; font-size: .45em; font-weight: 600; vertical-align: super; margin-left: 1px; }
.cc-hdr__nav .wp-block-navigation__container { display: flex; flex-wrap: wrap; gap: 4px clamp(18px, 2.6vw, 44px); }
.cc-hdr__nav { font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.cc-hdr__nav .wp-block-navigation-item__content { position: relative; padding: 6px 0; color: var(--cc-ink); text-decoration: none; transition: color .3s ease; }
.cc-hdr__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--cc-pink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--cc-ease); }
.cc-hdr__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content[aria-current="page"]::after { transform: scaleX(1); }
.cc-hdr__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { text-transform: none; letter-spacing: -0.01em; }
.cc-hdr__cta { margin: 0 0 0 auto; flex: none; }
.cc-hdr__start .wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; min-height: clamp(44px, 2.8vw, 52px); padding: 0 clamp(20px, 1.45vw, 28px); border-radius: 999px; background: var(--cc-pink); color: #ffffff; font-size: clamp(14px, .85vw, 16px); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background-color .25s ease, color .25s ease; }
.cc-hdr__start .wp-block-button__link::after { content: "→" / ""; font-weight: 400; transition: transform .25s var(--cc-ease); }
.cc-hdr__start .wp-block-button__link:hover, .cc-hdr__start .wp-block-button__link:focus-visible { background: var(--cc-ink); color: #ffffff; }
.cc-hdr__start .wp-block-button__link:hover::after { transform: translateX(3px); }
body.cc-hdr-pink .cc-hdr__start .wp-block-button__link, body.page-template-page-pink .cc-hdr__start .wp-block-button__link { background: #ffffff; color: var(--cc-pink); }
body.cc-hdr-dark .cc-hdr__start .wp-block-button__link:hover, body.page-template-page-dark .cc-hdr__start .wp-block-button__link:hover, body.page-template-page-call .cc-hdr__start .wp-block-button__link:hover { background: #ffffff; color: var(--cc-ink); }
body.cc-hdr-dark .cc-hdr__name, body.cc-hdr-pink .cc-hdr__name, body.page-template-page-dark .cc-hdr__name, body.page-template-page-call .cc-hdr__name, body.page-template-page-pink .cc-hdr__name,
body.cc-hdr-dark .cc-hdr__brand, body.cc-hdr-pink .cc-hdr__brand, body.page-template-page-dark .cc-hdr__brand, body.page-template-page-call .cc-hdr__brand, body.page-template-page-pink .cc-hdr__brand { color: #ffffff; }
body.cc-hdr-pink .cc-hdr__nav .wp-block-navigation-item__content::after, body.page-template-page-pink .cc-hdr__nav .wp-block-navigation-item__content::after { background: #ffffff !important; }
@media (max-width: 1100px) { .cc-hdr__name { display: none; } .cc-hdr__brand { padding-right: 16px; } }
@media (max-width: 720px) { .cc-hdr .cc-hdr__cta { display: none; } .cc-hdr .cc-hdr__nav .wp-block-navigation__container { flex-direction: row; flex-wrap: nowrap; } .cc-hdr__brand { border-right: 0; padding-right: 0; margin-right: 0; } .cc-hdr__nav { margin-left: auto; } .cc-hdr__nav .wp-block-navigation__container { gap: 4px 16px; } .cc-hdr__nav { font-size: 13px; } }
.home .cc-hdr__nav .wp-block-navigation-item__content { transition-duration: .45s; }
.cc-hdr__nav .wp-block-navigation-item__content:hover,
.cc-hdr__nav .wp-block-navigation-item__content:focus-visible { color: var(--cc-pink); }
/* Header over pink (Home's pink scene) */
body.cc-hdr-pink .cc-hdr__nav .wp-block-navigation-item__content { color: var(--cc-paper); }
body.cc-hdr-pink .cc-hdr__nav .wp-block-navigation-item__content:hover { color: var(--cc-ink); }
body.cc-hdr-pink .cc-hdr__logo img { filter: brightness(0) invert(1); }
@media (max-width: 420px) {
	.cc-hdr__nav .wp-block-navigation__container { gap: 4px 12px; }
	.cc-hdr__nav { font-size: 12px; letter-spacing: 0; }
	.cc-hdr__logo { width: 36px; height: 36px; }
}
/* Dropdown (e.g. Services > each service): a white card on every page skin */
.cc-hdr__nav .wp-block-navigation-submenu__toggle { padding: 0 0 0 4px; color: inherit; }
.cc-hdr__nav .wp-block-navigation__submenu-icon svg { width: 10px; height: 10px; stroke: currentColor; }
.cc-site-header .cc-hdr__nav .wp-block-navigation__submenu-container { top: calc(100% + 10px); left: -18px; min-width: 260px !important; padding: 10px 0 !important; border: 0 !important; border-radius: 14px; background: #ffffff !important; box-shadow: 0 10px 40px rgba(0, 0, 0, .14); }
.cc-site-header .cc-hdr__nav .wp-block-navigation__submenu-container::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* keeps the menu open while the pointer crosses the gap */
body .cc-site-header .cc-hdr__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display: block; padding: 7px 18px; color: var(--cc-stone); font-size: 15px; white-space: nowrap; }
body .cc-site-header .cc-hdr__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
body .cc-site-header .cc-hdr__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible { color: var(--cc-pink); }

/* Page skins (page templates) ------------------------------------------------- */
/* Dark (About): near-black page, white header and logo, white veil (1.2 s) */
body.page-template-page-dark { background: #0B0B0B; color: #ffffff; }
body.page-template-page-dark .cc-site-header, body.page-template-page-call .cc-site-header { --cc-hdr-bg: rgba(11, 11, 11, .88); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
body.page-template-page-pink .cc-site-header { --cc-hdr-bg: color-mix(in srgb, var(--cc-pink) 94%, transparent); box-shadow: none; }
body.page-template-page-dark .cc-hdr__nav .wp-block-navigation-item__content { color: #ffffff; }
body.page-template-page-dark .cc-hdr__logo img { filter: brightness(0) invert(1); }
body.page-template-page-dark .cc-veil { background: #ffffff; animation-duration: 1.2s; }
/* Call (Book a Call): near-black page, white links, logo keeps its colours, pink veil */
body.page-template-page-call { background: #0B0B0B; color: #ffffff; }
body.page-template-page-call .cc-hdr__nav .wp-block-navigation-item__content { color: #ffffff; }
/* Pink (Contact): pink page, white header and logo, white veil (1.2 s) */
body.page-template-page-pink { background: var(--cc-pink); color: #ffffff; }
body.page-template-page-pink .cc-hdr__nav .wp-block-navigation-item__content { color: #ffffff; }
body.page-template-page-pink .cc-hdr__nav .wp-block-navigation-item__content:hover { color: var(--cc-ink); }
body.page-template-page-pink .cc-hdr__logo img { filter: brightness(0) invert(1); }
body.page-template-page-pink .cc-veil { background: #ffffff; animation-duration: 1.2s; }
body.page-template-page-dark .cc-ftr, body.page-template-page-call .cc-ftr, body.page-template-page-pink .cc-ftr { border-top: 0; }

/* Footer --------------------------------------------------------------------- */
.cc-ftr { position: relative; z-index: 1; background: var(--cc-paper); color: var(--cc-ink); padding: clamp(48px, 6vw, 88px) var(--cc-gutter) 32px; display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
body:not(.home) .cc-ftr { border-top: 1px solid var(--cc-line); }
.cc-ftr__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 40px 64px; }
.cc-ftr__top .cc-ftr__map { flex: 1 1 560px; }
.cc-ftr__about { flex: 0 0 auto; margin-left: auto; display: flex; flex-direction: column; gap: 6px; text-align: right; font-size: 15px; line-height: 1.5; color: var(--cc-graphite); }
.cc-ftr__about p { margin: 0 !important; white-space: nowrap; } /* one line each on wide screens */
@media (max-width: 900px) { .cc-ftr__about { text-align: left; flex: 1 1 100%; } .cc-ftr__about p { white-space: normal; } }
.cc-ftr__meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cc-ftr__meta a:hover, .cc-ftr__meta a:focus-visible { color: var(--cc-pink); }
.cc-ftr__map { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px 32px; max-width: 900px; }
.cc-ftr__col { display: flex; flex-direction: column; gap: 8px; }
.cc-ftr__h { margin: 0 0 8px !important; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.cc-ftr__l { font-size: 18px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; }
.cc-ftr__l a { color: var(--cc-ink); text-decoration: none; }
.cc-ftr__l a:hover, .cc-ftr__l a:focus-visible { color: var(--cc-pink); }
.cc-ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.cc-ftr__mark { font-size: clamp(35.2px, 7.04vw, 112.64px); font-weight: 800; line-height: .9; letter-spacing: -0.04em; color: var(--cc-pink); }
.cc-ftr__meta { margin-left: auto !important; font-size: 14px; font-weight: 500; text-align: right; }

/* Shared controls ------------------------------------------------------------- */
.cc-go, .wp-block-button.is-style-cc-go .wp-block-button__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--cc-ink); color: var(--cc-paper); text-decoration: none; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.cc-go:hover, .cc-go:focus-visible, .wp-block-button.is-style-cc-go .wp-block-button__link:hover { background: var(--cc-pink); color: var(--cc-paper); }
.cc-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--cc-ink); background: transparent; color: var(--cc-ink); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.cc-chip:hover { background: var(--cc-mist); }
.cc-chip.on, .cc-chip[aria-pressed="true"] { background: var(--cc-ink); color: var(--cc-paper); }
.cc-chip .ct { font-size: 12px; font-weight: 500; opacity: .6; font-variant-numeric: tabular-nums; }
.cc-lnk { color: var(--cc-ink); font-weight: 600; font-size: 15px; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.cc-lnk:hover, .cc-lnk:focus-visible { color: var(--cc-pink); }
:focus-visible { outline: 2px solid var(--cc-pink); outline-offset: 3px; }

/* Slideshow (Gallery block with class cc-slides) and its dots (revision report #5) */
.wp-block-gallery.cc-slides { position: relative; display: block !important; margin: 0; gap: 0; }
.wp-block-gallery.cc-slides > figure.wp-block-image { position: absolute !important; inset: 0; width: 100% !important; height: 100%; margin: 0 !important; opacity: 0; transition: opacity 1.1s ease; }
.wp-block-gallery.cc-slides > figure.wp-block-image:first-child, .wp-block-gallery.cc-slides > figure.is-on { opacity: 1; }
.wp-block-gallery.cc-slides:has(> figure.is-on) > figure:not(.is-on) { opacity: 0; }
.wp-block-gallery.cc-slides > figure.wp-block-image img { width: 100% !important; height: 100% !important; object-fit: cover; }
.cc-dots { position: absolute; left: 50%; bottom: clamp(20px, 3vw, 40px); z-index: 4; transform: translateX(-50%); display: flex; gap: 14px; padding: 14px 22px; border-radius: 999px; background: #ffffff; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
.cc-dots button { width: 16px; height: 16px; padding: 0; border: 2px solid var(--cc-ink); border-radius: 50%; background: transparent; cursor: pointer; }
.cc-dots button[aria-pressed="true"] { background: var(--cc-ink); }
.cc-dots button:hover { border-color: var(--cc-pink); }
.editor-styles-wrapper .wp-block-gallery.cc-slides > figure { position: relative !important; opacity: 1; }

/* Showreel player (group with class cc-player around a Video block; revision report #12) */
.cc-player { position: relative; overflow: hidden; border-radius: clamp(16px, 1.8vw, 28px); background: #ECECEC; aspect-ratio: 16 / 9; }
.cc-player .wp-block-video { position: absolute; inset: 0; margin: 0; }
.cc-player video { width: 100%; height: 100%; display: block; object-fit: cover; background: transparent; }
.cc-player__play { position: absolute; left: 50%; top: 50%; z-index: 3; width: clamp(72px, 7vw, 110px); height: clamp(72px, 7vw, 110px); transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: #ffffff; box-shadow: 0 10px 40px rgba(0, 0, 0, .15); cursor: pointer; transition: transform .3s var(--cc-ease), background-color .25s ease; }
.cc-player__play::after { content: ""; position: absolute; left: 54%; top: 50%; width: 30%; height: 34%; transform: translate(-50%, -50%); background: var(--cc-ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.cc-player__play:hover, .cc-player__play:focus-visible { transform: translate(-50%, -50%) scale(1.06); background: var(--cc-pink); }
.cc-player__play:hover::after { background: #ffffff; }
.cc-player.is-playing .cc-player__play, .cc-player.is-playing .cc-player__cap { display: none; }
.cc-player__cap { position: absolute; left: clamp(18px, 2.4vw, 36px); right: clamp(18px, 2.4vw, 36px); bottom: clamp(16px, 2vw, 30px); z-index: 2; display: flex; justify-content: space-between; gap: 16px; margin: 0 !important; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: clamp(12px, .95vw, 15px); letter-spacing: .08em; text-transform: uppercase; color: #6E6E6E; pointer-events: none; }
.cc-player::before { content: ""; position: absolute; z-index: 1; right: -8%; top: 50%; width: 62%; aspect-ratio: 1; transform: translateY(-50%) rotate(45deg); border-radius: 50%; border: clamp(40px, 6vw, 96px) solid rgba(0, 0, 0, .045); border-right-color: transparent; pointer-events: none; }
.cc-player.is-playing::before { display: none; }

/* Guide article (single post; revision report #3 and #4) ----------------------- */
.cc-guide-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px clamp(24px, 4vw, 72px); min-height: min(92vh, 900px); padding: clamp(110px, 8.4vw, 160px) 0 0 var(--cc-gutter); background: #E9E1DA; overflow: hidden; }
.cc-guide-hero__text { display: flex; flex-direction: column; gap: clamp(18px, 2.5vw, 48px); padding-bottom: clamp(40px, 5vw, 80px); position: relative; z-index: 2; }
.cc-guide-hero__cat, .cc-guide-hero__cat a { font-size: 14px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--cc-pink); text-decoration: none; }
.cc-guide-hero__title { margin: 0; max-width: 8.8em; font-size: clamp(36.96px, 4.31vw, 84.48px); font-weight: 700; line-height: .94; letter-spacing: -0.05em; text-wrap: balance; }
.cc-guide-hero__lead, .cc-guide-hero__lead p { max-width: 36em; margin: 0; font-size: clamp(15.81px, 1.04vw, 20.46px); line-height: 1.6; color: var(--cc-graphite); }
.cc-guide-hero__lead .wp-block-post-excerpt__more-text { display: none; }
.cc-guide-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; margin-top: clamp(0px, .8vw, 16px) !important; font-size: clamp(13px, .8vw, 15px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cc-graphite); }
.cc-guide-hero__date { padding-right: 28px; margin-right: 28px; border-right: 1.5px solid currentColor; }
.cc-guide-hero__date::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 12px; vertical-align: -2px; border: 2px solid currentColor; border-top-width: 4px; border-radius: 3px; box-sizing: border-box; }
.cc-guide-hero__img { align-self: stretch; margin: calc(-1 * clamp(110px, 8.4vw, 160px)) 0 0 !important; position: relative; }
.cc-guide-hero__img img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: center center; padding-top: calc(2 * clamp(12px, 1.35vw, 26px) + clamp(44px, 2.8vw, 52px)); box-sizing: border-box; } /* the photo starts below the header bar, so the book sits with equal space above and below */
.cc-guide-hero__img::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 22%; background: linear-gradient(90deg, #E9E1DA, rgba(233, 225, 218, 0)); }
@media (max-width: 860px) {
	.cc-guide-hero { grid-template-columns: 1fr; min-height: 0; padding-right: var(--cc-gutter); }
	.cc-guide-hero__img { aspect-ratio: 4 / 3; margin: 0 calc(-1 * var(--cc-gutter)) 0 calc(-1 * var(--cc-gutter)) !important; }
	.cc-guide-hero__img::after { display: none; }
	.cc-guide-hero__img img { padding-top: 0; }
}
/* Body: wide editorial layout. Plain paragraphs keep a readable measure; columns and cards use the full width. */
.cc-prose.cc-guide-body { max-width: none; padding: clamp(56px, 7vw, 112px) var(--cc-gutter) clamp(80px, 10vw, 140px); }
.cc-guide-body > p, .cc-guide-body > ul, .cc-guide-body > ol, .cc-guide-body > h2, .cc-guide-body > h3 { max-width: 760px; }
.cc-guide-body .wp-block-columns { gap: clamp(24px, 4.4vw, 88px); align-items: center !important; margin: clamp(40px, 3.6vw, 72px) 0 0 !important; }
.cc-guide-body h2 { font-size: clamp(26.4px, 2.9vw, 56.32px); }
.cc-guide-body p { font-size: clamp(15.81px, 1.18vw, 21.39px); line-height: 1.55; }
.cc-guide-body .wp-block-columns > .wp-block-column:first-child p { max-width: 30em; }
.cc-guide-body .wp-block-columns h2 { margin-top: 0 !important; }
.cc-guide-body .wp-block-column > * + * { margin-top: 1em !important; }
.cc-guide-body .cc-guide-media img { width: 100%; height: auto; aspect-ratio: 21 / 10; object-fit: cover; border-radius: clamp(14px, 1.4vw, 22px); }
.cc-guide-body .cc-guide-media { margin: 0 !important; }
.cc-guide-cards { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.3vw, 44px) !important; margin-top: 1.4em !important; }
.cc-guide-cards > .wp-block-group > * + * { margin-top: .5em !important; }
.cc-guide-cards figure { margin: 0 !important; }
.cc-guide-cards img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: clamp(12px, 1.2vw, 18px); }
.cc-guide-cards h3 { margin-top: .9em !important; font-size: clamp(17.67px, 1.53vw, 27.9px); }
.cc-guide-cards p { font-size: clamp(13.95px, 1.09vw, 19.53px); line-height: 1.5; color: var(--cc-graphite); }
@media (max-width: 1000px) { .cc-guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cc-guide-cards { grid-template-columns: 1fr; } }

/* A guide with a Flip book: the text on the left, the book on the right, staying in view as you read. */
.cc-guide-body:has(> .wp-block-cc-flipbook) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); column-gap: clamp(40px, 6vw, 120px); align-items: start; }
.cc-guide-body:has(> .wp-block-cc-flipbook) > * { grid-column: 1; }
.cc-guide-body > .wp-block-cc-flipbook + * { margin-top: 0 !important; }
.cc-guide-body > .wp-block-cc-flipbook { grid-column: 2; grid-row: 1 / span 80; position: sticky; top: calc(2 * clamp(12px, 1.35vw, 26px) + clamp(44px, 2.8vw, 52px) + 32px); max-width: none !important; margin-top: 0 !important; }
@media (max-width: 900px) {
	.cc-guide-body:has(> .wp-block-cc-flipbook) { display: block; }
	.cc-guide-body > .wp-block-cc-flipbook { position: static; margin: 0 0 1.5em !important; }
}
/* Standard templates (pages V2 didn't design: Latest, posts, plain pages, search, 404) */
.cc-std-head { padding: 128px var(--cc-gutter) clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 14px; }
.cc-std-label { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #8A8C90; }
.cc-std-title { margin: 0; max-width: 16em; font-size: clamp(42.24px, 7.04vw, 123.2px); font-weight: 700; line-height: .9; letter-spacing: -0.055em; }
.cc-std-lead { max-width: 32em; font-size: clamp(16.74px, 1.49vw, 22.32px); line-height: 1.4; color: var(--cc-graphite); }
.cc-std-search { max-width: 520px; margin-top: 12px; }
.cc-std-hero { margin: 0 var(--cc-gutter) clamp(40px, 5vw, 72px) !important; overflow: hidden; border-radius: clamp(10px, 1.2vw, 18px); }
.cc-std-hero img { display: block; width: 100%; height: auto; }
.cc-prose { padding: 0 var(--cc-gutter) clamp(80px, 10vw, 140px); max-width: 760px; font-size: clamp(16.74px, 1.3vw, 19.53px); line-height: 1.6; }
.cc-prose > * + * { margin-top: 1em !important; }
.cc-prose h2 { font-size: clamp(26.4px, 2.99vw, 45.76px); line-height: 1; letter-spacing: -0.04em; margin-top: 1.4em !important; }
.cc-prose h3 { font-size: clamp(20.46px, 1.86vw, 27.9px); letter-spacing: -0.02em; margin-top: 1.2em !important; }
.cc-prose a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cc-prose a:hover { color: var(--cc-pink); }
.cc-std-nav { display: flex; justify-content: space-between; gap: 24px; padding: clamp(32px, 4vw, 56px) var(--cc-gutter) clamp(80px, 10vw, 140px); border-top: 1px solid var(--cc-line); font-weight: 600; }
.cc-std-nav a:hover { color: var(--cc-pink); }
.cc-cards { padding: 0 var(--cc-gutter) clamp(80px, 10vw, 140px); }
.cc-cards__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 24px); list-style: none; margin: 0; padding: 0; }
.cc-cards__im { margin: 0 0 14px !important; overflow: hidden; border-radius: clamp(8px, .9vw, 14px); background: var(--cc-mist); }
.cc-cards__im img { display: block; width: 100%; height: 100% !important; object-fit: cover; filter: grayscale(1); transition: filter .45s ease, transform .7s var(--cc-ease); }
.cc-cards__grid li:hover .cc-cards__im img, .cc-cards__im a:focus-visible img { filter: none; transform: scale(1.04); }
.cc-cards__t { margin: 0 0 4px !important; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.cc-cards__t a:hover { color: var(--cc-pink); }
.cc-cards__c, .cc-cards__c a { font-size: 14px; color: #8A8C90; }
.cc-cards__pages { margin-top: clamp(40px, 5vw, 64px); font-weight: 600; }
.cc-cards__none { font-size: 20px; color: var(--cc-graphite); }
@media (hover: none) { .cc-cards__im img { filter: none; } }
.cc-404 { min-height: 80vh; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding: 140px var(--cc-gutter) clamp(48px, 6vw, 88px); box-sizing: border-box; }
.cc-404__t { margin: 0; font-size: clamp(105.6px, 22.88vw, 369.6px); font-weight: 700; line-height: .8; letter-spacing: -0.07em; color: var(--cc-pink); }
.cc-404 .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* Large screens (V2 scales the chrome up) ------------------------------------- */
@media (min-width: 1800px) {
	.cc-hdr__nav { font-size: 17px; }
	.cc-hdr__logo { width: 52px; height: 52px; }
	.cc-hdr__name { font-size: 25px; }
	.cc-hdr__start .wp-block-button__link { font-size: 17px; min-height: 52px; }
	.cc-ftr__l { font-size: 21px; }
	.cc-chip, .cc-go, .cc-tag, .cc-back { font-size: 17px; }
}
@media (min-width: 2400px) {
	.cc-hdr__nav { font-size: 21px; }
	.cc-hdr__logo { width: 66px; height: 66px; }
	.cc-ftr__l { font-size: 24px; }
	.cc-chip, .cc-go, .cc-tag, .cc-back { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.cc-in, .cc-veil, .home .wp-site-blocks { animation: none !important; }
	.cc-veil { opacity: 0; }
	.wp-site-blocks { transition: none; }
}
