.bmi-title-wrap {
	margin: 20px auto;
}
.bmi-wrap {
	max-width: 400px;
	padding: 20px;
	width: calc(100% - 10px);
}

.bmi-value {
	font-size: 2.5em;
	line-height: 1.2;
	margin-bottom: 10px;
	text-align: center;
}
.bmi-wrap .reference-range-wrap {
	width: 100%;
	--rr-height: 10px;
}
.bmi-table {
	position: relative;
	margin: 15px 0 40px 15px;
}
.bmi-row {
	display: flex;
	gap: 0.5px;
}
.bmi-row + .bmi-row {
	margin-top: 0.5px;
}
.bmi-row:first-child {
	border-radius: 8px 8px 0 0;
	overflow: hidden;
}
.bmi-row:last-child {
	border-radius: 0 0 8px 8px;
	overflow: hidden;
}
.bmi-cell {
	flex: 1;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	font-size: 0.8em;
	min-height: 28px;
	background: var(--reference-range-chart-shading);
}
.bmi-cell.focused {
	font-weight: bold;
	font-size: 1.05em;
	box-shadow: 0 0 0 3px var(--surface-bg);
	z-index: 1;
}
.bmi-table-labels {
	font-size: 0.7em;
	line-height: 1.2;
	color: var(--text-muted);
}
.bmi-table-y-min {
	position: absolute;
	top: 5px;
	right: 100%;
	margin-right: 5px;
	text-align: right;
	min-width: 30px;
}
.bmi-table-y-mid {
	position: absolute;
	display: flex;
	align-items: center;
	top: 50%;
	height: 30px;
	margin-top: -15px;
	right: 100%;
	margin-right: 5px;
	justify-content: right;
	text-align: right;
	min-width: 30px;
}
.bmi-table-y-max {
	position: absolute;
	bottom: 5px;
	right: 100%;
	margin-right: 5px;
	text-align: right;
	min-width: 30px;
}
.bmi-table-x-min {
	position: absolute;
	top: 100%;
	margin-top: 5px;
	left: 5px;
}
.bmi-table-x-mid {
	position: absolute;
	top: 100%;
	margin-top: 5px;
	left: 50%;
	width: 100px;
	margin-left: -50px;
	text-align: center;
}
.bmi-table-x-max {
	position: absolute;
	top: 100%;
	margin-top: 5px;
	right: 5px;
}

.bmi-age-row {
	margin: 30px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}
.bmi-age-row .number-input {
	margin-right: auto;
}
.bmi-age-row .select {
	width: 110px;
}
.bmi-input-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 20px 0 5px;
}
.bmi-input-row .number-input,
.bmi-age-row .number-input {
	width: 70px;
}
.darkmode .bmi-input-row .number-input,
.darkmode .bmi-age-row .number-input {
	border: none;
}
.bmi-input-row .toggle,
.bmi-input-row .number-input {
	margin-left: 3px;
}
.bmi-input-row .feet-input,
.bmi-input-row .inches-input {
	width: 60px;
}
.feet-inches-label {
	position: relative;
	width: 0;
	left: -22px;
	display: inline-flex;
	align-items: center;
	opacity: 0.5;
	pointer-events: none;
}
.bmi-wrap .slider-input {
	margin: 20px 0 25px;
	width: 100%;
	max-width: 100%;
}

