/*
 * Phone spacing (screens under 640px wide, Foundation's "small" range).
 *
 * Loaded after theme.min.css and custom-styles.css (the Theme Settings
 * "Additional CSS"), so it wins over both at equal specificity. Several
 * selectors start with .off-canvas-content only to match the specificity of
 * the Additional CSS rule they override. Desktop and tablet are untouched.
 *
 * Spacing scale used on phones: 1.5rem inside blocks, 2rem around text
 * blocks, 2.5rem between sections.
 */
@media screen and (max-width: 39.9375em) {

	/* 1. Page title: 28px below the hero / feature image on every page
	      (was 64-112px). The wrappers around the title each added their
	      own top padding. */
	.off-canvas-content section:has(h1.page-title, h1.single-title) {
		padding-top: 0;
		padding-bottom: 1.5rem;
	}
	.off-canvas-content main:has(h1.page-title, h1.single-title) {
		padding-top: 0;
	}
	/* The contact page template sets padding-top: 4rem inline. */
	.off-canvas-content main[style*="padding-top"]:has(h1.page-title) {
		padding-top: 0 !important;
	}
	.off-canvas-content main:has(> h1.page-title, > h1.single-title),
	.off-canvas-content article:has(h1.page-title, h1.single-title) {
		padding-top: 1.75rem;
		padding-bottom: 1rem;
	}

	/* 2. Text blocks beside photos (rooms, menus, "Getting Here", the
	      homepage "Stay" card...). Additional CSS gives them 96px padding on
	      all four sides, which on a phone leaves the text a column only
	      140-200px wide with big empty bands above and below. */
	.off-canvas-content section:not(.home-content):not(.entertain-content):not(.promo) .grid-container .cell.content {
		padding: 2rem 1.25rem;
		margin-top: 0;
	}
	.off-canvas-content section .grid-container .content .cta,
	.off-canvas-content .rooms-content .content .cta {
		margin-top: 1.5rem;
	}
	.off-canvas-content .rooms-content {
		margin-top: 0;
	}
	.rooms-content .room {
		margin-top: 1rem;
	}
	/* Room photo above its own name (it sat below the text, so with
	   tighter spacing it read as part of the next room). */
	.rooms-content .room > .cell.img {
		order: 1;
	}
	.rooms-content .room > .cell.content {
		order: 2;
	}
	.off-canvas-content .about-content .about-card .about-card-content {
		padding: 2rem 1.25rem;
	}
	.off-canvas-content .about-content .about-card .about-card-content .cta {
		margin-top: 1.5rem;
	}

	/* Headings: the Additional CSS adds 48px above every h3 on phones.
	   Keep a smaller gap inside running text, none at the top of a block. */
	h3 {
		margin-top: 1.5rem;
	}
	.content > h3:first-child,
	.content > :first-child > h3:first-child,
	.eat-card-content h3:first-child {
		margin-top: 0;
	}

	/* 3. Booking form (Stay page and each room page): was 4rem outside,
	      2rem inside every field and a 170px-tall button. */
	.booking-widget {
		margin: 1.5rem 0 1rem;
	}
	.off-canvas-content .booking-widget .cell {
		padding: .5rem 1.25rem;
		/* Column dividers are for the desktop row; on phones the fields stack. */
		border-right: 0;
		border-image: none;
	}
	.off-canvas-content .booking-widget .cell label {
		margin-top: .5rem;
	}
	.off-canvas-content .booking-widget .cell .input-group-button .button {
		padding: 1.4rem 1rem 1.2rem;
		margin-top: 1rem;
		margin-bottom: .75rem;
	}

	/* 4. Section spacing: 40px between sections instead of 64-96px. */
	.off-canvas-content .about-content.lower,
	.off-canvas-content .card-content.lower,
	.off-canvas-content .rest-content {
		padding-top: 2.5rem;
		padding-bottom: 2.5rem;
	}
	.off-canvas-content .otw-content,
	.off-canvas-content .menus-content {
		margin-top: 2.5rem;
	}
	.off-canvas-content .getting-here-content {
		padding-top: 2.5rem;
	}
	.off-canvas-content .family-content,
	.off-canvas-content .offers-content,
	.off-canvas-content .stmawes-content {
		padding-top: 2rem;
	}
	.off-canvas-content .eat-content > .content {
		padding: 2.5rem 1rem;
	}
	.footer .nav-footer {
		padding-top: 2.5rem;
		padding-bottom: 2.5rem;
	}
	.article-gallery {
		margin-top: 1.5rem;
		padding-top: 1.5rem;
		padding-bottom: 1.5rem;
	}

	/* Homepage: grey bands between the intro and the cards were 96px. */
	.home .off-canvas-content .home-content,
	.home .off-canvas-content .eat-content,
	.home .off-canvas-content .stay-content,
	.home .off-canvas-content .entertain-content {
		padding-top: 2rem;
		padding-bottom: 1rem;
	}

	/* 5. Cards on Eat & Drink and Events. */
	.off-canvas-content .eat-content .eat-card-content .cta {
		margin-top: 1.5rem;
	}
	.off-canvas-content .eat-card-content .cta .button {
		margin-top: 0;
	}
	.archive .off-canvas-content main.events-main {
		padding-top: 1.75rem;
		padding-bottom: .5rem;
	}
	.archive .off-canvas-content .event-content > .content {
		padding-top: .75rem;
		padding-bottom: .75rem;
	}
	.archive .event-content .event {
		margin-bottom: 0;
	}
	.grid-container.event .cell.small-12 {
		padding-top: 1.5rem;
		padding-bottom: 1.5rem;
	}

	/* 6. Room pages: features tabs and previous / next room links. */
	.single .tabbed-content {
		padding: 2.5rem 0;
	}
	.room-navigation {
		margin: 1.5rem 0;
	}
}
