/* ==========================================================================
   AZCC Record — Timeline & collapsible sections
   High specificity and forced colors so theme/Elementor don't break layout.
   ========================================================================== */

.azcc-record {
	--azcc-record-line: 3px;
	--azcc-record-marker-size: 14px;
	--azcc-record-gutter: 2.75rem;
	--azcc-record-axis-nudge: 0px;
	--azcc-record-gap: 1.25rem;
	--azcc-record-radius: 8px;
	--azcc-record-accent: #1e3a5f;
	--azcc-record-accent-light: #2d5a87;
	--azcc-record-text: #1e293b;
	--azcc-record-border: #e2e8f0;
	max-width: 900px;
	margin: 2rem auto;
	padding: 0 1rem 0 var(--azcc-record-gutter);
	position: relative;
	box-sizing: border-box;
}

.azcc-record *,
.azcc-record *::before,
.azcc-record *::after {
	box-sizing: border-box;
}

/* Timeline vertical line — centered in the left gutter of the wrap */
.azcc-record__timeline {
	position: absolute;
	left: calc(var(--azcc-record-gutter) / 2 - var(--azcc-record-line) / 2 + var(--azcc-record-axis-nudge));
	top: 0;
	bottom: 0;
	width: var(--azcc-record-line);
	background: linear-gradient(to bottom, var(--azcc-record-accent) 0%, #cbd5e1 100%);
	border-radius: 2px;
	pointer-events: none;
	z-index: 0;
}

/* Standalone blocks: one card per block, clear hierarchy */
.azcc-record__block {
	margin: 2.5rem 0;
	width: 100%;
	background: #fff !important;
	border: 1px solid var(--azcc-record-border);
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.azcc-record__block:first-child {
	margin-top: 0;
}

.azcc-record__block-heading {
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--azcc-record-accent) !important;
	padding: 1.25rem 1.5rem;
	margin: 0;
	border-bottom: 1px solid var(--azcc-record-border);
}

.azcc-record__block-body {
	padding: 1.5rem 1.5rem;
	line-height: 1.6;
}

.azcc-record__block-body h3,
.azcc-record__block-body p,
.azcc-record__block-body ul,
.azcc-record__block-body ol,
.azcc-record__block-body li,
.azcc-record__block-body strong,
.azcc-record__block-body a {
	color: var(--azcc-record-text) !important;
}

.azcc-record__block-body h3 {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--azcc-record-accent) !important;
	margin: 1.25rem 0 0.5rem;
}

.azcc-record__block-body h3:first-child {
	margin-top: 0;
}

.azcc-record__block-body a {
	color: var(--azcc-record-accent) !important;
}

.azcc-record__block-body p {
	margin: 0 0 0.875rem;
	line-height: 1.65;
}

.azcc-record__block-body p:last-child {
	margin-bottom: 0;
}

.azcc-record__block-body ul,
.azcc-record__block-body ol {
	margin: 0.75rem 0 1rem;
	padding-left: 1.5rem;
}

.azcc-record__block-body li {
	margin-bottom: 0.5rem;
	line-height: 1.55;
}

/* Intro: soft blue accent */
.azcc-record__block--intro {
	border-color: #bfdbfe;
}

.azcc-record__block--intro .azcc-record__block-heading {
	background: #eff6ff !important;
	border-bottom-color: #bfdbfe !important;
}

.azcc-record__block--intro .azcc-record__block-body {
	background: #fafbff !important;
}

/* Summary: clean list card — prominent numbers */
.azcc-record__block--summary {
	border-color: #cbd5e1;
}

.azcc-record__block--summary .azcc-record__block-heading {
	background: #f8fafc !important;
	border-bottom-color: #e2e8f0 !important;
}

.azcc-record__block--summary .azcc-record__block-body {
	background: #fff !important;
}

.azcc-record__block--summary .azcc-record__block-body ol {
	list-style: none;
	padding-left: 0;
	counter-reset: summary-item;
}

