/* ==========================================================================
   TZE supplier-recognition table — styled to match towardzeroexposure.org
   (Squarespace). Palette pulled from the site's theme CSS:
     accent teal   hsl(192.3 100% 31.6%)  ≈ #0081a1
     dark accent   hsl(76 52% 59%)        ≈ #b0cd60  (olive, used sparingly)
     text          #272727   surface #f6f6f6   hairline #e7e7e7
   Fonts: Montserrat (headings) / Roboto (body) — loaded by the host page;
   imported here too so the widget is self-sufficient.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@400;500;700&display=swap");

#cep-recognition {
	--tze-accent: hsl(192.3, 100%, 31.6%);      /* #0081a1 */
	--tze-accent-dark: hsl(192.3, 100%, 24%);   /* hover    */
	--tze-accent-tint: hsla(192.3, 100%, 31.6%, 0.07);
	--tze-text: #272727;
	--tze-muted: #6b6b6b;
	--tze-surface: #f6f6f6;
	--tze-hairline: #e7e7e7;

	font-family: "Roboto", sans-serif;
	font-size: 14px;
	color: var(--tze-text);

	/* Self-contained white card — the Squarespace section behind the widget
	   is the brand teal, so the widget carries its own background. */
	background: #fff;
	border-radius: 10px;
	padding: 22px 24px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
}
#cep-recognition .table-responsive {
	overflow-x: auto;
}

/* Squarespace section styles (white-on-teal text) cascade into the embed;
   re-assert readable colours for everything inside the card. */
#cep-recognition,
#cep-recognition td,
#cep-recognition .dataTables_wrapper .dataTables_length,
#cep-recognition .dataTables_wrapper .dataTables_filter,
#cep-recognition .dataTables_wrapper .dataTables_length label,
#cep-recognition .dataTables_wrapper .dataTables_filter label {
	color: var(--tze-text);
}
#cep-recognition .dataTables_wrapper .dataTables_info {
	color: var(--tze-muted);
}

/* ---- table ---- */
#cep-recognition table.dataTable {
	width: 100%;
	border-collapse: collapse;
	border-bottom: 1px solid var(--tze-hairline);
}
#cep-recognition th,
#cep-recognition td {
	border: none;
	border-bottom: 1px solid var(--tze-hairline);
	padding: 9px 12px;
	vertical-align: top;
	text-align: left;
	/* Squarespace's roomy section line-height cascades in; tighten it */
	line-height: 1.35;
}
#cep-recognition thead th {
	line-height: 1.3;
}
#cep-recognition thead th {
	background: #fff;
	border-bottom: 3px solid var(--tze-accent);
	font-family: "Montserrat", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tze-text);
	vertical-align: bottom;
}
#cep-recognition tbody tr:nth-child(even) {
	background: var(--tze-surface);
}
#cep-recognition tbody tr:hover {
	background: var(--tze-accent-tint);
}

/* DataTables sort states: keep header white, teal arrows via opacity */
#cep-recognition table.dataTable thead th.sorting,
#cep-recognition table.dataTable thead th.sorting_asc,
#cep-recognition table.dataTable thead th.sorting_desc {
	background-color: #fff;
}

/* ---- DataTables chrome (search / length / info / pagination) ---- */
#cep-recognition .dataTables_wrapper {
	font-family: "Roboto", sans-serif;
	color: var(--tze-muted);
}
#cep-recognition .dataTables_filter,
#cep-recognition .dataTables_length {
	margin-bottom: 14px;
	font-size: 13px;
}
#cep-recognition .dataTables_filter input,
#cep-recognition .dataTables_length select {
	border: 1px solid #cfcfcf;
	border-radius: 6px;
	padding: 7px 10px;
	margin-left: 6px;
	font: inherit;
	color: var(--tze-text);
	background: #fff;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
#cep-recognition .dataTables_filter input:focus,
#cep-recognition .dataTables_length select:focus {
	border-color: var(--tze-accent);
	box-shadow: 0 0 0 3px var(--tze-accent-tint);
}
#cep-recognition .dataTables_info {
	font-size: 12.5px;
	color: var(--tze-muted);
	padding-top: 14px;
}
#cep-recognition .dataTables_paginate {
	padding-top: 10px;
}
#cep-recognition .dataTables_wrapper .dataTables_paginate .paginate_button {
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 5px 11px;
	margin-left: 2px;
	color: var(--tze-text) !important;
	background: none;
}
#cep-recognition .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	background: var(--tze-accent-tint);
	border-color: transparent;
	color: var(--tze-accent-dark) !important;
}
#cep-recognition .dataTables_wrapper .dataTables_paginate .paginate_button.current,
#cep-recognition .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	background: var(--tze-accent);
	border-color: var(--tze-accent);
	color: #fff !important;
}
#cep-recognition .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
#cep-recognition .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
	color: #b5b5b5 !important;
	background: none;
	border-color: transparent;
}

