/* =========================================================================
   Website Reputation Checker — archive page
   Full-dark, futuristic palette. Cyan → green accent gradient.
   ========================================================================= */

main.wrc-archive,
.wrc-archive {
	--wrc-bg:        #06090f;
	--wrc-bg-2:      #0b1018;
	--wrc-bg-3:      #11161f;
	--wrc-bg-4:      #161c27;
	--wrc-line:      rgba(255,255,255,0.08);
	--wrc-line-2:    rgba(255,255,255,0.16);
	--wrc-fg:        #e8eef5;
	--wrc-fg-mute:   #94a3b8;
	--wrc-fg-dim:    #64748b;
	--wrc-c1:        #0db1e3;
	--wrc-c2:        #57c57f;
	--wrc-grad:      linear-gradient(135deg, #0db1e3 0%, #57c57f 100%);
	--wrc-grad-soft: linear-gradient(135deg, rgba(13,177,227,0.18) 0%, rgba(87,197,127,0.18) 100%);
	--wrc-radius:    14px;
	--wrc-shadow:    0 18px 60px rgba(0,0,0,0.45);
	background: var(--wrc-bg);
	color: var(--wrc-fg);
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
}

.wrc-archive *,
.wrc-archive *::before,
.wrc-archive *::after { box-sizing: border-box; }

.wrc-archive .wrc-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 28px;
}

/* =========================================================================
   Hero
   ========================================================================= */
.wrc-archive .wrc-hero {
	position: relative;
	background: var(--wrc-bg);
	color: var(--wrc-fg);
	padding: 80px 0 64px;
	overflow: hidden;
	isolation: isolate;
}
.wrc-archive .wrc-hero__inner { position: relative; z-index: 2; }

