/*
 * Significant Cases (/significant-cases/): List / Table switch, Table view and the sidebar toggle.
 * Markup: _core/significant-cases.php. Design: claude.ai artifact VQkBZCji3HyjY2FEERc4Qs,
 * board "Case Results, Table and Cards Only".
 *
 * The case-results module (_assets/case-results/) is restyled only through its custom
 * properties and two-class-deep overrides here; its own files stay identical on every site.
 */

/* ------------------------------------------------------------ tokens (design style sheet) */

.amg-cr,
.amg-cr .cw-cr {
	--cw-cr-font-main: "Quattrocento Sans", "Helvetica Neue", Arial, sans-serif;
	--cw-cr-font-serif: "Quattrocento", Georgia, serif;
	--cw-cr-ink: #3f4953;
	--cw-cr-muted: #8a8f94;
	--cw-cr-navy: #0c171c;
	--cw-cr-red: #cc0000;
	--cw-cr-line: #ece9e1;
	--cw-cr-smoky: #faf9f5;
	--cw-cr-chip-border: #0c171c;
	--cw-cr-cell-pad: 16px 18px;
}

/* ------------------------------------------------------------ switch bar */

.amg-cr-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 32px;
	padding: 0 0 24px;
	border-bottom: 1px solid #e3e0d8;
}

.amg-cr-bar .cw-crv-switch {
	--cw-crv-bg: #fff;
	--cw-crv-border: #e3e0d8;
	--cw-crv-color: #0c171c;
	--cw-crv-active-bg: #0c171c;
	--cw-crv-active-color: #fff;
}

.amg-cr-bar .cw-crv-switch__btn {
	min-height: 44px;
	padding: 10px 22px;
	font-family: "Quattrocento Sans", "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	transition: background-color 0.2s, color 0.2s;
}

.amg-cr-bar .cw-crv-switch__btn[aria-pressed="false"]:hover {
	background: #efede6;
}

.amg-cr-bar .cw-crv-switch__btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px #cc0000;
}

/* ------------------------------------------------------------ table view heading */

.amg-cr .amg-cr__head {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0 0 32px;
}

.amg-cr .amg-cr__eyebrow {
	align-self: flex-start;
	padding: 8px 22px;
	border: 1px solid #e3e0d8;
	border-radius: 999px;
	background: #fff;
	color: #cc0000;
	font-family: "Quattrocento Sans", "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.24em;
	line-height: 1.35;
	text-transform: uppercase;
}

/* !important: Divi's post-content heading rules (margin-bottom ~50px) outrank two classes. */
.amg-cr .amg-cr__title {
	margin: 0 !important;
	padding: 0 !important;
	font-family: "Quattrocento", Georgia, serif;
	font-size: 60px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.04em;
	color: #3f4953;
}

.amg-cr .amg-cr__title em {
	font-family: "Quattrocento Sans", "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
	font-style: italic;
	letter-spacing: -0.03em;
	color: #cc0000;
}

.amg-cr .amg-cr__intro {
	max-width: 760px;
	margin: 6px 0 0;
	padding: 0;
	font-size: 18px;
	line-height: 1.65;
	color: #3f4953;
}

.amg-cr .amg-cr__takeaways {
	margin: 0 0 32px;
	padding: 24px 28px;
	border: 1px solid #e3e0d8;
	border-radius: 16px;
	background: #faf9f5;
}

.amg-cr .amg-cr__takeaways h3 {
	margin: 0 0 12px;
	padding: 0;
	font-family: "Quattrocento", Georgia, serif;
	font-size: 28px;
	font-weight: 700;
	color: #0c171c;
}

.amg-cr .amg-cr__takeaways ul {
	margin: 0;
	padding: 0 0 0 20px;
}

/* ------------------------------------------------------------ the table, to the design */

.amg-cr .cw-cr .cw-cr__count {
	color: #5b6168;
}

.amg-cr .cw-cr .cw-cr__chip {
	border-width: 1.5px;
	color: #0c171c;
}

.amg-cr .cw-cr .cw-cr__chip:hover {
	background: #efede6;
}

.amg-cr .cw-cr .cw-cr__chip[aria-pressed="true"] {
	background: #0c171c;
	border-color: #0c171c;
	color: #fff;
}

.amg-cr .cw-cr .cw-cr__arrow {
	border-width: 1.5px;
}

.amg-cr .cw-cr .cw-cr__arrow:hover:not(:disabled) {
	background: #0c171c;
	color: #fff;
}

.amg-cr .cw-cr .cw-cr__frame {
	border: 1px solid #e3e0d8;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: none;
}

