/* [georgia_state_reps] — Omega purple and old gold. */

/* Same wide, centered page area as the other directories, only on pages
   holding the timeline. */
#main-content .container:has(.oppga-sr):not(:has(.oppga-sr-msg)) {
	width: 94%;
	max-width: 1400px;
}

.oppga-sr {
	--sr-purple: #4b2c71;
	--sr-purple-soft: #f4f0f9;
	--sr-gold: #cfb53b;
	--sr-border: #e3dfe8;
	--sr-text: #4b2c71; /* Purple, not black. */
	--sr-muted: #6e5a8a;
	color: var(--sr-text);
	font-size: 16px;
	line-height: 1.5;
}

.oppga-sr__timeline {
	position: relative;
	margin: 0 !important;
	padding: 0 0 0 28px !important;
	list-style: none !important;
}
/* The gold line the years hang from. */
.oppga-sr__timeline::before {
	content: "";
	position: absolute;
	top: 6px;
	bottom: 6px;
	left: 7px;
	width: 3px;
	border-radius: 2px;
	background: var(--sr-gold);
}

.oppga-sr__item {
	position: relative;
	margin: 0 0 22px;
	padding: 0 !important;
}
.oppga-sr__item::before {
	content: "";
	position: absolute;
	top: 6px;
	left: -27px;
	width: 13px;
	height: 13px;
	border: 3px solid var(--sr-gold);
	border-radius: 50%;
	background: #fff;
}
.oppga-sr__item--current::before {
	background: var(--sr-purple);
}

.oppga-sr__years {
	display: inline-block;
	margin-bottom: 6px;
	font-weight: 700;
	font-size: 15px;
	color: var(--sr-purple);
	font-variant-numeric: tabular-nums;
}

.oppga-sr__card {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding: 16px 18px;
	border: 1px solid var(--sr-border);
	border-left: 4px solid var(--sr-purple);
	border-radius: 8px;
	background: #fff;
}
.oppga-sr__item--current .oppga-sr__card {
	border-left-color: var(--sr-gold);
	background: var(--sr-purple-soft);
}

.oppga-sr__photo {
	flex: 0 0 auto;
	width: 104px;
	height: 128px;
	border-radius: 6px;
	object-fit: cover;
	object-position: top;
	border: 2px solid var(--sr-gold);
}

.oppga-sr__body {
	flex: 1 1 auto;
	min-width: 0;
}
.oppga-sr__rank {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--sr-muted);
}
.oppga-sr__badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--sr-purple);
	color: #fff;
	font-size: 11px;
	letter-spacing: 0.02em;
	vertical-align: 1px;
}
.oppga-sr__badge--omega {
	background: #ece7f3;
	color: var(--sr-purple);
}
.oppga-sr__name {
	margin: 2px 0 0 !important;
	padding: 0 !important;
	font-size: 21px !important;
	font-weight: 700;
	color: var(--sr-purple) !important;
	line-height: 1.3 !important;
}
.oppga-sr__where {
	margin: 2px 0 0 !important;
	padding: 0 !important;
	color: var(--sr-muted);
}

.oppga-sr__highlights {
	margin-top: 10px;
}
.oppga-sr__highlights summary {
	display: inline-block;
	padding: 4px 12px;
	border: 1px solid var(--sr-border);
	border-radius: 999px;
	color: var(--sr-purple);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.oppga-sr__highlights summary::-webkit-details-marker {
	display: none;
}
.oppga-sr__highlights summary::after {
	content: " ▾";
	color: var(--sr-gold);
}
.oppga-sr__highlights[open] summary::after {
	content: " ▴";
}
.oppga-sr__highlights summary:hover,
.oppga-sr__highlights summary:focus-visible {
	background: var(--sr-purple-soft);
	border-color: var(--sr-purple);
}
.oppga-sr__content {
	margin-top: 12px;
	color: var(--sr-text);
}
.oppga-sr__content h4 {
	margin: 14px 0 6px !important;
	padding: 0 !important;
	font-size: 16px !important;
	color: var(--sr-purple);
}
.oppga-sr__content ul {
	margin: 0 0 8px 1.2em !important;
	padding: 0 !important;
}
.oppga-sr__content li {
	margin: 0 0 4px;
}
.oppga-sr__content table {
	width: 100%;
	margin: 10px 0 !important;
	border-collapse: collapse;
	font-size: 14px;
}
.oppga-sr__content td,
.oppga-sr__content th {
	padding: 6px 8px !important;
	border: 1px solid var(--sr-border) !important;
	text-align: left;
	vertical-align: top;
}
.oppga-sr__content tr:first-child td {
	background: var(--sr-purple-soft);
	font-weight: 600;
}

@media (max-width: 640px) {
	.oppga-sr__card {
		flex-direction: column;
	}
	.oppga-sr__photo {
		width: 88px;
		height: 108px;
	}
	.oppga-sr__content table {
		display: block;
		overflow-x: auto;
	}
}

/* [georgia_state_rep_message] ------------------------------------------------ */

/* The letter has its own heading; hide the theme's page title. */
.oppga-sr-message-page .entry-title.main_title {
	display: none;
}
#main-content .container:has(.oppga-sr-msg) {
	width: 94%;
	max-width: 1180px;
}

