/* Shelf navigation: phone section screens and footer (Lane B). Loaded asynchronously. Contract section 11.
   Ported from the approved prototype's MOBILE_CSS (reference/nav-redesign/v5/build.py:325-442); design values unchanged.
   The frame, top bar and root tiles are in shelf-drawer-critical.css. */

/* Every drawer link is navy unless its own rule says otherwise (a card link must not inherit the page's grey text). */
.divein-shelf-drawer a {
	color: var(--blue-900);
}

/* The site's two link tells inside the drawer: a text link (navy, soft green underline) and a navy button. Their
   transitions apply only while the drawer is open: this sheet loads asynchronously, and a transition declared with the
   colours it changes would otherwise run on the closed drawer when the sheet arrives (suite F4). */
.divein-shelf-drawer .divein-shelf-text-link {
	color: var(--blue-900);
	text-decoration: underline;
	text-decoration-color: var(--green-300);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
html.collapse-activated .divein-shelf-drawer .divein-shelf-text-link {
	transition: color 0.13s var(--divein-shelf-ease), text-decoration-color 0.13s var(--divein-shelf-ease);
}
@media (hover: hover) {
	.divein-shelf-drawer .divein-shelf-text-link:hover,
	.divein-shelf-drawer a:hover .divein-shelf-text-link {
		color: var(--blue-600);
		text-decoration-color: var(--green-500);
		text-decoration-thickness: 2px;
	}
}
.divein-shelf-drawer .divein-shelf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 13px;
	line-height: 1;
	color: #fff;
	background: var(--blue-900);
	border: 2px solid var(--blue-900);
	border-radius: var(--radius-inner-4);
	padding: 0 16px;
	min-height: 38px;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
}
html.collapse-activated .divein-shelf-drawer .divein-shelf-btn {
	transition: background 0.15s var(--divein-shelf-ease), border-color 0.15s var(--divein-shelf-ease), transform 0.15s var(--divein-shelf-ease), box-shadow 0.15s var(--divein-shelf-ease);
}
@media (hover: hover) {
	.divein-shelf-drawer .divein-shelf-btn:hover {
		color: #fff;
		background: var(--blue-800);
		border-color: var(--blue-800);
		transform: translateY(-1px);
		box-shadow: var(--shadow-primary);
	}
}
.divein-shelf-drawer .divein-shelf-btn svg {
	width: 14px;
	height: 14px;
	flex: none;
}
.divein-shelf-drawer .divein-shelf-btn--lg {
	font-size: 15px;
	min-height: 50px;
	padding: 0 20px;
	border-radius: var(--radius);
}

/* Screens: the second replaces the first, sliding in from the side it came from. */
html.divein-shelf-ready .divein-shelf-drawer__body[data-dir="fwd"] .divein-shelf-view:not([hidden]) {
	animation: divein-shelf-view-in 0.34s var(--divein-shelf-ease) both;
}
html.divein-shelf-ready .divein-shelf-drawer__body[data-dir="back"] > .divein-shelf-mobile-menu,
html.divein-shelf-ready .divein-shelf-drawer__body[data-dir="back"] > .divein-shelf-drawer__footer {
	animation: divein-shelf-view-back 0.3s var(--divein-shelf-ease) both;
}
@keyframes divein-shelf-view-in {
	from { opacity: 0; transform: translateX(28px); }
	to { opacity: 1; transform: none; }
}
@keyframes divein-shelf-view-back {
	from { opacity: 0; transform: translateX(-18px); }
	to { opacity: 1; transform: none; }
}

/* Root footer: Hands-on reviews, Newsletter, About and Contact, socials (the More menu, drawer context). */
.divein-shelf-drawer__footer {
	margin: 8px 16px 0;
	padding: 8px 0 calc(20px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--gray-100);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
/* Section screens: the section's card, then its contents. */
.divein-shelf-mobile-section__band {
	display: block;
	margin: 12px 16px 4px;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	overflow: hidden;
	background: #fff;
}
.divein-shelf-mobile-section__band img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 2;
	object-fit: cover;
	background: var(--beige-100);
}
.divein-shelf-mobile-section__band-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 10px 10px 14px;
}
.divein-shelf-mobile-section__band-copy {
	font-size: 13px;
	line-height: 1.35;
	color: var(--gray-700);
	text-wrap: balance;
}
.divein-shelf-mobile-section__band-row .divein-shelf-btn {
	flex: none;
	min-height: 44px;
}
.divein-shelf-mobile-section__category {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 16px 6px;
}
.divein-shelf-mobile-section__category img {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	object-fit: cover;
	flex: none;
	background: var(--beige-100);
}
.divein-shelf-mobile-section__category-title {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 16px;
	letter-spacing: -0.01em;
	color: var(--blue-900);
	flex: 1;
	min-width: 0;
}
a.divein-shelf-mobile-section__category {
	color: var(--blue-900);
	padding: 6px 16px;
	min-height: 64px;
	border-bottom: 1px solid var(--gray-100);
	margin: 0;
}
a.divein-shelf-mobile-section__category svg {
	width: 15px;
	height: 15px;
	flex: none;
	color: var(--lightblue-600);
}
a.divein-shelf-mobile-section__category:active {
	background: var(--beige-50);
}
a.divein-shelf-mobile-section__category:active .divein-shelf-mobile-section__category-title {
	color: var(--blue-600);
}
a.divein-shelf-mobile-section__category--group {
	padding: 12px 16px 6px;
	min-height: 70px;
	border-bottom: 0;
}
.divein-shelf-mobile-section__link {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 16px;
	padding: 0 4px 0 64px;
	min-height: 48px;
	border-bottom: 1px solid var(--gray-100);
	font-size: 15px;
	color: var(--blue-900);
}
.divein-shelf-mobile-section__link svg {
	width: 14px;
	height: 14px;
	margin-left: auto;
	flex: none;
	color: var(--lightblue-600);
}
a.divein-shelf-mobile-section__link:active {
	background: var(--beige-50);
	color: var(--blue-600);
}
.divein-shelf-mobile-section__cells {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 14px;
	margin: 0 16px;
}
.divein-shelf-mobile-section__cell {
	display: flex;
	align-items: center;
	min-height: 46px;
	min-width: 0;
	padding: 0 4px;
	border-bottom: 1px solid var(--gray-100);
	font-size: 15px;
	color: var(--blue-900);
}
.divein-shelf-mobile-section__cell .divein-shelf-text-link {
	display: block;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-bottom: 2px;
}
a.divein-shelf-mobile-section__cell:active {
	background: var(--beige-50);
}

