/* RE Certificates: public certification pages. Matches the ReverseEngineer theme (dark, #00ff00, Inter). */
.resales {
	--rs-bg: #121212;
	--rs-card: #141414;
	--rs-card2: #181818;
	--rs-line: rgba(0, 255, 0, 0.16);
	--rs-line2: rgba(0, 255, 0, 0.32);
	--rs-green: #00ff00;
	--rs-text: #ffffff;
	--rs-soft: rgba(255, 255, 255, 0.78);
	--rs-mute: rgba(255, 255, 255, 0.6);
	--rs-err: #ff6b6b;
	--rs-radius: 18px;
	background: var(--rs-bg);
	color: var(--rs-text);
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.6;
	font-size: 16px;
	padding-bottom: 80px;
	overflow-wrap: anywhere;
}
.resales *, .resales *::before, .resales *::after { box-sizing: border-box; }
.resales [hidden] { display: none !important; }
.resales a { color: var(--rs-green); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 255, 0, 0.45); }
.resales a:hover { text-decoration-color: var(--rs-green); }
.resales a:focus-visible, .resales button:focus-visible, .resales summary:focus-visible, .resales [tabindex]:focus-visible {
	outline: 2px solid var(--rs-green); outline-offset: 3px; border-radius: 4px;
}
.resales h1, .resales h2, .resales h3 { color: var(--rs-text); font-family: inherit; text-transform: none; margin: 0 0 14px; line-height: 1.15; }
.resales h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 700; letter-spacing: -0.03em; }
.resales h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 650; letter-spacing: -0.02em; }
.resales h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.resales p { margin: 0 0 14px; color: var(--rs-soft); }
.resales ul, .resales ol { margin: 0; padding: 0; }
.resales img { max-width: 100%; height: auto; display: block; }
.resales-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; position: relative; }
.resales-narrow { max-width: 860px; }
.resales-kicker {
	display: block; margin-bottom: 10px; color: var(--rs-green); font-size: 0.72rem; font-weight: 600;
	letter-spacing: 0.1em; line-height: 1.35; text-transform: uppercase;
}
.resales-muted { color: var(--rs-mute) !important; }

/* Buttons */
.resales .resales-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
	padding: 12px 26px; border-radius: 6px; border: 2px solid var(--rs-green); background: var(--rs-green);
	color: #0b0b0b; font: inherit; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase;
	text-decoration: none; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.resales .resales-btn:hover { box-shadow: 0 0 22px rgba(0, 255, 0, 0.28); }
.resales .resales-btn--ghost { background: transparent; color: var(--rs-green); }
.resales .resales-btn--ghost:hover { background: rgba(0, 255, 0, 0.08); }
.resales .resales-btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hero */
.resales-hero {
	padding: calc(var(--header-height, 70px) + var(--resales-offset, 0px) + 34px) 0 54px;
	background:
		radial-gradient(900px 380px at 85% -10%, rgba(0, 255, 0, 0.09), transparent 70%),
		linear-gradient(180deg, #0d0d0d 0%, var(--rs-bg) 100%);
	border-bottom: 1px solid var(--rs-line);
}
.resales-hero--small { padding-bottom: 40px; }
.resales-lead { font-size: 1.15rem; max-width: 760px; color: var(--rs-soft); }
.resales-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.resales-hero__split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.resales-code { color: var(--rs-green); }
.resales-facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 40px !important; }
.resales-facts li { background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 14px; padding: 16px 18px; }
.resales-facts strong { display: block; color: var(--rs-text); font-size: 1.02rem; }
.resales-facts span { color: var(--rs-mute); font-size: 0.88rem; }