.oppga-sr-msg {
	display: grid;
	grid-template-columns: minmax(260px, 400px) 1fr;
	gap: 40px;
	align-items: start;
	margin: 8px 0 24px;
}
.oppga-sr-msg__portrait {
	position: sticky;
	top: 120px; /* Below Divi's fixed header. */
}
.oppga-sr-msg__portrait img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(75, 44, 113, 0.25);
}

/* The letter: a sheet with a gold rule under the letterhead. */
.oppga-sr-msg__letter {
	padding: 40px 48px 36px;
	border: 1px solid var(--sr-border);
	border-top: 6px solid var(--sr-purple);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 6px 24px rgba(75, 44, 113, 0.08);
}
.oppga-sr-msg__office {
	margin: 0 0 6px !important;
	padding: 0 !important;
	color: var(--sr-gold);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.oppga-sr-msg__heading {
	margin: 0 0 22px !important;
	padding: 0 0 18px !important;
	border-bottom: 3px solid var(--sr-gold);
	color: var(--sr-purple) !important;
	font-size: clamp(24px, 3vw, 34px) !important;
	font-weight: 700;
	line-height: 1.2 !important;
}
.oppga-sr-msg__body {
	color: var(--sr-text);
	font-size: 18px;
	line-height: 1.75;
}
.oppga-sr-msg__body p {
	margin: 0 0 1.1em !important;
	padding: 0 !important;
}
/* Salutation. */
.oppga-sr-msg__body > p:first-child {
	font-size: 20px;
	font-weight: 600;
	color: var(--sr-purple);
}
.oppga-sr-msg__body strong,
.oppga-sr-msg__body em {
	color: var(--sr-purple);
}
/* Signature: the letter's last paragraph. */
.oppga-sr-msg__body > p:last-child {
	margin-top: 1.8em !important;
	padding-top: 14px !important;
	border-top: 1px solid var(--sr-border);
	font-size: 16px;
	line-height: 1.5;
	color: var(--sr-muted);
}
.oppga-sr-msg__body > p:last-child strong {
	display: inline-block;
	margin-bottom: 2px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	font-style: italic;
	color: var(--sr-purple);
}
.oppga-sr-msg__body img {
	max-width: 100%;
	height: auto;
}

.oppga-sr-msg__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 28px 0 0 !important;
	padding: 0 !important;
}
.oppga-sr-msg__links a {
	padding: 6px 14px;
	border: 1px solid var(--sr-border);
	border-radius: 999px;
	color: var(--sr-purple) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.oppga-sr-msg__links a:hover,
.oppga-sr-msg__links a:focus-visible {
	background: var(--sr-purple-soft);
	border-color: var(--sr-purple);
}

@media (max-width: 860px) {
	.oppga-sr-msg {
		grid-template-columns: 1fr;
		gap: 22px;
	}
	.oppga-sr-msg__portrait {
		position: static;
		max-width: 420px;
		margin: 0 auto;
	}
	.oppga-sr-msg__letter {
		padding: 26px 22px;
	}
	.oppga-sr-msg__body {
		font-size: 17px;
	}
}
