/* ==========================================
	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" from the indications pdf */
	--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;
	padding: 0 2px;
}

/* ==========================================
	6. 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: 6px 8px;
	text-transform: uppercase;
	text-align: left;
	vertical-align: middle;
}

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

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

/* ==========================================
	7. TABLE COLUMN WIDTHS
   ========================================== */

.bodyregionCol {
	width: 15%;
	white-space: nowrap;
}

.procedureCol {
	width: 25%;
}

.reasonCol {
	width: 60%;
}