.tr-public-radar, .tr-dashboard {
	--tr-navy: #0b2545;
	--tr-gold: #c9a227;
	--tr-high: #b32d2e;
	--tr-medium: #b26a00;
	--tr-low: #4c6b3a;
	--tr-bg: #f7f7f8;
	--tr-border: #e2e4e8;
	font-family: inherit;
}

/* ---- Badges and status chips ---- */
.tr-badge {
	display: inline-block; padding: 3px 10px; border-radius: 12px;
	font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #fff;
}
.tr-badge-high   { background: var(--tr-high, #b32d2e); }
.tr-badge-medium { background: var(--tr-medium, #b26a00); }
.tr-badge-low    { background: var(--tr-low, #4c6b3a); }

.tr-public-radar .tr-chip {
	display: inline-block; padding: 2px 10px; border-radius: 12px; border: 1px solid transparent;
	font-size: 11px; font-weight: 600; line-height: 1.5;
}
.tr-chip-consultation { background: #fdf3dc; color: #a06a00; border-color: #f2d58c; }
.tr-chip-decision     { background: #e3f4ea; color: #1e7a4c; border-color: #b7e0c8; }
.tr-chip-legislation  { background: #eeeafb; color: #5b3fb8; border-color: #d3c9f3; }
.tr-chip-study        { background: #e8eefb; color: #3f5fb0; border-color: #c4d2f3; }
.tr-chip-enforcement  { background: #fbe9e3; color: #b3441f; border-color: #f2c4b4; }
.tr-chip-guidance     { background: #e0f2f6; color: #1d7a91; border-color: #aedbe6; }
.tr-chip-other        { background: #eef0f2; color: #5f6773; border-color: #d5d9de; }

/* ---- Key insights strip ---- */
.tr-insights {
	background: #fff; border: 1px solid var(--tr-border); border-left: 4px solid var(--tr-gold);
	border-radius: 10px; padding: 14px 18px; margin-bottom: 18px;
}
.tr-insights-head { margin: 0 0 10px; font-weight: 700; color: var(--tr-navy); }
.tr-insights-head span { font-weight: 400; font-size: 12px; color: #8a8f98; margin-left: 8px; }
.tr-insights-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.tr-insight strong { display: block; font-size: 13px; color: var(--tr-navy); margin-bottom: 2px; }
.tr-insight span { font-size: 13px; color: #5a6270; }

/* ---- Filter bar ---- */
.tr-filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.tr-filterbar select, .tr-filterbar input[type="search"] {
	background: #fff; border: 1px solid var(--tr-border); border-radius: 6px;
	padding: 8px 10px; font-size: 13px; color: var(--tr-navy); max-width: 100%;
}
.tr-filterbar input[type="search"] { flex: 1 1 180px; min-width: 150px; }
.tr-filter-count { font-size: 12px; color: #8a8f98; margin-left: auto; }

/* ---- Cards ---- */
.tr-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }

.tr-item {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tr-border);
	border-radius: 10px; padding: 16px; transition: box-shadow .15s ease;
}
.tr-item:hover { box-shadow: 0 6px 16px rgba(11,37,69,.08); }
.tr-item[hidden] { display: none; }

.tr-item-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tr-item-date { margin-left: auto; font-size: 12px; color: #8a8f98; }

.tr-item-title { font-size: 16px; line-height: 1.35; margin: 0 0 6px; }
.tr-item-title a { color: var(--tr-navy); text-decoration: none; }
.tr-item-title a:hover { text-decoration: underline; }

.tr-item-meta { margin: 0 0 8px; font-size: 13px; color: #5a6270; font-weight: 600; }
.tr-item-summary { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: #3c4350; }

.tr-item-points { background: var(--tr-bg); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; font-size: 13px; }
.tr-item-points strong { display: block; margin-bottom: 4px; color: var(--tr-navy); }
.tr-item-points ul { margin: 0; padding-left: 18px; }
.tr-item-points li { margin-bottom: 3px; color: #3c4350; }

.tr-item-deadline { margin: 0 0 10px; font-size: 13px; color: #8a4b00; background: #fff8e8; border-radius: 6px; padding: 6px 10px; }

.tr-item-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.tr-item-topic { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #8a8f98; }
.tr-item-link { font-size: 13px; font-weight: 600; color: var(--tr-navy); text-decoration: none; }
.tr-item-link:hover { text-decoration: underline; }

.tr-empty { color: #8a8f98; font-style: italic; }

/* ---- Stat dashboard shortcode ---- */
.tr-dash-header { background: var(--tr-navy); color: #fff; border-radius: 10px 10px 0 0; padding: 20px 24px; }
.tr-dash-title { margin: 0 0 4px; font-size: 20px; color: #fff; }
.tr-dash-sub { margin: 0; font-size: 13px; color: var(--tr-gold); }

.tr-dash-cards {
	display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	background: #f7f7f8; border: 1px solid var(--tr-border); border-top: none; padding: 16px 24px;
}
.tr-dash-card { background: #fff; border: 1px solid var(--tr-border); border-radius: 8px; padding: 14px; text-align: center; }
.tr-dash-card-high { border-color: var(--tr-high); }
.tr-dash-card-medium { border-color: var(--tr-medium); }
.tr-dash-card-low { border-color: var(--tr-low); }
.tr-dash-num { display: block; font-size: 28px; font-weight: 700; color: var(--tr-navy); }
.tr-dash-card-high .tr-dash-num { color: var(--tr-high); }
.tr-dash-card-medium .tr-dash-num { color: var(--tr-medium); }
.tr-dash-card-low .tr-dash-num { color: var(--tr-low); }
.tr-dash-label { display: block; font-size: 12px; color: #6b7280; margin-top: 4px; }

.tr-dash-footer {
	border: 1px solid var(--tr-border); border-top: none; border-radius: 0 0 10px 10px;
	background: #f0f4f8; color: #6b7280; font-size: 12px; text-align: center; padding: 10px; margin: 0;
}

/* Public intelligence trends — read-only, responsive, no additional API usage */
.tr-public-trends { margin: 0 0 24px; }
.tr-trends-heading { margin: 0 0 14px; }
.tr-trends-heading h2 { font-size: 21px; color: #0b2545; margin: 0 0 4px; }
.tr-trends-heading p { color: #6b7280; font-size: 13px; margin: 0; }
.tr-trends-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.tr-trend-panel { background: #fff; border: 1px solid #e2e4e8; border-radius: 11px; padding: 18px; min-width: 0; }
.tr-trend-panel h3 { font-size: 16px; color: #0b2545; margin: 0 0 16px; }
.tr-trend-bars { display: grid; gap: 11px; }
.tr-trend-line { display: grid; grid-template-columns: minmax(95px,1.15fr) minmax(40px,1fr) 38px; gap: 9px; align-items: center; }
.tr-trend-name { font-size: 12px; overflow-wrap: anywhere; color: #273b55; }
.tr-trend-track { height: 9px; border-radius: 12px; background: #edf0f3; overflow: hidden; }
.tr-trend-track span { height: 100%; display: block; border-radius: inherit; background: #2c70b7; }
.tr-trend-panel:nth-child(3) .tr-trend-track span { background: #2a9a68; }
.tr-trend-panel:nth-child(1) .tr-trend-track span { background: #c9a227; }
.tr-trend-percent { font-size: 12px; color: #5b6677; text-align: right; }
.tr-trend-note, .tr-trend-empty { font-size: 12px; color: #6b7280; margin: 15px 0 0; }
@media(max-width: 900px) { .tr-trends-grid { grid-template-columns: 1fr; } }

/* v1.7: ensure theme heading styles cannot override navy-header contrast. */
.tr-dashboard .tr-dash-header .tr-dash-title { color: #ffffff !important; opacity: 1 !important; }

/* v1.8: published vs AI-analysed distinction */
.tr-badge-pending { background: #6b7280; text-transform: none; letter-spacing: 0; font-weight: 600; }
.tr-dash-note {
	border-left: 1px solid var(--tr-border); border-right: 1px solid var(--tr-border);
	background: #f8fafc; color: #4b5563; font-size: 12px; line-height: 1.5; text-align: center; padding: 10px 14px; margin: 0;
}
.tr-feed-note { color: #6b7280; font-size: 13px; margin: 0 0 12px; }
@media(max-width: 600px) {
	.tr-filterbar select, .tr-filterbar input { width: 100%; box-sizing: border-box; }
	.tr-dash-note { text-align: left; }
}
