/**
 * Tender Care — layout shell
 */
:root {
	--tc-shell: 1440px;
	--tc-content: 1200px;
	--tc-header-h: 94px;
	--ease: cubic-bezier(0.22, 0.68, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

img,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

/* Match tendercarelc/style.css — unstyled buttons stay transparent (e.g. .tc-card__select). */
button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.shell {
	width: 100%;
	max-width: var(--tc-shell);
	margin-inline: auto;
	padding-inline: var(--tc-gut);
}

/*
 * FRONTEND ONLY: no gap between section blocks (matches HTML).
 * The editor keeps a gap via assets/css/editor.css so “+” insert still works.
 */
body:not(.block-editor-iframe__body) {
	--wp--style--block-gap: 0px;
}

body:not(.block-editor-iframe__body) .entry-content.is-layout-flow > * + *,
body:not(.block-editor-iframe__body) .wp-block-post-content.is-layout-flow > * + * {
	margin-block-start: 0 !important;
}

.shell--narrow,
.narrow {
	max-width: 760px;
}

/*
 * Sticky header (matches HTML style.css).
 * FSE wraps the header block in .wp-block-template-part of equal height, which
 * defeats position:sticky on .header alone — stick the wrapper instead.
 */
.wp-site-blocks > .wp-block-template-part:has(.header),
.wp-site-blocks > .header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 253, 248, 0.98);
}

body.admin-bar .wp-site-blocks > .wp-block-template-part:has(.header),
body.admin-bar .wp-site-blocks > .header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.skip {
	position: absolute;
	left: -9999px;
}

.skip:focus {
	left: 16px;
	top: 16px;
	z-index: 999;
	background: var(--tc-rose);
	color: #fff;
	padding: 12px 20px;
	border-radius: 8px;
}

:focus-visible {
	outline: 3px solid var(--tc-rose);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Temporary scaffold notice — remove when homepage is built */
.tc-scaffold {
	max-width: 720px;
	margin: 80px auto;
	padding: 40px;
	background: var(--tc-white);
	border: 1px solid var(--tc-line);
	border-radius: 8px;
}

.tc-scaffold h1 {
	font-size: 42px;
	margin-bottom: 16px;
}

.tc-scaffold p {
	margin-bottom: 12px;
}

.tc-scaffold code {
	font-size: 0.9em;
	background: var(--tc-warm-sand);
	padding: 2px 6px;
	border-radius: 4px;
}