.azcc-record__block--summary .azcc-record__block-body ol li {
	position: relative;
	padding-left: 2.5rem;
	margin-bottom: 0.75rem;
	counter-increment: summary-item;
}

.azcc-record__block--summary .azcc-record__block-body ol li::before {
	content: counter(summary-item);
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 1.75rem;
	height: 1.75rem;
	background: var(--azcc-record-accent);
	color: #fff !important;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.75rem;
	text-align: center;
	border-radius: 50%;
}

/* Outro: verdict-style — stronger accent, emphasis on closing line */
.azcc-record__block--outro {
	border-width: 2px;
	border-color: var(--azcc-record-accent);
	box-shadow: 0 4px 20px rgba(30, 58, 95, 0.12);
}

.azcc-record__block--outro .azcc-record__block-heading {
	background: linear-gradient(to bottom, #f0f4f8 0%, #e8eef4 100%) !important;
	border-bottom: 2px solid var(--azcc-record-accent) !important;
}

.azcc-record__block--outro .azcc-record__block-body {
	background: #fafbfd !important;
}

.azcc-record__block--outro .azcc-record__block-body ul {
	margin-bottom: 1.25rem;
}

.azcc-record__block--outro .azcc-record__block-body strong {
	color: var(--azcc-record-accent) !important;
}

/* Timeline wrapper: line only runs alongside timeline sections */
.azcc-record__timeline-wrap {
	position: relative;
	width: 100%;
	min-width: 0;
	margin: 2rem 0;
}

.azcc-record__timeline-wrap:first-child {
	margin-top: 0;
}

.azcc-record__sections {
	position: relative;
	z-index: 1;
	width: 100%;
	min-width: 0;
}

.azcc-record__section {
	margin-bottom: var(--azcc-record-gap);
	width: 100%;
	min-width: 0;
}

.azcc-record__section:last-child {
	margin-bottom: 0;
}

/* Section header = full width (100%), so all timeline cards are equal width */
.azcc-record__section-header {
	display: grid !important;
	grid-template-columns: var(--azcc-record-gutter) minmax(0, 1fr) minmax(2rem, auto);
	gap: 0 0.75rem;
	align-items: center;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100%;
	min-height: 3.5rem;
	padding: 1rem 1rem 1rem 0;
	text-align: left;
	font-size: 1.05rem;
	font-weight: 600;
	font-family: inherit;
	color: var(--azcc-record-accent) !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0;
	box-shadow: none !important;
	cursor: pointer;
	transition: box-shadow 0.2s, border-color 0.2s;
	appearance: none;
	position: relative;
}

/* White card only from title column onward so timeline shows in gutter */
.azcc-record__section-header::before {
	content: '';
	position: absolute;
	left: calc(var(--azcc-record-gutter) + 0.75rem);
	right: 0;
	top: 0;
	bottom: 0;
	background: #fff !important;
	border: 1px solid var(--azcc-record-border) !important;
	border-radius: var(--azcc-record-radius);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	pointer-events: none;
	z-index: -1;
}

.azcc-record__section-header:hover::before {
	background: #f8fafc !important;
	border-color: #cbd5e1 !important;
}

.azcc-record__section.is-open .azcc-record__section-header::before {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border-color: var(--azcc-record-accent) !important;
	background: #fff !important;
}

/* Marker = circle only, in its own column so it never overlaps text */
.azcc-record__section-marker {
	display: block;
	width: var(--azcc-record-marker-size);
	height: var(--azcc-record-marker-size);
	min-width: var(--azcc-record-marker-size);
	min-height: var(--azcc-record-marker-size);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--azcc-record-accent);
	border: 3px solid #fff;
	box-shadow: 0 0 0 1px var(--azcc-record-accent);
	position: absolute;
	left: calc(
		var(--azcc-record-gutter) / 2 - var(--azcc-record-marker-size) / 2 + var(--azcc-record-axis-nudge)
	);
	top: 50%;
	transform: translateY(-50%);
	flex-shrink: 0;
	z-index: 2;
}