.wrc-archive .wrc-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.wrc-archive .wrc-hero__glow {
	position: absolute;
	inset: -40% -10% auto -10%; height: 80%;
	background:
		radial-gradient(60% 70% at 30% 25%, rgba(13,177,227,0.25), transparent 60%),
		radial-gradient(40% 60% at 80% 10%, rgba(87,197,127,0.20), transparent 60%);
	filter: blur(2px);
}
.wrc-archive .wrc-hero__grid {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(transparent 95%, rgba(255,255,255,0.06) 100%),
		linear-gradient(90deg, transparent 95%, rgba(255,255,255,0.06) 100%);
	background-size: 56px 56px;
	mask-image: radial-gradient(800px 380px at 50% 0%, #000 0, transparent 70%);
	-webkit-mask-image: radial-gradient(800px 380px at 50% 0%, #000 0, transparent 70%);
	opacity: .8;
}

/* Eyebrow — pill on desktop, gracefully wraps to a multi-line label on
   mobile (the rounded-pill geometry only works when the text fits on one
   line, so we drop the pill shape on narrow screens). */
.wrc-archive .wrc-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	margin: 0 auto 18px;
	padding: 6px 14px 6px 10px;
	color: var(--wrc-fg-mute);
	font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
	border: 1px solid var(--wrc-line);
	background: rgba(255,255,255,0.03);
	border-radius: 999px;
	backdrop-filter: blur(6px);
	max-width: 100%;
	white-space: normal;
	text-align: center;
	line-height: 1.4;
}
.wrc-archive .wrc-eyebrow__dot {
	display: inline-block; width: 6px; height: 6px; border-radius: 50%;
	background: var(--wrc-c1);
	box-shadow: 0 0 0 4px rgba(13,177,227,0.18);
	flex-shrink: 0;
	align-self: center;
}
.wrc-archive .wrc-hero__inner { text-align: center; }
/* Mobile — force the full label onto one line. We bring the font down,
   reduce letter-spacing, widen max-width, and apply white-space: nowrap
   so the chip stays a clean single-line pill on every common phone size. */
@media (max-width: 540px) {
	.wrc-archive .wrc-eyebrow {
		font-size: 9.5px;
		letter-spacing: .03em;
		padding: 5px 12px 5px 9px;
		border-radius: 999px;
		gap: 7px;
		max-width: calc(100% - 8px);
		white-space: nowrap;
	}
	.wrc-archive .wrc-eyebrow__dot {
		width: 5px; height: 5px;
		box-shadow: 0 0 0 3px rgba(13,177,227,0.18);
	}
}
@media (max-width: 380px) {
	.wrc-archive .wrc-eyebrow {
		font-size: 8.5px;
		letter-spacing: .02em;
		padding: 5px 10px 5px 8px;
		gap: 6px;
	}
}

/* Title — gradient text using user palette */
.wrc-archive .wrc-hero h1.wrc-hero__title,
main.wrc-archive .wrc-hero__title {
	color: #ffffff !important;
	font-size: clamp(36px, 5.4vw, 64px);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 14px;
	background: linear-gradient(180deg, #ffffff 0%, #d2f1f7 50%, var(--wrc-c1) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.wrc-archive .wrc-hero__sub {
	color: #c8cfdb;
	max-width: 720px;
	margin: 0 auto 32px;
	line-height: 1.6;
	font-size: 16px;
}

/* =========================================================================
   Search form (idle / working / failed)
   ========================================================================= */
.wrc-archive .wrc-search { max-width: 760px; margin: 0 auto; }

.wrc-archive .wrc-search__field {
	position: relative;
	background: rgba(255,255,255,0.04);
	border: 1px solid var(--wrc-line-2);
	border-radius: var(--wrc-radius);
	padding: 6px;
	box-shadow: 0 14px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
	backdrop-filter: blur(8px);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.wrc-archive .wrc-search__field:focus-within {
	border-color: rgba(13,177,227,0.7);
	box-shadow: 0 14px 40px rgba(13,177,227,0.18), 0 0 0 3px rgba(13,177,227,0.18);
}
.wrc-archive .wrc-search__field[data-state="working"] {
	border-color: rgba(255,255,255,0.18);
}
.wrc-archive .wrc-search__field[data-state="failed"] {
	border-color: rgba(220,38,38,0.6);
	box-shadow: 0 14px 40px rgba(220,38,38,0.18);
}

.wrc-archive .wrc-search__row {
	display: flex; align-items: center; gap: 10px; min-height: 56px;
	padding: 0 8px 0 14px;
}
.wrc-archive .wrc-search__row[hidden] { display: none !important; }

.wrc-archive .wrc-search__icon { color: #cbd5e1; flex-shrink: 0; }
.wrc-archive .wrc-search__icon--spin   { color: var(--wrc-c1); animation: wrcSpin 1s linear infinite; }
.wrc-archive .wrc-search__icon--error  { color: #fca5a5; }
@keyframes wrcSpin { to { transform: rotate(360deg); } }

.wrc-archive .wrc-search input[type="text"] {
	flex: 1; min-width: 0;
	background: transparent; border: 0; outline: none;
	color: var(--wrc-fg);
	font-size: 16px;
	padding: 14px 6px;
	font-family: inherit;
}
.wrc-archive .wrc-search input::placeholder { color: #6b7280; }

.wrc-archive .wrc-search__btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--wrc-grad);
	color: #06283a; border: 0; cursor: pointer;
	padding: 12px 22px;
	border-radius: 10px;
	font: 700 14px/1 inherit;
	letter-spacing: .01em;
	box-shadow: 0 6px 18px rgba(13,177,227,0.35);
	transition: filter .15s ease, transform .15s ease;
}
.wrc-archive .wrc-search__btn:hover    { filter: brightness(1.07); transform: translateY(-1px); }
.wrc-archive .wrc-search__btn:disabled { opacity: .65; cursor: progress; transform: none; }
.wrc-archive .wrc-search__btn--ghost {
	background: rgba(255,255,255,0.06);
	color: var(--wrc-fg);
	box-shadow: none;
	border: 1px solid var(--wrc-line-2);
}

.wrc-archive .wrc-search__error {
	margin-top: 12px;
	background: rgba(220,38,38,0.10);
	color: #fda4af;
	border: 1px solid rgba(220,38,38,0.45);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 14px;
	text-align: left;
}
.wrc-archive .wrc-search__hint {
	color: var(--wrc-fg-mute);
	font-size: 12px;
	margin: 12px 0 0;
	text-align: center;
}

/* Inline progress */
.wrc-archive .wrc-search__progress { flex: 1; min-width: 0; padding: 8px 0; }
.wrc-archive .wrc-search__progress-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--wrc-fg); font-size: 14px; margin-bottom: 8px; }
.wrc-archive .wrc-search__progress-domain { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrc-archive .wrc-search__progress-pct { color: var(--wrc-fg-mute); font-variant-numeric: tabular-nums; font-size: 13px; flex-shrink: 0; }
.wrc-archive .wrc-search__progress-bar { height: 8px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; position: relative; }
.wrc-archive .wrc-search__progress-fill { height: 100%; width: 0%; border-radius: inherit; background: var(--wrc-grad); transition: width .35s ease; }
.wrc-archive .wrc-search__progress-bar::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, transparent 0, rgba(255,255,255,0.55) 50%, transparent 100%); background-size: 36% 100%; background-repeat: no-repeat; mix-blend-mode: overlay; pointer-events: none; animation: wrcShimmer 1.7s linear infinite; }
@keyframes wrcShimmer { 0% { background-position: -40% 0; } 100% { background-position: 140% 0; } }
.wrc-archive .wrc-search__progress-msg { color: var(--wrc-fg-mute); font-size: 12px; margin-top: 8px; min-height: 1.4em; }

.wrc-archive .wrc-search__failed { flex: 1; }
.wrc-archive .wrc-search__failed-msg { color: #fecaca; font-size: 14px; }

/* =========================================================================
   Feature cards row
   ========================================================================= */
.wrc-archive .wrc-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 44px;
}
.wrc-archive .wrc-feature {
	background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), var(--wrc-bg-3);
	border: 1px solid var(--wrc-line);
	border-radius: var(--wrc-radius);
	padding: 22px 20px 20px;
	transition: transform .2s ease, border-color .2s ease, background .2s ease;
	text-align: left;
}
.wrc-archive .wrc-feature:hover {
	transform: translateY(-3px);
	border-color: var(--wrc-line-2);
}
.wrc-archive .wrc-feature__icon {
	width: 44px; height: 44px;
	display: inline-grid; place-items: center;
	border-radius: 12px;
	margin-bottom: 14px;
	color: #fff;
	box-shadow: 0 8px 18px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.18);
}
.wrc-archive .wrc-feature__icon[data-tone="red"]   { background: linear-gradient(135deg, #ef4444, #991b1b); }
.wrc-archive .wrc-feature__icon[data-tone="amber"] { background: linear-gradient(135deg, #f59e0b, #b45309); }
.wrc-archive .wrc-feature__icon[data-tone="blue"]  { background: linear-gradient(135deg, #0db1e3, #0369a1); }
.wrc-archive .wrc-feature__icon[data-tone="green"] { background: linear-gradient(135deg, #57c57f, #047857); }

.wrc-archive .wrc-feature h3 { color: var(--wrc-fg); font-size: 14.5px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.005em; }
.wrc-archive .wrc-feature p { color: var(--wrc-fg-mute); font-size: 13.5px; line-height: 1.55; margin: 0; }

@media (max-width: 980px) { .wrc-archive .wrc-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .wrc-archive .wrc-features { grid-template-columns: 1fr; } }

/* =========================================================================
   Methodology block — also dark
   ========================================================================= */
.wrc-archive .wrc-info {
	background: var(--wrc-bg-2);
	padding: 80px 0;
	border-top: 1px solid var(--wrc-line);
	border-bottom: 1px solid var(--wrc-line);
	color: var(--wrc-fg);
}
.wrc-archive .wrc-info__grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 64px; align-items: start; }

.wrc-archive .wrc-tag {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(13,177,227,0.10);
	border: 1px solid rgba(13,177,227,0.35);
	color: #9ae6f8;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-weight: 700;
}
.wrc-archive .wrc-info__list { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: wrc; }
.wrc-archive .wrc-info__list li { counter-increment: wrc; padding: 22px 0 22px 64px; border-top: 1px solid var(--wrc-line); position: relative; }
.wrc-archive .wrc-info__list li:first-child { border-top: 0; }
.wrc-archive .wrc-info__list li::before {
	content: counter(wrc);
	position: absolute; left: 0; top: 22px;
	width: 44px; height: 44px;
	background: var(--wrc-grad);
	color: #06283a;
	border-radius: 50%;
	display: grid; place-items: center;
	font-weight: 800; font-size: 14px;
	box-shadow: 0 6px 16px rgba(13,177,227,0.25);
}
.wrc-archive .wrc-info__list h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; color: var(--wrc-fg); font-weight: 700; }
.wrc-archive .wrc-info__list p { font-size: 14.5px; color: var(--wrc-fg-mute); line-height: 1.65; margin: 0; }

.wrc-archive .wrc-info__aside { background: var(--wrc-bg-3); border: 1px solid var(--wrc-line); border-radius: 14px; padding: 28px; }
.wrc-archive .wrc-info__aside h3 { font-size: 18px; font-weight: 700; margin: 0 0 12px; color: var(--wrc-fg); }
.wrc-archive .wrc-info__aside p { color: var(--wrc-fg-mute); line-height: 1.65; margin: 0 0 12px; font-size: 14px; }
@media (max-width: 980px) { .wrc-archive .wrc-info__grid { grid-template-columns: 1fr; gap: 36px; } }

/* =========================================================================
   Recent grid — dark
   ========================================================================= */
.wrc-archive .wrc-recent {
	background: var(--wrc-bg);
	padding: 64px 0 96px;
	border-top: 1px solid var(--wrc-line);
}
.wrc-archive .wrc-recent__head { text-align: center; margin-bottom: 32px; }
.wrc-archive .wrc-recent__head h2 { font-size: 30px; margin: 0 0 8px; color: var(--wrc-fg); letter-spacing: -0.01em; }
.wrc-archive .wrc-recent__head p { color: var(--wrc-fg-mute); margin: 0; }

.wrc-archive .wrc-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
@media (max-width: 1180px) { .wrc-archive .wrc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .wrc-archive .wrc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .wrc-archive .wrc-grid { grid-template-columns: 1fr; } }

.wrc-archive .wrc-card {
	display: flex; flex-direction: column;
	background: var(--wrc-bg-3);
	border: 1px solid var(--wrc-line);
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.wrc-archive .wrc-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 38px rgba(0,0,0,0.4);
	border-color: var(--wrc-line-2);
}

/* Thumbnail wrapper — height tracks the actual image so the full
   1200×630 thumbnail is visible. The fallback (when no thumbnail) uses
   the same 1200/630 aspect-ratio so layout stays consistent. */
.wrc-archive .wrc-card-thumb {
	position: relative;
	background-color: #0a1018;
	overflow: hidden;
	line-height: 0; /* kill the small inline-gap below the img */
}
.wrc-archive .wrc-card-thumb-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
}
.wrc-archive .wrc-card-thumb-fallback {
	display: grid;
	place-items: center;
	aspect-ratio: 1200 / 630;
	font-size: 60px; font-weight: 800;
	color: rgba(255,255,255,0.78);
	background: radial-gradient(60% 80% at 30% 30%, rgba(13,177,227,0.25), transparent 70%),
	            linear-gradient(135deg, #0d1623 0%, #06090f 100%);
	letter-spacing: -0.02em;
	line-height: 1;
}

.wrc-archive .wrc-card-body { padding: 16px 18px 18px; }
.wrc-archive .wrc-card-domain { font-size: 15.5px; font-weight: 700; margin: 0 0 6px; color: var(--wrc-fg); word-break: break-all; letter-spacing: -0.005em; }
.wrc-archive .wrc-card-verdict { font-size: 11.5px; color: var(--wrc-fg-mute); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.wrc-archive .wrc-card-time { font-size: 12px; color: var(--wrc-fg-dim); margin-top: 8px; }

.wrc-archive .wrc-card { position: relative; }
.wrc-archive .wrc-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255,255,255,0.06); }
.wrc-archive .wrc-tone-danger.wrc-card::before  { background: linear-gradient(90deg, #ef4444, #f97316); }
.wrc-archive .wrc-tone-warning.wrc-card::before { background: linear-gradient(90deg, #f59e0b, #f97316); }
.wrc-archive .wrc-tone-caution.wrc-card::before { background: linear-gradient(90deg, #eab308, #f59e0b); }
.wrc-archive .wrc-tone-ok.wrc-card::before      { background: linear-gradient(90deg, #57c57f, #14b8a6); }
.wrc-archive .wrc-tone-safe.wrc-card::before    { background: var(--wrc-grad); }

.wrc-archive .wrc-grid__sentinel { height: 1px; }
.wrc-archive .wrc-grid__status   { text-align: center; color: var(--wrc-fg-mute); padding: 18px 0 0; min-height: 24px; font-size: 13px; }
.wrc-archive .wrc-empty          { grid-column: 1 / -1; text-align: center; color: var(--wrc-fg-mute); padding: 40px 0; }

/* =========================================================================
   [wrc_explorer] shortcode — self-contained, polished dark archive that
   can be embedded inside any page (light or dark host theme).
   It brings its own background, header, and grid styling so the result
   looks like a real archive section regardless of the host page.
   ========================================================================= */
.wrc-archive.wrc-explorer {
	background:
		radial-gradient(800px 300px at 80% -10%, rgba(13,177,227,0.10), transparent 60%),
		radial-gradient(600px 260px at 0% 0%, rgba(87,197,127,0.08), transparent 60%),
		linear-gradient(180deg, var(--wrc-bg-2) 0%, var(--wrc-bg) 100%);
	border: 1px solid var(--wrc-line);
	border-radius: 18px;
	box-shadow: 0 24px 70px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
	padding: 0;
	margin: 24px auto;
	max-width: 1240px;
	color: var(--wrc-fg);
	overflow: hidden;
}
.wrc-explorer__inner {
	padding: 36px 36px 40px;
}

/* Header — title block on the left, search on the right */
.wrc-explorer__head {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 24px;
	align-items: end;
	padding-bottom: 24px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--wrc-line);
}
.wrc-explorer__head-title { min-width: 0; }
/* Use a high-specificity selector + !important so host themes can't dim
   the heading via their own h2 rules (the previous version inherited a
   muted theme color that was nearly invisible on the dark surface). */
.wrc-archive.wrc-explorer .wrc-explorer__head-title h2.wrc-explorer__title,
main .wrc-archive.wrc-explorer .wrc-explorer__title {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 6px;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
	line-height: 1.15;
	background: none;
	text-shadow: none;
}
.wrc-explorer__subtitle {
	font-size: 14px;
	color: var(--wrc-fg-mute);
	margin: 0;
	line-height: 1.5;
}
.wrc-explorer__count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 12px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(13,177,227,0.10);
	border: 1px solid rgba(13,177,227,0.30);
	color: #9ae6f8;
	font-size: 12px;
	font-weight: 600;
}
.wrc-explorer__count strong { font-weight: 800; color: #fff; }

.wrc-explorer__head-search {
	min-width: 280px;
	width: 100%;
	max-width: 420px;
	justify-self: end;
}
.wrc-explorer .wrc-search { margin: 0; max-width: 100%; }
.wrc-explorer .wrc-search__field { padding: 4px; border-radius: 10px; }
.wrc-explorer .wrc-search__row   { min-height: 44px; padding: 0 6px 0 12px; }
.wrc-explorer .wrc-search__icon  { width: 18px; height: 18px; }
.wrc-explorer .wrc-search input[type="text"] { font-size: 14px; padding: 10px 4px; }
.wrc-explorer .wrc-search__btn   { padding: 8px 14px; font-size: 13px; gap: 6px; }
.wrc-explorer .wrc-search__btn svg { width: 14px; height: 14px; }

/* Honour the `columns` shortcode attribute via a CSS variable */
.wrc-explorer .wrc-grid {
	grid-template-columns: repeat(var(--wrc-cols, 4), minmax(0, 1fr));
	gap: 18px;
}
@media (max-width: 1080px) { .wrc-explorer .wrc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .wrc-explorer .wrc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .wrc-explorer .wrc-grid { grid-template-columns: 1fr; } }

/* Header collapses to a single column on narrow screens */
@media (max-width: 760px) {
	.wrc-explorer__inner { padding: 26px 22px 32px; }
	.wrc-explorer__head {
		grid-template-columns: 1fr;
		gap: 18px;
		padding-bottom: 20px;
		margin-bottom: 22px;
	}
	.wrc-explorer__head-search { max-width: 100%; min-width: 0; justify-self: stretch; }
	.wrc-explorer__title { font-size: 22px; }
	.wrc-explorer__count { margin-left: 0; margin-top: 4px; }
}
@media (max-width: 480px) {
	.wrc-explorer__inner { padding: 22px 16px 28px; }
	.wrc-archive.wrc-explorer { border-radius: 14px; margin: 14px auto; }
}

/* Subtle dim while a search request is in flight */
.wrc-explorer .wrc-grid--loading { opacity: .55; transition: opacity .15s ease; }

/* =========================================================================
   [wrc_scanner] shortcode — just the search box, embeddable on a home
   page or landing page. Triggers the same generate-new-report flow as
   the archive's hero scanner.
   ========================================================================= */
.wrc-archive.wrc-scanner-shortcode {
	background:
		radial-gradient(800px 320px at 75% -20%, rgba(13,177,227,0.14), transparent 60%),
		radial-gradient(620px 260px at 0% 0%,   rgba(87,197,127,0.10), transparent 60%),
		linear-gradient(180deg, var(--wrc-bg-2) 0%, var(--wrc-bg) 100%);
	border: 1px solid var(--wrc-line);
	border-radius: 18px;
	box-shadow: 0 24px 70px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.03);
	padding: 44px 28px;
	margin: 24px auto;
	max-width: 1240px;
	color: var(--wrc-fg);
	overflow: hidden;
}
.wrc-scanner-shortcode__inner {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}
.wrc-archive.wrc-scanner-shortcode--left .wrc-scanner-shortcode__inner {
	text-align: left;
	margin: 0;
	max-width: 600px;
}
/* Force readable colour even when host theme styles h2 + p */
.wrc-archive.wrc-scanner-shortcode .wrc-scanner-shortcode__title {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 8px;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
	background: none;
	text-shadow: none;
	line-height: 1.15;
}
.wrc-archive.wrc-scanner-shortcode .wrc-scanner-shortcode__subtitle {
	color: #c8d2e0 !important;
	-webkit-text-fill-color: #c8d2e0;
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 22px;
	max-width: 600px;
}
.wrc-archive.wrc-scanner-shortcode--left .wrc-scanner-shortcode__subtitle { margin-left: 0; margin-right: 0; }
.wrc-archive.wrc-scanner-shortcode:not(.wrc-scanner-shortcode--left) .wrc-scanner-shortcode__subtitle { margin-left: auto; margin-right: auto; }

.wrc-scanner-shortcode .wrc-search { margin: 0 auto; max-width: 620px; }
.wrc-archive.wrc-scanner-shortcode--left .wrc-scanner-shortcode .wrc-search { margin: 0; }

@media (max-width: 760px) {
	.wrc-archive.wrc-scanner-shortcode { padding: 32px 18px; }
	.wrc-archive.wrc-scanner-shortcode .wrc-scanner-shortcode__title { font-size: 22px; }
	.wrc-archive.wrc-scanner-shortcode .wrc-scanner-shortcode__subtitle { font-size: 14px; }
}
@media (max-width: 480px) {
	.wrc-archive.wrc-scanner-shortcode { padding: 26px 14px; border-radius: 14px; }
}

/* Empty-state card — shown when the explorer search returns no posts */
.wrc-explorer__empty {
	grid-column: 1 / -1;
	background:
		radial-gradient(380px 160px at 50% 0%, rgba(13,177,227,0.10), transparent 70%),
		var(--wrc-bg-3);
	border: 1px dashed rgba(255,255,255,0.16);
	border-radius: 18px;
	padding: 56px 32px;
	text-align: center;
	color: var(--wrc-fg-mute);
}
.wrc-explorer__empty-icon {
	display: inline-flex;
	align-items: center; justify-content: center;
	width: 72px; height: 72px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(13,177,227,0.18), rgba(87,197,127,0.18));
	color: #9ae6f8;
	margin: 0 auto 18px;
	border: 1px solid rgba(13,177,227,0.30);
}
/* High-specificity selectors + !important so the host theme's h3 / p
   defaults can't dim these (the previous version was nearly invisible
   against the dark surface). */
.wrc-archive.wrc-explorer .wrc-explorer__empty h3.wrc-explorer__empty-title,
.wrc-archive.wrc-explorer .wrc-explorer__empty .wrc-explorer__empty-title {
	font-size: 22px;
	font-weight: 800;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
	margin: 0 0 8px;
	letter-spacing: -0.01em;
	background: none;
	text-shadow: none;
}
.wrc-archive.wrc-explorer .wrc-explorer__empty p.wrc-explorer__empty-msg,
.wrc-archive.wrc-explorer .wrc-explorer__empty .wrc-explorer__empty-msg {
	font-size: 14.5px;
	color: #c8d2e0 !important;
	-webkit-text-fill-color: #c8d2e0;
	max-width: 520px;
	margin: 0 auto 22px;
	line-height: 1.65;
	background: none;
}
.wrc-archive.wrc-explorer .wrc-explorer__empty .wrc-explorer__empty-msg strong {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff;
	font-weight: 700;
}
.wrc-explorer__empty-cta {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px;
	background: var(--wrc-grad);
	color: #06283a !important;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
	box-shadow: 0 8px 22px rgba(13,177,227,0.35);
	transition: filter .15s ease, transform .15s ease;
	max-width: 100%;
	word-break: break-word;
}
.wrc-explorer__empty-cta:hover { filter: brightness(1.08); transform: translateY(-1px); color: #06283a !important; }
.wrc-explorer__empty-cta svg { flex-shrink: 0; }

@media (max-width: 540px) {
	.wrc-explorer__empty { padding: 40px 18px; }
	.wrc-explorer__empty-title { font-size: 18px; }
	.wrc-explorer__empty-msg   { font-size: 13.5px; }
	.wrc-explorer__empty-cta   { padding: 10px 18px; font-size: 13px; }
}

/* =========================================================================
   Mobile responsiveness pass — applies to every section above.
   ========================================================================= */
@media (max-width: 760px) {
	.wrc-archive .wrc-container { padding: 0 18px; }
	.wrc-archive .wrc-hero { padding: 56px 0 44px; }
	.wrc-archive .wrc-hero__sub { font-size: 14.5px; line-height: 1.55; margin-bottom: 24px; }
	.wrc-archive .wrc-search__row { min-height: 50px; padding: 0 6px 0 12px; gap: 8px; }
	.wrc-archive .wrc-search input[type="text"] { font-size: 15px; padding: 12px 4px; }
	.wrc-archive .wrc-search__btn { padding: 10px 16px; font-size: 13.5px; }
	.wrc-archive .wrc-search__progress-line { font-size: 13px; gap: 8px; }
	.wrc-archive .wrc-info { padding: 56px 0; }
	.wrc-archive .wrc-info__list li { padding-left: 56px; }
	.wrc-archive .wrc-info__list li::before { width: 38px; height: 38px; }
	.wrc-archive .wrc-recent { padding: 48px 0 64px; }
	.wrc-archive .wrc-recent__head h2 { font-size: 24px; }
	.wrc-archive .wrc-card-body { padding: 14px 14px 16px; }
}
@media (max-width: 480px) {
	.wrc-archive .wrc-container { padding: 0 14px; }
	.wrc-archive .wrc-hero { padding: 44px 0 36px; }
	.wrc-archive .wrc-search__field { padding: 4px; border-radius: 12px; }
	.wrc-archive .wrc-search__row { min-height: 46px; padding: 0 4px 0 10px; gap: 6px; }
	.wrc-archive .wrc-search__btn { padding: 9px 12px; font-size: 13px; gap: 4px; }
	.wrc-archive .wrc-search__btn svg { display: none; }
	.wrc-archive .wrc-search__icon { width: 18px; height: 18px; }
	.wrc-archive .wrc-search input[type="text"] { font-size: 14.5px; }
	.wrc-archive .wrc-info__list li::before { width: 32px; height: 32px; font-size: 12px; top: 24px; }
	.wrc-archive .wrc-info__list li { padding-left: 46px; }
	.wrc-archive .wrc-info__aside { padding: 22px; }
	.wrc-archive .wrc-card-thumb { aspect-ratio: 16/10; }
}

/* Prevent any accidental horizontal overflow on the whole page */
html, body { overflow-x: hidden; }
