/* Hynca Property Report
   Built to sit beside the mortgage calculator and read as the same tool. The
   token names, radius, grid, field and figure patterns all mirror hynca-mc.css
   so the two look like one family rather than two products.

   Like the calculator it inherits the theme's font and text colour and paints
   only with the accent. Unlike the calculator its accent defaults to the brand
   green rather than to inherit, because the palette is now signed off; the
   Display accent setting still overrides it.

   The accent must be a real colour, not currentColor. The filled buttons set
   their own colour to white, and currentColor inside an element resolves to
   that element's own colour, which paints them white on white. The calculator
   hit this first; the note is repeated here so it is not rediscovered. */

.hynca-pr {
	--hynca-pr-accent: #009444;
	--hynca-pr-accent-soft: #8fc640;
	--hynca-pr-line: rgba( 0, 0, 0, 0.12 );
	--hynca-pr-soft: rgba( 0, 0, 0, 0.035 );
	--hynca-pr-field-line: rgba( 0, 0, 0, 0.3 );
	--hynca-pr-field-bg: #fff;
	--hynca-pr-radius: 10px;
	font-family: inherit;
	color: inherit;
	line-height: 1.5;
	max-width: 100%;
}

/* No dark-mode variant. The site is light whatever the visitor's device is set
   to, so following prefers-color-scheme turned the lines white on a light page
   and the postcode box vanished on any phone or laptop in dark mode. Fields get
   a white fill and a firmer border so they read as boxes on the grey and
   pale-green section backgrounds as well as on white. */

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

.hynca-pr__title {
	margin: 0 0 0.75em;
	font-size: 1.5em;
}

.hynca-pr__section-title,
.hynca-pr__result-title {
	margin: 1.5rem 0 0.6rem;
	font-size: 1.1em;
}

.hynca-pr__subsection-title {
	margin: 1rem 0 0.4rem;
	font-size: 0.95em;
	opacity: 0.8;
}

/* The card, matching the calculator's body panel. */

.hynca-pr__form,
.hynca-pr-area {
	border: 1px solid var( --hynca-pr-line );
	border-radius: var( --hynca-pr-radius );
	padding: 1.25rem;
}

.hynca-pr-area {
	display: block;
}

/* Fields */

.hynca-pr__field {
	display: flex;
	flex-direction: column;
	gap: 0.3em;
	font-size: 0.9em;
	margin: 0 0 0.9rem;
}

.hynca-pr__label,
.hynca-pr__legend {
	font-weight: 600;
	opacity: 0.8;
}

.hynca-pr input[type="text"],
.hynca-pr input[type="email"],
.hynca-pr input[type="number"],
.hynca-pr select {
	background: var( --hynca-pr-field-bg );
	border: 1px solid var( --hynca-pr-field-line );
	border-radius: 6px;
	color: inherit;
	font: inherit;
	font-size: 1em;
	padding: 0.55em 0.7em;
	width: 100%;
}

.hynca-pr input:focus,
.hynca-pr select:focus {
	border-color: var( --hynca-pr-accent );
	outline: 2px solid var( --hynca-pr-accent );
	outline-offset: 1px;
}

.hynca-pr__input {
	max-width: 12rem;
}

.hynca-pr__select {
	max-width: 22rem;
}

.hynca-pr__fieldset {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
}

.hynca-pr__choice {
	display: flex;
	gap: 0.5em;
	align-items: center;
	padding: 0.35em 0;
	font-size: 0.95em;
}

.hynca-pr__choice input {
	width: auto;
}

.hynca-pr__submit {
	appearance: none;
	background: var( --hynca-pr-accent );
	border: 1px solid var( --hynca-pr-accent );
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	padding: 0.7em 1.4em;
}

.hynca-pr__submit:focus-visible {
	outline: 2px solid var( --hynca-pr-accent );
	outline-offset: 2px;
}

/* Headline figures, matching the calculator's figure panels. */

.hynca-pr__headline {
	background: var( --hynca-pr-soft );
	border-radius: var( --hynca-pr-radius );
	border-left: 3px solid var( --hynca-pr-accent );
	display: flex;
	flex-direction: column;
	gap: 0.15em;
	margin: 0 0 0.75rem;
	padding: 0.85rem 1rem;
}

.hynca-pr__figure {
	font-size: 1.6em;
	font-weight: 700;
	line-height: 1.15;
}

.hynca-pr__figure-label {
	font-size: 0.82em;
	opacity: 0.7;
}

.hynca-pr__change {
	margin: 0 0 0.75rem;
	font-size: 0.95em;
}

/* Lists: by type, streets, constraints. */

