/**
 * Wiscohana Global Shell Prototype 1 for Blocksy.
 *
 * Every selector is child-theme-scoped. Blocksy renders the header, sticky
 * wrapper, responsive rows, search modal and off-canvas dialog; this file maps
 * Wiscohana publication tokens onto that native markup.
 */

/* Temporary launch-build mapping. Original warm/brick design tokens remain
 * defined in design-tokens.css for later review. Public shell consumers resolve
 * to true neutrals here; geometry and canonical image/SVG assets are untouched. */
body.wiscohana-blocksy-shell {
	--wiscohana-color-paper: #fff;
	--wiscohana-color-paper-deep: #e8e8e8;
	--wiscohana-color-paper-soft: #efefef;
	--wiscohana-color-ink: #272727;
	--wiscohana-color-muted: #6c6c6c;
	--wiscohana-color-surface-dark: #262626;
	--wiscohana-color-inverse: #fff;
	--wiscohana-color-inverse-muted: #c2c2c2;
	--wiscohana-color-rule: #d0d0d0;
	--wiscohana-color-rule-strong: #bebebe;
	--theme-palette-color-3: #272727;
	--theme-palette-color-4: #272727;
	--theme-palette-color-5: #e7e7e7;
	--theme-palette-color-6: #f1f1f1;
	--theme-palette-color-7: #fafafa;
	--theme-palette-color-8: #fff;
	--theme-form-field-border-initial-color: #949494;
	--theme-button-background-initial-color: #272727;
	--theme-button-background-hover-color: #111;
	--theme-button-text-initial-color: #fff;
	--theme-button-text-hover-color: #fff;
	--theme-normal-container-max-width: var(--wiscohana-width-editorial);
	--theme-narrow-container-max-width: var(--wiscohana-width-prose);
	--theme-container-edge-spacing: calc(100vw - (2 * var(--wiscohana-edge)));
	--theme-font-family: var(--wiscohana-font-interface);
	--theme-font-size: 1rem;
	--theme-font-weight: 400;
	--theme-line-height: 1.55;
	--theme-headings-color: var(--wiscohana-color-ink);
	--theme-text-color: var(--wiscohana-color-ink);
	--theme-link-initial-color: var(--wiscohana-color-ink);
	--theme-link-hover-color: #111;
	--theme-palette-color-1: var(--wiscohana-color-ink);
	--theme-palette-color-2: #111;
	--theme-form-font-family: var(--wiscohana-font-interface);
	--theme-form-field-border-focus-color: var(--wiscohana-color-ink);
	background: var(--wiscohana-color-paper);
	color: var(--wiscohana-color-ink);
	font-family: var(--wiscohana-font-interface);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.wiscohana-blocksy-shell :where(h1, h2, h3, h4, h5, h6),
body.wiscohana-blocksy-shell :where(article, .entry-content) :where(p, blockquote) {
	font-family: var(--wiscohana-font-editorial);
}

/* Privacy lists belong to the editorial prose, not the interface typography. */
body.wiscohana-blocksy-shell.privacy-policy .entry-content > .wp-block-list {
	font-family: var(--wiscohana-font-editorial);
}

body.wiscohana-blocksy-shell #main-container {
	background: var(--wiscohana-color-paper);
}

/* Shared keyboard focus treatment, including Blocksy-owned dialog controls. */
body.wiscohana-blocksy-shell :is(
	a,
	button,
	input,
	select,
	textarea
):focus-visible {
	border-radius: 2px;
	outline: 2px solid var(--wiscohana-color-inverse);
	outline-offset: 3px;
	box-shadow: 0 0 0 4px var(--wiscohana-color-ink);
}

/* Global Footer Prototype 1: Blocksy's native footer builder supplies the
 * rows, menu and widget areas; these portable selectors supply the Wiscohana
 * editorial presentation. */
body.wiscohana-blocksy-shell #footer.ct-footer {
	--wiscohana-footer-rule: rgba(245, 245, 245, 0.18);
	background: var(--wiscohana-color-surface-dark);
	color: var(--wiscohana-color-inverse);
}

body.wiscohana-blocksy-shell #footer.ct-footer [data-row] {
	border: 0;
	background: transparent;
}

