/*
 * The resource block intentionally reads as visually secondary and
 * distinct from the article body: full-bleed width so it's clearly its
 * own section, smaller type so it doesn't compete with the author's
 * writing, but still fully readable.
 */

.bridge-tags-block {
	margin-top: 2.5em;
	padding: 1.5em 0;
	background: #f8f8f8;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	font-size: 0.85em; /* ~15% smaller than body copy; stays within the 10-25% range */
}

/*
 * Full-bleed technique: measures how far the block sits from the left
 * edge of the viewport and pulls itself out by that amount on both
 * sides, so it stretches edge to edge regardless of how a given theme
 * builds its content container. Works without knowing anything
 * theme-specific. Falls back gracefully if a parent happens to hide
 * overflow, in which case the block simply stays at content width.
 */
.bridge-tags-width-full {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

.bridge-tags-width-standard {
	width: auto;
	margin-left: 0;
	margin-right: 0;
	left: auto;
	right: auto;
}

/* The text itself always stays lined up with the normal content column. */
.bridge-tags-inner {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 1.5em;
}

.bridge-tags-heading {
	font-size: 0.85em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #666;
	margin: 0 0 0.9em;
}

.bridge-tags-node-label {
	font-weight: 600;
	margin: 0 0 0.25em;
}

.bridge-tags-single {
	padding: 0.5em 0;
	border-bottom: 1px solid #e5e5e5;
}

.bridge-tags-single a,
.bridge-tags-dropdown-panel a {
	text-decoration: underline;
}

.bridge-tags-dropdown {
	border: 1px solid #ddd;
	border-radius: 6px;
	margin-bottom: 0.5em;
	overflow: hidden;
	background: #fff;
}

.bridge-tags-dropdown-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.6em 0.9em;
	font-size: 1em;
	text-align: left;
}

.bridge-tags-chevron {
	transition: transform 0.15s ease;
}

.bridge-tags-dropdown-toggle[aria-expanded="true"] .bridge-tags-chevron {
	transform: rotate(180deg);
}

.bridge-tags-dropdown-panel {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	padding: 0 0.9em 0.8em;
}

.bridge-tags-dropdown-panel[hidden] {
	display: none;
}

.bridge-tags-depth-1 {
	margin-top: 0.5em;
}
