@font-face {
	font-family: 'opensans';
	src:
	  local("opensans"),
	  url("../fonts/opensans-regular.ttf") format("truetype");
}
  @font-face {
	font-family: 'opensans-bold';
	src:
	  local("opensans-bold"),
	  url("../fonts/opensans-bold.ttf") format("truetype");
}

:root {
	--open-sans: 'opensans', sans-serif;
	--open-sans-bold: 'opensans-bold', sans-serif;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	height: 100%;
}

body {
	min-height: 100%;
	font-family: var(--open-sans);
	color: #000;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
}

body.modal-open {
	overflow: hidden;
}

img {
	display: block;
	margin: 0;
	height: auto;
	max-width: 100%;
}

img::selection {
	user-select: none
}

button {
	box-shadow: none;
	text-shadow: none;
	background-image: none;
	outline: none;
}
button:hover, button:focus {
	outline: none;
}

/* ===== Hero section ===== */
.hero {
	background: #0a1e3d;
	width: 100%;
	padding: 24px 20px;
	flex-shrink: 0;
	transition: padding 0.4s ease, max-height 0.4s ease;
	overflow: hidden;
}

.hero.collapsed {
	padding: 12px 20px;
	max-height: 70px;
	cursor: pointer;
}

.hero.collapsed .hero-inner {
	align-items: center;
}

.hero.collapsed .hero-title {
	font-size: 1.2rem;
	margin-bottom: 0;
	display: inline;
}

.hero.collapsed .hero-title br {
	display: none;
}

.hero.collapsed .hero-title span::after {
	content: " ";
}

.hero.collapsed .hero-description,
.hero.collapsed .hero-instructions,
.hero.collapsed .hero-wheel-preview {
	display: none;
}

.hero.collapsed .hero-logos {
	margin-top: 0;
	margin-left: auto;
	gap: 10px;
}

.hero.collapsed .hero-logo {
	height: 36px;
}

.hero.collapsed .hero-inner {
	flex-direction: row;
	gap: 16px;
}

.hero.collapsed .hero-text {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

.hero-toggle {
	display: none;
	margin-left: 0;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.8rem;
	font-family: var(--open-sans);
	cursor: pointer;
	padding: 4px 8px;
	white-space: nowrap;
}

.hero-toggle:hover {
	color: #fff;
}

.hero.collapsed .hero-toggle {
	display: inline-block;
}

.hero-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 24px;
}

.hero-text {
	flex: 1 1 400px;
	color: #fff;
}

.hero-title {
	margin: 0 0 12px 0;
	font-family: var(--open-sans);
	font-weight: 400;
	font-size: clamp(1.8rem, 1rem + 3vw, 2.8rem);
	line-height: 1.1;
	color: #fff;
}

.hero-description {
	font-size: 0.82rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 10px 0;
}

.hero-description b {
	color: #fff;
}

.hero-description a {
	color: #fff;
	text-decoration: underline;
}

.hero-instructions {
	margin: 0 0 12px 0;
}

.hero-instructions-title {
	font-family: var(--open-sans);
	font-size: 0.95rem;
	margin: 0 0 12px 0;
	color: rgba(255, 255, 255, 0.9);
}

.hero-instructions p {
	font-size: 0.78rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 5px 0;
}

.hero-instructions p b {
	color: #fff;
}

.hero-instructions ul {
	list-style: disc;
	margin: 0 0 5px 0;
	padding-left: 20px;
}

.hero-instructions ul li {
	font-size: 0.78rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 1px;
}

.hero-tip {
	margin-top: 12px;
	font-style: italic;
	color: rgba(255, 255, 255, 0.6) !important;
	font-size: 0.78rem !important;
}

.hero-logos {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 10px;
}

.hero-logo {
	height: 48px;
	width: auto;
	opacity: 0.9;
	filter: brightness(0) invert(1);
}

.hero-logo-color {
	filter: none;
	opacity: 1;
}