body.wiscohana-blocksy-shell #footer.ct-footer .ct-container {
	width: calc(100% - (2 * var(--wiscohana-edge)));
	max-width: var(--wiscohana-width-site-max);
	padding-block: 0;
}

body.wiscohana-blocksy-shell #footer.ct-footer [data-row="top"] {
	padding-block: clamp(2.5rem, 5vw, 4.25rem) var(--wiscohana-space-6);
}

body.wiscohana-blocksy-shell #footer.ct-footer [data-row="top"] .ct-container {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(13rem, 0.85fr);
	align-items: start;
	gap: clamp(2.5rem, 7vw, 7rem);
}

body.wiscohana-blocksy-shell #footer.ct-footer [data-row="middle"] {
	padding-block: 0 var(--wiscohana-space-6);
}

body.wiscohana-blocksy-shell #footer.ct-footer [data-row="middle"] .ct-container {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.85fr);
	gap: clamp(2.5rem, 7vw, 7rem);
}

body.wiscohana-blocksy-shell #footer.ct-footer [data-row="bottom"] {
	border-top: 1px solid var(--wiscohana-footer-rule);
	padding-block: var(--wiscohana-space-5);
}

body.wiscohana-blocksy-shell #footer.ct-footer [data-column="ghost"] {
	display: none;
}

body.wiscohana-blocksy-shell #footer.ct-footer [data-column="menu"]::before {
	display: block;
	margin-block-end: var(--wiscohana-space-5);
	color: var(--wiscohana-color-inverse);
	content: "Explore";
	font-family: var(--wiscohana-font-interface);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.11em;
	line-height: 1.2;
	text-transform: uppercase;
}

body.wiscohana-blocksy-shell #footer.ct-footer .wiscohana-footer-brand {
	max-width: 34rem;
}

body.wiscohana-blocksy-shell #footer.ct-footer .wiscohana-footer-brand__logo {
	display: block;
	width: min(100%, 22rem);
	height: auto;
	margin-block-end: 1.5rem;
	/* The production SVG viewBox carries ~2.4% left-side whitespace.
	 * Shift the locked asset as a whole so its visible artwork axis aligns
	 * with the description; do not alter the SVG artwork or its proportions. */
	transform: translateX(-2.4%);
}

body.wiscohana-blocksy-shell #footer.ct-footer .wiscohana-footer-brand__description {
	max-width: 34rem;
	margin: 0;
	color: var(--wiscohana-color-inverse-muted);
	font-family: var(--wiscohana-font-editorial);
	font-size: clamp(1.05rem, 1.5vw, 1.25rem);
	line-height: 1.45;
}

body.wiscohana-blocksy-shell #footer.ct-footer .footer-menu-inline .menu {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wiscohana-space-3);
	padding: 0;
	margin: 0;
	list-style: none;
}

body.wiscohana-blocksy-shell #footer.ct-footer .footer-menu-inline .ct-menu-link {
	display: inline-flex;
	min-height: 2.75rem;
	align-items: center;
	padding: 0;
	color: var(--wiscohana-color-inverse-muted);
	font-family: var(--wiscohana-font-interface);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
}

body.wiscohana-blocksy-shell #footer.ct-footer .footer-menu-inline .ct-menu-link:hover {
	color: var(--wiscohana-color-inverse);
}

body.wiscohana-blocksy-shell #footer.ct-footer [data-row="top"] [data-column="menu"] .wiscohana-footer-connect {
	margin-block-start: var(--wiscohana-space-7);
}

/* Blocksy's footer menu link is a full-width flex item by default. Keep the
 * utility column itself fluid, but make each desktop link hug the shared
 * left axis instead of centering its label inside that column. */
@media (min-width: 48.876rem) {
	body.wiscohana-blocksy-shell #footer.ct-footer .footer-menu-inline .ct-menu-link {
		width: auto;
		flex: 0 0 auto;
		justify-content: flex-start;
		align-self: flex-start;
		text-align: left;
	}

}

body.wiscohana-blocksy-shell #footer.ct-footer .wiscohana-footer-connect {
	min-width: 0;
}

body.wiscohana-blocksy-shell #footer.ct-footer .wiscohana-footer-section-label {
	margin-block-end: var(--wiscohana-space-5);
	color: var(--wiscohana-color-inverse);
	font-family: var(--wiscohana-font-interface);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.11em;
	line-height: 1.2;
	text-transform: uppercase;
}

