/* ===============================================
   TRF - Truffe Recupero Fondi - Frontend
   v3.0 - Allineato a TutelaTrader Broker DB (public.css)
   =============================================== */

/* -- Design Tokens --- */
:root {
	--trf-font: 'DM Sans', system-ui, -apple-system, sans-serif;
	--trf-font-display: 'DM Sans', system-ui, -apple-system, sans-serif;
	--trf-mono: 'JetBrains Mono', 'SF Mono', monospace;

	/* Brand */
	--trf-brand-dark: #062352;
	--trf-brand-blue: #0080d5;
	--trf-brand-accent: #f5bc6f;
	--trf-brand-accent-hover: #e5a54f;

	/* Text */
	--trf-ink: #0f172a;
	--trf-ink-secondary: #475569;
	--trf-ink-muted: #94a3b8;
	--trf-ink-faint: #cbd5e1;

	/* Surfaces */
	--trf-surface: #ffffff;
	--trf-surface-raised: #f8fafc;
	--trf-surface-sunken: #f1f5f9;
	--trf-border: #e2e8f0;
	--trf-border-subtle: #f1f5f9;

	/* Danger / Flagged */
	--trf-danger: #be2d2d;
	--trf-danger-dark: #8b1f1f;
	--trf-danger-soft: #fdf2f2;
	--trf-danger-softer: #fef8f8;
	--trf-danger-border: #f5caca;
	--trf-danger-muted: #d96b6b;

	/* Verified / Safe */
	--trf-verified: #059669;
	--trf-verified-soft: #ecfdf5;
	--trf-verified-border: #a7f3d0;

	/* Warning */
	--trf-warn-soft: #fffbeb;
	--trf-warn-border: #fde68a;

	/* Orange */
	--trf-orange: #c05621;
	--trf-orange-soft: #fffaf0;
	--trf-orange-border: #fed7aa;

	/* Radii & Shadows */
	--trf-radius-xs: 6px;
	--trf-radius-sm: 8px;
	--trf-radius: 14px;
	--trf-radius-lg: 20px;
	--trf-radius-full: 100px;
	--trf-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
	--trf-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
	--trf-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/*    SINGLE ENTITY PAGE
*/

/* -- Page Container ------------------------- */
.trf-page {
	max-width: 1024px;
	margin: 0 auto;
	padding: 0px 24px 10px;
	font-family: var(--trf-font);
	color: var(--trf-ink);
	overflow-x: hidden;
}

/* -- Breadcrumb ----------------------------- */
.trf-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--trf-ink-muted);
	margin-bottom: 15px;
	font-weight: 500;
	flex-wrap: wrap;
}
.trf-breadcrumb a {
	color: var(--trf-ink-secondary);
	text-decoration: none;
	transition: color 0.15s;
}
.trf-breadcrumb a:hover {
	color: var(--trf-brand-blue);
}
.trf-sep {
	color: var(--trf-ink-faint);
	font-size: 12px;
}

/*  HERO CARD  */
.trf-hero {
	background: var(--trf-surface);
	border: 2px solid var(--trf-danger-border);
	border-radius: var(--trf-radius-lg);
	overflow: hidden;
	box-shadow: var(--trf-shadow-md), 0 0 0 1px rgba(190, 45, 45, 0.05);
	margin-bottom: 24px;
	animation: trfFadeUp 0.45s ease-out;
}