.hero-wheel-preview {
	flex: 0 0 280px;
	height: 280px;
	background: url('../images/icon-512.png') center/contain no-repeat;
	border-radius: 50%;
	opacity: 0.3;
}

/* ===== Tab bar ===== */
.tab-bar {
	display: flex;
	justify-content: center;
	gap: 0;
	width: 100%;
	max-width: 950px;
	border-bottom: 2px solid #e0e0e0;
	padding: 0 20px;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 5;
}

.tab-btn {
	padding: 10px 24px;
	border: none;
	background: none;
	font-family: var(--open-sans-bold);
	font-size: 0.95rem;
	color: #666;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: color 0.2s, border-color 0.2s;
}

.tab-btn:hover {
	color: #014f85;
}

.tab-btn.active {
	color: #014f85;
	border-bottom-color: #007dc3;
}

/* ===== Browse Recommendations ===== */
.browse-section {
	width: 100%;
	padding: 0 20px 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-grow: 1;
}

.browse-container {
	width: 100%;
	max-width: 950px;
}

.browse-filters {
	padding: 16px 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.filter-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.filter-label {
	font-family: var(--open-sans-bold);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #014f85;
}

/* Category radio pills */
.category-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pill-radio input {
	display: none;
}

.pill-radio span {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.82rem;
	font-family: var(--open-sans);
	color: #444;
	background: #f0f0f0;
	border: 1.5px solid #ddd;
	cursor: pointer;
	transition: all 0.15s;
}

.pill-radio span:hover {
	border-color: #007dc3;
	color: #014f85;
}

.pill-radio input:checked + span {
	background: #007dc3;
	color: #fff;
	border-color: #007dc3;
}

/* Self-care type checkboxes */
.type-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.type-check input {
	display: none;
}

.check-pill {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.82rem;
	font-family: var(--open-sans);
	cursor: pointer;
	transition: all 0.15s;
	border: 1.5px solid;
}

.check-pill.awareness {
	border-color: #1a3a6b;
	color: #1a3a6b;
	background: #e8f0f8;
}

.type-check input:checked + .check-pill.awareness {
	background: #1a3a6b;
	color: #fff;
}

.check-pill.testing {
	border-color: #c44d78;
	color: #c44d78;
	background: #fce8ef;
}

.type-check input:checked + .check-pill.testing {
	background: #c44d78;
	color: #fff;
}

.check-pill.management {
	border-color: #842c6a;
	color: #842c6a;
	background: #fae8f1;
}

.type-check input:checked + .check-pill.management {
	background: #842c6a;
	color: #fff;
}

/* Results cards */
.browse-results {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 8px;
}

.browse-card {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s;
}

.browse-card:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.browse-card-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	cursor: pointer;
	user-select: none;
}

.browse-card-header:hover {
	background: #fafafa;
}

.browse-card-dot {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
}