.article-page-nav {
	margin-top: 12px;
	margin-bottom: 12px;
}
.article-page-nav .text-btn {
	font-weight: 600;
}
.article-page .article-page-nav {
	max-width: 860px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.article-page-nav-links {
	display: inline-flex;
	gap: 5px;
	overflow: hidden;
	white-space: nowrap;
	margin-right: 5px;
}
.article-page-nav-links .text-btn {
	font-size: 14px;
}
.article-page-body {
	font-size: 18px;
	max-width: 860px;
}
.article-page-meta {
	display: flex;
	align-items: center;
	margin-top: 15px;
}
.article-page-meta-title,
.article-page-meta-subtitle {
	display: flex;
	align-items: center;
	gap: 3px;
	column-gap: 6px;
	flex-wrap: wrap;
}
.article-page-meta-subtitle {
	font-size: 14px;
	color: var(--text-muted);
}
.article-page-meta-subtitle + .article-page-meta-subtitle {
	margin-top: 2px;
}
.article-page-author-img {
	width: 48px;
	height: 48px;
	margin-right: 16px;
	border-radius: 50%;
	object-fit: cover;
}
.article-page-author-img-wrap {
	display: flex;
}
.article-page-author {
	font-size: 14px;
	color: var(--text);
}
.article-page-date {
	font-size: 14px;
	color: var(--text-muted);
}
.article-dot {
	margin: 0 7px;
}
.article-page-sources-verified {
	text-decoration: underline;
}
.article-page-meta-subtitle .check-svg {
	width: 16px;
	height: 16px;
	padding: 3px;
	color: var(--guava-green);
	border: 1px solid var(--guava-green);
	border-radius: 50%;
}
.article-reviewer-link {
	color: var(--text);
}
@media (hover: hover) {
	a.article-page-author:hover {
		color: var(--guava-green-text);
	}
}


.article-page-content {
	padding: 15px 0;
	word-wrap: break-word;
}
.article-page h1 {
	font-size: 1.7em;
	font-weight: 600;
}
.article-page h2 {
	font-size: 1.5em;
	font-weight: 600;
}
.article-page h3 {
	font-size: 1.25em;
	display: flex;
	align-items: center;
}
.article-page h4 {
	font-weight: 600;
	display: flex;
	align-items: center;
}
.article-page h1:not(:first-child),
.article-page h2:not(:first-child),
.article-page h3:not(:first-child),
.article-page h4:not(:first-child) {
	margin-top: 50px;
}
.article-page-content ol,
.article-page-content ul,
.article-page-content p {
	margin: 1em 0 1.5em;
}
.article-page-content p {
	line-height: 1.8em;
}
.article-page-content p.centered {
	text-align: center;
}
.article-page-content li {
	line-height: 2em;
}
.article-page-content ol {
	list-style-type: decimal;
}
.article-page-content ol ol {
    list-style-type: lower-alpha;
}
.article-page-content ol ol ol {
    list-style-type: lower-roman;
}
.article-list-num {
	background: var(--guava-green);
	width: 40px;
	height: 40px;
	line-height: 40px;
	border-radius: 50%;
	margin-right: 10px;
	text-align: center;
	font-weight: bold;
	color: #fff;
}
.article-header-icon {
	width: 60px;
	height: 60px;
	margin-right: 10px;
	fill: var(--guava-green);
	color: var(--guava-green);
}
.article-header-with-icon {
	display: flex;
	align-items: center;
}
.article-header-icon-right {
	width: 32px;
	height: 32px;
	margin-left: 15px;
	fill: var(--logo-text);
}

.article-page-content a:hover {
	text-decoration: underline;
}
.article-page-content a.btn:hover {
	text-decoration: none;
}

.article-page-content sup {
	font-size: 0.75em;
}

.article-page-content table {
	border-collapse: collapse;
	width: 100%;
}
.article-page-content td,
.article-page-content th {
	border: 1px solid var(--border-color);
	padding: 5px;
}

.article-page figure {
	text-align: center;
	margin: 20px;
}
.article-page figcaption,
.article-img-caption {
	font-size: 0.8em;
	color: var(--text-muted);
	margin: 0.5em 0;
	text-align: center;
}
.article-img-title {
	font-size: 1.25em;
	font-weight: 600;
	text-align: center;
	margin: 40px 0 15px;
}
.article-figures {
	margin: 1em -0.5em;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.article-figures figure {
	text-align: center;
	margin: 0.5em;
	flex-shrink: 0;
}
.article-figures.small figure {
	width: 100px;
}
.article-figures.medium figure {
	width: 150px;
}
.article-page-content img {
	display: block;
	border-radius: 4px;
	object-fit: contain;
	max-width: 100%;
	height: auto;
}
.article-page-content img.card {
	border-radius: 12px;
}
.article-img.medium {
	max-width: 360px;
	max-height: 400px;
}
.article-img-float-right {
	float: right;
	margin: 1em 0 1em 1em;
}
.article-img-float-left {
	float: left;
	margin: 1em 1em 1em 0;
}
.article-img-center {
	margin: auto;
}
.article-page h2 + img {
	margin-top: 20px;
}
.article-page h3 + img {
	margin-top: 20px;
}
.article-video {
	max-width: 720px;
	margin: 25px auto;
}
@media (max-width: 720px) {
	.article-video.vertical {
		max-width: 380px;
	}
	.article-video.vertical .video-wrap {
		padding-bottom: 177.8%;
	}
}
.article-quote {
	margin: 60px 0;
	text-align: center;
	font-style: italic;
	font-weight: 300;
	font-size: 1.25em;
}
.article-page-content .article-quote-paragraph {
	font-style: italic;
	margin: 40px 30px;
}
.article-highlight-section {
	border-radius: 4px;
	border-left: 6px solid var(--guava-green);
	background: var(--hover-gray);
	padding: 15px 20px;
}
.article-highlight-section p:first-child {
	margin-top: 0;
}
.article-highlight-section p:last-child {
	margin-bottom: 0;
}
.article-page hr {
	border-top: 1px solid var(--card-separator);
	margin: 1em 0;
}
.article-more-label {
	font-size: 1.5em;
	margin-top: 40px;
	margin-bottom: 25px;
}
.articles-list-more-btn {
	margin: 35px 0;
}
.article-intro-section {
	padding: 15px 20px;
	border-radius: 10px;
	background: #eff4fa;
}
.darkmode .article-intro-section {
	background: var(--surface-bg-24dp);
}
.article-intro-section b {
	color: #1d5eaa;
}
.darkmode .article-intro-section b {
	color: #a7c8ff;
}
.article-related-section {
	padding: 15px 20px;
	border-radius: 10px;
	background: var(--guava-green-bg);
}
.article-related-section-gray {
	padding: 15px 20px;
	border-radius: 10px;
	background: var(--chip-bg);
}
.article-related-section-title {
	display: flex;
	align-items: center;
	gap: 15px;
	font-weight: 600;
	margin-bottom: 15px;
}
.article-related-section-icon {
	width: 24px;
	height: 24px;
	fill: var(--guava-green-text);
	flex-shrink: 0;
}
.article-footnote {
	font-size: 14px;
	color: var(--text-muted);
	font-style: italic;
}
.article-citations li {
	font-size: 12px;
}
@media (max-width: 860px) {
	.article-figures.carousel {
		overflow-x: auto;
		flex-wrap: nowrap;
		justify-content: flex-start;
		padding: 0 20px;
	}
}
@media(max-width: 660px) {
	h1 {
		font-size: 24px;
	}
	h2 {
		font-size: 20px;
	}
	.article-page-body {
		font-size: 16px;
	}
	.article-page figure {
		margin: 20px 0;
	}
	.article-figures figure {
		margin: 0.5em;
	}
	.article-img-float-left,
	.article-img-float-right {
		float: none;
		margin: 20px auto;
	}
}
.article-bottom-share-btn-wrap {
	margin-top: 15px;
	text-align: center;
}


/* Article List Page */
.articles-page {
	padding-top: 25px;
	padding-bottom: 65px;
}
.articles-page-header {
	font-weight: 600;
	text-align: center;
	margin-bottom: 15px;
}
.articles-page-subheader {
	font-size: 1em;
	text-align: center;
	margin: 0 auto 30px;
	max-width: 650px;
}
/* List Sections */
.articles-page-section + .articles-page-section {
	margin-top: 75px
}
.articles-page-section-title {
	font-size: 18px;
	font-weight: 600;
	padding-bottom: 4px;
	border-bottom: var(--card-separator);
	margin-bottom: 25px;
}
.articles-page-section-title a {
	color: var(--text);
}
.articles-list {
	display: grid;
	align-items: flex-start;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 40px;
}
.articles-list-item {
	display: flex;
	align-items: stretch;
	width: 100%;
}
.articles-list-item-img-wrap {
	position: relative;
	display: block;
	width: 144px;
	height: 96px;
	margin-right: 20px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
}
.articles-list-item-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 8px;
	object-fit: cover;
}
.articles-list-item-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
}
.articles-list-item-subtitle {
	color: var(--text-muted);
	font-size: 14px;
	margin-top: 5px;
}
/* Featured */
.articles-list-item.featured {
	flex-direction: column;
	grid-row: span 4;
	max-width: 550px;
	margin: 0 auto 15px;
}
.articles-list-item.featured .articles-list-item-img-wrap {
	width: 100%;
	padding-bottom: 66%;
	margin-right: 0;
	margin-bottom: 15px;
}
.articles-list-item.featured .articles-list-item-title {
	font-size: 18px;
	margin-bottom: 10px;
}

