/* ==========================================
	1. FONTS & ROOT VARIABLES
	========================================== */

@font-face {
	font-family: "trade-gothic-next";
	src: url("Resources/trade-gothic-lt-std.otf") format("opentype");
	font-display: swap;
}

:root {
	--DignityOrange: rgb(247, 121, 0); /* Dignity Orange */
	--DignityFontFamily: "trade-gothic-next", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ==========================================
	2. BASE & TYPOGRAPHY
	========================================== */

body {
	font-family: var(--DignityFontFamily);
	font-weight: 500;
}

.normalText {
	font-size: medium;
	font-style: normal;
	font-weight: normal;
}

/* ==========================================
	3. PAGE HEADER & METADATA
	========================================== */

.page-title {
	font-size: xx-large;
	font-weight: bold;
}

.updated-date {
	float: right;
	font-size: small;
	text-align: right;
}

/* ==========================================
	4. RESOURCE NAVIGATION BAR
	========================================== */

.resource-bar-compact {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 6px 10px;
	margin: 6px 0;
	background-color: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	font-size: 12px;
	line-height: 1.2;
}

.resource-row {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.bar-label {
	font-weight: 600;
	color: #4b5563;
	margin-right: 2px;
}

.bar-divider {
	color: #9ca3af;
	margin: 0 4px;
	user-select: none;
}

.chip {
	display: inline-block;
	padding: 3px 8px;
	background-color: #ffffff;
	color: #1f2937;
	text-decoration: none;
	border: 1px solid #d1d5db;
	border-radius: 3px;
	font-weight: 500;
	transition:
		background-color 0.15s ease,
		border-color 0.15s ease,
		transform 0.15s ease;
}

.chip:hover {
	background-color: #e5e7eb;
	border-color: #9ca3af;
	transform: translateY(-1px);
}

/* Active / Current Page Chip */
.chip.active,
.chip[aria-current="page"] {
	background-color: var(--DignityOrange);
	color: #ffffff;
	border: 1px solid #000000;
	font-weight: 600;
	cursor: default;
	pointer-events: none;
	transform: none;
}

/* ==========================================
	5. SEARCH & HIGHLIGHTING
	========================================== */

.search {
	width: 100%;
	max-width: 380px;
	height: 32px;
	padding: 4px 10px 4px 28px;
	font-size: 14px;
	font-family: inherit;
	border: 1px solid #ccc;
	border-radius: 3px;
	box-sizing: border-box;
	background: #ffffff url("Resources/magnifying-glass-128.png") no-repeat 6px center / 14px 14px;
}

.search:focus {
	outline: none;
	border-color: #333333;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

mark.highlight {
	background-color: #ffe066;
	color: #000000;
	border-radius: 2px;
}

/* ==========================================
	6. PREPARATION BADGES
	========================================== */

.badge-prep {
	display: inline-block;
	padding: 4px 8px;
	font-size: 0.85rem;
	font-weight: 600;
	border-radius: 4px;
	line-height: 1.2;
	white-space: nowrap;
}

/* 1. Fasted (Amber / Caution) */
.badge-fasted {
	background-color: #fff3cd;
	color: #856404;
	border: 1px solid #ffeeba;
}

/* 2. Fasted Preferred (Soft Amber with dashed border) */
.badge-fasted-pref {
	background-color: #fff8e1;
	color: #856404;
	border: 1px dashed #ffd54f;
}

/* 3. Water Prep (Soft Blue / Hydration) */
.badge-water {
	background-color: #cce5ff;
	color: #004085;
	border: 1px solid #b8daff;
}

/* 4. No Prep (Neutral Light Gray) */
.badge-no-prep {
	background-color: #e9ecef;
	color: #495057;
	border: 1px solid #ced4da;
}

/* 5. Fasted w/ Water Prep (Dual-toned gradient) */
.badge-combo {
	background: linear-gradient(135deg, #fff3cd 48%, #cce5ff 52%);
	color: #212529;
	border: 1px solid #b8daff;
	box-shadow: inset 0 0 0 1px #ffeeba;
}

/* ==========================================
	7. TABLE CORE & CELL STRUCTURE
	========================================== */

table {
	border: 1px solid #ccc;
	font-size: medium;
	border-collapse: collapse;
	background-color: rgb(217, 217, 217);
	width: 100%;
}

th {
	background-color: var(--DignityOrange);
	color: #fff;
	font-weight: bold;
	padding: 4px;
	text-transform: uppercase;
	text-align: left;
	vertical-align: middle;
}

td {
	padding: 10px;
	border: 1px solid #ccc;
	vertical-align: top;
}

tbody tr:hover {
	background: rgb(191, 191, 191);
}

/* ==========================================
	8. COLUMN WIDTH ALLOCATIONS
	========================================== */

.anatomyCol {
	width: 1%;
	white-space: nowrap;
}

/* Expand Clinical Indications to take priority width */
.indicationTD {
	width: 35%;
	min-width: 320px;
}

/* ==========================================
	9. ULTRASOUND PREPARATION DETAILS BOX
	========================================== */

.prep-details {
	width: 100%;
	border: 2px solid #5c4033;
	background-color: #f7e6d4;
	font-family: Arial, sans-serif;
	color: #2c221e;
	border-radius: 4px;
	overflow: hidden;
}

.prep-summary {
	padding: 12px 16px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	background-color: #e8d0bc;
	user-select: none;
}

.prep-table {
	width: 100%;
	border-collapse: collapse;
	background-color: #f7e6d4;
	border: none;
}

.prep-th {
	width: 50%;
	padding: 16px;
	text-align: center;
	vertical-align: top;
	border-bottom: 1px solid #5c4033;
	border-right: 1px solid #5c4033;
	font-size: 16px;
	font-weight: bold;
	text-decoration: underline;
}

.prep-td-left {
	width: 50%;
	padding: 16px;
	vertical-align: top;
	border-bottom: 1px solid #5c4033;
	border-right: 1px solid #5c4033;
	font-size: 14px;
	line-height: 1.5;
}

.prep-td-right {
	width: 50%;
	padding: 16px;
	vertical-align: top;
	border-bottom: 1px solid #5c4033;
	font-size: 14px;
	line-height: 1.5;
}

.prep-td-full {
	padding: 16px;
	vertical-align: top;
	font-size: 14px;
	line-height: 1.5;
}

.prep-p {
	margin: 0;
}

.prep-ul {
	margin: 0;
	padding-left: 20px;
}

.prep-li {
	margin: 0;
}

.no-result-td {
	padding: 20px;
	font-weight: bold;
	color: #555;
}