/* -- Alert Banner --------------------------- */
.trf-alert-banner {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 24px;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
}
.trf-alert-banner strong {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 2px;
	opacity: 0.9;
}
.trf-alert-icon {
	flex-shrink: 0;
	margin-top: 1px;
	font-size: 20px;
}
.trf-banner-danger  { background: var(--trf-danger); }
.trf-banner-orange  { background: var(--trf-orange); }
.trf-banner-warn    { background: #b7791f; }
.trf-banner-neutral { background: var(--trf-ink-muted); }

/* -- Hero Body ------------------------------ */
.trf-hero-body {
	padding: 20px;
}
.trf-hero-danger .trf-hero-body {
	background: linear-gradient(180deg, var(--trf-danger-softer) 0%, var(--trf-surface) 100%);
}
.trf-hero-orange .trf-hero-body {
	background: linear-gradient(180deg, #fff7ed 0%, var(--trf-surface) 100%);
}

/* -- Hero Badge ----------------------------- */
.trf-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	border-radius: var(--trf-radius-full);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 14px;
}
.trf-badge-danger  { background: var(--trf-danger-soft); border: 1px solid var(--trf-danger-border); color: var(--trf-danger); }
.trf-badge-orange  { background: var(--trf-orange-soft); border: 1px solid var(--trf-orange-border); color: var(--trf-orange); }
.trf-badge-warn    { background: var(--trf-warn-soft); border: 1px solid var(--trf-warn-border); color: #92400e; }
.trf-badge-neutral { background: var(--trf-surface-sunken); border: 1px solid var(--trf-border); color: var(--trf-ink-muted); }

/* -- Hero Content (text + image) ------------ */
.trf-hero-content {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}
.trf-hero-text {
	flex: 1;
	min-width: 0;
}

/* -- Company Name (= tt-company-name) ------- */
.trf-company-name {
	font-family: var(--trf-font-display);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--trf-ink);
	margin: 0 0 12px;
	overflow-wrap: break-word;
	word-break: break-word;
}

/* -- Domain Display ------------------------- */
.trf-domain-display {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--trf-mono);
	font-size: 15px;
	color: var(--trf-ink-muted);
	padding: 5px 12px;
	background: var(--trf-surface-sunken);
	border: 1px solid var(--trf-border);
	border-radius: var(--trf-radius-sm);
	margin-bottom: 8px;
	word-break: break-all;
}
.trf-domain-display code {
	background: none;
	padding: 0;
	font-family: inherit;
	font-size: inherit;
	text-decoration: line-through;
	text-decoration-color: var(--trf-danger-muted);
}

/* -- Meta Chips ----------------------------- */
.trf-hero-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 8px;
	flex-wrap: wrap;
}
.trf-meta-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--trf-ink-secondary);
	font-weight: 500;
	text-decoration: line-through;
	text-decoration-color: var(--trf-danger-muted);
}
.trf-meta-sep {
	width: 1px;
	height: 14px;
	background: var(--trf-border);
}

/* -- Hero Image / Screenshot ---------------- */
.trf-hero-image {
	flex: 0 0 240px;
	text-align: center;
}
.trf-screenshot {
	width: 100%;
	height: auto;
	border: 1px solid var(--trf-border);
	border-radius: var(--trf-radius-sm);
	box-shadow: var(--trf-shadow-sm);
}
.trf-image-caption {
	display: block;
	font-size: 12px;
	color: var(--trf-ink-muted);
	margin-top: 6px;
}

/* -- Quick Stats Row ------------------------ */
.trf-quick-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--trf-border);
	border-top: 1px solid var(--trf-border);
}
.trf-stat {
	background: var(--trf-surface);
	padding: 18px 19px;
}
.trf-stat:first-child {
	border-radius: 0 0 0 var(--trf-radius-lg);
}
.trf-stat:last-child {
	border-radius: 0 0 var(--trf-radius-lg) 0;
}

.trf-stat-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--trf-ink-muted);
	margin-bottom: 6px;
}

.trf-stat-value {
	font-size: 15px;
	font-weight: 700;
	color: var(--trf-ink);
}
.trf-stat-value.mono {
	font-family: var(--trf-mono);
	color: var(--trf-brand-dark);
}
.trf-stat-danger { color: var(--trf-danger); }
.trf-stat-orange { color: var(--trf-orange); }
.trf-stat-warn   { color: #92400e; }

/* -- SVG Icon (inline, come tt-icon) ---------- */
.trf-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.trf-icon svg {
	width: 100%;
	height: 100%;
}
.trf-stat-label .trf-icon {
	width: 12px;
	height: 12px;
}
.trf-section-icon .trf-icon {
	width: 18px;
	height: 18px;
}

/* -- Status Dot (livello in stat value) ------- */
.trf-status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 6px;
	vertical-align: middle;
}
.trf-dot-danger { background: var(--trf-danger); }
.trf-dot-orange { background: var(--trf-orange); }
.trf-dot-warn   { background: #d69e2e; }
.trf-dot-neutral { background: var(--trf-ink-muted); }

/* -- Alert SVG (hero banner) ------------------ */
.trf-alert-svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	margin-top: 1px;
}

