/*
 * Blossom Nursery – WordPress additions.
 * Loaded after blossom.css (the approved design). Only adds what WordPress needs
 * and replaces the design's few inline styles with classes. No visual redesign.
 */

/* Skip link (visible only when focused by keyboard). */
.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 0 0 12px 12px;
	background: var(--purple);
	color: #fff;
	font-weight: bold;
}
.skip-link:focus { top: 0; }

/* WordPress screen-reader text. */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Keep the sticky header below the WordPress toolbar for logged-in editors. */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media screen and (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}

/* Main landmark receives focus from the skip link without an outline flash. */
main:focus { outline: none; }

/* Document title inside full policies (was a second <h1> in the prototype). */
.legal-document .legal-doc-title {
	font-family: 'Trebuchet MS', Arial, sans-serif;
	font-size: 31px;
	text-align: center;
	margin: 0 0 5px;
	line-height: 1.09;
	color: #73167d;
}

/* Cookie summary: soft "Read the Full Cookie Policy" banner (inline styles in the prototype). */
.legal-action-banner.legal-action-soft {
	background: linear-gradient(105deg, #fff0f8, #f7ebfb);
	color: #36143a;
	border: 1px solid #efd7ef;
}
.legal-action-soft .legal-action-icon { color: #86148b; }
.legal-action-soft h2 { color: #71177d; }
.legal-action-soft .btn { border: 1px solid #87178d; }

/* Ofsted page (inline styles in the prototype). */
.ofsted-years .ofsted-years-since {
	display: block;
	color: white;
	font-size: 10px;
	margin-top: 5px;
}
.ofsted-report-link {
	text-align: center;
	margin-top: 12px;
}

/* Contact page: click-to-load Google map. */
.contact-map-card .map-consent {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	box-sizing: border-box;
	min-height: 210px;
	height: 100%;
	padding: 8px 14px 38px;
	text-align: center;
	color: #482052;
	font-size: 13px;
	line-height: 1.4;
}
.contact-map-card .map-consent p { max-width: 420px; margin: 0; }
.contact-map-card iframe { min-height: 210px; }

/* Default page / document content from the WordPress editor. */
.legal-document img { height: auto; }
.legal-document .alignleft { float: left; margin: 0 16px 12px 0; }
.legal-document .alignright { float: right; margin: 0 0 12px 16px; }
.legal-document .aligncenter { margin-left: auto; margin-right: auto; }
.legal-document::after { content: ""; display: table; clear: both; }

/* Room pages scroll to the room details; leave room for the sticky header. */
.room-detail-panel { scroll-margin-top: 100px; }
.legal-intro,
.legal-info-card,
.cookie-current,
.legal-action-banner,
.funding-apply,
.funding-help { scroll-margin-top: 100px; }