.hynca-pr__by-type,
.hynca-pr__streets,
.hynca-pr__constraints {
	margin: 0 0 0.75rem;
	padding: 0;
	list-style: none;
}

.hynca-pr__by-type-item {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0 1rem;
	padding: 0.45rem 0;
	border-bottom: 1px solid var( --hynca-pr-line );
	font-size: 0.95em;
}

.hynca-pr__street,
.hynca-pr__constraint {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid var( --hynca-pr-line );
	font-size: 0.95em;
}

.hynca-pr__by-type-value,
.hynca-pr__street-figure {
	font-variant-numeric: tabular-nums;
}

.hynca-pr__street-name,
.hynca-pr__constraint-label {
	font-weight: 600;
}

.hynca-pr__street-range,
.hynca-pr__constraint-name {
	font-size: 0.85em;
	opacity: 0.75;
}

.hynca-pr__facts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 1rem;
	margin: 0 0 1.25rem;
	font-size: 0.95em;
}

.hynca-pr__facts dt {
	font-weight: 600;
	opacity: 0.8;
	margin-top: 0.4rem;
}

.hynca-pr__facts dd {
	margin: 0;
}

/* Required wording. None of this may be collapsed, truncated, shrunk away or
   put behind a toggle. SPEC 9.1 and 9.4. */

.hynca-pr__risk-warning,
.hynca-pr__disclaimer {
	background: var( --hynca-pr-soft );
	border-radius: var( --hynca-pr-radius );
	border-left: 3px solid var( --hynca-pr-accent );
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
	font-size: 0.9em;
	line-height: 1.5;
}

/* Flags. Severity is shown by border weight plus a written label, never by
   colour alone: a red-amber-green scale here would read as a credit decision.
   That is a deliberate departure from the calculator's is-good / is-bad
   figures, which describe a calculation rather than a property. SPEC 6.4. */

.hynca-pr__flag {
	background: var( --hynca-pr-soft );
	border-radius: var( --hynca-pr-radius );
	border-left: 3px solid var( --hynca-pr-accent );
	margin: 0 0 0.75rem;
	padding: 0.8rem 1rem;
}

.hynca-pr__flag--high {
	border-left-width: 6px;
}

.hynca-pr__flag--medium {
	border-left-width: 4px;
}

.hynca-pr__flag--low,
.hynca-pr__flag--positive,
.hynca-pr__flag--info {
	border-left-width: 2px;
}

.hynca-pr__flag-severity {
	margin: 0 0 0.15rem;
	font-size: 0.72em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.7;
}

.hynca-pr__flag-title {
	margin: 0 0 0.3rem;
	font-weight: 700;
}

.hynca-pr__flag p:last-child {
	margin-bottom: 0;
}

.hynca-pr__flag-detail {
	font-size: 0.9em;
	margin: 0;
}

/* Supporting text */

.hynca-pr__caveat,
.hynca-pr__unavailable,
.hynca-pr__stale,
.hynca-pr__attribution,
.hynca-pr__notice,
.hynca-pr__cleared {
	margin: 0.5rem 0 0;
	font-size: 0.85em;
	opacity: 0.8;
}

.hynca-pr__unavailable {
	font-style: italic;
}

.hynca-pr__assumptions {
	margin: 0;
	padding-left: 1.1rem;
	font-size: 0.85em;
	opacity: 0.85;
}

.hynca-pr__assumptions li {
	margin-bottom: 0.25rem;
}

.hynca-pr__error {
	background: var( --hynca-pr-soft );
	border-left: 3px solid var( --hynca-pr-accent );
	border-radius: var( --hynca-pr-radius );
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	font-weight: 600;
}

.hynca-pr__footer {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var( --hynca-pr-line );
	font-size: 0.85em;
}

.hynca-pr-notice--blocked {
	border: 1px solid var( --hynca-pr-line );
	border-left: 3px solid var( --hynca-pr-accent );
	border-radius: var( --hynca-pr-radius );
	padding: 0.85rem 1rem;
	font-size: 0.9em;
}

/* Desktop is the secondary case: this is designed at 375px first. */

@media ( min-width: 40rem ) {
	.hynca-pr__facts {
		grid-template-columns: max-content 1fr;
	}

	.hynca-pr__facts dt,
	.hynca-pr__facts dd {
		margin-top: 0.3rem;
	}

	.hynca-pr__street,
	.hynca-pr__constraint {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: baseline;
		gap: 0 1rem;
	}
}

.hynca-pr__lead {
	border: 1px solid var( --hynca-pr-line );
	border-radius: var( --hynca-pr-radius );
	padding: 1.25rem;
	margin-top: 1.5rem;
}