.azcc-record__section.is-open .azcc-record__section-marker {
	background: var(--azcc-record-accent-light);
	box-shadow: 0 0 0 2px var(--azcc-record-accent);
}

/* Title: own column, must wrap (override theme/UA nowrap) */
.azcc-record__section-title {
	grid-column: 2;
	grid-row: 1;
	min-width: 0 !important;
	max-width: 100%;
	padding-right: 0.5rem;
	color: var(--azcc-record-accent) !important;
	white-space: normal !important;
	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: break-word;
}

/* Chevron: fixed-size column so it never overlaps title */
.azcc-record__section-icon {
	grid-column: 3;
	grid-row: 1;
	width: 2rem;
	min-width: 2rem;
	height: 1.25rem;
	flex-shrink: 0;
	position: relative;
	opacity: 0.7;
	transition: transform 0.25s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.azcc-record__section-icon::before {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}

.azcc-record__section.is-open .azcc-record__section-icon::before {
	transform: rotate(-135deg);
}

/* Section body (collapsible) */
.azcc-record__section-body {
	max-height: 5000px;
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.azcc-record__section:not(.is-open) .azcc-record__section-body {
	max-height: 0;
}

.azcc-record__section-inner {
	padding: 1.25rem 1.25rem 1.25rem 1rem;
	margin-left: var(--azcc-record-gutter);
	margin-top: 0.25rem;
	margin-bottom: 0.5rem;
	border-left: 3px solid var(--azcc-record-border);
	border-radius: 0 var(--azcc-record-radius) var(--azcc-record-radius) 0;
	background: #f8fafc;
}

/* Typography — force colors so theme doesn't override */
.azcc-record__section-inner h3 {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--azcc-record-accent) !important;
	margin: 1.25rem 0 0.5rem;
}

.azcc-record__section-inner h3:first-child {
	margin-top: 0;
}

.azcc-record__section-inner p {
	margin: 0 0 0.75rem;
	line-height: 1.6;
	color: var(--azcc-record-text) !important;
}

.azcc-record__section-inner p:last-child {
	margin-bottom: 0;
}

.azcc-record__section-inner ul,
.azcc-record__section-inner ol {
	margin: 0.5rem 0 1rem;
	padding-left: 1.5rem;
}

.azcc-record__section-inner li {
	margin-bottom: 0.35rem;
	line-height: 1.55;
	color: var(--azcc-record-text) !important;
}

.azcc-record__section-inner strong {
	color: var(--azcc-record-text) !important;
}

.azcc-record__section-inner a {
	color: var(--azcc-record-accent) !important;
	text-decoration: underline;
}

.azcc-record__section-inner a:hover {
	color: var(--azcc-record-accent-light) !important;
}

.azcc-record__video {
	margin-top: 1rem;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--azcc-record-border);
	background: #000;
}

.azcc-record__video iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* Fallbacks */
.azcc-record--no-sections {
	padding: 1rem;
}

.azcc-record--empty {
	max-width: 640px;
	margin: 2rem auto;
	padding: 1.5rem;
	background: #f8fafc;
	border: 1px solid var(--azcc-record-border);
	border-radius: 8px;
}

.azcc-record__empty-msg {
	margin: 0;
	line-height: 1.6;
	color: #475569 !important;
}

.azcc-record__empty-msg code {
	background: #e2e8f0;
	padding: 0.15em 0.4em;
	border-radius: 4px;
	font-size: 0.9em;
}

/* ==========================================================================
   [bills] shortcode styles
   ========================================================================== */
