/*
Theme Name: Forge
Theme URI:
Author: Forge Heavy
Author URI:
Description: Forge is a heavy-industrial dark WordPress theme for cryptocurrency trading platforms. Hammered metal surfaces, brushed textures, glowing forge-orange accents and rising spark particles frame an anvil-shaped layout with riveted panels and workshop-style content zones.
Version: 1.0.0
Requires at least: 5.6
Tested up to: 6.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: forge
Tags: dark, industrial, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
 * 0. Design tokens
 * ========================================================= */
:root {
	--frg-orange: #ea580c;
	--frg-gold:   #fbbf24;
	--frg-iron:   #1c1917;
	--frg-metal:  #44403c;
	--frg-card:   #292524;
	--frg-bg:     #0c0a09;
	--frg-text:   #fafaf9;
	--frg-muted:  #a8a29e;
	--frg-line:   #33302c;

	--frg-orange-soft: rgba(234, 88, 12, 0.16);
	--frg-gold-soft:   rgba(251, 191, 36, 0.14);
	--frg-shadow-hard: 6px 6px 0 rgba(0, 0, 0, 0.55);
	--frg-shadow-lift: 0 18px 44px rgba(0, 0, 0, 0.6);

	--frg-nav-h: 72px;
	--frg-maxw: 1240px;
	--frg-side-w: 240px;
	--frg-radius: 4px;

	--frg-brushed: repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
	--frg-brushed-v: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255, 255, 255, 0.02) 3px, rgba(255, 255, 255, 0.02) 5px);
}

/* =========================================================
 * 1. Reset & base
 * ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background-color: var(--frg-bg);
	background-image:
		radial-gradient(1200px 600px at 78% -8%, rgba(234, 88, 12, 0.10), transparent 60%),
		radial-gradient(900px 500px at 6% 4%, rgba(251, 191, 36, 0.05), transparent 55%),
		var(--frg-brushed-v);
	color: var(--frg-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--frg-text);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1em; }

a { color: var(--frg-gold); text-decoration: none; transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease; }
a:hover { color: var(--frg-orange); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }

blockquote {
	margin: 1.4em 0;
	padding: 0.4em 1.2em;
	border-left: 4px solid var(--frg-orange);
	background: linear-gradient(90deg, var(--frg-orange-soft), transparent);
	color: #e7e5e4;
	font-style: italic;
}

code, pre, kbd {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	background: #17130f;
	border: 1px solid var(--frg-line);
	border-radius: 3px;
}
code { padding: 0.1em 0.4em; font-size: 0.9em; color: var(--frg-gold); }
pre { padding: 1em 1.2em; overflow-x: auto; }
pre code { padding: 0; border: 0; background: none; }

hr { border: 0; border-top: 2px solid var(--frg-line); margin: 2em 0; }

table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
th, td { border: 1px solid var(--frg-line); padding: 0.6em 0.8em; text-align: left; }
th { background: var(--frg-card); text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.06em; }

::selection { background: var(--frg-orange); color: #fff; }

.frg-skip {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--frg-orange); color: #fff; padding: 0.6em 1.1em; font-weight: 700;
}
.frg-skip:focus { left: 12px; top: 12px; }

/* =========================================================
 * 2. Layout primitives
 * ========================================================= */
.frg-container {
	width: 100%;
	max-width: var(--frg-maxw);
	margin: 0 auto;
	padding: 0 24px;
}

.frg-section { position: relative; padding: 84px 0; }