.hynca-pr__consent {
	margin: 0.75rem 0;
	font-size: 0.85em;
	line-height: 1.5;
	opacity: 0.9;
}

.hynca-pr__consent p {
	margin: 0 0 0.5em;
}

.hynca-pr__notice {
	background: var( --hynca-pr-soft );
	border-left: 3px solid var( --hynca-pr-accent );
	border-radius: var( --hynca-pr-radius );
	padding: 0.75rem 1rem;
	font-size: 0.95em;
	opacity: 1;
}

.hynca-pr__coverage-summary {
	margin: 1.25rem 0 0;
	padding: 0.75rem 1rem;
	background: var( --hynca-pr-soft );
	border-radius: var( --hynca-pr-radius );
	font-size: 0.85em;
}

.hynca-pr__sectors {
	display: block;
	margin-top: 0.2rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	opacity: 0.75;
}

.hynca-pr__street-types {
	display: block;
	font-size: 0.8em;
	opacity: 0.75;
}

/* The EPC band chart, drawn the way the certificate draws it: A narrowest at
   the top, G widest at the bottom, in the certificate's own colours. The letter
   sits on the bar and the current and possible bands are named in words, so the
   colour is never the only thing carrying the meaning. */

/* The EPC chart, drawn as the GOV.UK certificate draws it. Its colours are the
   certificate's own, fixed whatever the theme, so the text on them is fixed too. */

.hynca-pr__epc-wrap {
	max-width: 44rem;
	margin: 0 0 0.75rem;
	overflow-x: auto;
}

.hynca-pr__epc-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #b1b4b6;
	background: #fff;
	color: #0b0c0c;
	font-variant-numeric: tabular-nums;
}

.hynca-pr__epc-table th {
	padding: 0.35rem 0.6rem;
	border: 0;
	border-bottom: 1px solid #b1b4b6;
	font-weight: 700;
	text-align: left;
	color: #0b0c0c;
	background: #fff;
}

.hynca-pr__epc-table td {
	height: 2.4rem;
	padding: 0;
	border: 0;
	vertical-align: middle;
}

.hynca-pr__epc-table .hynca-pr__epc-col {
	width: 5.5rem;
	border-left: 1px solid #b1b4b6;
	text-align: center;
}

.hynca-pr__epc-table td.hynca-pr__epc-score {
	width: 4.5rem;
	padding: 0 0.6rem;
	font-weight: 700;
	white-space: nowrap;
	/* The certificate tints the score column lighter than its band. */
	background-image: linear-gradient( rgba( 255, 255, 255, 0.4 ), rgba( 255, 255, 255, 0.4 ) );
}

.hynca-pr__epc-bar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	box-sizing: border-box;
	min-height: 2.4rem;
	padding: 0 0.6rem;
}

.hynca-pr__epc-letter {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	color: #0b0c0c;
}

.hynca-pr__epc-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	box-sizing: border-box;
	height: 2rem;
	min-width: 4.4rem;
	padding: 0 0.5rem 0 1.1rem;
	font-weight: 700;
	white-space: nowrap;
	color: #0b0c0c;
	clip-path: polygon( 0.9rem 0, 100% 0, 100% 100%, 0.9rem 100%, 0 50% );
}

.hynca-pr__epc-link {
	margin: 0 0 0.75rem;
}

@media ( max-width: 30rem ) {
	.hynca-pr__epc-table .hynca-pr__epc-col {
		width: 4.2rem;
	}

	.hynca-pr__epc-table td.hynca-pr__epc-score {
		width: 3.4rem;
		padding: 0 0.4rem;
		font-size: 0.8rem;
	}

	.hynca-pr__epc-letter {
		font-size: 1.1rem;
	}

	.hynca-pr__epc-arrow {
		min-width: 3.5rem;
		padding: 0 0.35rem 0 0.9rem;
		font-size: 0.8rem;
	}
}

.hynca-pr__expired {
	border-left: 3px solid currentColor;
	padding-left: 0.75rem;
}

/* ---------------------------------------------------------------------------
   Public postcode pages.
   
   These render through get_header() and get_footer(), so they sit outside
   whatever content container the theme would normally provide. That is why this
   block sets its own width and padding, where the shortcode never needs to: a
   shortcode is already inside the theme's column and a page is not.
   
   Scoped to .hynca-pr--page throughout. The report embed and the area blocks
   share the tokens above and must not pick up page furniture.
   --------------------------------------------------------------------------- */

