/* Fraud Watcher — Apple HIG–inspired tokens and components */

:root {
	--fw-label: #1d1d1f;
	--fw-secondary: #6e6e73;
	--fw-tertiary: #86868b;
	--fw-bg: #ffffff;
	--fw-grouped: #f5f5f7;
	--fw-card: #ffffff;
	--fw-separator: #d2d2d7;
	--fw-accent: #0071e3;
	--fw-accent-hover: #0077ed;
	--fw-red: #ff3b30;
	--fw-orange: #ff9500;
	--fw-yellow: #ffcc00;
	--fw-green: #34c759;
	--fw-glass: rgba(255, 255, 255, 0.72);
	--fw-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.08);
	--fw-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.1);
	--fw-radius: 18px;
	--fw-radius-sm: 12px;
	--fw-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--fw-label: #f5f5f7;
		--fw-secondary: #a1a1a6;
		--fw-tertiary: #86868b;
		--fw-bg: #000000;
		--fw-grouped: #101012;
		--fw-card: #1c1c1e;
		--fw-separator: #38383a;
		--fw-accent: #2997ff;
		--fw-accent-hover: #47a6ff;
		--fw-red: #ff453a;
		--fw-orange: #ff9f0a;
		--fw-yellow: #ffd60a;
		--fw-green: #30d158;
		--fw-glass: rgba(22, 22, 23, 0.72);
		--fw-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
		--fw-shadow-hover: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 12px 32px rgba(0, 0, 0, 0.5);
		color-scheme: dark;
	}
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { background: var(--fw-bg); overflow-x: hidden; }
:focus-visible { outline: 3px solid var(--fw-accent); outline-offset: 2px; border-radius: 6px; }
img { border-radius: var(--fw-radius-sm); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- Global nav: frosted glass ---------- */
.fw-nav {
	position: sticky; top: 0; z-index: 100;
	background: var(--fw-glass);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--fw-separator);
}
/* The template-part wrapper is what sticks: a sticky child can't move inside a wrapper of its own height. */
header.wp-block-template-part:has(.fw-nav) { position: sticky; top: 0; z-index: 100; }
.admin-bar header.wp-block-template-part:has(.fw-nav) { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part:has(.fw-nav) { top: 46px; } }

.fw-nav .wp-block-site-title a { color: var(--fw-label); font-weight: 600; letter-spacing: -0.02em; }
.fw-nav .wp-block-site-title a:hover { text-decoration: none; }
.fw-logo-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--fw-red); margin: 0 12px 0 4px !important; vertical-align: middle; flex-shrink: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--fw-red) 22%, transparent); }
.fw-nav .wp-block-navigation { font-size: 0.8125rem; }
.fw-nav .wp-block-navigation a { color: var(--fw-label); opacity: 0.85; transition: opacity .2s var(--fw-ease); }
.fw-nav .wp-block-navigation a:hover { opacity: 1; text-decoration: none; }
.fw-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--fw-bg) !important; color: var(--fw-label) !important; }
.fw-nav .wp-block-button__link { padding: 0.35rem 0.9rem; font-size: 0.8125rem; }

/* ---------- Typography helpers ---------- */
.fw-eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fw-accent); margin: 0; }
.fw-eyebrow.is-red { color: var(--fw-red); }
.fw-lede { font-size: clamp(1.1875rem, 2vw, 1.5rem); line-height: 1.38; color: var(--fw-secondary); letter-spacing: -0.015em; font-weight: 400; }
.fw-hero h1 { font-size: var(--wp--preset--font-size--display); letter-spacing: -0.045em; line-height: 1.04; }
.fw-gradient-text {
	background: linear-gradient(90deg, #ff3b30, #ff9500 45%, #af52de);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.fw-muted { color: var(--fw-secondary); }

/* ---------- Sections ---------- */
.fw-section-grouped { background: var(--fw-grouped); }
.fw-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.fw-section-head h2 { margin: 0; }
.fw-link-arrow::after { content: " ›"; }

/* ---------- Cards ---------- */
.fw-card,
.fw-grid-cards .wp-block-post {
	background: var(--fw-card);
	border-radius: var(--fw-radius);
	box-shadow: var(--fw-shadow);
	padding: 1.5rem;
	transition: transform .35s var(--fw-ease), box-shadow .35s var(--fw-ease);
	position: relative;
}
.fw-card:hover,
.fw-grid-cards .wp-block-post:hover { transform: translateY(-3px) scale(1.005); box-shadow: var(--fw-shadow-hover); }
.fw-grid-cards .wp-block-post .wp-block-post-featured-image { margin: -1.5rem -1.5rem 1rem; }
.fw-grid-cards .wp-block-post .wp-block-post-featured-image img { border-radius: var(--fw-radius) var(--fw-radius) 0 0; aspect-ratio: 16/9; object-fit: cover; }
.fw-grid-cards .wp-block-post-title { font-size: var(--wp--preset--font-size--title-3); margin: .25rem 0 .5rem; }
.fw-grid-cards .wp-block-post-title a { color: var(--fw-label); }
.fw-grid-cards .wp-block-post-excerpt { color: var(--fw-secondary); font-size: 0.9375rem; }
.fw-grid-cards .wp-block-post-excerpt__more-text { display: none; }

.fw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.fw-card h3 { margin: .5rem 0; font-size: 1.25rem; }
.fw-card h3 a { color: var(--fw-label); }
.fw-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--fw-radius); }
.fw-card p { color: var(--fw-secondary); font-size: 0.9375rem; margin: 0; }
.fw-card-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: 0.8125rem; color: var(--fw-secondary); }