/* Tag Page */
.articles-tag-page {
	padding-bottom: 65px;
}
.articles-tag-page-header {
	background: var(--guava-green-bg);
	border-radius: 24px;
	padding: 30px 20px;
	margin-bottom: 40px;
}
.articles-tag-page-header .articles-page-subheader {
	margin-bottom: 0;
}

/* News Page */
.articles-news-list {
	margin-top: 45px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

@media (hover: hover) {
	.articles-page-section-title a:hover {
		color: var(--guava-green-text);
	}
	.articles-list-item:hover .articles-list-item-img-wrap {
		opacity: 0.85;
	}
	.articles-list-item:hover .articles-list-item-title {
		color: var(--guava-green-text);
	}
}
@media (max-width: 1024px) {
	.articles-tag-page-header {
		border-radius: 0;
		padding: 20px 15px;
		margin: 0 calc(-1 * var(--container-padding)) 25px;
	}
	.articles-list-item-img-wrap {
		width: 96px;
		height: 64px;
		margin-right: 15px;
	}
	.articles-list-item-title {
		font-size: 15px;
	}
}
@media (max-width: 600px) {
	.articles-page-subheader {
		font-size: 15px;
	}
}
@media (max-width: 400px) {
	.articles-list {
		display: flex;
		flex-wrap: wrap;
	}
	.articles-list-item-title {
		font-weight: 400;
	}
	.articles-list-item-subtitle {
		font-size: 12px;
	}
}

/*calculator pages*/
#calc-page-subtitle {
	font-size: 18px;
	margin: 0 0 25px;
	font-weight: normal;
	color: var(--text-muted);
}
.radio {
	position: relative;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
}
.radio:focus {
	outline: none;
}
.radio:focus-visible {
	box-shadow: 0 0 0 0.2rem var(--input-focus-shadow);
}
.radio .spinner {
	position: absolute;
	width: 25px;
	height: 25px;
	left: 50%;
	top: 50%;
	margin-left: -12.5px;
	margin-top: -12.5px;
	--spinner-color: currentColor;
}
.radio .btn {
	min-width: 34px; /* width of the widest single character with our font, so 1-character buttons are consistent */
}
.radio.full-width .btn {
	width: 100%;
	justify-content: start;
}
.radio.toggle {
	background: var(--chip-bg);
	padding: 3px;
	border-radius: 32px;
	gap: 0;
}
.radio.toggle .btn {
	border-radius: 32px;
	--btn-color: none;
	--btn-color-hover: var(--hover-gray);
	--btn-text: var(--text-muted);
}
.radio.toggle .btn.primary {
	--btn-text: var(--theme-color-text);
	--btn-color: var(--surface-bg);
	--btn-color-hover: var(--surface-bg);
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.darkmode .radio.toggle {
	background: rgba(0, 0, 0, 0.4);
}
.darkmode .radio.toggle .btn.primary {
	--btn-color: var(--chip-bg-hover);
	--btn-color-hover: var(--chip-bg-hover);
	box-shadow: none;
}
.radio-icon-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	padding: 4px 0;
}
.radio-icon-btn-icon {
	width: 60px;
	height: 60px;
	padding: 6px;
	fill: var(--theme-color-primary);
	border-radius: 50%;
	background: var(--theme-color-bg, var(--btn-color));
	border:	3px solid transparent;
}
.radio-icon-btn.selected .radio-icon-btn-icon {
	border-color: var(--theme-color-primary, var(--icon-gray));
}
.radio-icon-btn.unselected {
	opacity: 0.6;
}
.radio-icon-btn-label {
	font-size: 13px;
}
@media (hover: hover) {
	.radio-icon-btn:hover .radio-icon-btn-icon {
		background: var(--theme-color-light, var(--btn-color-hover));
	}
	.darkmode .radio-icon-btn:hover .radio-icon-btn-icon {
		background: var(--chip-bg-hover, var(--btn-color-hover));
	}
}
.modal > .card.alert-modal {
	width: 360px;
	background: var(--surface-bg-24dp);
}
.alert-modal .toast {
	box-shadow: none;
	border-radius: var(--card-border-radius);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	display: flex;
	max-width: none;
}
.alert-modal .form-btns {
	align-items: stretch;
}
.alert-modal .btn {
	width: 100%;
}
.modal {
 	position: fixed;
 	left: 0;
 	right: 0;
 	top: 0;
 	bottom: 0;
	background: rgba(0,0,0,0.7);
	overflow-y: auto;
	padding-top: 56px; /* for the header */
}
.darkmode .modal {
	background: rgba(0,0,0,0.65);
}
.modal.modal-no-overlay,
.darkmode .modal.modal-no-overlay {
	background: none;
}
.modal-header {
	position: fixed;
	top: 0;
	width: 100%;
	height: 56px;
	padding: 0 8px;
	background: rgba(0,0,0,0.6);
	display: flex;
	align-items: center;
	color: #fff;
	z-index: 1;
}
.darkmode .modal-header {
	background: var(--surface-bg-8dp);
}
.modal-title {
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	padding: 0 10px;
	flex-grow: 1;
}
.modal-icons {
	display: flex;
}
.modal > .card {
	width: 500px;
	max-width: calc(100% - 10px); /* need to utilize as much phone width as we can, they can be pretty skinny */
	margin: 20px auto;
	background: var(--surface-bg-8dp);
	box-shadow: var(--overlay-card-shadow);
}
.modal .card-header {
	padding: 15px 20px;
}
.modal .card-section {
	padding: 20px;
}
.toast-wrap {
	position: fixed;
	z-index: var(--toast-z-index);
	width: 100%;
	top: 20px;
	left: 0;
	pointer-events: none;
	text-align: center;
	transform: translateY(-30px);
	opacity: 0;
	transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
}
.toast-wrap.show {
	opacity: 1;
	transform: translateY(0);
}
.toast-wrap.hide {
	opacity: 0;
	transform: translateY(-30px);
}
.toast {
	display: inline-flex;
	align-items: center;
	max-width: 90%;
	padding: 8px 15px;
	border-radius: 8px;
	font-size: 20px;
	text-align: left;
	background: var(--toast-bg);
	color: var(--toast-text);
	stroke: var(--toast-icon-color);
	box-shadow: 0 0 6px var(--toast-icon-color);
}
.darkmode .toast {
	background: var(--surface-bg-24dp);
	color: var(--text);
	border: 1px solid var(--toast-icon-color);
	box-shadow: none;
}
.toast-icon {
	width: 30px;
	margin-right: 10px;
	fill: none;
	stroke-width: 10px;
	flex-shrink: 0;
}
.toast-success {
	--toast-bg: #edf7ed;
	--toast-text: var(--dark-green-text);
	--toast-icon-color: #4caf50;
}
.toast-error {
	--toast-bg: #fdecea;
	--toast-text: #611a15;
	--toast-icon-color: #f44336;
}
.toast-info {
	--toast-bg: #e8f4fd;
	--toast-text: #0d3c61;
	--toast-icon-color: #2196f3;
}
.toast-warning {
	--toast-bg: #fef4e5;
	--toast-text: #663c00;
	--toast-icon-color: #ff9800;
}
@media (max-width: 600px) {
	.toast {
		font-size: 16px;
	}
}
.slider-input {
	margin: 20px 15px;
	width: 260px;
	max-width: calc(100% - 30px);
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
}
.slider-input-track {
	position: relative;
	width: 100%;
	height: 6px;
	background: var(--theme-color-shadow);
	border-radius: 2em;
}
.slider-input-thumb {
	position: absolute;
	background: var(--theme-color-text);
	width: 18px;
	height: 18px;
	margin-left: -9px;
	top: -6px;
	border-radius: 50%;
}
.slider-input:focus {
	outline: none;
}
.slider-input:focus .slider-input-thumb.active {
	box-shadow: 0 0 0 0.7em var(--theme-color-shadow);
}
.slider-input-progress {
	position: absolute;
	left: 0;
	height: 100%;
	background: var(--theme-color-primary);
	border-radius: 2em;
}
.metric-color-good {
	--reference-range-color: var(--metric-green);
	--reference-range-text: var(--metric-green-text);
	--reference-range-chart-shading: var(--chart-shading-green);
}
.metric-color-slight-warn {
	--reference-range-color: #94c869;
	--reference-range-text: #6c9f43;
	--reference-range-chart-shading: var(--chart-shading-yellow);
}
.metric-color-warn {
	--reference-range-color: var(--orange-metric);
	--reference-range-text: var(--orange-metric);
	--reference-range-chart-shading: var(--chart-shading-orange);
}
.metric-color-bad {
	--reference-range-color: var(--red-metric);
	--reference-range-text: var(--red-metric);
	--reference-range-chart-shading: var(--chart-shading-red);
}
.metric-color-very-bad {
	--reference-range-color: #d74853;
	--reference-range-text: var(--red-metric);
	--reference-range-chart-shading: var(--chart-shading-red);
}