/* Breadcrumbs and sub navigation */
.resales-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.82rem; margin-bottom: 18px; color: var(--rs-mute); }
.resales-crumbs li + li::before { content: '/'; margin-right: 6px; color: rgba(255, 255, 255, 0.3); }
.resales-crumbs a { color: var(--rs-mute); text-decoration: none; }
.resales-crumbs a:hover { color: var(--rs-green); }
.resales-subnav { border-bottom: 1px solid var(--rs-line); background: #0f0f0f; position: relative; z-index: 5; }
.resales-subnav ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.resales-subnav ul::-webkit-scrollbar { display: none; }
.resales-subnav a { display: block; white-space: nowrap; padding: 14px 14px; color: var(--rs-soft); text-decoration: none; font-size: 0.9rem; font-weight: 500; border-bottom: 2px solid transparent; }
.resales-subnav a:hover { color: var(--rs-text); }
.resales-subnav a[aria-current="page"] { color: var(--rs-green); border-bottom-color: var(--rs-green); }

/* Sections */
.resales-section { padding: 64px 0 0; }
.resales-section__head { max-width: 760px; margin-bottom: 28px; }
.resales-track { padding: 64px 0 0; }
.resales-track__head { max-width: 760px; margin-bottom: 26px; }
.resales-note { margin-top: 20px; font-size: 0.95rem; color: var(--rs-mute); }
.resales-panel { background: var(--rs-card); border: 1px solid var(--rs-line2); border-radius: var(--rs-radius); padding: 30px !important; margin-top: 64px; }
.resales-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.resales-cols .resales-section { padding-top: 64px; }
.resales-cols .resales-panel { padding-top: 30px; }

/* Cards */
.resales-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.resales-card { min-width: 0; }
.resales .resales-card__link {
	display: flex; flex-direction: column; height: 100%; color: var(--rs-text); text-decoration: none;
	background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: var(--rs-radius); overflow: hidden;
	transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.resales .resales-card__link:hover { border-color: var(--rs-line2); background: var(--rs-card2); transform: translateY(-2px); }
.resales-card__img { display: block; background: #0a0a0a; border-bottom: 1px solid var(--rs-line); aspect-ratio: 720 / 509; overflow: hidden; }
.resales-card__img img { width: 100%; height: 100%; object-fit: cover; }
.resales-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 18px; }
.resales-card__code { color: var(--rs-green); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; }
.resales-card__name { display: block; font-size: 1.18rem; font-weight: 600; line-height: 1.25; margin: 6px 0 10px; letter-spacing: -0.01em; }
.resales-card__sum { color: var(--rs-soft); font-size: 0.93rem; margin-bottom: 14px; }
.resales-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.resales-card__meta span { font-size: 0.75rem; color: var(--rs-soft); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 3px 10px; }
.resales-card__foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 14px; }
.resales-card__more { color: var(--rs-green); font-size: 0.85rem; font-weight: 600; }
.resales-price { color: var(--rs-text); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; margin: 0; }
.resales-price small { font-size: 0.7rem; color: var(--rs-mute); font-weight: 500; letter-spacing: 0.06em; }
.resales-price--lg { font-size: 2.3rem; }

/* Bundles */
.resales-bundles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.resales-bundle { display: flex; flex-direction: column; background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: var(--rs-radius); padding: 24px 22px; }
.resales-bundle--all { border-color: var(--rs-green); box-shadow: inset 0 0 0 1px rgba(0, 255, 0, 0.2); }
.resales-bundle__certs { font-size: 0.85rem; color: var(--rs-mute); letter-spacing: 0.04em; }
.resales-bundle__save { font-size: 0.88rem; color: var(--rs-green) !important; margin-top: 4px; }
.resales-bundle__save s { color: var(--rs-mute); margin-right: 6px; }
.resales-bundle .resales-btn { margin-top: auto; min-height: 42px; padding: 10px 16px; font-size: 0.78rem; }
.resales-bundle h3 { min-height: 2.4em; }
.resales-bundle .resales-price { margin-top: 8px; }

/* Steps */
.resales-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.resales-steps li { background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: var(--rs-radius); padding: 22px; }
.resales-steps__n { display: block; color: var(--rs-green); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; margin-bottom: 10px; }
.resales-steps p { font-size: 0.93rem; margin: 0; }

/* Lists */
.resales-ticks { list-style: none; display: grid; gap: 10px; margin: 0 0 18px !important; }
.resales-ticks li { position: relative; padding-left: 28px; color: var(--rs-soft); }
.resales-ticks li::before {
	content: ''; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px;
	border-left: 2px solid var(--rs-green); border-bottom: 2px solid var(--rs-green); transform: rotate(-45deg);
}

/* Cert page */
.resales-pricebox { margin-top: 22px; }
.resales-pricebox__sub { font-size: 0.92rem; color: var(--rs-mute) !important; }
.resales-sample { margin: 0; }
.resales-sample a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--rs-line2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.resales-sample figcaption { margin-top: 12px; font-size: 0.82rem; color: var(--rs-mute); }
.resales-format { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 30px; }
.resales-format div { background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 14px; padding: 16px 18px; }
.resales-format dt { font-size: 0.75rem; color: var(--rs-mute); text-transform: uppercase; letter-spacing: 0.08em; }
.resales-format dd { margin: 4px 0 0; color: var(--rs-text); font-weight: 600; font-size: 1.05rem; }
.resales-banner {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 56px;
	background: linear-gradient(90deg, rgba(0, 255, 0, 0.08), rgba(0, 255, 0, 0.02)); border: 1px solid var(--rs-line2);
	border-radius: var(--rs-radius); padding: 22px 26px;
}
.resales-banner p { margin: 0; }
.resales-mini { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.resales .resales-mini a { display: block; height: 100%; padding: 16px 18px; background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 14px; color: var(--rs-soft); text-decoration: none; }
.resales .resales-mini a:hover { border-color: var(--rs-line2); }
.resales-mini strong { color: var(--rs-green); margin-right: 6px; }
.resales-mini span { display: block; color: var(--rs-text); font-weight: 600; margin-top: 4px; }

/* FAQ */
.resales-faq { display: grid; gap: 10px; }
.resales-faq__item { background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 14px; }
.resales-faq__item[open] { border-color: var(--rs-line2); }
.resales-faq__item summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; color: var(--rs-text); position: relative; }
.resales-faq__item summary::-webkit-details-marker { display: none; }
.resales-faq__item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--rs-green); font-size: 1.4rem; font-weight: 400; }
.resales-faq__item[open] summary::after { content: '\2212'; }
.resales-faq__a { padding: 0 20px 6px; }