/* Feature tiles (homepage) */
.fw-tile { background: var(--fw-card); border-radius: 24px; padding: 2rem; box-shadow: var(--fw-shadow); height: 100%; }
.fw-tile .fw-tile-icon { font-size: 2rem; line-height: 1; margin-bottom: 1rem; }

/* ---------- Badges ---------- */
.fw-badge {
	display: inline-flex; align-items: center; gap: .35rem;
	font-size: 0.75rem; font-weight: 600; letter-spacing: 0.01em;
	padding: 0.2rem 0.6rem; border-radius: 980px;
	background: color-mix(in srgb, var(--c, var(--fw-secondary)) 14%, transparent);
	color: var(--c, var(--fw-secondary));
	white-space: nowrap;
}
.fw-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fw-badge.no-dot::before { display: none; }
.fw-sev-critical { --c: var(--fw-red); }
.fw-sev-high { --c: var(--fw-orange); }
.fw-sev-medium { --c: #c69300; }
.fw-sev-low { --c: var(--fw-green); }
.fw-st-proposed { --c: var(--fw-secondary); }
.fw-st-consultation { --c: #af52de; }
.fw-st-adopted { --c: var(--fw-accent); }
.fw-st-in-force { --c: var(--fw-green); }
.fw-st-repealed { --c: var(--fw-red); }
@media (prefers-color-scheme: dark) { .fw-sev-medium { --c: var(--fw-yellow); } }

/* ---------- Regulation tracker ---------- */
.fw-tracker-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.fw-chip {
	border: 1px solid var(--fw-separator); background: var(--fw-card); color: var(--fw-label);
	border-radius: 980px; padding: .4rem .9rem; font: inherit; font-size: .8125rem; cursor: pointer;
	transition: background .2s var(--fw-ease), color .2s var(--fw-ease);
}
.fw-chip:hover { border-color: var(--fw-tertiary); }
.fw-chip[aria-pressed="true"] { background: var(--fw-label); color: var(--fw-bg); border-color: var(--fw-label); }
.fw-table-wrap { background: var(--fw-card); border-radius: var(--fw-radius); box-shadow: var(--fw-shadow); overflow-x: auto; }
.fw-table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 640px; }
.fw-table th { text-align: left; font-size: .75rem; font-weight: 600; color: var(--fw-secondary); text-transform: uppercase; letter-spacing: .05em; padding: .9rem 1.25rem; border-bottom: 1px solid var(--fw-separator); }
.fw-table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--fw-separator); vertical-align: top; }
.fw-table tr:last-child td { border-bottom: 0; }
.fw-table td a { color: var(--fw-label); font-weight: 600; }
.fw-table td small { display: block; color: var(--fw-secondary); font-size: .8125rem; margin-top: .2rem; }
.fw-table tr[hidden] { display: none; }

/* Key facts list (single alert / regulation) */
.fw-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--fw-separator); border-radius: var(--fw-radius); overflow: hidden; box-shadow: var(--fw-shadow); margin: 0 0 2rem; }
.fw-facts div { background: var(--fw-card); padding: 1rem 1.25rem; }
.fw-facts dt { font-size: .75rem; color: var(--fw-secondary); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-bottom: .3rem; }
.fw-facts dd { margin: 0; font-weight: 600; }

/* Protect box */
.fw-protect { background: color-mix(in srgb, var(--fw-green) 10%, var(--fw-card)); border-radius: var(--fw-radius); padding: 1.5rem 1.75rem; margin: 2rem 0; }
.fw-protect h3 { margin-top: 0; }

/* ---------- Forms ---------- */
.fw-form { display: grid; gap: 1rem; }
.fw-form label { font-size: .875rem; font-weight: 600; display: block; margin-bottom: .35rem; }
.fw-form input[type=email], .fw-form input[type=text], .fw-form input[type=url], .fw-form input[type=number], .fw-form select, .fw-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1.0625rem; color: var(--fw-label);
	background: var(--fw-card); border: 1px solid var(--fw-separator); border-radius: var(--fw-radius-sm);
	padding: .8rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.fw-form input:focus, .fw-form select:focus, .fw-form textarea:focus { outline: none; border-color: var(--fw-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fw-accent) 25%, transparent); }