.azcc-bills {
	max-width: 900px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.azcc-bills__intro {
	background: #f8fafc;
	border: 1px solid #dbe7f2;
	border-radius: 10px;
	padding: 1rem 1.1rem;
	margin-bottom: 1.25rem;
}

.azcc-bills__intro p {
	margin: 0;
	line-height: 1.55;
	color: #1e293b !important;
}

.azcc-bills__session {
	margin-bottom: 1.75rem;
}

.azcc-bills__session-title {
	margin: 0 0 0.7rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #1e3a5f !important;
}

.azcc-bills__items {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.6rem;
}

.azcc-bills__item {
	background: #fff;
	border: 1px solid #d9e3ee;
	border-radius: 10px;
	padding: 0.8rem 0.9rem;
}

.azcc-bills__item--passed {
	border-color: #bbf7d0;
	background: #f8fff9;
}

.azcc-bills__item-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.35rem;
}

.azcc-bills__bill-number {
	font-weight: 700;
	color: #1e3a5f !important;
	text-decoration: none;
}

.azcc-bills__bill-number:hover {
	text-decoration: underline;
}

.azcc-bills__status {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #334155 !important;
	background: #e2e8f0;
	border-radius: 999px;
	padding: 0.2rem 0.55rem;
	white-space: nowrap;
}

.azcc-bills__status--default {
	background: #e2e8f0;
	color: #334155 !important;
}

.azcc-bills__status--passed {
	background: #dcfce7;
	color: #166534 !important;
}

.azcc-bills__status--enrolled {
	background: #bbf7d0;
	color: #14532d !important;
}

.azcc-bills__title {
	margin: 0 0 0.45rem;
	font-size: 0.98rem;
	line-height: 1.45;
	color: #1e293b !important;
}

.azcc-bills__blurb {
	margin: 0 0 0.5rem;
	font-size: 0.92rem;
	line-height: 1.5;
	color: #334155 !important;
}

.azcc-bills__video {
	margin: 0.45rem 0 0.55rem;
}

.azcc-bills__video .twitter-tweet {
	margin: 0 !important;
}

.azcc-bills__result {
	margin: 0 0 0.35rem;
	font-size: 0.84rem;
	line-height: 1.45;
	color: #166534 !important;
}

.azcc-bills__sponsors {
	margin: 0;
	font-size: 0.84rem;
	line-height: 1.4;
	color: #475569 !important;
}

.azcc-bills__sponsor {
	display: inline-block;
	margin-right: 0.45rem;
}

.azcc-bills--empty {
	padding: 1rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

/* Mobile: tighter left space, headers wrap, full-width content */
@media (max-width: 640px) {
	.azcc-record {
		margin: 1rem 0.75rem;
		padding: 0 0.5rem 0 1rem;
		--azcc-record-gutter: 1.25rem;
		max-width: none;
	}

	.azcc-record__block {
		margin: 1.75rem 0;
	}

	.azcc-record__block-heading {
		font-size: 1.1rem;
		padding: 1rem 1rem;
	}

	.azcc-record__block-body {
		padding: 1rem 1rem;
	}

	/* Timeline: smaller gutter, line and marker closer to edge */
	.azcc-record__timeline-wrap {
		margin: 1.75rem 0;
	}

	.azcc-record__section-header {
		grid-template-columns: 1.25rem minmax(0, 1fr) minmax(2rem, auto);
		gap: 0 0.5rem;
		padding: 0.75rem 0.5rem 0.75rem 0;
		font-size: 0.95rem;
		min-height: 0;
		align-items: flex-start;
	}

	.azcc-record__section-header::before {
		left: calc(1.25rem + 0.5rem);
	}

	.azcc-record__section-title {
		padding-right: 0.35rem;
		line-height: 1.35;
	}

	.azcc-record__section-marker {
		margin-top: 0;
	}

	.azcc-record__section-icon {
		margin-top: 0.15rem;
	}

	.azcc-record__section-inner {
		margin-left: 1.25rem;
		padding: 1rem 0.5rem;
	}

	.azcc-bills {
		margin: 1rem 0.75rem;
		padding: 0 0.25rem;
	}

	.azcc-bills__item {
		padding: 0.75rem 0.75rem;
	}

	.azcc-bills__item-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.35rem;
	}
}