.frg-section--iron  { background: linear-gradient(180deg, #14110f, #0c0a09); }
.frg-section--metal { background: linear-gradient(180deg, #1c1917, #17130f); }
.frg-section--deep  { background: linear-gradient(180deg, #0c0a09, #13100e); }

.frg-section::before {
	content: "";
	position: absolute; inset: 0;
	background-image: var(--frg-brushed);
	opacity: 0.5;
	pointer-events: none;
}
.frg-section > .frg-container { position: relative; z-index: 1; }

/* Anvil-shaped trapezoid section (narrow top, wide bottom) */
.frg-anvil {
	position: relative;
	padding: 96px 0 108px;
	background: linear-gradient(180deg, #1c1917, #0c0a09);
	clip-path: polygon(9% 0, 91% 0, 100% 100%, 0 100%);
}
.frg-anvil::after {
	content: "";
	position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
	width: 60%; height: 3px;
	background: linear-gradient(90deg, transparent, var(--frg-orange), transparent);
	filter: blur(1px);
}

/* Section headers */
.frg-head { max-width: 720px; margin: 0 0 44px; }
.frg-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.frg-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 0.76rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--frg-orange);
	margin-bottom: 14px;
}
.frg-eyebrow::before {
	content: ""; width: 26px; height: 3px; background: var(--frg-orange);
	box-shadow: 0 0 8px var(--frg-orange);
}
.frg-head p { color: var(--frg-muted); font-size: 1.02rem; margin: 0; }

/* =========================================================
 * 3. Utility: brushed metal, sparks, rivets
 * ========================================================= */
.frg-brushed {
	background-image: repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.03) 2px, rgba(255, 255, 255, 0.03) 4px);
}

@keyframes frg-spark {
	0%   { transform: translateY(0) scale(1); opacity: 1; }
	100% { transform: translateY(-60px) scale(0); opacity: 0; }
}
.frg-spark {
	position: absolute;
	width: 4px; height: 4px;
	border-radius: 50%;
	background: var(--frg-gold);
	box-shadow: 0 0 6px 1px rgba(251, 191, 36, 0.8);
	animation: frg-spark 2s infinite;
	pointer-events: none;
}

.frg-sparkfield { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

.frg-rivet {
	width: 8px; height: 8px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #78716c, #44403c);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
	position: absolute;
}

/* Riveted panel: 2px metal border + 4 corner rivets */
.frg-riveted {
	position: relative;
	border: 2px solid var(--frg-metal);
	background: var(--frg-card);
	background-image: var(--frg-brushed);
}
.frg-riveted > .frg-rivet--tl { top: 8px; left: 8px; }
.frg-riveted > .frg-rivet--tr { top: 8px; right: 8px; }
.frg-riveted > .frg-rivet--bl { bottom: 8px; left: 8px; }
.frg-riveted > .frg-rivet--br { bottom: 8px; right: 8px; }

.frg-icon { width: 22px; height: 22px; flex: none; }

/* =========================================================
 * 4. Buttons / pills
 * ========================================================= */
.frg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	padding: 13px 26px;
	font-weight: 800; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase;
	border: 2px solid var(--frg-metal);
	border-radius: var(--frg-radius);
	cursor: pointer;
	background: var(--frg-card);
	color: var(--frg-text);
	box-shadow: var(--frg-shadow-hard);
	transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.frg-btn:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.6); }
.frg-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }

.frg-btn--solid {
	background: linear-gradient(180deg, #f97316, var(--frg-orange));
	border-color: #fb923c;
	color: #1a0d05;
	box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5), 0 0 22px rgba(234, 88, 12, 0.35);
}
.frg-btn--solid:hover { color: #120903; box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55), 0 0 30px rgba(234, 88, 12, 0.55); }

.frg-btn--ghost { background: transparent; border-color: var(--frg-metal); color: var(--frg-text); box-shadow: none; }
.frg-btn--ghost:hover { border-color: var(--frg-orange); color: var(--frg-gold); box-shadow: 0 0 18px var(--frg-orange-soft); }

.frg-btn--block { width: 100%; }
.frg-btn--sm { padding: 9px 16px; font-size: 0.78rem; }

/* =========================================================
 * 5. Header / forge metal bar
 * ========================================================= */
.frg-topbar {
	position: sticky; top: 0; z-index: 90;
	height: var(--frg-nav-h);
	background: linear-gradient(180deg, #262220 0%, #17130f 55%, #0f0c0a 100%);
	background-image: var(--frg-brushed), linear-gradient(180deg, #262220 0%, #17130f 55%, #0f0c0a 100%);
	border-bottom: 1px solid #000;
	transition: box-shadow 0.3s ease;
}
.frg-topbar::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: -2px;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--frg-orange) 18%, var(--frg-gold) 50%, var(--frg-orange) 82%, transparent);
	box-shadow: 0 0 10px rgba(234, 88, 12, 0.7);
	opacity: 0.85;
	transition: opacity 0.3s ease, box-shadow 0.3s ease;
}
.frg-topbar.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); }
.frg-topbar.is-scrolled::after { opacity: 1; box-shadow: 0 0 20px rgba(234, 88, 12, 0.95), 0 0 34px rgba(251, 191, 36, 0.4); }

.frg-topbar__inner {
	height: var(--frg-nav-h);
	display: flex; align-items: center; gap: 22px;
}

