/* ==========================================================================
   PRO-LIFE ANSWERS — RESPONSIVE.CSS
   --------------------------------------------------------------------------
   Responsive behavior only.

   Organization:
   01. Responsive Navigation
   02. Responsive Reference System
       02.1 Modal Structure
       02.2 Modal Reference Types
       02.3 Person References
   03. Tablet Page Layout
   04. Mobile Page Layout
   05. Small Mobile Adjustments
   06. Reduced Motion

   Breakpoints:
   - Desktop: 1200px+
   - Tablet / compact desktop: 768px–1199px
   - Mobile: 767px and below
   ========================================================================== */


/* ==========================================================================
   01. RESPONSIVE NAVIGATION
   ========================================================================== */

/*
 * Hidden on desktop. These controls become active below 1200px.
 */
.mobile-header,
.mobile-menu-backdrop,
.mobile-menu-close {
	display: none;
}


@media (max-width: 1199px) {

	/* ----------------------------------------------------------------------
	   Main Page Structure
	   ---------------------------------------------------------------------- */

	.site-main-area {
		margin-left: 0;
		padding-top: 0;
	}


	/* ----------------------------------------------------------------------
	   Compact Header
	   ---------------------------------------------------------------------- */

	.mobile-header {
		position: sticky;
		top: 0;
		left: 0;
		right: 0;

		z-index: 900;

		display: grid;
		grid-template-columns:
			48px
			1fr
			48px;

		align-items: center;

		height: 72px;

		padding:
			0
			var(--space-2);

		background: var(--color-white);
		border-bottom: var(--border);
	}

	.mobile-menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;

		width: 48px;
		height: 48px;

		padding: 0;

		background: transparent;
		border: 0;

		color: var(--color-text-primary);

		cursor: pointer;
	}

	.mobile-menu-toggle .material-symbols-sharp {
		font-size: 26px;
		font-weight: 200;
	}

	.mobile-header__logo {
		display: flex;
		align-items: center;
		justify-content: center;

		height: 48px;

		text-decoration: none;
	}

	.mobile-header__logo img {
		display: block;

		width: auto;
		max-width: 150px;
		max-height: 40px;
	}

	.mobile-header__spacer {
		width: 48px;
	}


	/* ----------------------------------------------------------------------
	   Sidebar Drawer
	   ---------------------------------------------------------------------- */

	.site-sidebar {
		z-index: 1100;

        width: min(
                360px,
                calc(100vw - 48px)
            );

		transform: translateX(-100%);

		border-right: 0;

		box-shadow:
			8px
			0
			30px
			rgba(0, 0, 0, 0.08);

		transition:
			transform
			320ms
			cubic-bezier(0.16, 1, 0.3, 1);
	}

	body.has-mobile-menu .site-sidebar {
		transform: translateX(0);
	}

	.site-sidebar__inner {
		padding-top: 72px;
	}


	/* ----------------------------------------------------------------------
	   Sidebar Close Button
	   ---------------------------------------------------------------------- */

	.mobile-menu-close {
		position: absolute;
		top: 16px;
		right: 16px;

		z-index: 2;

		display: flex;
		align-items: center;
		justify-content: center;

		width: 40px;
		height: 40px;

		padding: 0;

		background: transparent;
		border: 0;

		color: var(--color-text-secondary);

		cursor: pointer;
	}

	.mobile-menu-close .material-symbols-sharp {
		font-size: 24px;
		font-weight: 200;
	}


	/* ----------------------------------------------------------------------
	   Menu Backdrop
	   ---------------------------------------------------------------------- */

	.mobile-menu-backdrop {
		position: fixed;
		inset: 0;

		z-index: 1000;

		display: block;

		padding: 0;

		background: rgba(0, 0, 0, 0.18);
		border: 0;

		opacity: 0;
		visibility: hidden;
		pointer-events: none;

		transition:
			opacity 220ms ease,
			visibility 220ms ease;
	}

	body.has-mobile-menu .mobile-menu-backdrop {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	body.has-mobile-menu {
		overflow: hidden;
	}


	/* ----------------------------------------------------------------------
	   Homepage Sidebar Behavior
	   ---------------------------------------------------------------------- */

	/*
	 * The desktop homepage intro expands the sidebar and pushes the page.
	 * Below 1200px the sidebar always behaves as an off-canvas drawer instead.
	 */
	body.home .site-sidebar {
		width: min(
			360px,
			calc(100vw - 48px)
		);

		border-right-color: transparent;

		overflow-y: auto;

		transition:
			transform
			320ms
			cubic-bezier(0.16, 1, 0.3, 1);
	}

	body.home .site-sidebar__inner {
		width: 100%;

		opacity: 1;
		transform: none;

		transition: none;
	}

	body.home .site-main-area,
	body.home.home-hero-complete .site-main-area {
		margin-left: 0;
	}

	body.home.home-hero-complete .site-sidebar {
		width: min(
			360px,
			calc(100vw - 48px)
		);

		transform: translateX(-100%);
	}

	body.home.has-mobile-menu .site-sidebar,
	body.home.home-hero-complete.has-mobile-menu .site-sidebar {
		transform: translateX(0);
	}

}