.fw-form .fw-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.fw-form .fw-hp { position: absolute; left: -9999px; }
.fw-form .fw-help { font-size: .8125rem; color: var(--fw-secondary); margin-top: .35rem; }
.fw-btn {
	display: inline-block; font: inherit; font-size: 1rem; font-weight: 500; cursor: pointer;
	background: var(--fw-accent); color: #fff; border: 0; border-radius: 980px; padding: .75rem 1.5rem;
	transition: background .2s var(--fw-ease), transform .1s;
}
.fw-btn:hover { background: var(--fw-accent-hover); text-decoration: none; color: #fff; }
.fw-btn:active { transform: scale(.98); }
.fw-btn.is-secondary { background: transparent; color: var(--fw-accent); box-shadow: inset 0 0 0 1px var(--fw-accent); }

.fw-newsletter { display: flex; gap: .5rem; max-width: 480px; margin: 0 auto; }
.fw-newsletter input[type=email] { flex: 1; border-radius: 980px; padding-left: 1.25rem; }
@media (max-width: 480px) { .fw-newsletter { flex-direction: column; } }
.fw-notice { border-radius: var(--fw-radius-sm); padding: .9rem 1.1rem; font-size: .9375rem; margin-bottom: 1rem; }
.fw-notice.is-success { background: color-mix(in srgb, var(--fw-green) 14%, transparent); }
.fw-notice.is-error { background: color-mix(in srgb, var(--fw-red) 14%, transparent); }

/* ---------- Paywall ---------- */
.fw-paywall { position: relative; margin-top: 2rem; }
.fw-paywall-fade { height: 120px; margin-top: -120px; position: relative; background: linear-gradient(to bottom, transparent, var(--fw-bg)); }
.fw-paywall-box { text-align: center; background: var(--fw-grouped); border-radius: 24px; padding: 2.5rem 1.5rem; }
.fw-paywall-box h3 { font-size: 1.75rem; margin: .5rem 0; }

/* ---------- Stats ---------- */
.fw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; text-align: center; }
.fw-stat-num { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.fw-stat-label { color: var(--fw-secondary); font-size: .9375rem; margin-top: .5rem; }
.fw-stat-src { font-size: .75rem; color: var(--fw-tertiary); }

/* ---------- Footer ---------- */
.fw-footer { background: var(--fw-grouped); font-size: .75rem; color: var(--fw-secondary); }
.fw-footer a { color: var(--fw-secondary); }
.fw-footer a:hover { color: var(--fw-label); }
.fw-footer h4 { font-size: .75rem; font-weight: 600; color: var(--fw-label); margin: 0 0 .6rem; letter-spacing: 0; }
.fw-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.fw-footer hr { border: 0; border-top: 1px solid var(--fw-separator); }

/* Single */
.fw-article .wp-block-post-content > p:first-child { font-size: 1.25rem; color: var(--fw-secondary); }
.fw-article .wp-block-post-content { font-size: 1.1875rem; line-height: 1.58; }
.fw-pagination a, .fw-pagination span { padding: .4rem .8rem; border-radius: 980px; }
.fw-pagination .current { background: var(--fw-label); color: var(--fw-bg); }

/* =========================================================
   News — Xataka-style article, mosaic and feed
   ========================================================= */

/* Article header */
.fw-post-header { max-width: 900px; margin-bottom: 1.75rem; }
.fw-post-kicker { margin-bottom: .75rem; align-items: center; }
.fw-post-kicker .wp-block-post-terms a { color: var(--fw-red); }
.fw-post .fw-post-title { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.035em; margin: 0; }
.fw-standfirst { margin-top: 1rem; }
.fw-standfirst p { font-size: clamp(1.1875rem, 2.1vw, 1.4375rem); line-height: 1.38; color: var(--fw-secondary); letter-spacing: -0.015em; margin: 0; }
.fw-standfirst .wp-block-post-excerpt__more-link { display: none; }

/* Hero image */
.fw-post-hero { margin-top: 0 !important; margin-bottom: 1.75rem !important; }
.fw-post-hero img { border-radius: 22px; width: 100%; object-fit: cover; }

/* Two-column layout: article + sticky sidebar */
.fw-post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.fw-post-main { min-width: 0; max-width: 720px; }
.fw-post-aside { position: sticky; top: 120px; display: grid; gap: 1.5rem; }
.fw-post-aside .fw-cards { grid-template-columns: 1fr; gap: 1rem; }
@media (max-width: 960px) {
	.fw-post-layout { grid-template-columns: 1fr; }
	.fw-post-aside { position: static; }
	.fw-post-main { max-width: none; }
}

/* Meta bar: author chip, date, share */
.fw-metabar { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; padding: 0 0 1.25rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--fw-separator); }
.fw-byline { display: flex; align-items: center; gap: .7rem; }
.fw-byline > div { display: flex; flex-direction: column; line-height: 1.25; }
.fw-byline-name { color: var(--fw-label); font-weight: 600; font-size: .9375rem; }
.fw-byline-role { color: var(--fw-secondary); font-size: .8125rem; }
.fw-metabar-info { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8125rem; color: var(--fw-secondary); }
.fw-metabar-info a { color: var(--fw-secondary); }
.fw-share { display: flex; gap: .4rem; margin-left: auto; }
@media (max-width: 600px) { .fw-share { margin-left: 0; } }
.fw-share-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--fw-grouped); color: var(--fw-label); transition: background .2s var(--fw-ease), color .2s var(--fw-ease), transform .15s; }
.fw-share-btn:hover { text-decoration: none; transform: translateY(-1px); color: #fff; }
.fw-share-btn.is-x:hover { background: #000; }
.fw-share-btn.is-linkedin:hover { background: #0a66c2; }
.fw-share-btn.is-facebook:hover { background: #1877f2; }
.fw-share-btn.is-whatsapp:hover { background: #25d366; }
.fw-share-btn.is-email:hover { background: var(--fw-accent); }

/* Avatars (initials) */
.fw-avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 600; flex-shrink: 0; background: linear-gradient(135deg, #ff3b30, #af52de); }
.fw-avatar.is-md { width: 42px; height: 42px; font-size: .875rem; }
.fw-avatar.is-lg { width: 64px; height: 64px; font-size: 1.25rem; }

/* Article body — long-form reading */
.fw-post-body { font-size: 1.1875rem; line-height: 1.62; letter-spacing: -0.012em; }
.fw-post-body > * + * { margin-top: 1.35em; }
.fw-post-body p strong:first-child { color: var(--fw-label); font-weight: 700; }
.fw-post-body h2 { font-size: 1.625rem; margin-top: 2.2em; letter-spacing: -0.025em; }
.fw-post-body h3 { font-size: 1.3125rem; margin-top: 1.8em; }
.fw-post-body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.fw-post-body ul, .fw-post-body ol { padding-left: 1.3em; }
.fw-post-body li + li { margin-top: .5em; }
.fw-post-body blockquote, .fw-post-body .wp-block-quote { border-left: 3px solid var(--fw-red); margin: 2em 0; padding: .25em 0 .25em 1.25em; }
.fw-post-body blockquote p { font-size: 1.375rem; line-height: 1.4; font-weight: 600; letter-spacing: -0.02em; }
.fw-post-body blockquote cite { font-size: .875rem; color: var(--fw-secondary); font-style: normal; }
.fw-post-body figure img { border-radius: 16px; }
.fw-post-body figcaption { font-size: .8125rem; color: var(--fw-secondary); margin-top: .5rem; }
.fw-post-body .wp-block-pullquote { border: 0; padding: 0; text-align: left; }

/* Inline and closing "On Fraud Watcher |" links */
.fw-inline-related, .fw-more-link { font-size: 1rem; line-height: 1.45; font-weight: 600; }
.fw-inline-related { margin: 2em 0; padding: 1rem 1.25rem; border-radius: 14px; background: var(--fw-grouped); }
.fw-inline-related span, .fw-more-link span { color: var(--fw-red); font-weight: 700; }
.fw-inline-related a, .fw-more-link a { color: var(--fw-label); text-decoration: none; }
.fw-inline-related a:hover, .fw-more-link a:hover { color: var(--fw-accent); }
.fw-credit { font-size: .8125rem; color: var(--fw-secondary); margin-top: 2.5rem; }
.fw-more-link { margin-top: .5rem; }

/* Tags */
.fw-post-tags { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.fw-post-tags .wp-block-post-terms__separator { display: none; }
.fw-post-tags a { display: inline-block; padding: .3rem .8rem; border-radius: 980px; background: var(--fw-grouped); color: var(--fw-label); font-size: .75rem; text-transform: none; letter-spacing: 0; font-weight: 500; }

/* Author box */
.fw-author-box { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2.5rem; padding: 1.5rem; border-radius: var(--fw-radius); background: var(--fw-grouped); }
.fw-author-box p { margin: 0; }
.fw-author-box-name a { color: var(--fw-label); font-weight: 700; font-size: 1.0625rem; }
.fw-author-box-role { color: var(--fw-secondary); font-size: .8125rem; margin-bottom: .4rem !important; }
.fw-author-box-bio { font-size: .9375rem; color: var(--fw-secondary); }

/* Comments */
.fw-comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--fw-separator); }
.fw-comments .wp-block-comments-title { font-size: 1.375rem; }
.fw-comment { padding: 1.25rem 0; border-bottom: 1px solid var(--fw-separator); }
.fw-comment .wp-block-comment-author-name { font-weight: 600; font-size: .9375rem; }
.fw-comment .wp-block-comment-date { font-size: .8125rem; color: var(--fw-secondary); }
.fw-comment .wp-block-comment-date a, .fw-comment .wp-block-comment-author-name a { color: inherit; }
.fw-comments .comment-form textarea, .fw-comments .comment-form input:not([type=submit]):not([type=checkbox]) {
	width: 100%; box-sizing: border-box; font: inherit; color: var(--fw-label); background: var(--fw-card);
	border: 1px solid var(--fw-separator); border-radius: var(--fw-radius-sm); padding: .8rem 1rem;
}
.fw-comments .comment-form label { font-size: .875rem; font-weight: 600; }
.fw-comments .comment-reply-title { font-size: 1.25rem; }

/* Sidebar blocks */
.fw-side-block { background: var(--fw-card); border-radius: var(--fw-radius); box-shadow: var(--fw-shadow); padding: 1.25rem 1.4rem; }
.fw-side-title { font-size: .8125rem !important; text-transform: uppercase; letter-spacing: .06em; color: var(--fw-red); margin: 0 0 .75rem; }
.fw-side-title.is-large { font-size: 1.5rem !important; text-transform: none; letter-spacing: -0.02em; color: var(--fw-label); margin-bottom: 1rem; }
.fw-side-newsletter .fw-newsletter { flex-direction: column; }
.fw-side-newsletter .fw-newsletter + p { text-align: left !important; }
.fw-ranked { list-style: none; counter-reset: rank; padding: 0; margin: 0; }
.fw-ranked li { counter-increment: rank; display: flex; gap: .9rem; padding: .85rem 0; border-top: 1px solid var(--fw-separator); }
.fw-ranked li:first-child { border-top: 0; padding-top: .25rem; }
.fw-ranked li::before { content: counter(rank); font-size: 1.75rem; font-weight: 700; line-height: 1; color: var(--fw-separator); min-width: 1.4rem; letter-spacing: -0.04em; }
.fw-ranked a { color: var(--fw-label); font-weight: 600; font-size: .9375rem; line-height: 1.3; display: block; }
.fw-ranked-cat { display: block; font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--fw-accent); margin-bottom: .2rem; }

/* Mosaic: 1 large poster + 3 smaller, titles over images */
.fw-mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, minmax(150px, 1fr)); gap: 12px; }
.fw-poster { position: relative; overflow: hidden; border-radius: 20px; background: #1c1c1e; min-height: 150px; isolation: isolate; }
.fw-poster.is-featured { grid-row: 1 / span 3; min-height: 480px; }
.fw-poster img, .fw-poster-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; z-index: -2; transition: transform .6s var(--fw-ease); }
.fw-poster-fallback { background: linear-gradient(135deg, #1c1c1e, #3a3a3c); }
.fw-poster::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%); }
.fw-poster:hover img { transform: scale(1.04); }
.fw-poster-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.25rem; color: #fff; }
.fw-poster.is-featured .fw-poster-body { padding: 2rem; }
.fw-poster-cat { display: inline-block; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--fw-red); color: #fff; padding: .2rem .55rem; border-radius: 6px; margin-bottom: .5rem; }
.fw-poster-title { margin: 0; font-size: 1.0625rem; line-height: 1.2; letter-spacing: -0.02em; }
.fw-poster.is-featured .fw-poster-title { font-size: clamp(1.625rem, 3.2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.035em; max-width: 22ch; }
.fw-poster-title a { color: #fff; }
.fw-poster-title a::after { content: ""; position: absolute; inset: 0; }
.fw-poster-title a:hover { text-decoration: none; }
.fw-poster-meta { margin: .6rem 0 0; font-size: .8125rem; color: rgba(255,255,255,.8); }
@media (max-width: 760px) {
	.fw-mosaic { grid-template-columns: 1fr; grid-template-rows: none; }
	.fw-poster.is-featured { grid-row: auto; min-height: 380px; }
	.fw-poster { min-height: 200px; }
}

/* Feed: image left, text right */
.fw-feed .wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.fw-feed .wp-block-post + .wp-block-post { border-top: 1px solid var(--fw-separator); }
.fw-feed-item { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0; align-items: start; }
.fw-feed-item .wp-block-post-featured-image { margin: 0; }
.fw-feed-item .wp-block-post-featured-image img { border-radius: 16px; }
.fw-feed-text > * { margin: 0; }
.fw-feed-text .wp-block-post-terms a { color: var(--fw-red); }
.fw-feed-text .wp-block-post-title { font-size: 1.375rem; line-height: 1.18; letter-spacing: -0.025em; margin: .35rem 0 .5rem; }
.fw-feed-text .wp-block-post-title a { color: var(--fw-label); }
.fw-feed-text .wp-block-post-excerpt { color: var(--fw-secondary); font-size: .9375rem; line-height: 1.45; }
.fw-feed-text .wp-block-post-excerpt__more-text { display: none; }
.fw-feed-meta { margin-top: .75rem !important; font-size: .8125rem; color: var(--fw-secondary); }
.fw-feed-meta > * { margin: 0; font-size: .8125rem; }
.fw-feed-meta .wp-block-post-author-name { font-weight: 600; color: var(--fw-label); }
@media (max-width: 600px) { .fw-feed-item { grid-template-columns: 1fr; gap: .9rem; } }

/* Accessibility helper + sidebar newsletter fixes */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.fw-side-newsletter .fw-newsletter { display: grid; gap: .6rem; }
.fw-side-newsletter .fw-newsletter input[type=email] { flex: none; }
.fw-side-newsletter .fw-btn { width: 100%; }
.fw-credit a { color: var(--fw-secondary); }
.fw-form p:empty, .fw-form br { display: none; }

/* =========================================================
   Header, language switcher, footer (bilingual)
   ========================================================= */
.fw-header-inner { display: flex; align-items: center; gap: 1.5rem; max-width: 1120px; margin: 0 auto; width: 100%; }
.fw-brand { display: inline-flex; align-items: center; color: var(--fw-label); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; white-space: nowrap; }
.fw-brand:hover { text-decoration: none; }
.fw-menu { margin-left: auto; }
.fw-menu ul, .fw-mobile-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.fw-menu a, .fw-mobile-menu a { color: var(--fw-label); opacity: .82; font-size: .8125rem; transition: opacity .2s; }
.fw-menu a:hover, .fw-menu a[aria-current] { opacity: 1; text-decoration: none; }
.fw-menu a[aria-current] { font-weight: 600; }
.fw-header-actions { display: flex; align-items: center; gap: .75rem; }
.fw-btn-sm { padding: .35rem .9rem; font-size: .8125rem; }
.fw-lang { display: inline-flex; background: var(--fw-grouped); border-radius: 980px; padding: 2px; }
.fw-lang a { font-size: .6875rem; font-weight: 600; letter-spacing: .04em; color: var(--fw-secondary); padding: .25rem .55rem; border-radius: 980px; }
.fw-lang a:hover { text-decoration: none; color: var(--fw-label); }
.fw-lang a[aria-current] { background: var(--fw-card); color: var(--fw-label); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.fw-burger { display: none; }
.fw-burger summary { list-style: none; cursor: pointer; width: 32px; height: 32px; display: grid; place-content: center; gap: 5px; }
.fw-burger summary::-webkit-details-marker { display: none; }
.fw-burger summary span { display: block; width: 18px; height: 1.5px; background: var(--fw-label); border-radius: 2px; transition: transform .25s var(--fw-ease); }
.fw-burger[open] summary span:first-child { transform: translateY(3.25px) rotate(45deg); }
.fw-burger[open] summary span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.fw-mobile-menu { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 100px); overflow-y: auto; background: var(--fw-bg); border-bottom: 1px solid var(--fw-separator); padding: 1rem max(16px, 4vw) 1.5rem; }
.fw-mobile-menu ul { flex-direction: column; gap: 0; }
.fw-mobile-menu a { display: block; font-size: 1.375rem; font-weight: 600; opacity: 1; padding: .55rem 0; letter-spacing: -0.02em; }
@media (max-width: 900px) {
	.fw-menu { display: none; }
	.fw-burger { display: block; }
	.fw-header-actions { margin-left: auto; }
}
.fw-btn-sm { white-space: nowrap; }
.fw-mobile-menu .fw-mobile-cta { display: block; text-align: center; font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; padding: .8rem 1rem; margin-bottom: .75rem; color: #fff; }
@media (max-width: 900px) { .fw-header-actions .fw-btn-sm { display: none; } }

.fw-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; }
.fw-footer > .wp-block-shortcode > hr, .fw-footer hr { border: 0; border-top: 1px solid var(--fw-separator); margin: 2rem 0 1.25rem; }
.fw-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* =========================================================
   Homepage alert strip
   ========================================================= */
.fw-alert-strip { display: flex; align-items: center; gap: 1rem; padding: .6rem .9rem; margin-bottom: 1.25rem !important; border-radius: 14px; background: color-mix(in srgb, var(--fw-red) 10%, var(--fw-card)); overflow: hidden; }
.fw-alert-strip-label { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fw-red); white-space: nowrap; }
.fw-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--fw-red); box-shadow: 0 0 0 0 color-mix(in srgb, var(--fw-red) 60%, transparent); animation: fw-pulse 1.8s infinite; }
@keyframes fw-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fw-red) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.fw-alert-strip ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.fw-alert-strip ul::-webkit-scrollbar { display: none; }
.fw-alert-strip li + li::before { content: "·"; margin-right: 1.5rem; color: var(--fw-tertiary); }
.fw-alert-strip a { color: var(--fw-label); font-size: .875rem; font-weight: 500; }