/* -- Badge Dot (hero badge) ------------------- */
.trf-badge-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 4px;
	vertical-align: middle;
}
.trf-badge-danger .trf-badge-dot { background: var(--trf-danger); }
.trf-badge-orange .trf-badge-dot { background: var(--trf-orange); }
.trf-badge-warn .trf-badge-dot   { background: #92400e; }
.trf-badge-neutral .trf-badge-dot { background: var(--trf-ink-muted); }

/* -- URL Note (inline) ------------------------ */
.trf-url-note {
	font-size: 12px;
	color: var(--trf-ink-muted);
	font-style: italic;
	margin-left: 8px;
}

/*  CTA INLINE (replica tt-cta-top) */
.trf-cta-inline {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 24px 28px;
	background: #f0f7ff;
	border: 1px solid #bfdbfe;
	border-radius: var(--trf-radius);
	margin-bottom: 16px;
}
.trf-cta-icon-box {
	width: 52px;
	height: 52px;
	background: #dbeafe;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.trf-cta-icon-box svg {
	width: 22px;
	height: 22px;
	color: var(--trf-brand-dark);
}
.trf-cta-inline-text {
	flex: 1;
}
.trf-cta-inline-text strong {
	display: block;
	font-size: 15px;
	color: var(--trf-ink);
	margin-bottom: 3px;
}
.trf-cta-inline-text p {
	margin: 0;
	font-size: 14px;
	color: var(--trf-ink-secondary);
	line-height: 1.45;
}
.trf-cta-inline-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 24px;
	background: #1e3a5f;
	color: #fff;
	text-decoration: none;
	border-radius: var(--trf-radius-sm);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	transition: all 0.2s;
}
.trf-cta-inline-btn:hover {
	background: var(--trf-brand-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(6, 35, 82, 0.25);
	color: #fff;
	text-decoration: none;
}

/* ACCORDION SECTIONS  */
.trf-section {
	background: var(--trf-surface);
	border-radius: var(--trf-radius);
	margin-bottom: 16px;
	overflow: hidden;
	box-shadow: var(--trf-shadow-xs);
}
.trf-section-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 24px;
	border-bottom: 1px solid transparent;
	cursor: pointer;
	transition: background 0.15s;
	user-select: none;
}
.trf-section.trf-open .trf-section-header {
	border-bottom-color: var(--trf-border-subtle);
}
.trf-section-header:hover {
	background: var(--trf-surface-raised);
}

.trf-section-icon {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--trf-surface-sunken);
	border: 1px solid var(--trf-border);
	border-radius: var(--trf-radius-sm);
	flex-shrink: 0;
	font-size: 16px;
}
.trf-icon-danger {
	color: var(--trf-danger);
	background: var(--trf-danger-soft);
	border-color: var(--trf-danger-border);
}
.trf-icon-green {
	color: var(--trf-verified);
	background: var(--trf-verified-soft);
	border-color: var(--trf-verified-border);
}
.trf-icon-blue {
	color: var(--trf-brand-blue);
}
.trf-icon-dark {
	color: var(--trf-brand-dark);
}

.trf-section-titles {
	flex: 1;
}
.trf-section-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--trf-ink);
}
.trf-section-sub {
	font-size: 12px;
	color: var(--trf-ink-muted);
	font-weight: 500;
}