.browse-card-dot.green { background: #1e8336; }
.browse-card-dot.yellow { background: #fcbf00; }
.browse-card-dot.orange { background: #f18900; }
.browse-card-dot.red { background: #cf1620; }

.browse-card-id {
	flex-shrink: 0;
	font-family: var(--open-sans-bold);
	font-size: 0.8rem;
	color: #888;
	min-width: 30px;
}

.browse-card-title {
	flex: 1;
	font-size: 0.9rem;
	line-height: 1.3;
	color: #222;
}

.browse-card-tag {
	flex-shrink: 0;
	font-size: 0.7rem;
	padding: 3px 8px;
	border-radius: 10px;
	color: #fff;
	font-family: var(--open-sans-bold);
}

.browse-card-tag.Self-awareness { background: #1a3a6b; }
.browse-card-tag.Self-testing { background: #c44d78; }
.browse-card-tag.Self-management { background: #842c6a; }

.browse-card-arrow {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	transition: transform 0.2s;
}

.browse-card.open .browse-card-arrow {
	transform: rotate(180deg);
}

.browse-card-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}

.browse-card.open .browse-card-body {
	max-height: 2000px;
	transition: max-height 0.5s ease-in;
}

.browse-card-body-inner {
	padding: 0 16px 16px;
	font-size: 0.85rem;
	line-height: 1.5;
	color: #333;
}

.browse-card-body-inner p {
	margin: 0 0 10px;
}

.browse-card-body-inner .card-section-label {
	font-family: var(--open-sans-bold);
	font-size: 0.8rem;
	color: #014f85;
	margin: 12px 0 4px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.browse-card-body-inner .card-section-label:first-child {
	margin-top: 0;
}

.browse-card-body-inner .card-link {
	display: inline-block;
	margin-top: 4px;
	color: #014f85;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.85rem;
}

.browse-card-body-inner .card-link:hover {
	text-decoration: underline;
}

.browse-card-category {
	font-size: 0.75rem;
	color: #fff;
	background: #007dc3;
	padding: 2px 8px;
	border-radius: 10px;
	flex-shrink: 0;
}

.browse-no-results {
	text-align: center;
	padding: 40px 20px;
	color: #888;
	font-size: 0.95rem;
}

.top-header {
	background: #007dc3;
	padding: 10px 20px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: end;
}

.top-header .white-wrapper {
	background: transparent;
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 3px 6px 3px 2px;
}

.logo-wrapper {
	display: flex;
	align-items: center;
	justify-content: end;
	width: 100%;
	max-width: 950px;
}

.logo-wrapper.bottom {
	padding: 0 10px;
}

.logo-wrapper .logo {
	height: 40px;
	width: auto;
}

.wheel-section {
	padding: 5px 10px 5px 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: start;
	flex-grow: 1;
	width: 100%;
}


.wheel-section .wheel-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	/* Account for sticky tab bar (~45px) + padding */
	width: min(95%, calc(100vh - 65px));
	max-width: 800px;
}

.wheel-section .layer-B-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	flex-shrink: 0;
	z-index: 1;
	transform-origin: center center;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	overflow: visible;
}

.wheel-section .layer-A-image {
	flex-shrink: 0;
	z-index: 3;
	position: relative;
	aspect-ratio: 1 / 1;
	width: 100%;
	transform-origin: center center;
	pointer-events: none;
}

.wheel-section .wheel-pointer {
	position: absolute;
	top: -5px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-top: 35px solid #cf1620;
	z-index: 15;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.wheel-section .spin-wheel-btn {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
	padding: 8px;
	width: 12.34%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	color: transparent;
	font-size: 0;
	line-height: 0;
	border: none;
	background: transparent;
	flex-shrink: 0;
	cursor: pointer;
}

/* Fullscreen toggle button */
.fullscreen-btn {
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 15;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.fullscreen-btn:hover {
	background: rgba(0, 0, 0, 0.75);
}

/* Fullscreen state */
body.wheel-fullscreen .top-header,
body.wheel-fullscreen .hero,
body.wheel-fullscreen .footer {
	display: none;
}

body.wheel-fullscreen .wheel-section {
	padding: 0;
	position: fixed;
	inset: 0;
	z-index: 10;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

body.wheel-fullscreen .wheel-section .wheel-wrapper {
	width: min(100vw, 100vh);
	max-width: none;
}

body.wheel-fullscreen .fullscreen-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 14;
}

.wheel-section .legend-wrapper {
	padding: 20px 0 10px 0;
	width: 100%;
	max-width: 650px;
	text-align: center;
}

.wheel-section .legend-title {
	font-family: var(--open-sans-bold);
	font-size: 1.1rem;
	color: #1A237E;
	margin: 0 0 12px 0;
}

.wheel-section .legend-items {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 24px;
}

.wheel-section .legend-item {
	display: flex;
	align-items: center;
	font-size: 0.8rem;
	color: #333;
}

.wheel-section .legend-dot {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	margin-right: 6px;
}

.wheel-section .results-wrapper {
	padding: 30px 0 20px 0;
	flex-shrink: 0;
	width: 100%;
}

.wheel-section .color-wrapper {
	padding: 30px 20px 20px 20px;
	width: 100%;
	max-width: 650px;
	margin: 0 auto;
}

.wheel-section .color-row {
	display: flex;
	align-items: center;
	justify-content: start;
	margin-bottom: 10px;
}

.wheel-section .color-row .color {
	flex-shrink: 0;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	margin-right: 15px;
}

.wheel-section .color-row .color.green {
	background: #168335;
}

.wheel-section .color-row .color.yellow {
	background: #fcbf00;
}

.wheel-section .color-row .color.orange {
	background: #f28900;
}

.wheel-section .color-row .color.red {
	background: #cf1520;
}

.footer {
	width: 100%;
	height: 50px;
	background: #000;
}

#modal-overlay {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, .6);
	z-index: 15;
	pointer-events: none;
	opacity: 0;
	transition: opacity .35s linear;
}

#modal-overlay.active {
	opacity: 1;
	pointer-events: all;
}

.modal {
	position: fixed;
	z-index: 20;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	opacity: 0;
	width: calc(100% - 40px);
	max-width: 400px;
	max-height: 70%;
	background: #fff;
	border: 1px solid #000;
	display: flex;
	transition: transform .35s ease-in, opacity .25s ease-in;
}

.modal.active {
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
}

.modal .close-modal-btn {
	border: none;
	position: absolute;
	width: 32px;
	height: 32px;
	right: 0;
	top: 0;
	transform: translate(calc(50% - 5px), calc(-50% + 5px));
	border-radius: 50%;
	background: #014f85;
	color: #fff;
	font-size: 25px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal .close-modal-btn span {
	transition: all .3s ease-in-out;
}

.modal .close-modal-btn:hover span,
.modal .close-modal-btn:focus span {
	transform: rotate(180deg);
}

.modal-content {
	padding: 0px 0px 5px 0px;
	overflow-y: auto;
	font-size: .9rem;
	line-height: 1.2rem;
	flex-shrink: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.modal-content .tag {
	text-align: center;
	font-size: .85rem;
	padding: 17px 10px;
	color: #fff;
	font-family: var(--open-sans-bold);
}

.modal-content .tag.blue {
	background: #1a3a6b;
}

.modal-content .tag.pink {
	background: #c44d78;
}

.modal-content .tag.light-green {
	background: #842c6a;
}

.modal-content .title {
	text-align: center;
	margin: 5px 0 20px 0;
	font-size: .85rem;
	padding: 13px 10px;
	color: #000;
	font-family: var(--open-sans-bold);
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-content .title span {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	margin-right: 12px;
}

.modal-content .title span.green {
	background: #1e8336;
}

.modal-content .title span.yellow {
	background: #fcbf00;
}

.modal-content .title span.orange {
	background: #f18900;
}

.modal-content .title span.red {
	background: #cf1620;
}

.modal-content .highlight-text {
	margin: 0 0 20px 0;
	padding: 0 10px;
}

.modal-content .subtitle {
	margin: 0 0 3px 0;
	font-family: var(--open-sans-bold);
	padding: 0 10px;
}

.modal-content .type {
	margin: 0 0 0px 0;
	padding: 0 10px;
}

.modal-content .description {
	padding: 0 10px;
}

.modal-content .description.mb-25 {
	margin: 0 0 25px 0;
}

.modal-content .description.mb-2 {
	margin: 0 0 2px 0;
}

.modal-content .summary {
	font-size: .84rem;
	font-style: italic;
	margin: 0 0 0px 0;
	padding: 0 10px;
}

.modal-content ul {
	margin: 5px 0 25px 0;
	padding: 0 10px 0 30px;
}

.modal-content ul li p {
	margin: 0 0 5px 0;
}

.modal-content .custom-dropdown-wrapper {
	margin: 0 0 20px 0;
}

/* .modal-content > .custom-dropdown-wrapper:last-of-type {
	margin-bottom: 0;
} */

.modal-content .btn-custom-dropdown {
	border: 0;
	padding: 3px 10px 4px 10px;
	margin: 0 0 3px 0;
	width: 100%;
	box-shadow: none;
	text-align: left;
	outline: none;
	border-radius: 0;
	background: #fff;
	color: #000;
	font-family: var(--open-sans-bold);
	font-size: 0.9rem;
	line-height: 1.2rem;
	cursor: pointer;
	display: flex;
	align-items: start;
	justify-content: space-between;
}

.modal-content .btn-custom-dropdown:hover, .modal-content .btn-custom-dropdown:focus {
	outline: none;
	box-shadow: none;
}

.modal-content .btn-custom-dropdown .arrow-icon {
	flex-shrink: 0;
	margin-left: 10px;
	width: 20px;
	transition: all .3s ease-in;
	pointer-events: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent
}

.modal-content .btn-custom-dropdown.open .arrow-icon {
	transform: rotate(180deg)
}

.modal-content .btn-custom-dropdown.close .arrow-icon {
	transform: rotate(0deg);
}

.modal-content .custom-dropdown-content {
	padding-bottom: 0px;
	overflow: hidden;
	transition: height .3s ease-out;
}

.modal-content .custom-dropdown-content.hide {
	height: 0;
}

.modal-content .custom-dropdown-content.show {
	height: var(--openHeight);
}

.modal-content .link-text {
	color: #000;
	padding: 0 10px;
	margin-bottom: 20px;
	font-size: 0.9rem;
	line-height: 1.2rem;
	font-weight: 600;
}

.modal-content .external-link {
	text-decoration: none;
	font-size: 0.9rem;
	line-height: 1.2rem;
	color: #014f85;
	font-weight: 600;
}

@media only screen and (min-width: 768px) {
	.modal {
		transform: translate(-50%, -50%) scale(0);
		width: calc(50% - 80px);
		max-width: 400px;
	}

	.modal.active {
		transform: translate(60px, -50%) scale(1);
	}

	#modal-overlay {
		background: rgba(0, 0, 0, 0);
	}
}

@media only screen and (min-width: 1200px) {
	.wheel-section .wheel-wrapper {
		max-width: 800px;
	}
}

@media only screen and (max-width: 768px) {
	.hero-inner {
		flex-direction: column;
		gap: 20px;
	}

	.hero-wheel-preview {
		display: none;
	}

	.hero {
		padding: 24px 16px;
	}

	.hero-title {
		font-size: 2rem;
		margin-bottom: 16px;
	}
}

@media only screen and (max-width: 500px) {
	.hero {
		padding: 20px 12px;
	}

	.hero-title {
		font-size: 1.8rem;
	}

	.hero-instructions p,
	.hero-instructions ul li {
		font-size: 0.78rem;
	}

	.wheel-section {
		padding: 0 5px 20px 5px;
	}

	.wheel-section .wheel-wrapper {
		width: 100%;
	}

	.wheel-section .spin-wheel-btn {
		width: 14%;
		font-size: 0.55rem;
	}

	.top-header .white-wrapper {
		gap: 4px;
	}

	.logo-wrapper .logo {
		height: 28px;
	}

	.modal {
		max-height: 80%;
		width: calc(100% - 20px);
	}

	.tab-btn {
		padding: 8px 16px;
		font-size: 0.85rem;
	}

	.browse-section {
		padding: 0 10px 30px;
	}

	.pill-radio span {
		padding: 5px 10px;
		font-size: 0.75rem;
	}

	.browse-card-tag {
		display: none;
	}

	.browse-card-category {
		display: none;
	}
}

@media only screen and (max-width: 360px) {
	.wheel-section .spin-wheel-btn {
		width: 15%;
		font-size: 0.5rem;
		padding: 4px;
	}

	.hero-title {
		font-size: 1.5rem;
	}
}