.hynca-pr--page {
	--hynca-pr-charcoal: #58595b;
	--hynca-pr-gradient: linear-gradient( 135deg, #019547, #8fc640 );
	max-width: 46rem;
	margin: 0 auto;
	padding: 1.5rem 1.25rem 3rem;
}

.hynca-pr--page .hynca-pr__title {
	color: var( --hynca-pr-charcoal );
	font-size: 1.75rem;
	line-height: 1.2;
	margin: 0 0 0.35rem;
}

.hynca-pr--page .hynca-pr__lead {
	font-size: 1.05rem;
	margin: 0 0 1.25rem;
	opacity: 0.85;
}

/* Breadcrumb. Separators are generated, so they are not read out as content. */

.hynca-pr__breadcrumb {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
}

.hynca-pr__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hynca-pr__crumb {
	display: flex;
	align-items: center;
	gap: 0 0.4rem;
	opacity: 0.8;
}

.hynca-pr__crumb + .hynca-pr__crumb::before {
	content: "/";
	opacity: 0.45;
	speak: never;
}

.hynca-pr__crumb a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hynca-pr__crumb [aria-current="page"] {
	font-weight: 600;
	opacity: 1;
}

/* Sections become cards on a page, where on the embed they are plain blocks. */

/*
 * Sections are cards on the embed as well as on a page.
 *
 * They used to be plain blocks in the embed, which put the form in a bordered
 * card and then every result flush against the container edge underneath it. The
 * two read as different components rather than one tool, and on a theme whose
 * column has no padding of its own the results touched the edge of the screen.
 */
.hynca-pr__section {
	border: 1px solid var( --hynca-pr-line );
	border-radius: var( --hynca-pr-radius );
	background: var( --hynca-pr-soft );
	padding: 1.1rem 1.25rem;
	margin: 0 0 1rem;
}

.hynca-pr__section > :last-child {
	margin-bottom: 0;
}

.hynca-pr--page .hynca-pr__section-title {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
	color: var( --hynca-pr-charcoal );
}

/* Rows sit on one line once there is room for a figure beside the name. */

@media ( min-width: 34rem ) {
	.hynca-pr__street {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"name figure"
			"range figure";
		align-items: baseline;
		column-gap: 1rem;
	}

	.hynca-pr__street-name {
		grid-area: name;
	}

	.hynca-pr__street-figure {
		grid-area: figure;
		font-weight: 600;
		text-align: right;
	}

	.hynca-pr__street-range {
		grid-area: range;
	}
}

.hynca-pr--page .hynca-pr__street:last-of-type {
	border-bottom: 0;
	padding-bottom: 0;
}

/* The one call to action, in the brand gradient.
   
   Selectors are scoped with .hynca-pr--page deliberately. Without it these lose
   to the card rule above on specificity — two classes beats one — and the result
   is white text on a pale grey card, which is unreadable rather than merely
   unstyled. */

.hynca-pr--page .hynca-pr__section--cta {
	/*
	 * Solid green behind the text, with the brand gradient as a bar across the
	 * top. Running the gradient behind the text was the first attempt and it
	 * fails on contrast: white on the lime end, #8fc640, is about 2.2:1 where
	 * AA wants 4.5:1, so the right-hand side of the panel was the least legible
	 * part of it. White on the solid green matches the buttons the site already
	 * uses, and the gradient still reads as the brand where nothing has to be
	 * read through it.
	 */
	background: var( --hynca-pr-accent );
	border-color: transparent;
	border-top: 4px solid transparent;
	border-image: var( --hynca-pr-gradient ) 1;
	color: #fff;
}

.hynca-pr--page .hynca-pr__section--cta .hynca-pr__section-title,
.hynca-pr--page .hynca-pr__section--cta p {
	color: #fff;
}

.hynca-pr--page .hynca-pr__section--cta .hynca-pr__submit {
	background: #fff;
	border-color: #fff;
	color: #00713a;
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
}

.hynca-pr--page .hynca-pr__section--cta .hynca-pr__submit:hover,
.hynca-pr--page .hynca-pr__section--cta .hynca-pr__submit:focus-visible {
	background: rgba( 255, 255, 255, 0.92 );
	color: #00713a;
}

/* The property box sits inside the green call to action.
   Its form is part of the panel, not a card within it, so it drops the card
   styling and its label reads white like the rest of the panel. The address list
   runs the panel's width: a full address does not fit the 22rem other selects
   are given. */

.hynca-pr--page .hynca-pr__section--cta .hynca-pr--picker,
.hynca-pr--page .hynca-pr__section--cta .hynca-pr--picker .hynca-pr__form {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.hynca-pr--page .hynca-pr__section--cta .hynca-pr__label {
	color: #fff;
}

.hynca-pr--page .hynca-pr__section--cta .hynca-pr__select--address {
	width: 100%;
	max-width: 100%;
}

.hynca-pr--page .hynca-pr__attribution {
	margin-top: 1.25rem;
}

/* The risk warning must not be quieter on a page than it is in the embed. */

.hynca-pr--page .hynca-pr__risk-warning {
	margin-bottom: 1.25rem;
}

/* Nearby postcodes. Chips rather than a list: they are navigation, and a column
   of six short links reads as a gap in the page. */

.hynca-pr__nearby {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hynca-pr__nearby-item a {
	display: inline-block;
	border: 1px solid var( --hynca-pr-line );
	border-radius: 999px;
	padding: 0.35rem 0.8rem;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	color: inherit;
	background: #fff;
}

.hynca-pr__nearby-item a:hover,
.hynca-pr__nearby-item a:focus-visible {
	border-color: var( --hynca-pr-accent );
	color: var( --hynca-pr-accent );
}

/* The last-updated line. Quieter than body text but not as quiet as the
   attributions below it: it is a fact about the figures, not a licence notice. */

.hynca-pr__updated {
	margin: 1.5rem 0 0.5rem;
	padding-top: 0.75rem;
	border-top: 1px solid var( --hynca-pr-line );
	font-size: 0.85rem;
	opacity: 0.8;
}

/* ---------------------------------------------------------------------------
   Readable line lengths, whatever the container is.
   
   The embed sits inside whatever column the page author gives it, which can be
   very wide. A label-and-figure row justified across 1,600px leaves the name at
   one edge and the number at the other with an inch of nothing between them, and
   a paragraph that wide is hard to track back to the start of the next line.
   
   Capping the content rather than the component: the block still fills the
   column, so it does not look inset by accident, but nothing inside it stretches
   past the point where it stops being readable.
   --------------------------------------------------------------------------- */

.hynca-pr__by-type,
.hynca-pr__streets,
.hynca-pr__constraints,
.hynca-pr__facts,
.hynca-pr__headline {
	max-width: 46rem;
}

.hynca-pr__risk-warning,
.hynca-pr__caveat,
.hynca-pr__unavailable,
.hynca-pr__attribution,
.hynca-pr__updated,
.hynca-pr__lead,
.hynca-pr__section > p {
	max-width: 65ch;
}

/* Long unbroken strings must wrap rather than widen the block. An address or a
   school name has no spaces to break at in the worst case. */

.hynca-pr__street-name,
.hynca-pr__result-title,
.hynca-pr__facts dd {
	overflow-wrap: anywhere;
}

/* A flex or grid child will not shrink below its content without this, which is
   how a long name pushes a figure off the edge. */

.hynca-pr__street > span,
.hynca-pr__by-type-item > span {
	min-width: 0;
}

/* The summary card carries the heading, so its title needs no extra space above. */

.hynca-pr__section--summary .hynca-pr__result-title {
	margin-top: 0;
}

/* ---------------------------------------------------------------------------
   The form is a row of fields with the button at the end of it.
   
   The button used to be on a line of its own, which at any reasonable column
   width made it a full-width green bar several times larger than the field it
   submits. Now it sits beside the last field and takes only the width of its
   own label, wrapping underneath when there is not room.
   --------------------------------------------------------------------------- */

.hynca-pr__form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem 1rem;
}

.hynca-pr__form .hynca-pr__field {
	flex: 1 1 14rem;
	margin: 0;
	min-width: 0;
}

/* The mode line, the caveats and the address chooser take a line to themselves:
   a select holding a full address is not a 14rem field. */

.hynca-pr__form .hynca-pr__field:has( .hynca-pr__select--address ),
.hynca-pr__form .hynca-pr__fieldset,
.hynca-pr__form > .hynca-pr__caveat,
.hynca-pr__form > .hynca-pr__mode {
	flex: 1 1 100%;
}

/* Scoped to the form, or it loses to the two-class field rule above and inherits
   a 14rem basis — which makes the button stretch and wrap exactly as before. */

.hynca-pr__form .hynca-pr__field--action {
	flex: 0 0 auto;
}

.hynca-pr__submit-arrow {
	margin-left: 0.4em;
	font-weight: 400;
}

/* Below that, a full-width button reads as the obvious next step rather than as
   an oversized bar, because there is nothing beside it to be out of scale with. */

@media ( max-width: 26rem ) {
	.hynca-pr__form .hynca-pr__field--action {
		flex: 1 1 100%;
	}

	.hynca-pr__form .hynca-pr__submit {
		width: 100%;
	}
}

/* The locator map. Square, capped in width, with the marker placed by percentage
   so it stays on the point at any size. line-height 0 removes the gaps inline
   images otherwise leave between rows. */

.hynca-pr__map {
	margin: 0 0 1rem;
	max-width: 30rem;
}

.hynca-pr__map-frame {
	position: relative;
	overflow: hidden;
	border: 1px solid var( --hynca-pr-line );
	border-radius: var( --hynca-pr-radius );
	line-height: 0;
}

.hynca-pr__map-tiles {
	display: grid;
}

.hynca-pr__map-tiles img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
}

.hynca-pr__map-marker {
	position: absolute;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var( --hynca-pr-accent );
	box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.35 );
}