/* =========================================================
   Fraud Library
   ========================================================= */
.fw-hub-head { margin-bottom: var(--wp--preset--spacing--50); max-width: 820px; }
.fw-hub-head h1 { font-size: var(--wp--preset--font-size--title-1); margin: .25rem 0 .75rem; }
.fw-learn-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; margin-bottom: var(--wp--preset--spacing--50) !important; }
.fw-learn-tile { position: relative; background: var(--fw-card); border-radius: var(--fw-radius); box-shadow: var(--fw-shadow); padding: 1.4rem; transition: transform .3s var(--fw-ease), box-shadow .3s var(--fw-ease); }
.fw-learn-tile:hover { transform: translateY(-3px); box-shadow: var(--fw-shadow-hover); }
.fw-learn-tile h3 { font-size: 1.125rem; margin: .75rem 0 .35rem; }
.fw-learn-tile h3 a { color: var(--fw-label); }
.fw-learn-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--fw-radius); }
.fw-learn-tile h3 a:hover { text-decoration: none; }
.fw-learn-tile p { color: var(--fw-secondary); font-size: .875rem; margin: 0; line-height: 1.4; }
.fw-learn-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--fw-grouped); font-size: 1.375rem; flex-shrink: 0; }
.fw-learn-tiles.is-guide .fw-learn-tile { background: color-mix(in srgb, var(--fw-red) 7%, var(--fw-card)); }
.fw-learn-meta { display: flex; gap: .45rem; flex-wrap: wrap; font-size: .8125rem; color: var(--fw-secondary); margin: 1rem 0 0; }
.fw-learn-meta span:first-child { color: var(--fw-green); font-weight: 600; }