/* ==========================================================================
   02. RESPONSIVE REFERENCE SYSTEM
   --------------------------------------------------------------------------
   Desktop keeps the persistent reference rail.
   Below 1200px, inline references open contextual modals instead.
   ========================================================================== */

@media (max-width: 1199px) {

	/* ----------------------------------------------------------------------
	   Hide Desktop Rail
	   ---------------------------------------------------------------------- */

	.reference-rail {
		display: none;
	}

	.single-layout.has-reference-rail {
		grid-template-columns:
			minmax(0, 1fr);
	}

	body.has-reference-modal {
		overflow: hidden;
	}


	/* ----------------------------------------------------------------------
	   02.1 Modal Structure
	   ---------------------------------------------------------------------- */

	.reference-modal {
		position: fixed;
		inset: 0;

		z-index: 1200;

		display: flex;
		align-items: center;
		justify-content: center;

		padding: var(--space-2);

		opacity: 0;
		visibility: hidden;
		pointer-events: none;

		transition:
			opacity 220ms ease,
			visibility 220ms ease;
	}

	/*
	 * Keep the modal in the layout long enough for the close animation.
	 * JavaScript controls the final hidden state.
	 */
	.reference-modal[hidden] {
		display: flex;
	}

	.reference-modal.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}


	/* Backdrop */

	.reference-modal__backdrop {
		position: absolute;
		inset: 0;

		width: 100%;
		height: 100%;

		padding: 0;

		background: rgba(0, 0, 0, 0.20);
		border: 0;

		opacity: 0;

		cursor: default;

		transition:
			opacity 220ms ease;
	}

	.reference-modal.is-open .reference-modal__backdrop {
		opacity: 1;
	}


	/* Panel */

	.reference-modal__panel {
		position: relative;

		z-index: 1;

		width: min(
			600px,
			calc(100vw - 32px)
		);

		max-height: calc(100vh - 64px);

		overflow-y: auto;

		padding: var(--space-4);

		background: var(--color-white);

		border: 0;
		border-radius: 20px;

		box-shadow: var(--shadow-soft);

		opacity: 0;

		transform:
			translateY(14px)
			scale(0.985);

		transition:
			opacity 220ms ease,
			transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
	}

	.reference-modal.is-open .reference-modal__panel {
		opacity: 1;

		transform:
			translateY(0)
			scale(1);
	}


	/* Close Button */

	.reference-modal__close {
		position: absolute;
		top: 16px;
		right: 16px;

		display: flex;
		align-items: center;
		justify-content: center;

		width: 36px;
		height: 36px;

		padding: 0;

		background: transparent;
		border: 0;
		border-radius: 50%;

		color: var(--color-text-secondary);

		cursor: pointer;
	}

	.reference-modal__close .material-symbols-sharp {
		font-size: 22px;
		font-weight: 200;
	}


	/* Content */

	.reference-modal__content {
		padding-right: 0;
	}

	.reference-modal__title {
		margin:
			0
			0
			16px;

		/*
		 * Only the heading needs clearance for the close button.
		 * The rest of the modal keeps equal left/right padding.
		 */
		padding-right: var(--space-5);

		font-family: var(--font-display);
		font-size: 28px;
		font-weight: 200;
		line-height: 1.3;
	}

	.reference-modal__summary {
		margin-bottom: var(--space-1);

		font-family: var(--font-body);
		font-size: var(--font-size-body);
		line-height: var(--line-height-body);
	}

	.reference-modal__summary p:last-child {
		margin-bottom: 0;
	}


	/* Syllogism modal spacing */

	.reference-modal__syllogism {
		display: grid;
		gap: 16px;
	}

	.reference-modal__syllogism .rail-syllogism__item {
		margin: 0;
	}

	.reference-modal__syllogism .rail-reference__title {
		margin:
			0
			0
			4px;

		font-size: 16px;
		line-height: 1.4;
	}

	.reference-modal__syllogism .rail-syllogism__item p {
		margin: 0;

		font-size: 16px;
		line-height: 1.5;
	}


	.reference-modal__more {
		display: inline-block;

		margin-top: var(--space-1);

		text-decoration: underline;
		text-underline-offset: 3px;
	}


	/* ----------------------------------------------------------------------
	   02.2 Modal Reference Types
	   ---------------------------------------------------------------------- */

	.reference-modal__type {
		display: flex;
		align-items: center;

		gap: 12px;

		margin-bottom: var(--space-1);

		font-family: var(--font-body);
		font-size: var(--font-size-metadata);
		font-weight: 600;
		line-height: var(--line-height-metadata);

		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	.reference-modal__type-line {
		display: block;

		flex: 0 0 2px;

		width: 2px;
		height: 1.51em;
	}


	/* Definition */

	.reference-modal__type--definition {
		color: var(--color-type-definition-text);
	}

	.reference-modal__type--definition
	.reference-modal__type-line {
		background: var(--color-type-definition);
	}


	/* Person */

	.reference-modal__type--person {
		color: var(--color-type-person-text);
	}

	.reference-modal__type--person
	.reference-modal__type-line {
		background: var(--color-type-person);
	}


	/* Court Case */

	.reference-modal__type--court-case {
		color: var(--color-type-court-case-text);
	}

	.reference-modal__type--court-case
	.reference-modal__type-line {
		background: var(--color-type-court-case);
	}


	/* High-Profile Story */

	.reference-modal__type--story {
		color: var(--color-type-story-text);
	}

	.reference-modal__type--story
	.reference-modal__type-line {
		background: var(--color-type-story);
	}


	/* ----------------------------------------------------------------------
	   02.3 Person References
	   ---------------------------------------------------------------------- */

	.reference-modal__content:has(.reference-modal__image) {
		display: grid;

		grid-template-columns:
			112px
			minmax(0, 1fr);

		column-gap: var(--space-3);

		align-items: start;
	}

	.reference-modal__image {
		grid-column: 1;
		grid-row: 1 / span 4;

		display: block;

		width: 112px;
		height: 112px;

		margin: 0;

		overflow: hidden;
	}

	.reference-modal__image img {
		width: 100%;
		height: 100%;

		object-fit: cover;
	}

	.reference-modal__content:has(.reference-modal__image)
	.reference-modal__type,
	.reference-modal__content:has(.reference-modal__image)
	.reference-modal__title,
	.reference-modal__content:has(.reference-modal__image)
	.reference-modal__summary,
	.reference-modal__content:has(.reference-modal__image)
	.reference-modal__more {
		grid-column: 2;
	}

}