/* Articles and News: the lead story, story rows with meta (Lane A's dynamic rows, phone context). */
.divein-shelf-mobile-section__lead {
	display: block;
	margin: 14px 16px 0;
}
.divein-shelf-mobile-section__lead-image {
	display: block;
	height: 190px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--beige-100);
	margin-bottom: 10px;
}
.divein-shelf-mobile-section__lead-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.divein-shelf-mobile-section__lead-title {
	display: block;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 18px;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--blue-900);
}
.divein-shelf-mobile-section__lead:active .divein-shelf-mobile-section__lead-title {
	color: var(--blue-600);
}
.divein-shelf-mobile-section__lead-summary {
	display: block;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--gray-700);
	margin-top: 6px;
}
.divein-shelf-mobile-meta {
	display: block;
	font-size: 12px;
	line-height: 1.4;
	color: var(--gray-600);
	margin-top: 2px;
}
.divein-shelf-mobile-meta b {
	font-weight: 600;
	color: var(--blue-600);
}
.divein-shelf-mobile-section__lead .divein-shelf-mobile-meta {
	margin-top: 8px;
}
.divein-shelf-mobile-story {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 0 16px;
	padding: 10px 4px 10px 0;
	border-bottom: 1px solid var(--gray-100);
	min-height: 74px;
	color: var(--blue-900);
}
.divein-shelf-mobile-story img {
	width: 76px;
	height: 56px;
	border-radius: 9px;
	object-fit: cover;
	flex: none;
	background: var(--beige-100);
}
.divein-shelf-mobile-story > span {
	min-width: 0;
	flex: 1;
}
.divein-shelf-mobile-story > svg {
	width: 14px;
	height: 14px;
	flex: none;
	color: var(--lightblue-600);
}
.divein-shelf-mobile-story__title {
	display: block;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
	letter-spacing: -0.005em;
	color: var(--blue-900);
}
a.divein-shelf-mobile-story:active {
	background: var(--beige-50);
}
a.divein-shelf-mobile-story:active .divein-shelf-mobile-story__title {
	color: var(--blue-600);
}

/* Labels, subjects and sections. */
.divein-shelf-mobile-label {
	display: block;
	padding: 20px 16px 4px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--gray-600);
}
.divein-shelf-mobile-subs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 14px;
	margin: 0 16px;
}
.divein-shelf-mobile-subs__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	padding: 0 4px;
	border-bottom: 1px solid var(--gray-100);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 14px;
	color: var(--blue-900);
}
.divein-shelf-mobile-subs__item svg {
	width: 14px;
	height: 14px;
	color: var(--lightblue-600);
	flex: none;
}
a.divein-shelf-mobile-subs__item:active {
	background: var(--beige-50);
	color: var(--blue-600);
}
.divein-shelf-mobile-sections__item {
	display: block;
	min-height: 56px;
	padding: 8px 4px;
	border-bottom: 1px solid var(--gray-100);
}
.divein-shelf-mobile-sections__item b {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 14px;
	color: var(--blue-900);
}
.divein-shelf-mobile-sections__item b svg {
	width: 13px;
	height: 13px;
	color: var(--lightblue-600);
	flex: none;
}
.divein-shelf-mobile-sections__item span {
	display: block;
	font-size: 12px;
	line-height: 1.35;
	color: var(--gray-600);
	margin-top: 2px;
}
a.divein-shelf-mobile-sections__item:active {
	background: var(--beige-50);
}
.divein-shelf-view__end {
	height: calc(28px + env(safe-area-inset-bottom));
}
@media (prefers-reduced-motion: reduce) {
	html.divein-shelf-ready .divein-shelf-drawer__body[data-dir] > * {
		animation: none !important;
	}
}

/* Paid Featured cards on the Articles screen: two cards after the lead story (contract 8.2a). The card look is
   shared with the desktop panel in shelf-panels.css; only the phone spacing and title size live here. */
.divein-shelf-featured--phone .divein-shelf-featured__cards {
	margin: 4px 16px 0;
}
.divein-shelf-drawer .divein-shelf-featured--phone .divein-shelf-featured__title {
	font-size: 13px;
}