.fw-toc ol { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; font-size: .875rem; }
.fw-toc a { color: var(--fw-label); }
.fw-side-list { list-style: none; margin: 0; padding: 0; }
.fw-side-list li { padding: .7rem 0; border-top: 1px solid var(--fw-separator); }
.fw-side-list li:first-child { border-top: 0; padding-top: .2rem; }
.fw-side-list a { display: block; color: var(--fw-label); font-weight: 600; font-size: .9rem; line-height: 1.3; }
.fw-side-list span { font-size: .75rem; color: var(--fw-secondary); }
.fw-post-aside .fw-report-cta { flex-direction: column; align-items: flex-start; }

.fw-related-section { margin-bottom: var(--wp--preset--spacing--60); max-width: 1120px; margin-left: auto !important; margin-right: auto !important; }
.fw-card-media img { width: calc(100% + 3rem); max-width: none; margin: -1.5rem -1.5rem 1rem; border-radius: var(--fw-radius) var(--fw-radius) 0 0; aspect-ratio: 16/9; object-fit: cover; display: block; }

.fw-explainer { display: flex; align-items: center; gap: 1rem; margin: 2.5rem 0 0; padding: 1rem 1.25rem; border-radius: var(--fw-radius); background: var(--fw-card); box-shadow: var(--fw-shadow); color: var(--fw-label); transition: box-shadow .25s; }
.fw-explainer:hover { text-decoration: none; box-shadow: var(--fw-shadow-hover); }
.fw-explainer small { display: block; font-size: .75rem; color: var(--fw-accent); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.fw-explainer strong { display: block; font-size: 1.0625rem; letter-spacing: -0.015em; }
.fw-explainer-arrow { margin-left: auto; font-size: 1.75rem; color: var(--fw-tertiary); }

.fw-hub-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.fw-hub-link { display: flex; align-items: center; gap: 1rem; padding: 1.25rem; border-radius: var(--fw-radius); background: var(--fw-grouped); color: var(--fw-label); }
.fw-hub-link:hover { text-decoration: none; background: color-mix(in srgb, var(--fw-accent) 10%, var(--fw-grouped)); }
.fw-hub-link strong { display: block; font-size: 1.0625rem; }
.fw-hub-link small { color: var(--fw-secondary); font-size: .875rem; }

.fw-report-cta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.5rem; border-radius: 24px; background: var(--fw-grouped); margin-top: 2rem; }
.fw-report-cta h3 { margin: 0; font-size: 1.25rem; }
.fw-report-cta p { margin: .25rem 0 0; }

