/**
 * WA Tribune Legals — public display styles.
 * Card grid for the directory (shortcode + Elementor widget). Plain CSS, no
 * build step. The Elementor widget overrides colors / type / spacing / columns
 * via its own inline selectors; these are sensible defaults that work anywhere.
 */

.wa-legals { margin: 1em 0; }

.wa-legals__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 1.25em;
}
.wa-legals__search {
	flex: 1 1 280px;
	padding: 10px 12px;
	border: 1px solid #c9c9c9;
	border-radius: 6px;
	font-size: 16px;
}
.wa-legals__type {
	flex: 0 0 auto;
	padding: 10px 12px;
	border: 1px solid #c9c9c9;
	border-radius: 6px;
	font-size: 16px;
	background: #fff;
}
.wa-legals__count {
	flex: 0 0 auto;
	color: #555;
	font-size: 14px;
	margin-left: auto;
}

/* Responsive gallery grid. The widget sets grid-template-columns explicitly;
   this auto-fill default keeps the shortcode looking right on its own. */
.wa-legals__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 16px;
	align-items: start;
}

.wa-legals__card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px 18px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.wa-legals__head {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}
.wa-legals__badge {
	display: inline-block;
	font-size: 11px;
	letter-spacing: .04em;
	text-transform: uppercase;
	font-weight: 600;
	color: #1a4d7a;
	background: #eaf2fb;
	border-radius: 999px;
	padding: 3px 10px;
	white-space: nowrap;
}
.wa-legals__title {
	margin: 0;
	font-size: 18px;
	line-height: 1.25;
}
.wa-legals__meta {
	margin: 0 0 10px;
	font-size: 13px;
	color: #555;
}
.wa-legals__status {
	display: inline-block;
	margin-left: 6px;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: .03em;
}
.wa-legals__status--running  { color: #8a6d00; }
.wa-legals__status--complete { color: #1c7a1c; }
.wa-legals__status--archived { color: #777; }

/* Excerpt shown on the card. */
.wa-legals__excerpt {
	font-size: 14px;
	line-height: 1.55;
	color: #222;
	margin-bottom: 10px;
}

/* "Read full notice" expander (native <details>; works with no JS). */
.wa-legals__full { margin-bottom: 10px; }
.wa-legals__full > summary {
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: #1a4d7a;
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	user-select: none;
}
.wa-legals__full > summary::-webkit-details-marker { display: none; }
.wa-legals__full > summary::before {
	content: "▸";
	font-size: 12px;
	transition: transform .15s ease;
}
.wa-legals__full[open] > summary::before { transform: rotate(90deg); }
.wa-legals__full[open] > summary { margin-bottom: 8px; }

.wa-legals__body {
	font-size: 14px;
	line-height: 1.6;
	color: #222;
	max-height: 28em;
	overflow: auto;
	border-top: 1px solid #f0f0f0;
	padding-top: 10px;
	white-space: normal;
}

.wa-legals__pdfwrap {
	margin: 10px 0;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	overflow: hidden;
	background: #f7f7f7;
}
.wa-legals__embed {
	display: block;
	width: 100%;
	height: 520px;
	border: 0;
}

.wa-legals__actions { margin: 10px 0 0; margin-top: auto; }
.wa-legals__pdf {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: #1a4d7a;
}
.wa-legals__pdf:hover { text-decoration: underline; }

.wa-legals__empty { color: #777; font-style: italic; }

/* Phones: single column regardless of the widget's column setting. */
@media (max-width: 600px) {
	.wa-legals__list { grid-template-columns: 1fr !important; }
}