.trf-chevron {
	width: 20px;
	height: 20px;
	color: var(--trf-ink-faint);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.trf-section.trf-open .trf-chevron {
	transform: rotate(180deg);
}

/* Section body - accordion */
.trf-section-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.trf-section.trf-open .trf-section-body {
	max-height: 5000px;
}
.trf-section-content {
	padding: 24px 28px;
}

/* -- Data Rows ------------------------------ */
.trf-row {
	display: flex;
	align-items: baseline;
	padding: 14px 0;
	border-bottom: 1px solid var(--trf-border-subtle);
}
.trf-row:first-child { padding-top: 0; }
.trf-row:last-child  { border-bottom: none; padding-bottom: 0; }

.trf-row-key {
	flex: 0 0 220px;
	font-size: 13px;
	font-weight: 600;
	color: var(--trf-ink-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding-right: 20px;
}
.trf-row-val {
	flex: 1;
	font-size: 15px;
	color: var(--trf-ink);
	font-weight: 500;
	word-break: break-word;
	line-height: 1.6;
}
.trf-row-val a {
	color: var(--trf-brand-blue);
	text-decoration: none;
	font-weight: 600;
}
.trf-row-val a:hover {
	text-decoration: underline;
}

.trf-url-blocked {
	font-family: var(--trf-mono);
	font-size: 14px;
	color: var(--trf-ink-muted);
	text-decoration: line-through;
	text-decoration-color: var(--trf-danger-muted);
	background: none;
	padding: 0;
}

/* -- Flag Lists ----------------------------- */
.trf-flag-list {
	margin: 0;
	padding: 16px;
	list-style: none;
	border-radius: var(--trf-radius-sm);
}
.trf-flag-list li {
	position: relative;
	padding: 10px 0 10px 8px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--trf-ink-secondary);
}
.trf-flag-list li:first-child { padding-top: 0; }
.trf-flag-list li:last-child  { padding-bottom: 0; }

.trf-danger-list {
	background: var(--trf-danger-soft);
	border: 1px solid var(--trf-danger-border);
}
.trf-danger-list li { color: var(--trf-danger-dark); }

.trf-warn-list {
	background: var(--trf-warn-soft);
	border: 1px solid var(--trf-warn-border);
}

.trf-check-list {
	background: var(--trf-verified-soft);
	border: 1px solid var(--trf-verified-border);
}
.trf-check-list li { color: var(--trf-verified); }

/* -- Analysis / Editorial ------------------- */
.trf-analysis {
	font-size: 15px;
	line-height: 1.7;
	color: var(--trf-ink-secondary);
}
.trf-analysis p {
	margin: 0 0 12px;
}
.trf-analysis p:last-child { margin-bottom: 0; }

.trf-editorial {
	font-size: 15px;
	line-height: 1.7;
	color: var(--trf-ink-secondary);
}
.trf-editorial p { margin: 0 0 16px; }

/* -- FAQ Accordion -------------------------- */
.trf-faq-accordion {
	border: 1px solid var(--trf-border);
	border-radius: var(--trf-radius-sm);
	overflow: hidden;
}
.trf-faq-item {
	border-bottom: 1px solid var(--trf-border-subtle);
}
.trf-faq-item:last-child { border-bottom: none; }
.trf-faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 14px 18px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	text-align: left;
	color: inherit;
	font-family: inherit;
	transition: background 0.15s;
}
.trf-faq-question:hover {background: #eef1f7;color: #0f172a;}
.trf-faq-toggle {
	font-weight: 400;
	font-size: 18px;
	color: var(--trf-ink-faint);
	transition: transform 0.2s;
}
.trf-faq-question[aria-expanded="true"] .trf-faq-toggle {
	transform: rotate(45deg);
}
.trf-faq-answer {
	padding: 10px 14px 0px 14px;
	font-size: 14px;
	color: var(--trf-ink-secondary);
	line-height: 1.7;
}

/* RELATED  */
.trf-related {
	margin-top: 24px;
	background: var(--trf-surface);
	border: 1px solid var(--trf-border);
	border-radius: var(--trf-radius);
	overflow: hidden;
}
.trf-related-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 24px;
	border-bottom: 1px solid var(--trf-border-subtle);
	font-size: 15px;
	font-weight: 700;
	color: var(--trf-ink);
}
.trf-related-list {
	padding: 8px 24px;
}
.trf-related-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--trf-border-subtle);
	text-decoration: none;
	transition: all 0.15s;
}
.trf-related-item:last-child { border-bottom: none; }
.trf-related-item:hover { padding-left: 4px; }
.trf-related-dot {
	width: 8px;
	height: 8px;
	background: var(--trf-danger-muted);
	border-radius: 50%;
	flex-shrink: 0;
}
.trf-related-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--trf-danger-dark);
}
.trf-related-item:hover .trf-related-name { color: var(--trf-danger); }
.trf-related-domain {
	font-family: var(--trf-mono);
	font-size: 12px;
	color: var(--trf-ink-muted);
	margin-left: 8px;
	background: none;
	padding: 0;
}