/* Glossary */
.fw-az { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 2rem; position: sticky; top: 56px; z-index: 5; background: var(--fw-bg); padding: .5rem 0; }
.fw-az a, .fw-az span { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 8px; font-weight: 600; font-size: .875rem; }
.fw-az a { background: var(--fw-grouped); color: var(--fw-label); }
.fw-az a:hover { background: var(--fw-accent); color: #fff; text-decoration: none; }
.fw-az span { color: var(--fw-separator); }
.fw-glossary section { scroll-margin-top: 120px; }
.fw-glossary h2 { font-size: 2rem; color: var(--fw-red); margin: 2rem 0 .5rem; }
.fw-glossary dl { margin: 0; }
.fw-glossary dl > div { padding: 1rem 0; border-top: 1px solid var(--fw-separator); }
.fw-glossary dt a { color: var(--fw-label); font-weight: 700; font-size: 1.125rem; }
.fw-glossary dd { margin: .3rem 0 0; color: var(--fw-secondary); }
.fw-author-hero { margin-top: 0; align-items: center; }
.fw-author-hero h1.fw-author-box-name { font-size: var(--wp--preset--font-size--title-2); margin: 0; }

/* =========================================================
   Scam checker
   ========================================================= */
.fw-checker { max-width: 760px; }
.fw-checker-form textarea { min-height: 150px; resize: vertical; }
.fw-checker-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.fw-checker-actions .fw-help { margin: 0; }
.fw-checker-result { margin-top: 2rem; display: grid; gap: 1.25rem; }
.fw-verdict { border-radius: 24px; padding: 1.75rem; background: color-mix(in srgb, var(--c) 12%, var(--fw-card)); box-shadow: var(--fw-shadow); --c: var(--fw-green); }
.fw-verdict.is-medium { --c: var(--fw-orange); }
.fw-verdict.is-high { --c: var(--fw-red); }
.fw-verdict h2 { margin: .75rem 0 .5rem; font-size: 1.625rem; color: var(--c); }
.fw-verdict p { margin: .4rem 0 0; }
.fw-verdict-type { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--fw-secondary); }
.fw-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 240px; }
.fw-meter span { height: 8px; border-radius: 980px; background: var(--fw-separator); }
.fw-verdict.is-low .fw-meter span:nth-child(1),
.fw-verdict.is-medium .fw-meter span:nth-child(-n+2),
.fw-verdict.is-high .fw-meter span { background: var(--c); }
.fw-checker-section { background: var(--fw-card); border-radius: var(--fw-radius); box-shadow: var(--fw-shadow); padding: 1.25rem 1.5rem; }
.fw-checker-section h3 { margin: 0 0 .5rem; font-size: 1.0625rem; }
.fw-checker-section ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.fw-checker-links { display: flex; gap: .75rem; flex-wrap: wrap; }
.fw-checker-cta { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; margin-bottom: 1.25rem !important; border-radius: 18px; background: var(--fw-card); box-shadow: var(--fw-shadow); color: var(--fw-label); }
.fw-checker-cta:hover { text-decoration: none; box-shadow: var(--fw-shadow-hover); }
.fw-checker-cta strong { display: block; font-size: 1.0625rem; }
.fw-checker-cta small { color: var(--fw-secondary); font-size: .875rem; }
.fw-checker-cta .fw-btn { margin-left: auto; white-space: nowrap; }
@media (max-width: 560px) { .fw-checker-cta { flex-wrap: wrap; } .fw-checker-cta .fw-btn { margin-left: 0; } }
.fw-form-legal { font-size: .75rem; line-height: 1.45; color: var(--fw-secondary); }

