/* A compact mobile reading shell. Desktop keeps the publisher layout. */
.oh-app-nav,
.oh-app-sheet { display: none; }

@media (max-width: 720px) {
	.oh-support-story .oh-news-kicker {
		display: inline-flex;
		align-items: flex-start;
		min-height: 28px;
		padding-bottom: 6px;
	}
	.oh-support-story h2 { margin-top: 0; }

	html.oh-mobile-app-ready body.wp-child-theme-onehundred {
		padding-bottom: calc(84px + env(safe-area-inset-bottom));
	}
	html.oh-mobile-app-ready .oh-masthead {
		position: sticky;
		top: 0;
		z-index: 100;
		padding: 0;
		overflow: visible;
		border-bottom: 1px solid var(--oh-line);
		background: var(--oh-surface);
	}
	html.oh-mobile-app-ready body.admin-bar .oh-masthead { top: 46px; }
	html.oh-mobile-app-ready .oh-publisher-bar,
	html.oh-mobile-app-ready .oh-masthead .oh-tagline,
	html.oh-mobile-app-ready .oh-primary-band,
	html.oh-mobile-app-ready .oh-news-ticker { display: none; }
	html.oh-mobile-app-ready .oh-masthead__main {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		min-height: 58px;
		padding-block: 6px;
	}
	html.oh-mobile-app-ready .oh-masthead__main .oh-brand {
		min-width: 0;
		font-size: clamp(1.65rem, 7.5vw, 2rem);
		line-height: 1;
	}
	html.oh-mobile-app-ready .oh-masthead__main .oh-brand__image {
		max-width: min(43vw, 170px);
		max-height: 38px;
		object-fit: contain;
	}
	html.oh-mobile-app-ready .oh-masthead__main .oh-actions {
		justify-self: auto;
		justify-content: flex-end;
		flex: 0 0 auto;
		width: auto;
		gap: 0;
	}
	html.oh-mobile-app-ready .oh-masthead__main .oh-actions::before,
	html.oh-mobile-app-ready .oh-masthead__main .oh-actions :is(.oh-search, .oh-account, .oh-button),
	html.oh-mobile-app-ready .oh-theme-toggle__label { display: none !important; }
	html.oh-mobile-app-ready .oh-masthead__main .oh-theme-toggle {
		display: grid;
		place-items: center;
		width: 44px;
		min-width: 44px;
		height: 44px;
		min-height: 44px;
		padding: 0;
		border: 1px solid var(--oh-line);
		border-radius: 50%;
		background: var(--oh-surface-muted);
		color: var(--oh-ink);
		font-size: 20px;
	}
	.oh-app-nav {
		position: fixed;
		z-index: 9999;
		right: 0;
		bottom: 0;
		left: 0;
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		align-items: start;
		min-height: calc(70px + env(safe-area-inset-bottom));
		padding: 5px max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
		border-top: 1px solid var(--oh-line);
		background: var(--oh-surface);
		box-shadow: 0 -10px 24px rgba(21, 21, 21, .08);
		box-sizing: border-box;
	}
	.oh-app-nav__item,
	body.wp-child-theme-onehundred .oh-app-nav__item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		min-width: 0;
		min-height: 58px;
		padding: 5px 2px 4px;
		border: 0;
		border-radius: 11px;
		background: transparent;
		color: var(--oh-muted);
		font: 700 10px/1.1 var(--oh-sans);
		letter-spacing: .01em;
		text-align: center;
		text-decoration: none;
		white-space: nowrap;
		box-shadow: none;
		cursor: pointer;
	}
	.oh-app-nav__item svg { display: block; width: 23px; height: 23px; flex: 0 0 auto; }
	.oh-app-nav__item.is-current,
	body.wp-child-theme-onehundred .oh-app-nav__item.is-current {
		background: var(--oh-surface-muted);
		color: var(--oh-blue);
	}
	.oh-app-nav__item:hover,
	body.wp-child-theme-onehundred .oh-app-nav__item:hover {
		background: var(--oh-surface-muted);
		color: var(--oh-ink);
	}
	.oh-app-nav__item[hidden] { display: none !important; }
	.oh-app-nav:has(.oh-app-nav__install[hidden]) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.oh-app-nav__item:focus-visible,
	.oh-app-sheet :is(button, a):focus-visible {
		outline: 3px solid var(--oh-blue);
		outline-offset: -2px;
	}
	.oh-app-sheet[open] {
		position: fixed;
		inset: auto 0 0;
		z-index: 10001;
		display: block;
		width: 100%;
		max-width: 720px;
		max-height: calc(100dvh - 62px);
		margin: 0 auto;
		padding: 0 0 env(safe-area-inset-bottom);
		border: 1px solid var(--oh-line);
		border-bottom: 0;
		border-radius: 18px 18px 0 0;
		background: var(--oh-surface);
		color: var(--oh-ink);
		box-shadow: 0 -22px 55px rgba(0, 0, 0, .2);
		box-sizing: border-box;
		overflow-y: auto;
	}
	.oh-app-sheet::backdrop { background: rgba(21, 21, 21, .64); }
	.oh-app-sheet__head {
		position: sticky;
		top: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 20px 20px 15px;
		border-bottom: 1px solid var(--oh-line);
		background: var(--oh-surface);
	}
	.oh-app-sheet__eyebrow { color: var(--oh-blue); font: 800 10px/1.2 var(--oh-sans); letter-spacing: .1em; text-transform: uppercase; }
	body.wp-child-theme-onehundred .oh-app-sheet h2 { margin: 5px 0 0; color: var(--oh-ink) !important; font: 800 26px/1.1 var(--oh-sans) !important; }
	body.wp-child-theme-onehundred .oh-app-sheet__close {
		display: grid;
		place-items: center;
		width: 44px;
		min-width: 44px;
		height: 44px;
		min-height: 44px;
		padding: 0;
		border: 1px solid var(--oh-line);
		border-radius: 50%;
		background: var(--oh-surface-muted);
		color: var(--oh-ink);
		font-size: 27px;
		font-weight: 400;
		line-height: 1;
	}
	.oh-app-sheet__body { padding: 8px 20px 26px; }
	.oh-app-sheet__sections .oh-section-nav__list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 18px;
		min-width: 0;
		margin: 0;
		padding: 0;
		list-style: none;
	}
	.oh-app-sheet__sections .oh-section-nav__list li { min-width: 0; margin: 0; border-bottom: 1px solid var(--oh-line); }
	.oh-app-sheet__sections .oh-section-nav__list a,
	body.wp-child-theme-onehundred .oh-app-sheet__sections .oh-section-nav__list a {
		display: flex;
		align-items: center;
		min-height: 52px;
		padding: 7px 0;
		box-shadow: none;
		color: var(--oh-ink) !important;
		font: 700 13px/1.2 var(--oh-sans);
		letter-spacing: 0;
		text-transform: none;
		white-space: normal;
	}
	.oh-app-sheet__sections .oh-section-nav__list :is(.current-menu-item, .current-cat) a { color: var(--oh-blue) !important; }
	.oh-app-sheet__links { display: grid; gap: 0; margin-top: 18px; border-top: 2px solid var(--oh-blue); }
	.oh-app-sheet__links a { display: flex; justify-content: space-between; min-height: 44px; align-items: center; border-bottom: 1px solid var(--oh-line); color: var(--oh-muted); font-size: 13px; font-weight: 700; text-decoration: none; }
	.oh-app-install__intro { margin: 15px 0; color: var(--oh-ink); font-size: 16px; font-weight: 650; line-height: 1.5; }
	.oh-app-install__message { margin: 0 0 18px; padding: 16px; border-left: 3px solid var(--oh-blue); background: var(--oh-surface-muted); color: var(--oh-ink); font-size: 14px; line-height: 1.5; }
	body.wp-child-theme-onehundred .oh-app-install__action { min-height: 48px; padding: 0 22px; border: 1px solid var(--oh-ink); border-radius: 8px; background: var(--oh-ink); color: #fff; }
	.oh-app-install__note { margin: 16px 0 0; color: var(--oh-muted); font-size: 12px; line-height: 1.5; }
	.oh-app-sheet[open] ~ .oh-app-nav { visibility: hidden; }
	html.oh-mobile-app-ready .mpa-slot--mobile-anchor { bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 9997; }
	html.oh-mobile-app-ready body:has(.mpa-slot--mobile-anchor:not([hidden])) { padding-bottom: calc(168px + env(safe-area-inset-bottom)); }
	/* The editor-only SEO beacon must not block the Home action. */
	html.oh-mobile-app-ready body.admin-bar .sp-beacon { top: auto !important; bottom: calc(82px + env(safe-area-inset-bottom)) !important; }
}

@media (max-width: 360px) {
	.oh-app-nav__item,
	body.wp-child-theme-onehundred .oh-app-nav__item { font-size: 9px; }
	.oh-app-sheet__sections .oh-section-nav__list { gap: 0 12px; }
}

@media (min-width: 721px) {
	.oh-app-sheet[open] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.oh-app-nav, .oh-app-sheet { scroll-behavior: auto; }
}