/* CTA STRIP (BOTTOM)  */
.trf-cta-strip {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 28px 32px;
	background: var(--trf-danger);
	border-radius: var(--trf-radius);
	margin-top: 24px;
	color: #fff;
}
.trf-cta-strip-icon {
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--trf-radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 22px;
}
.trf-cta-strip-text {
	flex: 1;
}
.trf-cta-strip-text strong {
	display: block;
	font-size: 17px;
	margin-bottom: 3px;
	color: #fff;
	letter-spacing: normal;
}
.trf-cta-strip-text p {
	font-size: 14px;
	opacity: 0.85;
	line-height: 1.45;
	margin: 0;
}
.trf-cta-strip-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 24px;
	background: #fff;
	color: var(--trf-danger);
	text-decoration: none;
	border-radius: var(--trf-radius-sm);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	transition: all 0.2s;
}
.trf-cta-strip-btn:hover {
	background: var(--trf-danger-soft);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	color: var(--trf-danger);
	text-decoration: none;
}

/*  SOURCE / DISCLAIMER (single) */
.trf-source {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 24px;
	background: var(--trf-surface);
	border: 1px solid var(--trf-border);
	border-radius: var(--trf-radius-sm);
	margin-top: 24px;
	font-size: 13px;
	color: var(--trf-ink-muted);
	line-height: 1.5;
}
.trf-source a {
	color: var(--trf-brand-blue);
	text-decoration: none;
	font-weight: 600;
}
.trf-source a:hover { text-decoration: underline; }


/* 
   ARCHIVE GRID (schede card)
   */

.trf-schede-grid {
	display: grid;
	gap: 16px;
	margin: 24px 0;
}
.trf-grid-3 {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.trf-scheda-card {
	background: var(--trf-surface);
	border: 1px solid var(--trf-border);
	border-radius: var(--trf-radius);
	padding: 18px 20px;
	transition: box-shadow 0.2s, transform 0.2s;
	box-shadow: var(--trf-shadow-xs);
}
.trf-scheda-card:hover {
	box-shadow: var(--trf-shadow-md);
	transform: translateY(-2px);
}

.trf-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}
.trf-card-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 12px;
	border-radius: var(--trf-radius-full);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.trf-level-anomalie_minori .trf-card-badge        { background: var(--trf-warn-soft); border: 1px solid var(--trf-warn-border); color: #92400e; }
.trf-level-anomalie_significative .trf-card-badge  { background: var(--trf-orange-soft); border: 1px solid var(--trf-orange-border); color: var(--trf-orange); }
.trf-level-forte_rischio .trf-card-badge           { background: var(--trf-danger-soft); border: 1px solid var(--trf-danger-border); color: var(--trf-danger); }
.trf-level-default .trf-card-badge,
.trf-level-non_definito .trf-card-badge            { background: var(--trf-surface-sunken); border: 1px solid var(--trf-border); color: var(--trf-ink-muted); }

.trf-card-stato-tag {
	font-size: 11px;
	font-weight: 600;
	background: var(--trf-surface-sunken);
	padding: 2px 8px;
	border-radius: var(--trf-radius-full);
	color: var(--trf-ink-muted);
}

.trf-card-title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.3;
}
.trf-card-title a {
	color: var(--trf-ink);
	text-decoration: none;
}
.trf-card-title a:hover { color: var(--trf-brand-blue); }

.trf-card-excerpt {
	font-size: 13px;
	color: var(--trf-ink-muted);
	margin: 0 0 10px;
	line-height: 1.5;
}

.trf-card-meta {
	display: flex;
	gap: 14px;
	font-size: 13px;
	color: var(--trf-ink-muted);
	margin-bottom: 10px;
}

.trf-card-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--trf-brand-blue);
	text-decoration: none;
}
.trf-card-link:hover { text-decoration: underline; }


/* 
   ARCHIVE PAGE
   */

.trf-archive-wrapper {
	max-width: 1024px;
	margin: 0 auto;
	padding: 32px 24px 80px;
	font-family: var(--trf-font);
	color: var(--trf-ink);
}

.trf-archive-header h1 {
	font-family: var(--trf-font-display);
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #062352;
	margin-bottom: 16px;
}

.trf-archive-intro {
	font-size: 17px;
	color: #062352;
	margin-bottom: 24px;
	line-height: 1.7;
}
.trf-archive-intro a {
	color: var(--trf-brand-blue);
	font-weight: 600;
}