/* Small cover tiles: keep long headlines inside the tile */
.fw-poster:not(.is-featured) .fw-poster-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fw-mosaic { grid-template-rows: repeat(3, minmax(170px, 1fr)); }

/* ---------- News sections ---------- */
/* Section bar under the header: one scrollable row, like a newspaper's section list. */
.fw-sections { max-width: 1120px; margin: .45rem auto 0; border-top: 1px solid var(--fw-separator); }
.fw-sections ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: .5rem 0 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fw-sections ul::-webkit-scrollbar { display: none; }
.fw-sections a { display: block; white-space: nowrap; font-size: .8125rem; font-weight: 600; color: var(--fw-secondary); padding-bottom: .1rem; border-bottom: 2px solid transparent; }
.fw-sections a:hover { color: var(--fw-label); text-decoration: none; }
.fw-sections a[aria-current] { color: var(--fw-label); border-bottom-color: var(--fw-red); }
@media (max-width: 600px) { .fw-sections ul { gap: 1.1rem; } }

/* Section blocks on the homepage */
.fw-home-sections { margin-top: var(--wp--preset--spacing--60); }
.fw-section-block { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--fw-separator); }
.fw-section-block:first-child { margin-top: 0; }
.fw-section-block .fw-ncard-cat { display: none; }
.fw-section-block .fw-section-head h2 { font-size: var(--wp--preset--font-size--title-2, 1.75rem); letter-spacing: -0.025em; }