/* ==========================================================================
   RESPONSIVE RELATED CONTENT + CITATIONS
   ========================================================================== */

/*
 * Hidden on desktop.
 */
.responsive-references {
	display: none;
}


@media (max-width: 1199px) {

	.responsive-references {
		display: block;

		width: 100%;
		max-width: 840px;

		margin:
			0
			auto;

		padding:
			0
			var(--space-5)
			var(--space-8);
	}


	/* ----------------------------------------------------------------------
	   Sections
	   ---------------------------------------------------------------------- */

	.responsive-references__section {
		padding-top: var(--space-4);

		border-top: var(--border);
	}

	.responsive-references__section
	+ .responsive-references__section {
		margin-top: var(--space-5);
	}


	/* ----------------------------------------------------------------------
	   Section Heading
	   ---------------------------------------------------------------------- */

	.responsive-references__title {
		display: flex;
		align-items: center;

		gap: 12px;

		margin:
			0
			0
			var(--space-2);

		font-family: var(--font-body);
		font-size: 14px;
		font-weight: 600;
		line-height: 1.51;

		letter-spacing: 0.10em;
		text-transform: uppercase;
	}

	.responsive-references__accent {
		display: block;

		flex: 0 0 2px;

		width: 2px;
		height: 1.51em;
	}


	/* Related Content */

	.responsive-references__section--related
	.responsive-references__accent {
		background: var(--color-reference-related);
	}


	/* Citations */

	.responsive-references__section--citations
	.responsive-references__accent {
		background: var(--color-reference-citation);
	}


	/* ----------------------------------------------------------------------
	   Related Content
	   ---------------------------------------------------------------------- */

	.responsive-related {
		display: grid;
	}

	.responsive-related__item {
		display: flex;
		align-items: center;

		gap: var(--space-1);

		min-height: 52px;

		padding:
			var(--space-1)
			0;

		border-bottom: var(--border);

		text-decoration: none;
	}

	.responsive-related__item:last-child {
		border-bottom: 0;
	}

	.responsive-related__arrow {
		flex: 0 0 auto;

		font-size: 24px;

		color: var(--color-text-primary);
	}

	.responsive-related__label {
		font-family: var(--font-body);
		font-size: 15px;
		line-height: 1.5;
	}


	/* ----------------------------------------------------------------------
	   Citations
	   ---------------------------------------------------------------------- */

	.responsive-citations {
		font-family: var(--font-body);
		font-size: 13px;
		line-height: 1.55;

		color: var(--color-text-secondary);
	}

	.responsive-citations p,
	.responsive-citations li {
		margin-bottom: var(--space-1);
	}

	.responsive-citations a {
		text-decoration: underline;
		text-underline-offset: 2px;
	}

}