/* -- Search --------------------------------- */
.trf-archive-search { margin-bottom: 16px; }
.trf-archive-search form {
	display: flex;
	gap: 8px;
}
.trf-search-input {
	flex: 1;
	padding: 13px 18px;
	border: 2px solid var(--trf-border);
	border-radius: var(--trf-radius-sm);
	font-family: var(--trf-font);
	font-size: 15px;
	color: var(--trf-ink);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.trf-search-input:focus {
	border-color: var(--trf-brand-blue);
	box-shadow: 0 0 0 3px rgba(0, 128, 213, 0.1);
}
.trf-search-button {
	padding: 13px 24px;
	background: var(--trf-brand-blue);
	color: #fff;
	border: none;
	border-radius: var(--trf-radius-sm);
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	font-family: var(--trf-font);
	transition: background 0.2s, transform 0.1s;
}
.trf-search-button:hover {
	background: var(--trf-brand-dark);
	transform: translateY(-1px);
}

/* -- Filters -------------------------------- */
.trf-archive-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 16px;
}
.trf-filter-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--trf-ink-muted);
}
.trf-filter-tag {
	display: inline-block;
	padding: 5px 12px;
	background: var(--trf-surface-sunken);
	color: var(--trf-ink-secondary);
	border: 1px solid var(--trf-border);
	border-radius: var(--trf-radius-full);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.15s;
}
.trf-filter-tag:hover {
	border-color: var(--trf-brand-blue);
	color: var(--trf-brand-blue);
	text-decoration: none;
}
.trf-filter-active {
	background: var(--trf-brand-blue);
	color: #fff;
	border-color: var(--trf-brand-blue);
}
.trf-filter-active:hover { background: var(--trf-brand-dark); color: #fff; }
.trf-filter-tag small { opacity: 0.7; font-size: 12px; }

.trf-archive-stats {
	font-size: 14px;
	color: var(--trf-ink-muted);
	margin-bottom: 8px;
}

/* -- Guida Link ----------------------------- */
.trf-guida-link {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 22px;
	background: var(--trf-surface);
	border: 1px solid var(--trf-border);
	border-radius: var(--trf-radius);
	text-decoration: none;
	color: inherit;
	transition: all 0.2s;
	box-shadow: var(--trf-shadow-xs);
}
.trf-guida-link:hover {
	border-color: var(--trf-brand-blue);
	box-shadow: var(--trf-shadow-sm);
	text-decoration: none;
	color: inherit;
	transform: translateX(3px);
}
.trf-guida-icon { font-size: 2rem; }
.trf-guida-link strong {
	display: block;
	font-size: 15px;
	margin-bottom: 4px;
}
.trf-guida-link p {
	font-size: 14px;
	color: var(--trf-ink-muted);
	margin: 0;
}
.trf-guida-arrow {
	margin-left: auto;
	font-size: 18px;
	color: var(--trf-brand-blue);
}

/* -- Pagination ----------------------------- */
.trf-pagination {
	text-align: center;
	padding: 20px 0;
}
.trf-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--trf-border);
	border-radius: var(--trf-radius-xs);
	text-decoration: none;
	color: var(--trf-ink);
	font-size: 14px;
	font-weight: 600;
	transition: all 0.15s;
}
.trf-pagination .page-numbers:hover {
	border-color: var(--trf-brand-blue);
	color: var(--trf-brand-blue);
	transform: translateY(-1px);
}
.trf-pagination .page-numbers.current {
	background: var(--trf-brand-blue);
	color: #fff;
	border-color: var(--trf-brand-blue);
	box-shadow: var(--trf-shadow-sm);
}

.trf-no-results {
	text-align: center;
	padding: 48px 16px;
	font-size: 15px;
	color: var(--trf-ink-muted);
}

/* -- Disclaimer shortcode ------------------- */
.trf-disclaimer-box {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 22px;
	background: var(--trf-warn-soft);
	border: 1px solid var(--trf-warn-border);
	border-radius: var(--trf-radius-sm);
	margin-top: 32px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--trf-ink-secondary);
}
.trf-disclaimer-box h4 {
	font-size: 14px;
	color: var(--trf-ink);
	margin: 0 0 8px;
}
.trf-disclaimer-box p { margin: 0 0 6px; }
.trf-disclaimer-box p:last-child { margin-bottom: 0; }