/* Teams */
.resales-tiers { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px !important; }
.resales-tier { background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: var(--rs-radius); padding: 24px; }
.resales-tier--top { border-color: var(--rs-green); }
.resales-tier__pct { color: var(--rs-green) !important; font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 6px; }
.resales-tablewrap { overflow-x: auto; border: 1px solid var(--rs-line); border-radius: 14px; }
.resales-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.95rem; margin: 0; }
.resales-table caption { text-align: left; padding: 14px 16px; color: var(--rs-mute); font-size: 0.85rem; caption-side: top; }
.resales-table th, .resales-table td { padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.07); text-align: left; color: var(--rs-soft); background: transparent; }
.resales-table thead th { color: var(--rs-text); font-weight: 600; font-size: 0.85rem; background: var(--rs-card); }
.resales-table tbody th { font-weight: 500; }
.resales-table tbody th a { font-weight: 700; text-decoration: none; margin-right: 6px; }
.resales-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.resales-steps--plain li { padding: 22px; }

/* Apply and forms */
.resales-apply { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.resales-formwrap { background: var(--rs-card); border: 1px solid var(--rs-line2); border-radius: var(--rs-radius); padding: 30px; scroll-margin-top: calc(var(--header-height, 70px) + 20px); }
.resales-form { display: grid; gap: 18px; margin: 0; }
.resales-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.resales-field { min-width: 0; margin: 0; border: 0; padding: 0; }
.resales-field > label, .resales-field legend { display: block; font-weight: 600; font-size: 0.92rem; color: var(--rs-text); margin-bottom: 7px; padding: 0; }
.resales-req { color: var(--rs-green); }
.resales-opt { color: var(--rs-mute); font-weight: 400; font-size: 0.85rem; }
.resales .resales-field input[type="text"], .resales .resales-field input[type="email"], .resales .resales-field input[type="url"],
.resales .resales-field input[type="number"], .resales .resales-field select, .resales .resales-field textarea {
	width: 100%; min-height: 46px; padding: 11px 14px; background: #0c0c0c; color: var(--rs-text);
	border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; font: inherit; font-size: 1rem; line-height: 1.4; box-shadow: none; margin: 0;
}
.resales .resales-field textarea { resize: vertical; min-height: 104px; }
.resales .resales-field select { appearance: auto; }
.resales .resales-field select option, .resales .resales-field select optgroup { background: #0c0c0c; color: var(--rs-text); }
.resales .resales-field input:focus, .resales .resales-field select:focus, .resales .resales-field textarea:focus {
	outline: none; border-color: var(--rs-green); box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.18);
}
.resales .resales-field input::placeholder, .resales .resales-field textarea::placeholder { color: rgba(255, 255, 255, 0.38); }
.resales-help { font-size: 0.82rem; color: var(--rs-mute) !important; margin: 6px 0 0 !important; }
.resales-error { font-size: 0.85rem; color: var(--rs-err) !important; margin: 6px 0 0 !important; font-weight: 500; }
.resales-field.is-invalid input, .resales-field.is-invalid select, .resales-field.is-invalid textarea { border-color: var(--rs-err) !important; }
.resales-checks__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; }
.resales-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--rs-soft); cursor: pointer; line-height: 1.45; }
.resales-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--rs-green); }
.resales-consent .resales-check { font-size: 0.88rem; }
.resales-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.resales-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.resales-fine { margin: 0 !important; font-size: 0.85rem; color: var(--rs-mute) !important; flex: 1 1 220px; }
.resales-alert { border: 1px solid rgba(255, 107, 107, 0.5); background: rgba(255, 107, 107, 0.08); color: #ffd6d6; padding: 12px 14px; border-radius: 8px; font-size: 0.92rem; }
.resales-success { text-align: left; padding: 10px 0; }
.resales-success h3 { color: var(--rs-green); font-size: 1.4rem; }
.resales-success h3::before { content: ''; display: inline-block; width: 22px; height: 12px; border-left: 3px solid var(--rs-green); border-bottom: 3px solid var(--rs-green); transform: rotate(-45deg) translateY(-4px); margin-right: 14px; }
.resales-success:focus { outline: none; }

/* Policy */
.resales-policy { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 48px; align-items: start; }
.resales-toc { position: sticky; top: calc(var(--header-height, 70px) + 20px); background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 14px; padding: 18px 20px; }
.resales-toc h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--rs-mute); margin-bottom: 10px; }
.resales-toc ol { list-style: decimal; padding-left: 20px; display: grid; gap: 6px; font-size: 0.88rem; }
.resales-toc a { color: var(--rs-soft); text-decoration: none; }
.resales-toc a:hover { color: var(--rs-green); }
.resales-prose { max-width: 780px; }
.resales-prose section { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); scroll-margin-top: calc(var(--header-height, 70px) + 20px); }
.resales-prose h2 { font-size: 1.35rem; }
.resales-prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; color: var(--rs-soft); }
.resales-prose li::marker { color: var(--rs-green); }