.amg-cr .cw-cr .cw-cr__th {
	font-size: 13px;
	letter-spacing: 0.08em;
	line-height: 1.35;
	vertical-align: middle;
}

.amg-cr .cw-cr .cw-cr__td {
	font-size: 15px;
	overflow-wrap: break-word;
}

/*
 * Column widths from the design (px, 2510 in all). The module's percentages assume Case Name is
 * hidden; here it is the case's identity (19 of 35 rows have no amount), so it needs room.
 * Desktop only: phones transpose the table and size it themselves.
 */
@media (min-width: 768px) {
	.amg-cr .cw-cr {
		--cw-cr-min-width: 2510px;
	}

	.amg-cr .cw-cr .cw-cr__th--case-name { width: 240px !important; }
	.amg-cr .cw-cr .cw-cr__th--pre-trial-offer { width: 140px !important; }
	.amg-cr .cw-cr .cw-cr__th--result { width: 160px !important; }
	.amg-cr .cw-cr .cw-cr__th--pct-increase { width: 130px !important; }
	.amg-cr .cw-cr .cw-cr__th--verdict-or-settlement { width: 240px !important; }
	.amg-cr .cw-cr .cw-cr__th--attorney { width: 200px !important; }
	.amg-cr .cw-cr .cw-cr__th--insurance-carrier { width: 130px !important; }
	.amg-cr .cw-cr .cw-cr__th--injury-type { width: 200px !important; }
	.amg-cr .cw-cr .cw-cr__th--accident-type { width: 320px !important; }
	.amg-cr .cw-cr .cw-cr__th--practice-area { width: 200px !important; }
	.amg-cr .cw-cr .cw-cr__th--trial-location { width: 220px !important; }
	.amg-cr .cw-cr .cw-cr__th--office { width: 110px !important; }
	.amg-cr .cw-cr .cw-cr__th--year { width: 80px !important; }
	.amg-cr .cw-cr .cw-cr__th--article-url { width: 140px !important; }
}

.amg-cr .cw-cr .cw-cr__tr:hover .cw-cr__td {
	background: #f3efe6;
}

.amg-cr .cw-cr .cw-cr__td--result {
	font-family: "Quattrocento", Georgia, serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #cc0000;
	white-space: nowrap;
}

/* A Result cell with no figure: line it up with the dashes in the other columns, not on the
   22px serif line box the amounts use. */
.amg-cr .cw-cr .cw-cr__td--result:has(> .cw-cr__dash) {
	font-family: var(--cw-cr-font-main);
	font-size: 15px;
	line-height: 1.5;
}

.amg-cr .cw-cr .cw-cr__link {
	color: #cc0000;
}

.amg-cr .cw-cr .cw-cr__link:hover {
	color: #990000;
}

.amg-cr .cw-cr .cw-cr__cols-note {
	font-size: 13px;
	color: #5b6168;
}

/* The design puts the disclaimer as a plain small line under the table, not a box. */
.amg-cr .cw-cr .cw-cr__note {
	max-width: none;
	margin: 8px 0 0;
	padding: 0;
	background: none;
}

.amg-cr .cw-cr .cw-cr__note-text {
	font-family: var(--cw-cr-font-main);
	font-size: 13px;
	line-height: 1.5;
	color: #5b6168;
}

/* ------------------------------------------------------------ no sidebar in the Table view */

.amg-cr-row.amg-cr-wide > .et_pb_column:not(.amg-cr-main) {
	display: none !important;
}

.amg-cr-row.amg-cr-wide > .amg-cr-main {
	width: 100% !important;
	margin-right: 0 !important;
}

/* ------------------------------------------------------------ phones */

@media (max-width: 767px) {
	.amg-cr-bar .cw-crv-switch {
		display: flex;
		width: 100%;
	}

	.amg-cr-bar .cw-crv-switch[hidden] {
		display: none;
	}

	.amg-cr-bar .cw-crv-switch__btn {
		flex: 1 1 0;
		justify-content: center;
	}

	.amg-cr .amg-cr__title {
		font-size: 38px;
		line-height: 1.05;
	}

	.amg-cr .amg-cr__intro {
		font-size: 17px;
	}

	.amg-cr .cw-cr .cw-cr__chip {
		padding: 8px 13px;
		font-size: 13px;
	}

	.amg-cr .cw-cr .cw-cr__th {
		font-family: "Quattrocento", Georgia, serif;
		font-size: 12px;
		letter-spacing: 0.06em;
	}

	.amg-cr .cw-cr .cw-cr__td {
		font-size: 14px;
	}

	.amg-cr .cw-cr .cw-cr__td--result {
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.amg-cr-bar *,
	.amg-cr * {
		transition: none !important;
	}
}