/* -- CTA box (archive) ---------------------- */
.trf-cta-box {
	background: linear-gradient(135deg, #062352 0%, #0a3570 100%);
	color: #fff;
	border-radius: var(--trf-radius);
	padding: 32px;
	text-align: center;
}
.trf-cta-box h2 {
	font-size: 22px;
	color: #fff;
	margin: 0 0 10px;
}
.trf-cta-box p {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 20px;
}
.trf-cta-button {
	display: inline-block;
	background: var(--trf-brand-accent);
	color: var(--trf-brand-dark);
	padding: 12px 28px;
	border-radius: var(--trf-radius-sm);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: all 0.2s;
}
.trf-cta-button:hover {
	background: var(--trf-brand-accent-hover);
	transform: translateY(-1px);
	box-shadow: var(--trf-shadow-md);
	color: var(--trf-brand-dark);
	text-decoration: none;
}


/* 
   PILLAR PAGE
   */

.trf-pillar-wrapper {
	font-family: var(--trf-font);
}
.trf-pillar-content {
	font-size: 17px;
	line-height: 1.75;
	color: #162538;
}
.trf-pillar-content h2,
.trf-pillar-content h3 {
	color: #062352;
	margin-top: 2em;
}


/* 
   ENTRANCE ANIMATIONS
   */

@keyframes trfFadeUp {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.trf-section:nth-of-type(1) { animation: trfFadeUp 0.45s ease-out 0.08s both; }
.trf-section:nth-of-type(2) { animation: trfFadeUp 0.45s ease-out 0.14s both; }
.trf-section:nth-of-type(3) { animation: trfFadeUp 0.45s ease-out 0.20s both; }
.trf-section:nth-of-type(4) { animation: trfFadeUp 0.45s ease-out 0.26s both; }
.trf-section:nth-of-type(5) { animation: trfFadeUp 0.45s ease-out 0.32s both; }


/* 
   PRINT
   */

@media print {
	.trf-section-body {
		max-height: none !important;
	}
	.trf-chevron,
	.trf-cta-strip,
	.trf-cta-inline {
		display: none;
	}
}


/* 
   RESPONSIVE
   */

@media (max-width: 768px) {
	.trf-page,
	.trf-archive-wrapper,
	.trf-single-wrapper {
		padding: 16px 16px 64px;
	}

	.trf-hero {
		border-radius: var(--trf-radius-sm);
	}
	.trf-hero-body {
		padding: 20px;
	}
	.trf-hero-content {
		flex-direction: column;
	}
	.trf-hero-image {
		flex: none;
		width: 100%;
	}
	.trf-company-name {
		font-size: 24px;
	}
	.trf-archive-header h1 {
		font-size: 22px;
	}

	.trf-quick-stats {
		grid-template-columns: 1fr 1fr;
	}
	.trf-stat {
		padding: 14px 16px;
	}
	.trf-stat:first-child { border-radius: 0; }
	.trf-stat:last-child  { border-radius: 0; }

	.trf-row {
		flex-direction: column;
		gap: 3px;
	}
	.trf-row-key {
		flex: none;
		font-size: 12px;
	}

	.trf-section-content {
		padding: 16px 20px;
	}

	.trf-cta-inline {
		flex-direction: column;
		text-align: center;
	}
	.trf-cta-icon-box { display: none; }

	.trf-cta-strip {
		flex-direction: column;
		text-align: center;
	}
	.trf-cta-strip-icon { display: none; }

	.trf-hero-meta {
		gap: 10px;
	}
	.trf-meta-sep { display: none; }

	.trf-grid-3 {
		grid-template-columns: 1fr;
	}
	.trf-archive-search form {
		flex-direction: column;
	}
	.trf-guida-link {
		flex-direction: column;
		text-align: center;
	}
	.trf-guida-arrow { display: none; }
	.trf-alert-banner {
		padding: 14px 16px;
		gap: 12px;
	}

	.trf-breadcrumb {
		margin-top: 0;
		margin-bottom: 8px;
	}
}

@media (max-width: 480px) {
	.trf-quick-stats {
		grid-template-columns: 1fr;
	}
}