/* ==========================================================================
   03. TABLET PAGE LAYOUT
   ========================================================================== */

@media (max-width: 1199px) {

	/* ----------------------------------------------------------------------
	   Single Pages
	   ---------------------------------------------------------------------- */

	.single-layout,
	.single-layout.has-reference-rail,
	.single-layout.no-reference-rail {
		display: block;

		height: auto;
		min-height: calc(100vh - 72px);

		overflow: visible;
	}

	.single-page-header {
		width: 100%;
	}

    .single-page-header__inner {
        width: 100%;
        max-width: 840px;

        margin:
            0
            auto;

        padding:
            var(--space-1)
            var(--space-5)
            0;
    }

	.single-page-header h1 {
		font-size: 40px;
	}

	.article-column {
		display: flex;
		flex-direction: column;

		min-height: calc(100vh - 240px);

		overflow: visible;
	}

    .article-content {
        width: 100%;
        max-width: 840px;

        margin:
            0
            auto;

        padding:
            var(--space-5)
            var(--space-5)
            var(--space-10);
    }


	/* ----------------------------------------------------------------------
	   Person Single
	   ---------------------------------------------------------------------- */

	.person-single-header {
		grid-template-columns:
			112px
			minmax(0, 1fr);

		gap: var(--space-3);

		margin-bottom: var(--space-3);
	}

	.person-single-header__image {
		width: 112px;
		height: 112px;
	}


	/* ----------------------------------------------------------------------
	   Homepage
	   ---------------------------------------------------------------------- */

	.home-page {
		min-height: calc(100vh - 72px);
	}

	.home-page__inner {
		width: min(
			var(--home-content-max),
			calc(100% - 80px)
		);

		margin:
			0
			auto;

		padding-top: var(--space-5);
	}

	.home-hero__title {
		font-size: 52px;
	}


	/* ----------------------------------------------------------------------
	   Archives
	   ---------------------------------------------------------------------- */

	.archive-page {
		width: min(
			var(--archive-max),
			calc(100% - 80px)
		);

		max-width: none;

		margin:
			0
			auto;

		padding:
			var(--space-5)
			0
			var(--space-10);
	}


	/* ----------------------------------------------------------------------
	   Footer
	   ---------------------------------------------------------------------- */

	.content-footer__inner {
		padding:
			var(--space-1)
			var(--space-4);
	}

}


/* ==========================================================================
   04. MOBILE PAGE LAYOUT
   ========================================================================== */