/* Story cards: 4 across on desktop, compact list with thumbnails on phones */
.fw-ncards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.fw-ncard { min-width: 0; }
.fw-ncard-img { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; background: var(--fw-grouped); margin-bottom: .75rem; }
.fw-ncard-img img, .fw-ncard-img .fw-poster-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--fw-ease); }
.fw-ncard:hover .fw-ncard-img img { transform: scale(1.04); }
.fw-ncard-cat { display: block; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fw-red); margin-bottom: .3rem; }
.fw-ncard-title { margin: 0 0 .4rem; font-size: 1.0625rem; line-height: 1.25; letter-spacing: -0.02em; }
.fw-ncard-title a { color: var(--fw-label); }
.fw-ncard time { font-size: .8125rem; color: var(--fw-secondary); }
@media (max-width: 960px) { .fw-ncards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.fw-ncards { grid-template-columns: 1fr; gap: 0; }
	.fw-ncard { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: .9rem; align-items: start; padding: .9rem 0; }
	.fw-ncard + .fw-ncard { border-top: 1px solid var(--fw-separator); }
	.fw-ncard-img { margin: 0; border-radius: 10px; }
	.fw-ncard-title { font-size: 1rem; }
}

/* Footer: official social profiles */
.fw-footer-social { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 2rem auto 0; }
.fw-footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fw-card); color: var(--fw-label); box-shadow: var(--fw-shadow); transition: transform .2s var(--fw-ease), color .2s; }
.fw-footer-social a:hover { transform: translateY(-2px); color: var(--fw-red); text-decoration: none; }