/* ---- round badges (semantic colours — unchanged palette) ---- */
.circle {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	font-weight: 700;
	font-family: "Montserrat", Arial, sans-serif;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	position: relative;
	cursor: pointer;
	transition: all 0.2s ease;
}
.circle:hover::after {
	content: attr(data-round);
	position: absolute;
	bottom: 120%;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: #fff;
	padding: 4px 6px;
	border-radius: 3px;
	font-size: 18px;
	white-space: nowrap;
	pointer-events: none;
	z-index: 10;
}
.circle-1 { background: #a36c4c; color: #ded4c3; }
.circle-2 { background: #213732; color: #aab386; }
.circle-3 { background: #aab386; color: #344d40; }
.circle-4 { background: #dfd3c3; color: #a2684b; }
.circle-5 { background: #344d40; color: #dfd3c3; }
.circle-1::after { content: "st"; font-size: 0.8em; vertical-align: super; }
.circle-2::after { content: "nd"; font-size: 0.8em; vertical-align: super; }
.circle-3::after { content: "rd"; font-size: 0.8em; vertical-align: super; }

.address {
	display: block;
	margin-left: 24px;
	font-size: 14px;
}
.country {
	display: flex;
	flex-direction: column;
}
img.flag {
	order: -1;
	margin-bottom: 5px;
}

/* ---- note / contact hover popups ---- */
.note-container {
	position: relative;
	display: inline-block;
}
.note-icon {
	font-size: 18px;
	color: var(--tze-accent);
	cursor: pointer;
	padding: 5px;
	border-radius: 50%;
	transition: background-color 0.2s, color 0.2s;
}
.note-icon:hover {
	background-color: var(--tze-accent-tint);
	color: var(--tze-accent-dark);
}
.note-popup {
	display: none;
}

.popup-portal {
	position: fixed;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
	pointer-events: none;
	font-family: "Roboto", sans-serif;
}
.popup-portal .note-popup {
	position: static;
	display: block;
	opacity: 1;
	visibility: visible;
	background: #fff;
	border: 1px solid var(--tze-hairline, #e7e7e7);
	border-top: 3px solid hsl(192.3, 100%, 31.6%);
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
	padding: 16px;
	width: 320px;
	max-width: 90vw;
	transform: none;
}
.popup-portal .note-popup::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-top-color: #fff;
}
.popup-portal .note-popup::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 9px solid transparent;
	border-top-color: #e7e7e7;
	z-index: -1;
}

.contact-content {
	margin-bottom: 12px;
	font-size: 14px;
	line-height: 1.5;
}
.contact-section {
	margin-bottom: 12px;
}
.contact-section:last-child {
	margin-bottom: 0;
}
.contact-label {
	font-weight: 700;
	color: #555;
	margin-bottom: 4px;
	display: block;
}
.contact-item {
	margin-bottom: 4px;
}
.contact-link,
.note-link {
	color: hsl(192.3, 100%, 28%);
	text-decoration: none;
	word-break: break-all;
}
.contact-link:hover,
.note-link:hover {
	text-decoration: underline;
}

.copy-btn {
	width: 100%;
	padding: 8px 12px;
	background: hsl(192.3, 100%, 31.6%);
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-family: "Roboto", sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: background-color 0.2s;
}
.copy-btn:hover {
	background: hsl(192.3, 100%, 24%);
}
.copy-btn:active {
	transform: translateY(1px);
}

.note-portal .note-popup {
	width: 450px;
	max-width: 90vw;
	max-height: 400px;
	overflow-y: auto;
}
.note-portal .note-content {
	margin-bottom: 10px;
	font-size: 12px;
	line-height: 1.4;
	color: #272727;
}
.note-portal .note-content h3 {
	margin: 0 0 8px;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	color: #272727;
	border-bottom: 2px solid hsl(192.3, 100%, 31.6%);
	padding-bottom: 5px;
}
.note-portal .note-content p {
	margin: 7px 0;
}
.note-portal .note-content table {
	border-collapse: collapse;
	width: 100%;
	margin: 6px 0;
	font-size: 11.5px;
}
.note-portal .note-content th,
.note-portal .note-content td {
	border: none;
	border-bottom: 1px solid #e7e7e7;
	padding: 2px 6px;
	line-height: 1.35;
	text-align: left;
}
.note-portal .note-content thead th {
	font-family: "Montserrat", sans-serif;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 2px solid hsl(192.3, 100%, 31.6%);
}
.note-portal .note-popup::-webkit-scrollbar {
	width: 6px;
}
.note-portal .note-popup::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}
.note-portal .note-popup::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 3px;
}
.note-portal .note-popup::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}