@media (max-width: 767px) {

	/* ----------------------------------------------------------------------
	   Compact Header
	   ---------------------------------------------------------------------- */

	.mobile-header {
		height: 64px;

		grid-template-columns:
			44px
			1fr
			44px;

		padding:
			0
			var(--space-1);
	}

    .site-main-area {
        padding-top: 0;
    }

	.mobile-menu-toggle {
		width: 44px;
		height: 44px;
	}

	.mobile-header__spacer {
		width: 44px;
	}

	.mobile-header__logo img {
		max-width: 132px;
		max-height: 36px;
	}


	/* ----------------------------------------------------------------------
	   Sidebar Drawer
	   ---------------------------------------------------------------------- */

	.site-sidebar,
	body.home .site-sidebar,
	body.home.home-hero-complete .site-sidebar {
		width: min(
			360px,
			calc(100vw - 32px)
		);
	}


	/* ----------------------------------------------------------------------
	   Single Pages
	   ---------------------------------------------------------------------- */

	.single-layout,
	.single-layout.has-reference-rail,
	.single-layout.no-reference-rail {
		min-height: calc(100vh - 64px);
	}

    .single-page-header__inner {
        padding:
            var(--space-1)
            var(--space-3)
            0;
    }

	.single-page-header h1 {
		margin-bottom: var(--space-2);

		font-size: 34px;
		line-height: 1.18;
	}

	.article-back {
		margin-bottom: var(--space-2);
	}

	.article-meta {
		margin-top: var(--space-2);
		margin-bottom: var(--space-2);
	}

	.article-content {
		padding:
			var(--space-4)
			var(--space-3)
			var(--space-8);
	}
    
    .single-page-header__inner,
    .article-content {
        max-width: 720px;
    }


	/* ----------------------------------------------------------------------
	   Article Typography
	   ---------------------------------------------------------------------- */

	.article-content h2 {
		font-size: 21px;
	}

	.article-content p,
	.article-content li {
		font-size: 18px;
		line-height: 1.55;
	}


	/* ----------------------------------------------------------------------
	   Quote Blocks
	   ---------------------------------------------------------------------- */

	.article-quote {
		margin:
			var(--space-4)
			0;

		padding: var(--space-3);
	}

	.article-quote__icon {
		top: 12px;

		width: 40px;
		height: 40px;
	}

	.article-quote__icon .material-symbols-sharp {
		font-size: 24px;
	}

	.article-quote__text,
	.article-quote__text p {
		font-size: 22px;
		line-height: 1.5;
	}

	.article-quote__text p {
		margin: 0;
	}


	/* ----------------------------------------------------------------------
	   Person Single
	   ---------------------------------------------------------------------- */

	.person-single-header {
		grid-template-columns:
			88px
			minmax(0, 1fr);

		gap: var(--space-2);

		margin-top: var(--space-2);
		margin-bottom: var(--space-3);
	}

	.person-single-header__image {
		width: 88px;
		height: 88px;
	}

	.person-single-header__content h1 {
		font-size: 32px;
	}


	/* ----------------------------------------------------------------------
	   Homepage
	   ---------------------------------------------------------------------- */

	.home-page__inner {
		width: auto;

		margin: 0;

		padding:
			var(--space-4)
			var(--space-3)
			var(--space-8);
	}

	.home-hero {
		margin-bottom: var(--space-5);
	}

	.home-hero__title {
		font-size: 38px;
		line-height: 1.16;
	}

	.home-hero__intro {
		max-width: none;
	}

	.home-browse {
		margin-top: var(--space-5);
	}


	/* ----------------------------------------------------------------------
	   Archives
	   ---------------------------------------------------------------------- */

	.archive-page {
		width: auto;

		margin: 0;

		padding:
			var(--space-4)
			var(--space-3)
			var(--space-8);
	}

	.archive-header h1 {
		font-size: 36px;
	}

	.archive-description {
		max-width: none;
	}

	.archive-search,
	.search-form {
		height: 46px;
	}


	/* ----------------------------------------------------------------------
	   Archive Rows
	   ---------------------------------------------------------------------- */

	.argument-row__link,
	.standard-content-row__link,
	.category-result__link {
		min-height: 64px;

		padding:
			var(--space-2)
			var(--space-1);
	}

	.argument-row__title,
	.standard-content-row__title,
	.category-result__title {
		font-size: 19px;
	}


	/* ----------------------------------------------------------------------
	   Definitions
	   ---------------------------------------------------------------------- */

    .definition-card {
        padding:
            var(--space-2)
            var(--space-3);
    }

	.definition-card__excerpt {
		padding-right: 0;
	}

	.definition-card__more {
		margin-top: var(--space-2);
	}


	/* ----------------------------------------------------------------------
	   People Archive
	   ---------------------------------------------------------------------- */

	.person-card,
	.person-row {
		grid-template-columns:
			96px
			minmax(0, 1fr);

		gap: var(--space-2);

		padding: var(--space-2);
	}

	.person-card__image {
		width: 96px;
	}

	.person-card__title,
	.person-row__title {
		font-size: 20px;
	}


	/* ----------------------------------------------------------------------
	   Reference Modal
	   ---------------------------------------------------------------------- */

	.reference-modal {
		padding: var(--space-2);
	}

	.reference-modal__panel {
		width: 100%;

		max-height: calc(100vh - 32px);

		padding: var(--space-3);

		border-radius: 16px;
	}

	.reference-modal__title {
		font-size: 26px;
	}

	.reference-modal__content:has(.reference-modal__image) {
		grid-template-columns:
			88px
			minmax(0, 1fr);

		column-gap: var(--space-2);
	}

	.reference-modal__image {
		width: 88px;
		height: 88px;
	}

    /* ----------------------------------------------------------------------
   Related Content + Citations
   ---------------------------------------------------------------------- */

	.responsive-references {
		max-width: 720px;

		padding:
			0
			var(--space-3)
			var(--space-6);
	}

	.responsive-references__section {
		padding-top: var(--space-3);
	}

	.responsive-references__section
	+ .responsive-references__section {
		margin-top: var(--space-4);
	}

}

/* ==========================================================================
   05. SMALL MOBILE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 599px) {

	/* ----------------------------------------------------------------------
	   Homepage
	   ---------------------------------------------------------------------- */

	.browse-grid {
		grid-template-columns: 1fr;
	}

	.browse-card {
		min-height: 184px;
	}


	/* ----------------------------------------------------------------------
	   Categories
	   ---------------------------------------------------------------------- */

	.category-grid {
		grid-template-columns: 1fr;
	}

	.category-card {
		min-height: 176px;

		padding:
			var(--space-3)
			var(--space-3)
			var(--space-2);
	}


	/* ----------------------------------------------------------------------
	   Footer
	   ---------------------------------------------------------------------- */

	.content-footer__inner {
		flex-direction: column;
		align-items: center;

		gap: 4px;

		padding:
			var(--space-1)
			var(--space-3);
	}

}