.hynca-pr__map-credit {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	opacity: 0.7;
}

/* ---------------------------------------------------------------------------
   Pages of their own use the width of the theme's content area.

   The page used to be a 46rem column in the middle of a wide screen, which read
   as cramped beside the rest of the site. Tables of figures now run the full
   width; running prose keeps a readable measure, because a paragraph the width
   of a desktop screen is hard to follow from one line to the next. The embed and
   the area blocks are untouched: they already sit in the theme's column.
   Since 0.48.0 notes and captions are uncapped as well; see below.
   --------------------------------------------------------------------------- */

.hynca-pr--page {
	max-width: 80rem;
}

.hynca-pr--page .hynca-pr__by-type,
.hynca-pr--page .hynca-pr__streets,
.hynca-pr--page .hynca-pr__constraints,
.hynca-pr--page .hynca-pr__facts,
.hynca-pr--page .hynca-pr__headline {
	max-width: none;
}

/* Notes and captions run the full width too. A cap on them wrapped one-sentence
   notes onto two short lines, which read as a mistake rather than as a measure;
   removed on the site owner's instruction, 13 September 2026. */

.hynca-pr--page .hynca-pr__risk-warning,
.hynca-pr--page .hynca-pr__caveat,
.hynca-pr--page .hynca-pr__unavailable,
.hynca-pr--page .hynca-pr__attribution,
.hynca-pr--page .hynca-pr__updated,
.hynca-pr--page .hynca-pr__lead,
.hynca-pr--page .hynca-pr__section > p {
	max-width: none;
}

