/* ==========================================================================
   Small phones (≤480px, then ≤380px for 360/320px handsets).
   Loaded last on every page so one file owns the phone type scale. Reading
   text is EB Garamond, which reads small for its size, so it never drops
   below 17px; headings shrink, and long paragraphs read left-aligned.
   ========================================================================== */

/* Balanced headings and no orphaned last words, at every size. */
h1, h2, h3, .section-title, .landing-title {
	text-wrap: balance;
}

p, li, blockquote {
	text-wrap: pretty;
	overflow-wrap: break-word;
}

@media (max-width: 480px) {
	:root {
		--fs-display: 32px;
		--fs-lead: 19px;
		--fs-body: 18px;
	}

	.section-title {
		font-size: 26px;
	}

	/* Reading text: 19px on desktop → 18px */
	.care-card__text,
	.visit-card__text,
	.svc-card__text,
	.sd-hero__text,
	.sd-section__text,
	.sd-def,
	.sd-point__text,
	.leader__bio,
	.info-panel__copy,
	.appointment__intro,
	.ct-form-card__intro,
	.ct-success p,
	.post-card--featured .post-card__excerpt,
	.entry-content p,
	.entry-content li,
	.appointment__success > p:not(.appointment__note),
	.empty-state {
		font-size: 18px;
		line-height: 1.6;
	}

	/* Secondary text: → 17px */
	.post-card__excerpt,
	.footer-links,
	.footer-places span,
	.footer-downloads__text,
	.comment-body,
	.sd-test__text,
	.ct-urgent__text,
	.ct-place__address,
	.post-help__text,
	.person-card__role,
	.appointment-form__privacy,
	.appointment__note {
		font-size: 17px;
	}

	/* Display type */
	.footer-cta__number         { font-size: 32px; }
	.page-hero__title           { font-size: 27px; }
	.entry-content h2           { font-size: 23px; }
	.entry-content h3           { font-size: 20px; }
	.treat__title               { font-size: 22px; }
	.svc-card__title            { font-size: 24px; }
	.sd-point__title            { font-size: 20px; }
	.sd-section__title          { font-size: 23px; }
	.post-head__title           { font-size: 29px; }
	.post-card__title           { font-size: 19px; }
	.post-card--featured .post-card__title { font-size: 23px; }
	.post-nav__title            { font-size: 17px; }
	.post-help__number          { font-size: 28px; }
	.ct-quick__value            { font-size: 18px; }
	.ct-urgent__number          { font-size: 28px; }
	.ct-place__name             { font-size: 18px; }
	.leader__name               { font-size: 22px; }

	/* Long hero paragraphs read better left-aligned on a phone, so the centred
	   heroes line up on the left like the homepage. */
	.about-hero,
	.svc-hero,
	.ct-hero__head,
	.info-hero__inner,
	.landing-head--center {
		text-align: left;
	}

	.about-hero__inner,
	.svc-hero__center,
	.ct-hero__head,
	.info-hero__inner {
		align-items: flex-start;
	}

	.about-hero .eyebrow--center::after,
	.svc-hero .eyebrow--center::after,
	.ct-hero .eyebrow--center::after,
	.info-hero .eyebrow--center::after,
	.landing-head--center .eyebrow--center::after {
		content: none;
	}

	/* Hero buttons: full-width and equal, instead of two ragged widths. */
	.hero__buttons,
	.about-hero__actions,
	.svc-hero__actions,
	.sd-hero__actions,
	.info-hero__actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		gap: 10px;
	}

	.hero__buttons .btn,
	.about-hero__actions .btn,
	.svc-hero__actions .btn,
	.sd-hero__actions .btn,
	.info-hero__actions .btn {
		width: 100%;
		white-space: normal;
	}

	/* Brochure cards: the whole card is the download link, so drop the round
	   button and shrink the cover to give the title room. */
	.download-card__button {
		display: none;
	}

	.download-card__cover {
		width: 56px;
		height: 76px;
	}
}

@media (max-width: 380px) {
	:root {
		--fs-display: 29px;
		--fs-lead: 18px;
		--fs-body: 17.5px;
		--gutter: 18px;
	}

	.section-title {
		font-size: 24px;
	}

	.care-card__text,
	.visit-card__text,
	.svc-card__text,
	.sd-hero__text,
	.sd-section__text,
	.sd-def,
	.sd-point__text,
	.leader__bio,
	.info-panel__copy,
	.appointment__intro,
	.ct-form-card__intro,
	.ct-success p,
	.post-card--featured .post-card__excerpt,
	.entry-content p,
	.entry-content li,
	.appointment__success > p:not(.appointment__note),
	.empty-state {
		font-size: 17.5px;
	}

	.footer-cta__number         { font-size: 28px; }
	.page-hero__title           { font-size: 25px; }
	.svc-card__title            { font-size: 22px; }
	.sd-point__title            { font-size: 19px; }
	.post-head__title           { font-size: 26px; }
	.post-card--featured .post-card__title { font-size: 21px; }
	.ct-urgent__number          { font-size: 26px; }

	.eyebrow {
		font-size: 11.5px;
	}

	/* Brochure carousel: a card fits with the next one peeking in. */
	.footer-downloads__list > li {
		flex-basis: 78%;
		min-width: 0;
	}

	.download-card__body {
		min-width: 0;
	}
}