/* Embed shortcode */
.resales--embed { padding-bottom: 0; background: transparent; }
.resales--embed .resales-track:first-child { padding-top: 0; }

/* Responsive */
@media (max-width: 1024px) {
	.resales-bundles, .resales-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.resales-format { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.resales-hero__split { grid-template-columns: 1fr; gap: 32px; }
	.resales-apply { grid-template-columns: 1fr; gap: 24px; }
	.resales-policy { grid-template-columns: 1fr; gap: 24px; }
	.resales-toc { position: static; }
}
@media (max-width: 900px) {
	.resales-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.resales-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.resales-cols { grid-template-columns: 1fr; gap: 0; }
	.resales-tiers, .resales-mini { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.resales { font-size: 15px; }
	.resales-hero { padding: calc(var(--header-height, 70px) + var(--resales-offset, 0px) + 22px) 0 36px; }
	.resales-lead { font-size: 1.04rem; }
	.resales-cards, .resales-bundles, .resales-steps, .resales-grid2, .resales-checks__grid { grid-template-columns: 1fr; }
	.resales-facts { gap: 8px; }
	.resales-facts li { padding: 12px 14px; }
	.resales-section, .resales-track { padding-top: 48px; }
	.resales-formwrap { padding: 20px 16px; }
	.resales-panel { padding: 22px !important; }
	.resales-banner { flex-direction: column; align-items: flex-start; }
	.resales-hero__cta .resales-btn { flex: 1 1 100%; }
	.resales-submit .resales-btn { width: 100%; }
	.resales-price--lg { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
	.resales *, .resales *::before, .resales *::after { transition: none !important; scroll-behavior: auto !important; }
}