/* The about box: the summary facts and the location in two columns, one under
   the other when there is not room for two 20rem columns. */

.hynca-pr__about {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( min( 20rem, 100% ), 1fr ) );
	gap: 0 2rem;
	align-items: start;
}

.hynca-pr__about-part > :last-child {
	margin-bottom: 0;
}

.hynca-pr__about-title {
	margin: 0.4rem 0 0.75rem;
	font-size: 1rem;
}

.hynca-pr__about .hynca-pr__map {
	max-width: 100%;
}

/* ---------------------------------------------------------------------------
   The report page: the report as a page of its own, with a heading naming the
   property, the date it was produced, and a Save as PDF button.
   --------------------------------------------------------------------------- */

.hynca-pr__report-header {
	margin: 0 0 1.25rem;
}

.hynca-pr__produced {
	margin: 0 0 0.9rem;
	font-size: 0.95rem;
	opacity: 0.85;
}

.hynca-pr__report-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin: 0;
}

.hynca-pr .hynca-pr__report-actions[hidden] {
	display: none;
}

.hynca-pr__print-hint {
	font-size: 0.85rem;
	opacity: 0.8;
}

.hynca-pr--report .hynca-pr__results > .hynca-pr__section--summary .hynca-pr__result-title {
	margin-top: 0;
}

/* Printing, and so Save as PDF: the report and nothing else. The visibility rule
   works everywhere; the display rule, where :has() is supported, also stops the
   hidden site header and footer taking up blank pages. A browser without :has()
   drops that whole rule and keeps the first. */