body.wiscohana-blocksy-shell #footer.ct-footer .wiscohana-footer-social-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wiscohana-space-3) var(--wiscohana-space-5);
	padding: 0;
	margin: 0;
	list-style: none;
}

body.wiscohana-blocksy-shell #footer.ct-footer .wiscohana-footer-social {
	display: inline-flex;
	width: 2.75rem;
	height: 2.75rem;
	min-height: 2.75rem;
	justify-content: center;
	align-items: center;
	color: var(--wiscohana-color-inverse-muted);
	border: 1px solid rgba(194, 194, 194, 0.4);
	border-radius: 999px;
	text-decoration: none;
	transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

body.wiscohana-blocksy-shell #footer.ct-footer .wiscohana-footer-social:hover,
body.wiscohana-blocksy-shell #footer.ct-footer .wiscohana-footer-social:focus-visible {
	color: var(--wiscohana-color-inverse);
	border-color: currentColor;
	background: rgba(255, 255, 255, 0.16);
}

body.wiscohana-blocksy-shell #footer.ct-footer .wiscohana-footer-social-icon {
	display: block;
	width: 1.2rem;
	height: 1.2rem;
	fill: currentColor;
}

body.wiscohana-blocksy-shell #footer.ct-footer .ct-footer-copyright {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	align-items: center;
	color: var(--wiscohana-color-inverse-muted);
	font-family: var(--wiscohana-font-interface);
	font-size: 0.8125rem;
	line-height: 1.4;
}

body.wiscohana-blocksy-shell #footer.ct-footer .ct-footer-copyright p {
	margin: 0;
}

body.wiscohana-blocksy-shell #footer.ct-footer .ct-footer-copyright a {
	color: var(--wiscohana-color-inverse);
	text-decoration: none;
}

body.wiscohana-blocksy-shell #footer.ct-footer .ct-footer-copyright a:hover {
	color: var(--wiscohana-color-inverse);
}

@media (max-width: 64rem) {
	body.wiscohana-blocksy-shell #footer.ct-footer [data-row="top"] .ct-container {
		gap: var(--wiscohana-space-7);
	}
}

@media (max-width: 48.875rem) {
	body.wiscohana-blocksy-shell #footer.ct-footer [data-row="top"] {
		padding-block: var(--wiscohana-space-7) var(--wiscohana-space-6);
	}

	body.wiscohana-blocksy-shell #footer.ct-footer [data-row="top"] .ct-container {
		display: flex;
		flex-direction: column;
		gap: var(--wiscohana-space-7);
	}

	body.wiscohana-blocksy-shell #footer.ct-footer .footer-menu-inline .ct-menu-link {
		font-size: 0.875rem;
		font-weight: 500;
	}

	body.wiscohana-blocksy-shell #footer.ct-footer [data-row="middle"] .ct-container {
		display: flex;
		justify-content: flex-start;
	}

	body.wiscohana-blocksy-shell #footer.ct-footer .wiscohana-footer-connect {
		width: 100%;
	}

	body.wiscohana-blocksy-shell #footer.ct-footer [data-row="top"] [data-column="menu"] .wiscohana-footer-connect {
		margin-block-start: var(--wiscohana-space-6);
	}

}

/* Native/generated public consumers that do not inherit the shell palette.
 * Front-end form styling is scoped to #main; plugin/admin screens are excluded. */
body.wiscohana-blocksy-shell #search-modal { background-color: rgb(21 21 21 / 98%); }
body.wiscohana-blocksy-shell #main .entry-card { --theme-box-shadow: 0px 12px 18px -6px rgb(55 55 55 / 4%); }
body.wiscohana-blocksy-shell #main .wpforms-required-label,
body.wiscohana-blocksy-shell #main label.wpforms-error { color: #272727; }
body.wiscohana-blocksy-shell #main .wpforms-submit { background-color: #272727; color: #fff; }
body.wiscohana-blocksy-shell #main .wpforms-submit:hover { background-color: #111; }

body.wiscohana-blocksy-shell #main .wpforms-container :is(input,textarea,select).wpforms-error { border-color: #272727; }