/* ==========================================================================
   06. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) and (max-width: 1199px) {

	.site-sidebar,
	body.home .site-sidebar,
	.mobile-menu-backdrop,
	.reference-modal,
	.reference-modal__backdrop,
	.reference-modal__panel {
		transition: none;
	}

}


/* ==================================================
   RELATED / CITATIONS — NEUTRAL RESPONSIVE COLORS
================================================== */

@media (max-width: 1199px) {

	.responsive-references__section--related .responsive-references__accent,
	.responsive-references__section--citations .responsive-references__accent {
		background: #ECEAE7;
	}

	.responsive-related__arrow {
		color: var(--color-text-primary);
	}
}

/* ==================================================
   PERSON HEADER — NARROW TABLET / MOBILE SPACING
================================================== */

@media (max-width: 820px) {

	.person-single-header {
		margin-top: var(--space-1);
		margin-bottom: var(--space-2);
	}
}

/* ==========================================================================
   HOMEPAGE — EDITORIAL HERO RESPONSIVE
   ========================================================================== */

@media (max-width: 1199px) {
	body.home .site-main-area {
		margin-left: 0;
	}

	body.home .home-cover--sidebar {
		min-height: calc(100vh - 72px - 40px);
	}

	body.home .home-cover--sidebar .home-cover__inner {
		display: flex;
		align-items: center;

		width: min(860px, calc(100% - 80px));
		min-height: calc(100vh - 72px - 40px);

		margin: 0 auto;
		padding: 52px 0 64px;
	}

	body.home .home-cover--sidebar .home-cover__hero {
		width: 100%;
	}

	body.home .home-cover--sidebar .home-cover__title {
		font-size: clamp(82px, 12vw, 118px);
	}
}

