/**
 * KCAU Notices — default public stylesheet.
 *
 * Deliberately light-touch: every rule here can be overridden from the
 * Kingster/GoodLayers theme's Custom CSS panel by targeting the same
 * classes with a more specific selector, or disabled entirely with
 * `wp_dequeue_style( 'kcau-notices-public' )`.
 *
 * Brand variables reflect the KCAU brand system and can be edited here or
 * overridden in the theme.
 */

:root {
	--kcau-navy: #192C57;
	--kcau-gold: #CBAE2D;
}

.kcau-notices {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.kcau-notice {
	position: relative;
	border: 1px solid #e2e2e2;
	border-left: 4px solid var(--kcau-navy);
	border-radius: 4px;
	padding: 18px 20px;
	background: #fff;
}

.kcau-notice-pinned {
	border-left-color: var(--kcau-gold);
	background: #fdfbf3;
}

.kcau-notice-priority-urgent {
	border-left-color: #c0392b;
}

.kcau-notice-pin-flag {
	position: absolute;
	top: 12px;
	right: 14px;
}

.kcau-notice-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 2px 8px;
	border-radius: 3px;
	margin: 0 6px 8px 0;
	text-transform: uppercase;
}

.kcau-notice-badge-new {
	background: var(--kcau-gold);
	color: var(--kcau-navy);
}

.kcau-notice-badge-important {
	background: #fdf1cf;
	color: #8a6d00;
}

.kcau-notice-badge-urgent {
	background: #c0392b;
	color: #fff;
}

.kcau-notice-category {
	margin-bottom: 6px;
}

.kcau-notice-category-tag {
	display: inline-block;
	font-size: 11px;
	color: var(--kcau-navy);
	background: #eef1f8;
	padding: 2px 8px;
	border-radius: 12px;
	margin-right: 4px;
}

.kcau-notice-title {
	margin: 4px 0 6px;
	font-family: "Futura PT", "Futura", sans-serif;
	font-size: 1.25em;
	line-height: 1.3;
}

.kcau-notice-title a {
	color: var(--kcau-navy);
	text-decoration: none;
}

.kcau-notice-title a:hover {
	text-decoration: underline;
}

.kcau-notice-meta {
	font-size: 13px;
	color: #666;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-bottom: 10px;
}

.kcau-notice-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	margin-bottom: 10px;
}

.kcau-notice-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
}

.kcau-notice-read-more,
.kcau-notice-download,
.kcau-notice-external-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--kcau-navy);
	text-decoration: none;
}

.kcau-notice-download {
	color: #8a6d00;
}

.kcau-notice-read-more:hover,
.kcau-notice-download:hover,
.kcau-notice-external-link:hover {
	text-decoration: underline;
}

.kcau-notices-empty {
	font-style: italic;
	color: #777;
}

.kcau-notice-view-all {
	margin-top: 10px;
	font-size: 13px;
}

/* Single notice page */
.kcau-notice-single-wrap {
	max-width: 800px;
	margin: 40px auto;
	padding: 0 20px;
}

.kcau-notice-admin-preview-flag {
	background: #fbeaea;
	color: #a94442;
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 16px;
	font-size: 13px;
}

.kcau-notice-single .kcau-notice-title,
.kcau-notice-single h1.kcau-notice-title {
	font-size: 2em;
}

.kcau-notice-content {
	line-height: 1.7;
	margin: 20px 0;
}

.kcau-notice-back {
	margin-top: 24px;
	font-size: 13px;
}

/* Archive page */
.kcau-notice-archive-wrap {
	max-width: 900px;
	margin: 40px auto;
	padding: 0 20px;
}

.kcau-notice-archive-title {
	font-family: "Futura PT", "Futura", sans-serif;
	color: var(--kcau-navy);
	margin-bottom: 24px;
}

.kcau-notices-pagination {
	margin-top: 24px;
	display: flex;
	gap: 8px;
}