.frg-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--frg-text); flex: none; }
.frg-brand:hover { color: var(--frg-text); }
.frg-brand__mark {
	display: grid; place-items: center;
	width: 40px; height: 40px;
	border: 2px solid var(--frg-metal);
	border-radius: var(--frg-radius);
	background: linear-gradient(145deg, #3a3330, #17130f);
	color: var(--frg-orange);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 2px 2px 0 rgba(0, 0, 0, 0.5);
}
.frg-brand__mark .frg-icon { width: 24px; height: 24px; }
.frg-brand__name { font-weight: 800; font-size: 1.24rem; letter-spacing: 0.14em; text-transform: uppercase; }
.frg-brand__name span { color: var(--frg-orange); }
.frg-brand .custom-logo { max-height: 42px; width: auto; }

.frg-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.frg-nav__list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.frg-nav__list a {
	display: block; padding: 9px 14px;
	font-size: 0.84rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
	color: #d6d3d1; border-radius: 3px; border-bottom: 2px solid transparent;
}
.frg-nav__list a:hover,
.frg-nav__list .current-menu-item > a,
.frg-nav__list .current_page_item > a {
	color: var(--frg-gold); border-bottom-color: var(--frg-orange);
	background: linear-gradient(180deg, transparent, var(--frg-orange-soft));
}

.frg-topbar__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.frg-topbar__search {
	display: grid; place-items: center;
	width: 40px; height: 40px;
	border: 2px solid var(--frg-metal); border-radius: var(--frg-radius);
	color: #d6d3d1; background: #17130f;
}
.frg-topbar__search:hover { color: var(--frg-gold); border-color: var(--frg-orange); }

/* Language switcher (metal variant) */
.frg-langswitch { display: inline-flex; border: 2px solid var(--frg-metal); border-radius: var(--frg-radius); overflow: hidden; background: #17130f; }
.frg-langswitch__pill { padding: 6px 12px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--frg-muted); }
.frg-langswitch__pill:hover { color: var(--frg-gold); }
.frg-langswitch__pill.active { background: linear-gradient(180deg, #f97316, var(--frg-orange)); color: #1a0d05; }

/* Burger */
.frg-burger {
	display: none;
	width: 44px; height: 42px;
	flex-direction: column; align-items: center; justify-content: center; gap: 5px;
	border: 2px solid var(--frg-metal); border-radius: var(--frg-radius);
	background: #17130f; cursor: pointer; padding: 0;
}
.frg-burger__bar { width: 22px; height: 2px; background: var(--frg-gold); transition: transform 0.25s ease, opacity 0.2s ease; }
.frg-burger.is-open .frg-burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.frg-burger.is-open .frg-burger__bar:nth-child(2) { opacity: 0; }
.frg-burger.is-open .frg-burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.frg-drawer {
	position: absolute; top: var(--frg-nav-h); left: 0; right: 0;
	background: linear-gradient(180deg, #17130f, #0c0a09);
	border-bottom: 2px solid var(--frg-orange);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
	padding: 16px 24px 22px;
	display: none;
}
.frg-drawer.is-open { display: block; }
.frg-drawer .frg-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
.frg-drawer .frg-nav__list a { padding: 12px 10px; border-bottom: 1px solid var(--frg-line); border-radius: 0; }
.frg-drawer__foot { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }


/* =========================================================
 * 6. Hero (anvil + sparks)
 * ========================================================= */
.frg-hero {
	position: relative;
	padding: 92px 0 108px;
	background:
		radial-gradient(900px 480px at 50% 120%, rgba(234, 88, 12, 0.22), transparent 62%),
		linear-gradient(180deg, #0c0a09 0%, #1c1917 60%, #0c0a09 100%);
	clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
	overflow: hidden;
}
.frg-hero__inner {
	position: relative; z-index: 2;
	display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
.frg-hero__copy { max-width: 620px; }
.frg-hero h1 { margin: 0 0 18px; }
.frg-hero h1 .frg-hot {
	color: var(--frg-orange);
	text-shadow: 0 0 26px rgba(234, 88, 12, 0.55);
}
.frg-hero__sub { color: #d6d3d1; font-size: 1.08rem; margin: 0 0 30px; }
.frg-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.frg-hero__panel {
	position: relative;
	padding: 30px 28px;
	border: 2px solid var(--frg-metal);
	border-radius: var(--frg-radius);
	background: linear-gradient(160deg, #292524, #17130f);
	background-image: var(--frg-brushed), linear-gradient(160deg, #292524, #17130f);
	box-shadow: var(--frg-shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.frg-hero__panel h3 { color: var(--frg-gold); margin-top: 4px; }
.frg-hero__stat { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 6px; }
.frg-hero__stat b { font-size: 2.6rem; font-weight: 800; color: var(--frg-orange); line-height: 1; text-shadow: 0 0 22px rgba(234, 88, 12, 0.5); }
.frg-hero__stat span { color: var(--frg-muted); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.1em; }
.frg-hero__note { color: var(--frg-muted); font-size: 0.84rem; margin: 0; }

/* =========================================================
 * 7. Features – 3 metal cards
 * ========================================================= */
.frg-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.frg-feature {
	position: relative;
	padding: 30px 26px 28px;
	border: 2px solid var(--frg-metal);
	border-radius: var(--frg-radius);
	background: var(--frg-card);
	background-image: var(--frg-brushed);
	box-shadow: var(--frg-shadow-hard);
	transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.frg-feature:hover {
	transform: translateY(-5px);
	border-color: var(--frg-orange);
	box-shadow: 0 0 0 1px var(--frg-orange), 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 34px var(--frg-orange-soft);
}
.frg-feature__ico {
	display: grid; place-items: center;
	width: 54px; height: 54px; margin-bottom: 18px;
	border: 2px solid var(--frg-metal); border-radius: var(--frg-radius);
	background: linear-gradient(145deg, #3a3330, #17130f);
	color: var(--frg-gold);
}
.frg-feature:hover .frg-feature__ico { color: var(--frg-orange); border-color: var(--frg-orange); }
.frg-feature__ico .frg-icon { width: 28px; height: 28px; }
.frg-feature h3 { margin: 0 0 8px; font-size: 1.14rem; }
.frg-feature p { color: var(--frg-muted); margin: 0; font-size: 0.95rem; }
.frg-feature__tag {
	position: absolute; top: 18px; right: 18px;
	font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--frg-orange);
}

/* =========================================================
 * 8. Temperature data bar (heated metal gradient)
 * ========================================================= */
.frg-heatbar {
	position: relative;
	padding: 46px 0;
	background: linear-gradient(90deg, #0c0a09 0%, #7c2d12 34%, var(--frg-orange) 62%, var(--frg-gold) 100%);
	overflow: hidden;
}
.frg-heatbar::before {
	content: "";
	position: absolute; inset: 0;
	background-image: var(--frg-brushed);
	opacity: 0.4;
}
.frg-heatbar__grid {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.frg-heat {
	display: flex; align-items: center; gap: 16px;
	padding: 12px 18px;
	border-left: 3px solid rgba(0, 0, 0, 0.35);
}
.frg-heat__ico { color: #1a0d05; flex: none; }
.frg-heat__ico .frg-icon { width: 30px; height: 30px; }
.frg-heat b { display: block; font-size: 2rem; font-weight: 800; line-height: 1; color: #1a0d05; }
.frg-heat span { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #2a1408; }

/* =========================================================
 * 9. Product showcase – 2 large riveted cards
 * ========================================================= */
.frg-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.frg-product { padding: 0; overflow: hidden; }
.frg-product__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 2px solid var(--frg-metal); background: #17130f; }
.frg-product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; filter: saturate(0.85) contrast(1.05); }
.frg-product:hover .frg-product__media img { transform: scale(1.05); }
.frg-product__badge {
	position: absolute; top: 16px; left: 16px;
	padding: 5px 12px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
	background: linear-gradient(180deg, #f97316, var(--frg-orange)); color: #1a0d05;
	border-radius: 3px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.frg-product__body { padding: 26px 26px 28px; }
.frg-product__body h3 { margin: 0 0 10px; }
.frg-product__body p { color: var(--frg-muted); margin: 0 0 18px; }
.frg-product__list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.frg-product__list li { display: flex; align-items: center; gap: 9px; color: #d6d3d1; font-size: 0.92rem; }
.frg-product__list .frg-icon { width: 18px; height: 18px; color: var(--frg-gold); }

/* =========================================================
 * 10. Post cards (left temperature bar)
 * ========================================================= */
.frg-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.frg-postcard {
	position: relative;
	display: grid; grid-template-columns: 168px 1fr; gap: 0;
	border: 2px solid var(--frg-metal); border-radius: var(--frg-radius);
	background: var(--frg-card);
	overflow: hidden;
	box-shadow: var(--frg-shadow-hard);
	transition: transform 0.18s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.frg-postcard::before {
	content: "";
	position: absolute; left: 0; top: 0; bottom: 0; width: 5px; z-index: 3;
	background: linear-gradient(180deg, var(--frg-gold), var(--frg-orange));
	box-shadow: 0 0 12px rgba(234, 88, 12, 0.6);
}
.frg-postcard:hover { transform: translateY(-4px); border-color: var(--frg-orange); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55), 0 0 26px var(--frg-orange-soft); }
.frg-postcard__thumb { position: relative; overflow: hidden; background: #17130f; min-height: 140px; }
.frg-postcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.frg-postcard__body { padding: 18px 20px 18px 24px; display: flex; flex-direction: column; }
.frg-postcard__cat {
	align-self: flex-start;
	font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--frg-orange); border: 1px solid var(--frg-metal); border-radius: 3px; padding: 2px 9px; margin-bottom: 10px;
}
.frg-postcard__title { margin: 0 0 8px; font-size: 1.06rem; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.frg-postcard__title a { color: var(--frg-text); }
.frg-postcard__title a:hover { color: var(--frg-gold); }
.frg-postcard__excerpt { color: var(--frg-muted); font-size: 0.88rem; margin: 0 0 12px; flex: 1; }
.frg-postcard__meta { display: flex; align-items: center; gap: 12px; font-size: 0.74rem; color: var(--frg-muted); letter-spacing: 0.04em; }
.frg-postcard__author {
	display: grid; place-items: center;
	width: 24px; height: 24px; border-radius: 50%;
	background: linear-gradient(145deg, #3a3330, #17130f); border: 1px solid var(--frg-metal);
	color: var(--frg-gold); font-weight: 800; font-size: 0.64rem;
}

/* =========================================================
 * 11. FAQ – metal accordion
 * ========================================================= */
.frg-faq { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; }
.frg-faq__item {
	border: 2px solid var(--frg-metal); border-radius: var(--frg-radius);
	background: var(--frg-card); background-image: var(--frg-brushed);
	overflow: hidden;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.frg-faq__item.is-open { border-top-color: var(--frg-orange); box-shadow: 0 0 24px var(--frg-orange-soft); }
.frg-faq__q {
	width: 100%; text-align: left; cursor: pointer;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 22px;
	background: none; border: 0; color: var(--frg-text);
	font-family: inherit; font-size: 1rem; font-weight: 700; letter-spacing: 0.01em;
}
.frg-faq__q .frg-icon { color: var(--frg-orange); transition: transform 0.28s ease; flex: none; }
.frg-faq__item.is-open .frg-faq__q .frg-icon { transform: rotate(180deg); }
.frg-faq__a { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; }
.frg-faq__a > div { padding: 0 22px 20px; color: var(--frg-muted); border-top: 1px solid var(--frg-line); margin-top: 4px; padding-top: 16px; }


/* =========================================================
 * 12. CTA band (forge orange + sparks)
 * ========================================================= */
.frg-cta {
	position: relative;
	padding: 78px 0;
	text-align: center;
	background:
		radial-gradient(700px 300px at 50% 0%, rgba(251, 191, 36, 0.25), transparent 60%),
		linear-gradient(180deg, #7c2d12, var(--frg-orange) 55%, #9a3412);
	overflow: hidden;
	border-top: 2px solid #fb923c;
	border-bottom: 2px solid #7c2d12;
}
.frg-cta__inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.frg-cta h2 { color: #1a0d05; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25); margin-bottom: 12px; }
.frg-cta p { color: #2a1408; font-weight: 600; margin: 0 0 28px; }
.frg-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.frg-cta .frg-btn--solid { background: linear-gradient(180deg, #1c1917, #0c0a09); border-color: #44403c; color: var(--frg-gold); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4); }
.frg-cta .frg-btn--ghost { border-color: rgba(26, 13, 5, 0.5); color: #1a0d05; }
.frg-cta .frg-btn--ghost:hover { background: rgba(0, 0, 0, 0.12); color: #000; border-color: #1a0d05; box-shadow: none; }

/* =========================================================
 * 13. Footer – 4 riveted columns
 * ========================================================= */
.frg-footer { background: linear-gradient(180deg, #0c0a09, #050403); border-top: 2px solid var(--frg-metal); position: relative; }
.frg-footer::before { content: ""; position: absolute; inset: 0; background-image: var(--frg-brushed); opacity: 0.4; pointer-events: none; }
.frg-footer__top { position: relative; z-index: 1; padding: 64px 0 40px; }
.frg-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 20px; }
.frg-fcol { position: relative; padding: 22px 20px 24px; border: 2px solid var(--frg-metal); border-radius: var(--frg-radius); background: linear-gradient(180deg, #17130f, #0f0c0a); }
.frg-fcol--brand { background: linear-gradient(160deg, #1c1917, #0f0c0a); }
.frg-fcol h4 { font-size: 0.86rem; letter-spacing: 0.14em; color: var(--frg-gold); margin: 0 0 16px; }
.frg-fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.frg-fcol ul a { color: #a8a29e; font-size: 0.88rem; }
.frg-fcol ul a:hover { color: var(--frg-orange); padding-left: 4px; }
.frg-fcol__about { color: var(--frg-muted); font-size: 0.9rem; margin: 14px 0 0; }
.frg-fcol .frg-brand { margin-bottom: 4px; }

.frg-footer__risk { position: relative; z-index: 1; max-width: var(--frg-maxw); margin: 0 auto; padding: 0 24px 20px; color: #78716c; font-size: 0.8rem; line-height: 1.6; }
.frg-footer__bar { position: relative; z-index: 1; border-top: 1px solid var(--frg-line); }
.frg-footer__bar .frg-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 22px; flex-wrap: wrap; }
.frg-footer__legal { display: flex; flex-wrap: wrap; gap: 16px; }
.frg-footer__legal a { color: #a8a29e; font-size: 0.82rem; }
.frg-footer__legal a:hover { color: var(--frg-orange); }
.frg-footer__copy { color: #78716c; font-size: 0.82rem; }

/* =========================================================
 * 14. Breadcrumb
 * ========================================================= */
.frg-crumb-bar { background: linear-gradient(180deg, #17130f, #0c0a09); border-bottom: 1px solid var(--frg-line); }
.frg-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 0; font-size: 0.8rem; letter-spacing: 0.03em; }
.frg-crumb a { color: var(--frg-muted); }
.frg-crumb a:hover { color: var(--frg-gold); }
.frg-crumb__sep { color: var(--frg-orange); font-weight: 800; }
.frg-crumb__current { color: #d6d3d1; }

/* =========================================================
 * 15. Inner page head / banner
 * ========================================================= */
.frg-pagehead {
	position: relative;
	padding: 56px 0 48px;
	background:
		radial-gradient(700px 300px at 20% 0%, rgba(234, 88, 12, 0.14), transparent 60%),
		linear-gradient(180deg, #1c1917, #0c0a09);
	border-bottom: 2px solid var(--frg-metal);
	overflow: hidden;
}
.frg-pagehead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, transparent, var(--frg-orange), transparent); box-shadow: 0 0 12px rgba(234, 88, 12, 0.6); }
.frg-pagehead__inner { position: relative; z-index: 1; }
.frg-pagehead h1 { margin: 0 0 10px; }
.frg-pagehead p { color: var(--frg-muted); margin: 0; max-width: 680px; }

/* =========================================================
 * 16. Content layout: main + tool sidebar
 * ========================================================= */
.frg-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--frg-side-w); gap: 34px; align-items: start; }

.frg-panel { border: 2px solid var(--frg-metal); border-radius: var(--frg-radius); background: var(--frg-card); background-image: var(--frg-brushed); box-shadow: var(--frg-shadow-hard); padding: 34px 36px; }

/* Sidebar widgets */
.frg-side { display: grid; gap: 20px; }
.frg-side.is-sticky { position: sticky; top: calc(var(--frg-nav-h) + 20px); }
.frg-widget { border: 2px solid var(--frg-metal); border-radius: var(--frg-radius); background: linear-gradient(180deg, #211d1a, #14110f); background-image: var(--frg-brushed), linear-gradient(180deg, #211d1a, #14110f); padding: 20px 18px; }
.frg-widget__title { font-size: 0.82rem; letter-spacing: 0.14em; color: var(--frg-gold); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--frg-metal); }
.frg-widget__quick { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.frg-widget__quick a { display: flex; align-items: center; gap: 9px; color: #d6d3d1; font-size: 0.88rem; padding: 7px 10px; border: 1px solid var(--frg-line); border-radius: 3px; background: #17130f; }
.frg-widget__quick a:hover { border-color: var(--frg-orange); color: var(--frg-gold); transform: translateX(3px); }
.frg-widget__quick .frg-icon { width: 16px; height: 16px; color: var(--frg-orange); }
.frg-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.frg-tags a { font-size: 0.74rem; padding: 4px 10px; border: 1px solid var(--frg-metal); border-radius: 3px; color: var(--frg-muted); background: #17130f; }
.frg-tags a:hover { border-color: var(--frg-orange); color: var(--frg-gold); }
.frg-widget__posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.frg-widget__posts a { display: flex; gap: 10px; align-items: flex-start; color: #d6d3d1; font-size: 0.86rem; line-height: 1.4; }
.frg-widget__posts a:hover { color: var(--frg-gold); }
.frg-widget__posts .frg-num { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--frg-metal); border-radius: 3px; color: var(--frg-orange); font-weight: 800; font-size: 0.72rem; background: #17130f; }
.frg-widget__cta { display: grid; gap: 10px; }

/* =========================================================
 * 17. Single post / page entry
 * ========================================================= */
.frg-entry { color: #e7e5e4; }
.frg-entry h2 { margin-top: 1.6em; font-size: 1.5rem; }
.frg-entry h3 { margin-top: 1.4em; font-size: 1.2rem; text-transform: none; letter-spacing: 0; }
.frg-entry h4 { margin-top: 1.2em; font-size: 1.05rem; text-transform: none; letter-spacing: 0; }
.frg-entry a { color: var(--frg-gold); text-decoration: underline; text-underline-offset: 3px; }
.frg-entry img { border: 2px solid var(--frg-metal); border-radius: var(--frg-radius); }

.frg-posthead { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 2px solid var(--frg-line); }
.frg-posthead h1 { text-transform: none; letter-spacing: 0; margin: 0 0 16px; }
.frg-postmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; color: var(--frg-muted); }
.frg-postmeta__author { display: inline-flex; align-items: center; gap: 9px; }
.frg-postmeta .frg-postcard__author { width: 30px; height: 30px; font-size: 0.7rem; }
.frg-postmeta__dot { color: var(--frg-metal); }

.frg-postthumb { margin: 0 0 26px; border: 2px solid var(--frg-metal); border-radius: var(--frg-radius); overflow: hidden; }
.frg-postthumb img { width: 100%; }

.frg-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.frg-postnav a { display: block; padding: 16px 18px; border: 2px solid var(--frg-metal); border-radius: var(--frg-radius); background: #17130f; color: #d6d3d1; }
.frg-postnav a:hover { border-color: var(--frg-orange); color: var(--frg-gold); }
.frg-postnav__label { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--frg-orange); margin-bottom: 6px; }
.frg-postnav .frg-postnav__next { text-align: right; }

.frg-inpost-cta { margin: 30px 0; padding: 22px 24px; border: 2px solid var(--frg-orange); border-radius: var(--frg-radius); background: linear-gradient(120deg, var(--frg-orange-soft), transparent); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.frg-inpost-cta p { margin: 0; color: #e7e5e4; font-weight: 600; }

/* =========================================================
 * 18. Pagination
 * ========================================================= */
.frg-pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0 0; flex-wrap: wrap; }
.frg-pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 2px solid var(--frg-metal); border-radius: var(--frg-radius); background: #17130f; color: #d6d3d1; font-weight: 700; }
.frg-pagination .page-numbers:hover { border-color: var(--frg-orange); color: var(--frg-gold); }
.frg-pagination .page-numbers.current { background: linear-gradient(180deg, #f97316, var(--frg-orange)); border-color: #fb923c; color: #1a0d05; }

/* =========================================================
 * 19. Search form
 * ========================================================= */
.frg-searchform { display: flex; gap: 10px; }
.frg-searchform .search-field,
.frg-searchform input[type="search"] {
	flex: 1; padding: 12px 14px;
	border: 2px solid var(--frg-metal); border-radius: var(--frg-radius);
	background: #17130f; color: var(--frg-text); font-family: inherit; font-size: 0.92rem;
}
.frg-searchform .search-field:focus,
.frg-searchform input[type="search"]:focus { outline: none; border-color: var(--frg-orange); box-shadow: 0 0 0 3px var(--frg-orange-soft); }

/* =========================================================
 * 20. 404
 * ========================================================= */
.frg-404 { text-align: center; padding: 30px 0 50px; }
.frg-404__code { font-size: clamp(4rem, 16vw, 9rem); font-weight: 800; line-height: 1; color: var(--frg-metal); letter-spacing: 0.04em; }
.frg-404__code span { color: var(--frg-orange); text-shadow: 0 0 30px rgba(234, 88, 12, 0.5); }
.frg-404 h1 { margin: 10px 0 12px; }
.frg-404 p { color: var(--frg-muted); max-width: 520px; margin: 0 auto 28px; }

/* =========================================================
 * 21. Comments
 * ========================================================= */
.frg-comments { margin-top: 40px; }
.frg-comments__title { font-size: 1.2rem; margin-bottom: 20px; }
.frg-comments .comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.frg-comments .comment-body { padding: 18px 20px; border: 2px solid var(--frg-metal); border-radius: var(--frg-radius); background: #17130f; }
.frg-comments .children { list-style: none; margin: 14px 0 0; padding-left: 22px; border-left: 2px solid var(--frg-line); }
.frg-comments .comment-author-name { color: var(--frg-gold); font-weight: 700; }
.frg-comments .comment-metadata a { color: var(--frg-muted); font-size: 0.78rem; }
.frg-comment-form input[type="text"],
.frg-comment-form input[type="email"],
.frg-comment-form input[type="url"],
.frg-comment-form textarea {
	width: 100%; padding: 11px 13px; margin-bottom: 12px;
	border: 2px solid var(--frg-metal); border-radius: var(--frg-radius);
	background: #17130f; color: var(--frg-text); font-family: inherit;
}
.frg-comment-form textarea { min-height: 130px; resize: vertical; }
.frg-comment-form .form-submit { margin: 0; }

/* =========================================================
 * 22. Misc / helpers
 * ========================================================= */
.frg-empty { padding: 40px; text-align: center; color: var(--frg-muted); border: 2px dashed var(--frg-metal); border-radius: var(--frg-radius); }
.frg-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alignleft { float: left; margin: 6px 20px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 20px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* =========================================================
 * 23. Responsive (kept last so it always wins)
 * ========================================================= */
@media (max-width: 1080px) {
	.frg-hero__inner { grid-template-columns: 1fr; gap: 34px; }
	.frg-hero__panel { max-width: 560px; }
	.frg-layout { grid-template-columns: minmax(0, 1fr); }
	.frg-side { grid-template-columns: repeat(2, 1fr); }
	.frg-side.is-sticky { position: static; }
	.frg-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.frg-fcol--brand { grid-column: span 2; }
}

@media (max-width: 900px) {
	.frg-nav { display: none; }
	.frg-burger { display: flex; }
	.frg-topbar__search,
	.frg-topbar__actions .frg-langswitch { display: none; }
	.frg-features { grid-template-columns: 1fr; }
	.frg-heatbar__grid { grid-template-columns: 1fr; gap: 14px; }
	.frg-products { grid-template-columns: 1fr; }
	.frg-posts { grid-template-columns: 1fr; }
	.frg-anvil,
	.frg-hero { clip-path: none; }
}

@media (max-width: 720px) {
	.frg-section { padding: 58px 0; }
	.frg-container { padding: 0 18px; }
	.frg-panel { padding: 24px 20px; }
	.frg-side { grid-template-columns: 1fr; }
	.frg-footer__grid { grid-template-columns: 1fr; }
	.frg-fcol--brand { grid-column: auto; }
	.frg-postcard { grid-template-columns: 1fr; }
	.frg-postcard__thumb { min-height: 180px; aspect-ratio: 16 / 9; }
	.frg-postnav { grid-template-columns: 1fr; }
	.frg-brand__name { font-size: 1.05rem; letter-spacing: 0.1em; }
	.frg-hero { padding: 60px 0 70px; }
	.frg-cta { padding: 56px 0; }
}

@media (max-width: 460px) {
	.frg-hero__cta { flex-direction: column; }
	.frg-hero__cta .frg-btn { width: 100%; }
	.frg-footer__bar .frg-container { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
	.frg-spark { display: none; }
}

/* QODER page banner strip */
.frg-page-banner{width:100%;margin:0 0 24px;overflow:hidden;border-radius:12px;}
.frg-page-banner img{display:block;width:100%;height:clamp(180px,30vw,360px);object-fit:cover;}