@media (max-width: 767px) {
	body.home .home-cover--sidebar {
		display: block;
		min-height: calc(100vh - 72px - 40px);
	}

	body.home .home-cover--sidebar .home-cover__inner {
		width: min(100%, 560px);
		min-height: auto;

		margin: 0 auto;
		padding:
			28px
			18px
			44px;

		box-sizing: border-box;
	}

	body.home .home-cover--sidebar .home-cover__hero {
		width: fit-content;
		max-width: 100%;

		margin: 0 auto;
	}

	body.home .home-cover--sidebar .home-cover__eyebrow {
		font-size: 12px;
	}

	body.home .home-cover--sidebar .home-cover__eyebrow-rule {
		width: 44px;
		margin-bottom: 22px;
	}

	body.home .home-cover--sidebar .home-cover__title {
		font-size: clamp(68px, 19vw, 94px);
		line-height: 0.77;
	}

	body.home .home-cover--sidebar .home-cover__intro {
		width: 100%;
		max-width: 100%;

		margin-top: 20px;

		font-size: 16px;
		line-height: 1.5;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.home .home-cover--sidebar .home-cover__eyebrow,
	body.home .home-cover--sidebar .home-cover__eyebrow-rule,
	body.home .home-cover--sidebar .home-cover__title > span,
	body.home .home-cover--sidebar .home-cover__intro {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}
}

/* ==========================================================================
   MOBILE — FULL-SCREEN MENU DRAWER
   Tablet keeps the narrower drawer. Mobile uses the entire viewport.
   ========================================================================== */

@media (max-width: 767px) {

	.site-sidebar,
	body.home .site-sidebar,
	body.home.home-hero-complete .site-sidebar {
		width: 100vw !important;
		max-width: none !important;

		height: 100dvh;
		min-height: 100dvh;

		border-right: 0;
		box-shadow: none;
	}

	.site-sidebar__inner,
	body.home .site-sidebar__inner,
	body.home.home-hero-complete .site-sidebar__inner {
		width: 100%;
		min-height: 100dvh;
	}

}


/* ==========================================================================
   MOBILE — INTENTIONAL FULL-SCREEN MENU LAYOUT
   Keeps the desktop/tablet sidebar unchanged while giving the mobile drawer
   a denser editorial rhythm, larger type, and full-width navigation rows.
   ========================================================================== */

@media (max-width: 767px) {

	.site-sidebar,
	body.home .site-sidebar,
	body.home.home-hero-complete .site-sidebar {
		overflow-y: auto;
		overflow-x: hidden;
		overscroll-behavior: contain;
	}

	.site-sidebar__inner,
	body.home .site-sidebar__inner,
	body.home.home-hero-complete .site-sidebar__inner {
		display: block;
		min-height: 100dvh;
		padding: 72px 24px 32px;
	}

	.site-sidebar__top,
	.sidebar-quote {
		width: 100%;
		max-width: 400px;
		margin-left: auto;
		margin-right: auto;
	}

	.site-sidebar__top {
		align-items: stretch;
	}

	.site-logo {
		margin: 0 auto 32px;
	}

	.site-logo__image {
		width: 172px;
	}

	.sidebar-search {
		width: 100%;
		max-width: none;
		margin-bottom: 28px;
	}

	.sidebar-search .search-form {
		height: 54px;
	}

	.sidebar-search .search-field {
		padding-left: 20px;
		font-size: 16px;
	}

	.sidebar-search .search-submit {
		right: 12px;
	}

	.sidebar-nav,
	.sidebar-nav--numbered {
		width: 100%;
		max-width: none;
	}

	.sidebar-nav--numbered ul {
		border-top: 1px solid var(--color-border);
	}

	.sidebar-nav--numbered li {
		border-bottom: 1px solid var(--color-border);
	}

	.sidebar-nav--numbered a {
		grid-template-columns: 46px minmax(0, 1fr);
		gap: 14px;
		min-height: 64px;
		padding: 10px 4px;
	}

	.sidebar-nav--numbered .sidebar-nav__number {
		font-size: 28px;
		letter-spacing: -0.04em;
	}

	.sidebar-nav--numbered .sidebar-nav__label {
		font-size: 15px;
		line-height: 1.3;
		letter-spacing: 0.04em;
		white-space: normal;
	}

	.sidebar-nav--numbered .sidebar-nav__about {
		margin-top: 0;
	}

	.sidebar-nav--numbered .sidebar-nav__about a {
		min-height: 60px;
	}

	.sidebar-quote {
		max-width: 400px;
		margin-top: 0;
		padding: 32px 16px 0;
		border-top: 0;
	}

	.sidebar-quote blockquote {
		max-width: 320px;
		margin-bottom: 16px;
	}

	.sidebar-quote__mark {
		top: -12px;
		left: -4px;
		font-size: 112px;
	}

	.sidebar-quote__text {
		display: block;
		font-size: 20px;
		line-height: 1.45;
	}

	.sidebar-quote cite {
		font-size: 13px;
		line-height: 1.4;
	}

}

@media (max-width: 380px) {

	.site-sidebar__inner,
	body.home .site-sidebar__inner,
	body.home.home-hero-complete .site-sidebar__inner {
		padding-right: 20px;
		padding-left: 20px;
	}

	.sidebar-nav--numbered a {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 12px;
	}

	.sidebar-nav--numbered .sidebar-nav__number {
		font-size: 26px;
	}

	.sidebar-nav--numbered .sidebar-nav__label {
		font-size: 14px;
	}

}


/* ==========================================================================
   TABLET/MOBILE MENU — VIEWPORT SAFE SPACING
   Keeps the close control away from screen edges and guarantees breathing
   room beneath the complete quotation, including devices with safe areas.
   ========================================================================== */

@media (max-width: 1199px) {

	.mobile-menu-close {
		top: max(24px, calc(env(safe-area-inset-top) + 12px));
		right: max(24px, calc(env(safe-area-inset-right) + 12px));
	}

	.site-sidebar__inner,
	body.home .site-sidebar__inner,
	body.home.home-hero-complete .site-sidebar__inner {
		padding-bottom: max(
			48px,
			calc(env(safe-area-inset-bottom) + 32px)
		);
	}

}


/* ==========================================================================
   TABLET/MOBILE HOMEPAGE — SEARCH AND NUMBERED NAVIGATION
   Only the new section is styled here. Hero and animation rules are unchanged.
   ========================================================================== */

@media (max-width: 1199px) {

	body.home .home-mobile-browse {
		display: block;
		width: min(100%, 560px);
		box-sizing: border-box;
		margin: 0 auto;
		padding: 0 18px 48px;
	}

	.home-mobile-search {
		position: relative;
		z-index: 2;
		width: 100%;
		margin-bottom: 28px;
	}

	.home-mobile-search .search-form {
		width: 100%;
		height: 52px;
		margin: 0;
	}

	.home-mobile-search .search-field-wrap {
		height: 100%;
	}

	.home-mobile-search .search-form .search-field {
		font-size: 16px;
		padding-left: 20px;
		padding-right: 76px;
	}

	.home-mobile-search .live-search-results {
		top: calc(100% + 8px);
	}

	.home-mobile-nav {
		width: 100%;
		max-width: none;
		margin: 0;
	}

	.home-mobile-nav ul {
		border-top: var(--border);
	}

	.home-mobile-nav li {
		border-bottom: var(--border);
	}

	.home-mobile-nav a {
		display: grid;
		grid-template-columns: 42px minmax(0, 1fr);
		align-items: center;
		gap: 14px;
		min-height: 64px;
		box-sizing: border-box;
		padding: 12px 4px;
		color: var(--color-text-primary);
		text-decoration: none;
	}

	.home-mobile-nav .sidebar-nav__number {
		font-family: var(--font-body);
		font-size: 28px;
		font-weight: 300;
		line-height: 1;
		letter-spacing: -0.04em;
	}

	.home-mobile-nav .sidebar-nav__label {
		font-family: var(--font-body);
		font-size: 15px;
		line-height: 1.35;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		white-space: normal;
	}

	.home-mobile-nav .sidebar-nav__about {
		margin-top: 0;
	}

	.home-mobile-nav .sidebar-nav__about a {
		min-height: 60px;
	}

	/* Use the hero's existing fade/rise, independently of the drawer motion. */
	body.home .home-mobile-browse .home-mobile-search {
		animation: plaHomeHeroUp 720ms cubic-bezier(0.16, 1, 0.3, 1) 1000ms both;
	}

	body.home .home-mobile-browse .home-mobile-nav li {
		animation: plaHomeHeroUp 680ms cubic-bezier(0.16, 1, 0.3, 1) var(--home-nav-delay, 1160ms) both !important;
	}

	body.home .home-mobile-browse .home-mobile-nav li:nth-child(1) { --home-nav-delay: 1160ms; }
	body.home .home-mobile-browse .home-mobile-nav li:nth-child(2) { --home-nav-delay: 1220ms; }
	body.home .home-mobile-browse .home-mobile-nav li:nth-child(3) { --home-nav-delay: 1280ms; }
	body.home .home-mobile-browse .home-mobile-nav li:nth-child(4) { --home-nav-delay: 1340ms; }
	body.home .home-mobile-browse .home-mobile-nav li:nth-child(5) { --home-nav-delay: 1400ms; }
	body.home .home-mobile-browse .home-mobile-nav li:nth-child(6) { --home-nav-delay: 1460ms; }
	body.home .home-mobile-browse .home-mobile-nav li:nth-child(7) { --home-nav-delay: 1520ms; }

	/* Keep a control fully visible if a keyboard user reaches it mid-reveal. */
	body.home .home-mobile-browse .home-mobile-search:focus-within,
	body.home .home-mobile-browse .home-mobile-nav li:focus-within {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}

	.home-mobile-nav a:hover .sidebar-nav__label {
		text-decoration: underline;
		text-underline-offset: 4px;
	}

}

/* Tablet navigation reads down each column, with About below both. */
@media (min-width: 768px) and (max-width: 1199px) {

	body.home .home-cover--sidebar {
		display: block;
		height: auto;
		max-height: none;
		overflow: visible;
	}

	/* Let the search/navigation follow the copy instead of a full-height hero. */
	body.home .home-cover--sidebar .home-cover__inner {
		display: block;
		height: auto;
		min-height: 0;
		max-height: none;
		padding: 48px 0 40px;
		box-sizing: border-box;
	}

	body.home .home-cover--sidebar .home-cover__hero {
		min-height: 0;
	}

	body.home .home-cover--sidebar .home-cover__eyebrow {
		font-size: 14px;
	}

	body.home .home-cover--sidebar .home-cover__intro {
		max-width: 720px;
		font-size: 20px;
		line-height: 1.55;
	}

	body.home .home-mobile-browse {
		width: min(860px, calc(100% - 80px));
		padding: 0 0 64px;
	}

	.home-mobile-search {
		margin-bottom: 32px;
	}

	.home-mobile-search .search-form {
		height: 56px;
	}

	.home-mobile-nav ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(3, auto);
		grid-auto-flow: column;
		column-gap: 32px;
	}

	.home-mobile-nav a {
		min-height: 76px;
		padding: 16px 4px;
	}

	.home-mobile-nav .sidebar-nav__number {
		font-size: 30px;
	}

	.home-mobile-nav .sidebar-nav__about {
		grid-column: 1 / -1;
		grid-row: 4;
	}

	.home-mobile-nav .sidebar-nav__about a {
		min-height: 64px;
	}

}

/* Preserve access to the new homepage controls without motion. */
@media (max-width: 1199px) and (prefers-reduced-motion: reduce) {
	body.home .home-mobile-browse .home-mobile-search,
	body.home .home-mobile-browse .home-mobile-nav li {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}
}