.reference-range-wrap {
	width: 200px;
	max-width: 100%;
	flex-shrink: 0;

	--rr-color: #ccc;
	--rr-dot-color: var(--chart-blue);
	--rr-height: 6px;
}
.darkmode .reference-range-wrap {
	--rr-color: #666;
}

.reference-range-outer {
	position: relative;
	height: var(--rr-height);
}
.reference-range-inner {
	position: relative;
	width: 100%;
	height: 100%;
}
.reference-range-bar {
	position: absolute;
	height: 100%;
	background: var(--reference-range-color, var(--rr-color));
}
.reference-range-bar.metric-color-in-range {
	--reference-range-color: var(--chart-blue);
}
.reference-range-value-dot {
	position: absolute;
	width: calc(var(--rr-height) + 8px);
	height: calc(var(--rr-height) + 8px);
	top: -4px;
	border-radius: 50%;
	transform: translate(-50%, 0);
	background: var(--surface-bg-8dp);
	border: 2px solid var(--reference-range-color, var(--rr-dot-color));
}
.reference-range-subtitle {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.reference-range-subtitle + .reference-range-outer {
	margin-top: 4px;
}
.reference-range-outer + .reference-range-subtitle {
	margin: 6px 0 0;
}
.reference-range-interpretation {
	font-size: 13px;
	white-space: nowrap;
	color: var(--reference-range-text, var(--text-muted));
}
.reference-range-interpretation.metric-color-in-range {
	--reference-range-text: var(--chart-blue);
}
.reference-range-date {
	font-size: 11px;
	color: var(--text-muted);
}
.reference-range-ticks {
	position: relative;
	height: 1.4em;
}
.reference-range-tick {
	position: absolute;
	transform: translate(-50%, 0);
	font-size: 12px;
	font-weight: 400;
	color: #888;
}
.reference-range-labels {
	position: relative;
	height: 1em;
	margin-top: 0.4em;
}
.reference-range-labels.staggered {
	height: 2.8em;
}
.reference-range-label {
	position: absolute;
	transform: translate(-50%, 0);
	font-size: 12px;
	font-weight: 400;
	color: var(--reference-range-text, var(--text-muted));
	white-space: nowrap;
}

.reference-range-value {
	display: flex;
	align-items: baseline;
	justify-content: center;
	margin-bottom: 2px;
}

.reference-range-unit {
	font-size: 12px;
	margin-left: 5px;
}

.feedback-form {
	text-align: left;
}
.feedback-form-length-counter {
	color: var(--text-muted);
	text-align: right;
	font-size: 0.85em;
	margin-top: 3px;
}
.feedback-email-msg {
	font-size: 14px;
	color: var(--text-muted);
	margin-bottom: 15px;
}
.feedback-btn.btn {
	--btn-text: var(--color-help-text);
	--btn-color: var(--color-help-color);
	--btn-color-hover-over-white: var(--color-help-color-hover-over-white);
}
.feedback-form .notice.primary {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	margin-bottom: -1px;
	z-index: 2;
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	--btn-text: var(--theme-color-primary);
	padding: 7px 15px;
}
.feedback-form .notice .btn,
.feedback-form .notice .tooltip-wrap {
	margin-left: auto;
}
.feedback-form .notice .tooltip-info-svg {
	background: var(--theme-color-primary);
}
.feedback-form .textarea-input {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}
.feedback-guide-btn {
	font-size: 1em;
}
.card-modal.modal {
	display: flex;
	align-items: flex-start;
	padding: 0;
}
.modal > .card.card-modal-card {
	--card-modal-margin-top: 80px;
	margin: var(--card-modal-margin-top) auto;
	display: flex;
	flex-direction: column;
}
.card.card-modal-card.full-screen {
	background: var(--surface-bg);
}
.card-modal-card.full-screen .card-header:not(.card-header-primary),
.darkmode .card-modal-card.full-screen .card-header-primary {
	background: var(--surface-bg-8dp);
}
.card.card-modal-card .card-header {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 10px 5px;
	border-bottom: var(--surface-border);
}
.darkmode .card-header.card-header-primary {
	background: var(--surface-bg-24dp);
}
.card-modal-back {
	align-self: flex-start;
}
.card-modal-back .btn-svg.cross-svg {
	height: 1.4em;
	width: 1.4em;
	--btn-text: currentColor;
}
.darkmode .card-modal-back {
	color: #fff;
}
.darkmode .card-header.card-header-primary {
	color: var(--theme-color-text);
}
.darkmode .card-header.card-header-primary .card-modal-back {
	color: var(--theme-color-text);
}
.darkmode .card-header.card-header-primary .overflow-menu-btn,
.darkmode .card-header.card-header-primary .card-modal-header-btns .btn {
	--btn-text: var(--theme-color-text);
}
.card-header-primary .card-modal-header-btns .text-btn {
	--btn-text: #fff;
}
.darkmode .card-header-primary .card-modal-header-btns .text-btn {
	--btn-text: var(--theme-color-text);
}
.darkmode .card-header-primary .card-header-subtitle {
	color: var(--text-muted);
}
.card-modal-body {
	border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
}
.card-modal-body.html-bg {
	background: var(--html-bg);
}

.card-modal-title {
	flex-grow: 1;
	overflow: hidden; /* so text-overflow works */
	padding-left: 15px;
	padding-right: 15px;
	text-align: left;
}
.card-modal-back + .card-modal-title {
	padding-left: 0;
}
.card-modal-header-with-btns {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.card-modal-header-title {
	flex-grow: 1;
	overflow: hidden; /* so text-overflow works */
	text-align: left;
}
.card-modal-header-btns {
	flex-shrink: 0;
	margin-right: -15px;
}
.card-modal-header-btns .text-btn {
	margin-right: 10px;
}
.card-modal-header-truncate {
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}
.card-header .overflow-menu-wrap {
	margin-left: -5px; /* remove the gap from card-header */
}
@media (max-height: 700px) {
	.modal > .card-modal-card.card {
		--card-modal-margin-top: 40px;
	}
}
@media (max-width: 500px) {
	.card.card-modal-card.full-screen {
		--card-modal-margin-top: 0;
		height: 100vh;
		max-width: 100vw;
		border-radius: 0;
	}
	.card.card-modal-card.full-screen > .card-header {
		border-radius: 0;
	}
	/* Only add overflow-y when full-screen otherwise datepicker could be cutoff */
	.card.card-modal-card.full-screen > .card-modal-body {
		overflow-y: auto;
		flex-grow: 1;
		border-radius: 0;
	}
}
.overflow-menu-wrap {
	position: relative;
}
.overflow-menu-btn {
	display: flex; /* otherwise there's extra margin when used inline, such as in card header */
}
.overflow-menu-btn .overflow-menu-svg {
	width: 30px;
	height: 30px;
}
.overflow-menu {
	position: absolute;
	background: var(--surface-bg-24dp);
	border: var(--surface-border);
	border-radius: 8px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
	z-index: var(--menu-z-index);
	width: max-content;
	max-width: calc(min(500px, 100vw - 40px));
}
.overflow-menu-item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 15px 20px;
	font-size: 16px;
	color: var(--text); /* override Link.jsx color */
	cursor: pointer;
}
.overflow-menu-item:hover {
	background: var(--hover-gray);
}
.overflow-menu-item-red {
	color: var(--red-error);
}
.overflow-menu-item-with-icon {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: -4px;
	--btn-text: var(--icon-gray);
	color: var(--text); /* override Link.jsx color */
}
.overflow-menu-wrap.primary .overflow-menu-btn,
.overflow-menu-wrap.primary .overflow-menu-item-with-icon {
	--btn-text: var(--theme-color-primary);
}
.darkmode .overflow-menu-wrap.primary .overflow-menu-btn {
	--btn-text: var(--theme-color-text);
}
@media (hover: hover) {
	.overflow-menu-wrap.primary .overflow-menu-btn:hover {
		--btn-text: var(--theme-color-primary);
		background: var(--theme-color-light);
	}
}
.upgrade-form.card-modal-card .card-header {
	border-color: transparent;
}
.upgrade-form.card {
	text-align: left;
}
.card.card-modal-card.upgrade-form.benefits-only {
	background: var(--theme-color-text);
	overflow: hidden;
}
.darkmode .card.card-modal-card.upgrade-form.benefits-only {
	background: var(--surface-bg-24dp);
}
.upgrade-form-card {
	position: relative;
	overflow: hidden;
	background: linear-gradient(to top, var(--theme-color-text), var(--theme-color-primary));
	color: #fff;
	padding-bottom: 20px;
}
.darkmode .upgrade-form-card {
	background: linear-gradient(to top, var(--surface-bg-24dp), var(--surface-bg-8dp));
}
.upgrade-form-header-logo {
	position: absolute;
	width: 280px;
	top: 0;
	left: -120px;
	opacity: 0.15;
}
.upgrade-form-header {
	display: flex;
	align-items: center;
	flex-direction: column;
	margin-right: -140px;
	padding: 20px;
}
.upgrade-form-header-name {
	font-size: 26px;
	font-weight: 600;
	margin-bottom: 4px;
}
.upgrade-form-header-premium {
	background: #fff;
	color: var(--theme-color-btn);
	padding: 0 16px 0 20px; /* -4px on the right to account for letter-spacing */
	border-radius: 3em;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
	letter-spacing: 4px;
	font-size: 20px;
}
.upgrade-form-highlight {
	position: relative; /* to display above the logo */
	padding: 20px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--theme-color-text);
	margin: 20px 0 30px;
	font-size: 18px;
}
.darkmode .upgrade-form-highlight {
	color: var(--text);
	background: rgba(40, 40, 40, 0.85);
}
.upgrade-form-features-header {
	text-align: center;
	font-weight: 600;
	margin-bottom: -10px;
}
.upgrade-form-features {
	position: relative; /* position in front of logo */
	padding: 25px 15px 0;
}
.upgrade-form-feature {
	width: 100%;
	background: var(--theme-color-text);
	border-radius: var(--card-border-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.24);
	border: 1px solid rgba(255, 255, 255, 0.5);
}
.upgrade-form-feature-inner {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	--btn-text: #fff;
}
.upgrade-form-feature-arrow {
	height: 24px;
}
.upgrade-form-feature:not(:last-child) {
	margin-bottom: 15px;
}
.darkmode .upgrade-form-feature {
	background: var(--surface-bg);
	border-color: var(--theme-color-text);
}
.upgrade-form-feature-text {
	flex-grow: 1;
	margin-left: 4px;
}
.upgrade-form-feature-description {
	display: flex;
	flex-direction: column;
	gap: 15px;
	font-size: 15px;
	padding: 8px 20px 20px 48px;
}
.btn.upgrade-form-feature-learn-btn {
	--btn-text: #fff;
}
.upgrade-form-feature-icon-bg {
	background: #fff;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	margin: -2px;
	--btn-text: var(--theme-color-text);
}
.upgrade-form-feature-icon {
	width: 100%;
	height: 100%;
	padding: 4px;
}
.darkmode .upgrade-form-feature-icon-bg {
	background: var(--theme-color-text);
	--btn-text: var(--surface-bg);
}
.btn.upgrade-form-feature-more {
	--btn-border-color: rgba(255, 255, 255, 0.5);
	--btn-border-width: 1px;
}
.upgrade-form-plan-toggle {
	padding: 25px 15px 0;
	text-align: center;
}
.upgrade-form-family {
	margin: 25px 20px;
	text-align: center;
}
.upgrade-form-family-option {
	position: relative;
	background: var(--theme-color-bg);
	border-radius: var(--card-border-radius);
	overflow: hidden;
	border: 3px solid var(--theme-color-primary);
	margin-top: 15px;
	color: var(--theme-color-text);
}
.darkmode .upgrade-form-family-option {
	background: var(--theme-color-tint);
}
.upgrade-form-family-price-per {
	font-size: 16px;
	font-weight: 400;
	opacity: 0.85;
}
.upgrade-form-family-icon {
	position: absolute;
	right: -15px;
	bottom: 9px;
	width: 96px;
	height: 96px;
	--btn-text: var(--theme-color-primary);
	opacity: 0.4;
}
.upgrade-form-family-discount {
	background: var(--theme-color-primary);
	color: #fff;
	margin-top: 15px;
}
.darkmode .upgrade-form-family-discount {
	background: none;
	color: var(--theme-color-text);
}
.upgrade-form-billing-options {
	display: flex;
	align-items: stretch;
	gap: 15px;
	padding: 25px 15px;
	max-width: 400px;
	margin: auto;
}
.upgrade-form-billing-option {
	--billing-option-color: var(--text);
	--billing-option-text: var(--text);
	flex-basis: 100%;
	display: flex;
	align-items: center;
	flex-direction: column;
	border-radius: var(--card-border-radius);
	border: 3px solid var(--billing-option-color);
	overflow: hidden;
	color: var(--billing-option-text);
	opacity: 0.4;
}
.upgrade-form-billing-option-label {
	padding: 2px 0;
	font-size: 18px;
	font-weight: 600;
}
.upgrade-form-billing-option.active {
	opacity: 1;
	--billing-option-color: var(--theme-color-primary);
	--billing-option-text: var(--theme-color-text);
	background: var(--theme-color-bg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.24);
}
.darkmode .upgrade-form-billing-option.active {
	background: var(--theme-color-tint);
}
.upgrade-form-billing-option-price {
	font-size: 32px;
	font-weight: 600;
	padding: 15px 0;
}
.upgrade-form-billing-option-price-cross {
	color: var(--text-muted);
	text-decoration: line-through;
	font-size: 18px;
	margin-top: -15px;
	margin-bottom: 15px;
}
.upgrade-form-billing-option-subtitle {
	font-size: 0.8em;
}
.upgrade-form-billing-option-discount {
	background: var(--billing-option-color);
	color: #fff;
	width: 100%;
	text-align: center;
}
.darkmode .upgrade-form-billing-option-discount {
	color: var(--billing-option-text);
	background: none;
}
.upgrade-form-billing-provider-discount {
	font-size: 15px;
	font-weight: 600;
	color: var(--theme-color-text);
	text-align: center;
	padding: 0 15px 20px;
}
.form-btns.upgrade-form-upgrade-btn {
	margin: 0 15px 25px;
}
.upgrade-form-upgrade-btn .btn {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.24);
}
.upgrade-form-add-to-family-plan-title {
	margin-top: 10px;
	font-size: 20px;
	font-weight: 600;
}
.upgrade-form-add-to-family-plan-subtitle {
	font-size: 15px;
	color: var(--text-muted);
	margin-top: 4px;
}
.upgrade-form-disable-notice {
	margin: 0 15px 20px;
}
/* should align with width where card-modal because fullscreen */
@media (max-width: 500px) {
	.form-btns.upgrade-form-upgrade-btn {
		position: sticky;
		bottom: 25px;
	}
	.upgrade-form-upgrade-btn .btn {
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
	}
}
@media (hover: hover) {
	.upgrade-form-feature-inner:hover {
		background: rgba(0, 0, 0, 0.1);
	}
	.upgrade-form-billing-option:not(.active):hover {
		background: var(--hover-gray);
	}
}
.plans {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
}
.plan {
	--plan-color: var(--text-muted);
	--plan-text-color: var(--text);
	--plan-bg-color: none;
	--plan-shadow: 0 1px 3px rgba(63, 63, 63, 0.12), 0 1px 2px rgba(63, 63, 63, 0.24);

	flex: 1 0 340px;
	max-width: 400px;
	display: flex;
	flex-direction: column;
	border-radius: 8px;
	border: 2px solid var(--plan-color);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--plan-shadow);
}
.plan.premium {
	--plan-color: var(--upgrade-color-primary);
	--plan-text-color: var(--upgrade-color-text);
	--plan-color-btn-hover: var(--upgrade-color-btn-hover);
	--plan-bg-color: var(--upgrade-color-bg);
	--plan-shadow: 0 1px 3px var(--upgrade-color-light), 0 1px 2px var(--upgrade-color-shadow);
}
.plan-header {
	padding: 15px 20px;
	background: var(--plan-bg-color);
	color: var(--plan-text-color);
	border-bottom: var(--card-separator);
}
.plan-title {
	display: flex;
	justify-content: space-between;
	font-size: 1.6em;
	font-weight: 600;
}
.plan-price-per {
	font-size: 16px;
	font-weight: 400;
}
.plan .icon-check {
	--icon-color: var(--plan-color);
}
.plan-features {
	flex-grow: 1;
	margin: 0;
	padding: 25px;
}
.plan-features li {
	list-style: none;
	display: flex;
	gap: 15px;
}
.plan-features li:not(:last-child) {
	margin-bottom: 15px;
}
.plan-submit-btn {
	display: flex;
	width: 320px;
	max-width: 100%;
	margin: 25px auto;
	font-size: 20px;
}
.plan-feature-subset {
	color: var(--plan-text-color);
}
.plan-features-expand-btn {
	align-self: center;
}
.plan-yearly-toggle {
	margin: 20px 0;
	font-size: 18px;
	text-align: center;
}
.plan-yearly-toggle-switch {
	display: inline-flex;
	gap: 15px;
	align-items: center;
	justify-content: center;
}
.plan-discount {
	color: var(--guava-green-text);
}
#tooltip-root {
	position: fixed;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: var(--tooltip-z-index);
	width: 100%;
}
.tooltip-wrap {
	display: inline-flex; /* align svg icon, remove excess inline space */
	align-items: center;
}
.tooltip-wrap.has-tooltip {
	margin-bottom: -1px; /* remove extra 1px block height added by has-tooltip border-bottom */
}
.tooltip {
	position: absolute;
	color: #fff;
	background: #616161;
	border-radius: 2px;
	white-space: normal;
	padding: 5px 8px;
	min-width: 56px;
	max-width: min(80vw, 350px);
	text-align: center;
	font-size: 12px;
	pointer-events: none;
}
.tooltip-wrap .help-svg,
.tooltip-info-svg {
	width: 16px;
	height: 16px;
	margin-left: 5px;
	flex-shrink: 0;
	border-radius: 50%;
	cursor: pointer;
}
.tooltip-info-svg {
	background: #bbb;
	stroke: var(--surface-bg);
	stroke-width: 3px;
}
.darkmode .tooltip-info-svg {
	background: rgba(255, 255, 255, 0.4);
}
@media (hover: hover) {
	.tooltip-info-svg:hover {
		background: #999;
	}
	.darkmode .tooltip-info-svg:hover {
		background: rgba(255, 255, 255, 0.54);
	}
}
.animated-placeholders {
	height: 60px;
	margin-bottom: -60px;
	padding: 0.8em 1.2em;
	color: var(--input-placeholder);
	line-height: 1.4; /* copy .textarea-input so height matches perfectly */
	z-index: 1;
	pointer-events: none;
}
.guides-modal-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 0 10px 10px;
}
.video-modal {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	pointer-events: none;
}
.video-modal-wrap {
	pointer-events: auto;
	width: 100%;
	max-width: 960px;
	aspect-ratio: 16/9;
}
.video-modal-video {
	width: 100%;
	height: 100%;
}
