/* WordPress / Gutenberg wrappers for the Adelaide Barks design.
   Loaded after styles.css and utilities.css. */

.wp-site-blocks,
.wp-block-post-content,
main.wp-block-group {
	margin: 0;
	padding: 0;
}

/* Template-part wrappers would trap the sticky header inside their own height. */
.wp-site-blocks > .wp-block-template-part {
	display: contents;
}

/* Buttons, breadcrumbs and short labels are paragraphs in the editor; on the
   page the paragraph steps aside so its contents sit exactly as designed. */
p.btn-wrap,
p.span-wrap {
	display: contents;
}

/* The breadcrumb's wrapper paragraph must not pick up the hero's lead-paragraph style. */
.page-hero .breadcrumb > p {
	max-width: none;
	margin: 0;
	color: inherit;
	font-size: inherit;
}

/* Whole-card links: the heading carries the link and stretches over the card.
   Turned off in the editor (editor.css) so the text stays clickable there. */
.is-card-link {
	position: relative;
}

.is-card-link a.card-link {
	color: inherit;
	text-decoration: none;
}

.is-card-link a.card-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Hours: a core Table block (figure.hours > table). */
.wp-block-table.hours {
	margin-bottom: 0;
	overflow-x: visible;
}

.wp-block-table.hours table {
	width: 100%;
	border-collapse: collapse;
}

.wp-block-table.hours th,
.wp-block-table.hours td {
	border: 0;
	word-break: normal;
}

.wp-block-table.hours tr + tr th,
.wp-block-table.hours tr + tr td {
	border-top: 1px solid var(--taupe);
}

/* Lists made of cards keep the design's bare list. */
ul.wp-block-group,
ol.wp-block-group {
	list-style: none;
}

/* Core list styles must not override the design's tick lists. */
.wp-block-list {
	box-sizing: border-box;
}

/* Enquiry form. */
.enquiry-form {
	margin-top: 1.5rem;
}

.form-status {
	margin: 0 0 1.25rem;
	padding: .9rem 1.1rem;
	border-radius: var(--radius-sm);
	font-size: var(--fs-sm);
	font-weight: 600;
}

.form-status.is-sent {
	background: #e9f1e1;
	color: #3f4d2b;
}

.form-status.is-error {
	background: #f8e6e3;
	color: #7a2a1f;
}

.form-note a {
	color: var(--accent-deep);
	font-weight: 700;
}

.hp {
	position: absolute !important;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.u-mt-1rem { margin-top: 1rem !important; }
.u-mt-1-25rem { margin-top: 1.25rem !important; }

/* Footer credit line. */
.site-footer__legal a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* The map is a Custom HTML block; keep its frame full width. */
.wp-block-html iframe.map-embed {
	width: 100%;
}