@media print {

	@page {
		margin: 10mm 14mm 12mm;
	}

	body.hynca-pr-report-page * {
		visibility: hidden;
	}

	body.hynca-pr-report-page *:not( :has( .hynca-pr--report ) ):not( .hynca-pr--report ):not( .hynca-pr--report * ) {
		display: none !important;
	}

	body.hynca-pr-report-page .hynca-pr--report,
	body.hynca-pr-report-page .hynca-pr--report * {
		visibility: visible;
	}

	body.hynca-pr-report-page .hynca-pr--report {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		max-width: none;
		margin: 0;
		padding: 0;
	}

	.hynca-pr--report,
	.hynca-pr--report * {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.hynca-pr--report .hynca-pr__report-actions,
	.hynca-pr--report .hynca-pr__calculator {
		display: none !important;
	}

	/* Sections may run across a page; the pieces inside them may not. Keeping
	   whole sections together left most pages half empty, because a section that
	   did not fit in the space left went to the next page whole. */

	.hynca-pr--report .hynca-pr__flag,
	.hynca-pr--report .hynca-pr__street,
	.hynca-pr--report .hynca-pr__headline,
	.hynca-pr--report .hynca-pr__disclaimer,
	.hynca-pr--report .hynca-pr__epc-wrap,
	.hynca-pr--report .hynca-pr__facts,
	.hynca-pr--report .hynca-pr__assumptions,
	.hynca-pr--report .hynca-pr__constraint {
		break-inside: avoid;
		page-break-inside: avoid;
	}
}

/* ---------------------------------------------------------------------------
   The email form for a report on one home: in the green panel on a postcode page
   and in the lead card under the embed. The address, the tick box and the
   consent wording each take a line of their own. The hidden rule is needed
   because the form's display: flex would otherwise override the attribute.
   --------------------------------------------------------------------------- */

.hynca-pr .hynca-pr__lead-form[hidden] {
	display: none;
}

.hynca-pr__lead-form > .hynca-pr__field--address,
.hynca-pr__lead-form > .hynca-pr__choice,
.hynca-pr__lead-form > .hynca-pr__consent {
	flex: 1 1 100%;
}

.hynca-pr__lead-form > .hynca-pr__consent {
	margin: 0;
}

.hynca-pr--page .hynca-pr__section--cta .hynca-pr__label,
.hynca-pr--page .hynca-pr__section--cta .hynca-pr__choice,
.hynca-pr--page .hynca-pr__section--cta .hynca-pr__consent {
	color: #fff;
	opacity: 1;
}

.hynca-pr--page .hynca-pr__section--cta input[type="email"],
.hynca-pr--page .hynca-pr__section--cta input[type="text"],
.hynca-pr--page .hynca-pr__section--cta select {
	background: #fff;
	border-color: #fff;
	color: #1d1d1f;
}

.hynca-pr--page .hynca-pr__section--cta input:focus,
.hynca-pr--page .hynca-pr__section--cta select:focus {
	outline-color: #fff;
}

.hynca-pr--page .hynca-pr__section--cta .hynca-pr__notice {
	background: #fff;
	color: #1d1d1f;
}

/* The mortgage calculator: its own card, so it only needs spacing here. */

.hynca-pr__calculator {
	margin: 0 0 1.25rem;
}

/* ---------------------------------------------------------------------------
   The saved PDF as a letterhead.

   The logo and website are fixed to the top of every printed page and the firm
   and contact to the bottom. The report sits in a table whose empty header and
   footer rows repeat on every page, holding room so the report never runs under
   the letterhead. The risk warning and regulatory wording start a last page of
   their own. None of it shows on screen, where the table is plain blocks.
   --------------------------------------------------------------------------- */

.hynca-pr__print-header,
.hynca-pr__print-footer,
.hynca-pr__print-last,
.hynca-pr__letterhead-space {
	display: none;
}

.hynca-pr__letterhead,
.hynca-pr__letterhead > thead,
.hynca-pr__letterhead > tbody,
.hynca-pr__letterhead > tfoot,
.hynca-pr__letterhead > * > tr,
.hynca-pr__letterhead > * > tr > td {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.hynca-pr__print-logo {
	display: block;
	max-height: 16mm;
	width: auto;
}

.hynca-pr__print-brand {
	color: #009444;
	font-size: 16pt;
	font-weight: 700;
}

.hynca-pr__print-web {
	color: #58595b;
	font-size: 9pt;
}

.hynca-pr__print-last-title {
	margin: 0 0 5mm;
	color: #58595b;
	font-size: 14pt;
}

.hynca-pr__print-last p {
	margin: 0 0 4mm;
}

.hynca-pr__print-warning {
	font-weight: 600;
}

@media print {

	.hynca-pr--report .hynca-pr__letterhead {
		display: table;
		border-collapse: collapse;
	}

	.hynca-pr--report .hynca-pr__letterhead > thead {
		display: table-header-group;
	}

	.hynca-pr--report .hynca-pr__letterhead > tbody {
		display: table-row-group;
	}

	.hynca-pr--report .hynca-pr__letterhead > tfoot {
		display: table-footer-group;
	}

	.hynca-pr--report .hynca-pr__letterhead > * > tr {
		display: table-row;
	}

	.hynca-pr--report .hynca-pr__letterhead > * > tr > td {
		display: table-cell;
	}

	.hynca-pr--report .hynca-pr__letterhead-space {
		display: block;
	}

	.hynca-pr--report .hynca-pr__letterhead-space--top {
		height: 28mm;
	}

	.hynca-pr--report .hynca-pr__letterhead-space--bottom {
		height: 16mm;
	}

	.hynca-pr--report .hynca-pr__print-header,
	.hynca-pr--report .hynca-pr__print-footer {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 1rem;
		position: fixed;
		left: 0;
		right: 0;
		box-sizing: border-box;
		background: #fff;
	}

	.hynca-pr--report .hynca-pr__print-header {
		top: 0;
		height: 22mm;
		padding: 0 0 3mm;
		border-bottom: 2px solid #009444;
	}

	.hynca-pr--report .hynca-pr__print-footer {
		bottom: 0;
		height: 11mm;
		padding: 2mm 0 0;
		border-top: 1px solid #009444;
		color: #58595b;
		font-size: 8pt;
	}

	/* The report itself, set for paper rather than screen: a document type size,
	   sections divided by a hairline instead of grey cards (which read as a web
	   page and cost ink), green section headings that stay with what follows,
	   and the data sources as a compact block of small print. */

	.hynca-pr--report {
		font-size: 10pt;
		line-height: 1.45;
	}

	.hynca-pr--report .hynca-pr__print-logo {
		max-height: 14mm;
	}

	.hynca-pr--report .hynca-pr__report-header {
		margin: 0 0 5mm;
	}

	.hynca-pr--report .hynca-pr__title {
		margin: 0 0 2mm;
		font-size: 18pt;
		line-height: 1.2;
	}

	.hynca-pr--report .hynca-pr__produced {
		margin: 0;
		color: #58595b;
		font-size: 9pt;
	}

	.hynca-pr--report .hynca-pr__section {
		margin: 0 0 5mm;
		padding: 4mm 0 0;
		background: none;
		border: 0;
		border-top: 1px solid #d5dbd7;
		border-radius: 0;
	}

	.hynca-pr--report .hynca-pr__section-title,
	.hynca-pr--report .hynca-pr__result-title {
		margin: 0 0 3mm;
		color: #009444;
		font-size: 13pt;
		break-after: avoid;
		page-break-after: avoid;
	}

	.hynca-pr--report .hynca-pr__subsection-title {
		break-after: avoid;
		page-break-after: avoid;
	}

	.hynca-pr--report .hynca-pr__headline,
	.hynca-pr--report .hynca-pr__disclaimer,
	.hynca-pr--report .hynca-pr__flag {
		background: #f2f7f3;
	}

	.hynca-pr--report .hynca-pr__footer {
		margin-top: 4mm;
		padding-top: 3mm;
		border-top: 1px solid #d5dbd7;
		font-size: 7.5pt;
		color: #58595b;
	}

	.hynca-pr--report .hynca-pr__footer .hynca-pr__attribution {
		margin: 0 0 1mm;
		font-size: 1em;
		opacity: 1;
	}

	.hynca-pr--report .hynca-pr__print-last {
		display: block;
		break-before: page;
		page-break-before: always;
		font-size: 10pt;
	}
}

/* ---------------------------------------------------------------------------
   The sign-off block under the report page, matching the site's Elementor
   block: a hairline across the top, then logo, heading, copy and button,
   centred. The button takes the site's own Elementor button style. Never
   printed, so it stays out of the saved PDF.
   --------------------------------------------------------------------------- */

.hynca-pr-cta-footer {
	margin: 2rem 0 0;
	padding: 60px 1.25rem 0;
	border-top: 1px solid rgba( 137, 137, 137, 0.2 );
	text-align: center;
}

/* A 20px gap between every part, as Elementor's container spaces its widgets.
   The parts carry no margins of their own, so the theme's heading and paragraph
   margins cannot pull the heading up against the copy. */

.hynca-pr-cta-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	max-width: 80rem;
	margin: 0 auto;
}

.hynca-pr-cta-footer__inner > * {
	margin: 0;
}

.hynca-pr-cta-footer__logo {
	display: block;
	width: 220px;
	max-width: 100%;
	height: auto;
}

.hynca-pr-cta-footer__text {
	max-width: 550px;
}

.hynca-pr-cta-footer__button {
	display: inline-block;
	text-decoration: none;
}

@media ( max-width: 1024px ) {
	.hynca-pr-cta-footer {
		padding: 48px 1.25rem;
	}

	.hynca-pr-cta-footer__logo {
		width: 190px;
	}

	.hynca-pr-cta-footer__text {
		max-width: 500px;
	}
}

@media ( max-width: 767px ) {
	.hynca-pr-cta-footer {
		padding: 20px 1.25rem;
	}

	.hynca-pr-cta-footer__logo {
		width: 160px;
	}
}

@media print {

	.hynca-pr-cta-footer {
		display: none !important;
	}
}
