/* Property Advice articles and index (loaded on those pages only; see
   inc/advice.php). */

.ds-advice-hero .ds-eyebrow a {
	color: inherit;
	text-decoration: none;
}

.ds-advice-byline {
	margin: 0.75rem 0 0 !important;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--muted);
}

.ds-advice-hero .ds-hero-title {
	margin-top: 0.5rem;
}

.ds-advice-body {
	margin-top: 0 !important;
}

/* The photo part-way through: on the right with the text flowing round it,
   full width on phones. Each section starts clear of it. */
.ds-advice-photo {
	float: right;
	width: min(45%, 320px);
	margin: 0.4rem 0 1rem 1.75rem !important;
	padding: 8px;
}

.ds-advice-body h2,
.ds-advice-body h3 {
	clear: both;
}

.ds-advice-body .ds-answer,
.ds-advice-body .ds-experience {
	display: flow-root;
}

@media (max-width: 600px) {
	.ds-advice-photo {
		float: none;
		width: auto;
		margin: 1.25rem 0 !important;
	}
}

.ds-advice-body h2 {
	margin-top: 2.25rem;
	font-size: 1.5rem;
}

.ds-advice-body h3 {
	margin-top: 1.75rem;
	font-size: 1.1875rem;
}

.ds-advice-body li {
	margin: 0.35rem 0;
}

/* "In short" answer box and "From experience" box. */
.ds-answer,
.ds-experience {
	margin-block: 1.5rem !important;
	padding: 1.25rem 1.5rem;
	border-radius: 3px;
}

.ds-answer {
	background: var(--wp--preset--color--sage);
	border-left: 4px solid var(--wp--preset--color--olive);
	font-size: var(--wp--preset--font-size--large);
}

.ds-experience {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--stone);
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
}

.ds-answer > *,
.ds-experience > * {
	margin: 0 !important;
}

.ds-answer__label,
.ds-experience__label {
	margin-bottom: 0.35rem !important;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.8125rem !important;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--olive);
}

/* Closing call to action. */
.ds-advice-cta {
	margin-top: var(--wp--preset--spacing--50) !important;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--stone);
	border-top: 4px solid var(--wp--preset--color--olive);
}

.ds-advice-cta h2 {
	margin-top: 0;
	font-size: 1.5rem;
}

/* Index page */
.ds-advice-intro {
	text-wrap: pretty;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--muted);
}

.ds-advice-index {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
	gap: 1.5rem;
	margin-top: var(--wp--preset--spacing--40);
}

.ds-advice-topic {
	padding: 1.5rem;
	background: var(--wp--preset--color--sage);
	border-radius: 3px;
}

.ds-advice-topic h2 {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
}

.ds-advice-topic ul {
	margin: 0;
	padding-left: 1.1rem;
}

.ds-advice-topic li {
	margin: 0.4rem 0;
}

/* Links between articles: subtle (the text colour, with a faint underline
   that darkens on hover), so they help search engines and curious readers
   without pulling visitors away from the calls to action. */
.ds-advice-body a.ds-quiet-link {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--stone);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.ds-advice-body a.ds-quiet-link:hover,
.ds-advice-body a.ds-quiet-link:focus-visible {
	text-decoration-color: currentColor;
}

/* "Related questions", inside the closing call to action, under its
   buttons. */
.ds-advice-related {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--wp--preset--color--stone);
}

.ds-advice-related__label {
	margin: 0 0 0.5rem !important;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--olive);
}

.ds-advice-related ul {
	margin: 0;
	padding-left: 1.1rem;
}

.ds-advice-related li {
	margin: 0.3rem 0;
}

/* Photos carry their own size (so the page doesn't jump as they load);
   let the frame's 3:2 shape win. */
.ds-advice-hero .ds-framed img,
.ds-advice-photo img {
	height: auto;
}
