/*
Theme Name:        NeutronDB
Theme URI:         https://github.com/Tyaaa-aa/NeutronDB
Author:            NeutronDB
Description:       Dark, data-dense theme for NeutronDB — a community database of Linux alternatives to Windows apps, modeled on ProtonDB. Hand-coded, no page builders.
Version:           1.0.0
Requires at least: 6.0
Requires PHP:      7.4
License:           GPL-2.0-or-later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       neutrondb
*/

/* ---------------------------------- tokens ---------------------------------- */

:root {
	--bg: #0B0B0D;
	--surface: #151517;
	--surface-2: #1D1D21;
	--border: #26262B;
	--text: #E8E8E8;
	--muted: #9A9A9F;
	--accent: #E63946;
	--accent-bright: #FF4D5E;
	--accent-soft: rgba(230, 57, 70, 0.12);

	--tier-platinum: #B8C7D9;
	--tier-gold: #E8B93E;
	--tier-silver: #A6A6AD;
	--tier-bronze: #C77B4A;
	--tier-borked: #E63946;
	--tier-unrated: #55555C;

	--ok: #3FB68B;
	--warn: #E8B93E;
	--bad: #E63946;

	--radius: 10px;
	--radius-sm: 6px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
	--wrap: 1200px;
	--wrap-narrow: 760px;
}

/* ---------------------------------- base ---------------------------------- */

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--accent-bright);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1,
h2,
h3,
h4 {
	line-height: 1.25;
	margin: 0 0 0.5em;
	font-weight: 700;
}

code {
	font-family: var(--mono);
	font-size: 0.9em;
}

input,
select,
textarea,
button {
	font: inherit;
	color: inherit;
}

input[type="text"],
input[type="search"],
input[type="url"],
input[type="email"],
input[type="password"],
select,
textarea {
	width: 100%;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 9px 12px;
	color: var(--text);
	transition: border-color 0.15s;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

select {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239A9A9F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 34px;
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 20px;
}

.wrap--narrow {
	max-width: var(--wrap-narrow);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--accent);
	color: #fff;
	padding: 8px 16px;
	z-index: 100;
}

.skip-link:focus {
	left: 0;
}

.lucide {
	flex-shrink: 0;
}

/* ---------------------------------- buttons ---------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 18px;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	white-space: nowrap;
}

.btn:hover {
	text-decoration: none;
}

.btn--primary {
	background: var(--accent);
	color: #fff;
}

.btn--primary:hover {
	background: var(--accent-bright);
}

.btn--ghost {
	background: transparent;
	border-color: var(--border);
	color: var(--text);
}

.btn--ghost:hover {
	border-color: var(--muted);
}

.btn--sm {
	padding: 6px 12px;
	font-size: 13px;
}

.btn--lg {
	padding: 12px 26px;
	font-size: 15px;
}

.btn--block {
	width: 100%;
	justify-content: center;
}

.btn:disabled {
	opacity: 0.55;
	cursor: default;
}

/* ---------------------------------- header ---------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(11, 11, 13, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 62px;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.site-logo:hover {
	text-decoration: none;
}

.site-logo__accent {
	color: var(--accent);
}

.site-nav {
	display: flex;
	align-items: center;
}

.site-nav__toggle {
	display: none;
	background: none;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 7px 9px;
	color: var(--text);
	cursor: pointer;
}

.site-nav__menu {
	display: flex;
	align-items: center;
	gap: 22px;
}

.site-nav__list {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 20px;
}

.site-nav__list a {
	color: var(--muted);
	font-weight: 600;
	font-size: 14px;
}

.site-nav__list a:hover {
	color: var(--text);
	text-decoration: none;
}

.site-nav__account {
	display: flex;
	align-items: center;
	gap: 8px;
}

@media (max-width: 860px) {
	.site-nav__toggle {
		display: inline-flex;
	}

	.site-nav__menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		background: var(--surface);
		border-bottom: 1px solid var(--border);
		padding: 16px 20px;
		gap: 14px;
	}

	.site-nav__menu.is-open {
		display: flex;
	}

	.site-nav__list {
		flex-direction: column;
		gap: 12px;
	}

	.site-nav__account {
		border-top: 1px solid var(--border);
		padding-top: 14px;
	}
}

/* ---------------------------------- hero ---------------------------------- */

.hero {
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid var(--border);
	padding: 72px 0 64px;
	text-align: center;
}

.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.hero__inner {
	position: relative;
}

.hero__title {
	font-size: clamp(30px, 5vw, 46px);
	letter-spacing: -0.03em;
	margin-bottom: 14px;
}

.hero__accent {
	color: var(--accent-bright);
}

.hero__sub {
	color: var(--muted);
	max-width: 620px;
	margin: 0 auto 28px;
	font-size: 16px;
}

.hero__search {
	position: relative;
	display: flex;
	gap: 10px;
	max-width: 620px;
	margin: 0 auto 18px;
}

.hero__search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
	pointer-events: none;
}

.hero__search input {
	padding: 13px 16px 13px 44px;
	font-size: 15px;
	background: var(--surface);
}

.hero__quick {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 13px;
}

/* ---------------------------------- chips & badges ---------------------------------- */

.chip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--muted);
	border-radius: 999px;
	padding: 3px 11px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.5;
}

a.chip:hover {
	color: var(--text);
	border-color: var(--muted);
	text-decoration: none;
}

.chip--sm {
	padding: 2px 9px;
	font-size: 12px;
}

.chip--replaces {
	background: var(--accent-soft);
	border-color: rgba(230, 57, 70, 0.35);
	color: var(--accent-bright);
}

.chip--wayland-yes {
	color: var(--ok);
}

.chip--wayland-partial {
	color: var(--warn);
}

.chip--wayland-no {
	color: var(--bad);
}

.rating-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: var(--radius-sm);
	padding: 4px 10px;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: var(--surface-2);
	border: 1px solid var(--border);
	white-space: nowrap;
}

.rating-badge__score {
	font-size: 13px;
	letter-spacing: 0;
}

.rating-badge--lg {
	padding: 9px 16px;
	font-size: 15px;
}

.rating-badge--lg .rating-badge__score {
	font-size: 17px;
}

.rating-badge--platinum { color: var(--tier-platinum); border-color: var(--tier-platinum); background: rgba(184, 199, 217, 0.08); }
.rating-badge--gold     { color: var(--tier-gold); border-color: var(--tier-gold); background: rgba(232, 185, 62, 0.08); }
.rating-badge--silver   { color: var(--tier-silver); border-color: var(--tier-silver); background: rgba(166, 166, 173, 0.08); }
.rating-badge--bronze   { color: var(--tier-bronze); border-color: var(--tier-bronze); background: rgba(199, 123, 74, 0.08); }
.rating-badge--borked   { color: var(--tier-borked); border-color: var(--tier-borked); background: var(--accent-soft); }
.rating-badge--unrated  { color: var(--tier-unrated); }

.status-pill {
	display: inline-block;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 12px;
	font-weight: 700;
}

.status-pill--approved { background: rgba(63, 182, 139, 0.14); color: var(--ok); }
.status-pill--pending  { background: rgba(232, 185, 62, 0.14); color: var(--warn); }
.status-pill--rejected { background: var(--accent-soft); color: var(--bad); }

/* ---------------------------------- page head ---------------------------------- */

.page-head {
	border-bottom: 1px solid var(--border);
	background: linear-gradient(180deg, rgba(230, 57, 70, 0.05), transparent);
	padding: 40px 0 30px;
	margin-bottom: 28px;
}

.page-head__kicker {
	color: var(--accent-bright);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 12px;
	font-weight: 700;
	margin: 0 0 6px;
}

.page-head__title {
	font-size: clamp(24px, 4vw, 34px);
	letter-spacing: -0.02em;
	margin-bottom: 6px;
}

.page-head__sub {
	color: var(--muted);
	margin: 0;
	max-width: 760px;
}

.page-head--seo {
	padding: 52px 0 38px;
}

/* ---------------------------------- filters ---------------------------------- */

.filters {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	margin-bottom: 18px;
}

.filters__search {
	position: relative;
	margin-bottom: 12px;
}

.filters__search-icon {
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
	pointer-events: none;
}

.filters__search input {
	padding-left: 42px;
}

.filters__row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
}

.filters__control {
	flex: 1 1 150px;
	min-width: 140px;
}

.filters__label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	margin-bottom: 5px;
}

.filters__reset {
	flex: 0 0 auto;
}

.results-count {
	color: var(--muted);
	font-size: 13px;
	margin: 0 0 14px;
}

/* ---------------------------------- grid & cards ---------------------------------- */

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
	margin-bottom: 26px;
	transition: opacity 0.15s;
}

.grid.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.grid__empty {
	grid-column: 1 / -1;
	color: var(--muted);
	text-align: center;
	padding: 48px 0;
}

.grid-more {
	text-align: center;
	margin-bottom: 40px;
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
	border-color: rgba(230, 57, 70, 0.55);
	transform: translateY(-2px);
}

.card__link {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	color: inherit;
	height: 100%;
}

.card__link:hover {
	text-decoration: none;
}

.card__header {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.card__titles {
	flex: 1;
	min-width: 0;
}

.card__title {
	font-size: 17px;
	margin: 0;
}

.card__replaces {
	color: var(--muted);
	font-size: 13px;
	margin: 2px 0 0;
}

.card__replaces strong {
	color: var(--text);
}

.card__excerpt {
	color: var(--muted);
	font-size: 13.5px;
	margin: 0;
}

.card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: auto;
}

.card__reports {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--muted);
	font-size: 12.5px;
	margin-left: auto;
}

/* ---------------------------------- app logo ---------------------------------- */

.app-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--text);
	padding: 9px;
}

.app-logo__svg {
	width: 100%;
	height: 100%;
}

.app-logo--monogram {
	font-weight: 800;
	font-size: 20px;
	color: var(--accent-bright);
	background: var(--accent-soft);
	border-color: rgba(230, 57, 70, 0.35);
}

.app-logo--lg {
	width: 72px;
	height: 72px;
	padding: 15px;
	border-radius: var(--radius);
}

.app-logo--lg.app-logo--monogram {
	font-size: 34px;
}

/* ---------------------------------- homepage sections ---------------------------------- */

.home-section {
	padding: 34px 0;
}

.home-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.home-section__title {
	font-size: 22px;
	margin: 0;
}

.home-section__more {
	font-size: 14px;
	font-weight: 600;
}

.cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 12px;
}

.cat-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	color: var(--text);
	transition: border-color 0.15s;
}

.cat-card:hover {
	border-color: rgba(230, 57, 70, 0.55);
	text-decoration: none;
}

.cat-card__name {
	font-weight: 700;
}

.cat-card__count {
	color: var(--muted);
	font-size: 13px;
}

.cat-card__arrow {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--muted);
	transition: color 0.15s, transform 0.15s;
}

.cat-card:hover .cat-card__arrow {
	color: var(--accent-bright);
	transform: translate(3px, -50%);
}

.home-cta {
	border-top: 1px solid var(--border);
	margin-top: 20px;
}

.home-cta__inner {
	text-align: center;
	max-width: 640px;
}

.home-cta p {
	color: var(--muted);
	margin-bottom: 20px;
}

/* ---------------------------------- single listing ---------------------------------- */

.listing-hero {
	border-bottom: 1px solid var(--border);
	background: linear-gradient(180deg, rgba(230, 57, 70, 0.06), transparent);
	padding: 40px 0 32px;
	margin-bottom: 30px;
}

.listing-hero__inner {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	flex-wrap: wrap;
}

.listing-hero__titles {
	flex: 1;
	min-width: 240px;
}

.listing-hero__title {
	font-size: clamp(26px, 4vw, 36px);
	letter-spacing: -0.02em;
	margin-bottom: 4px;
}

.listing-hero__replaces {
	color: var(--muted);
	margin: 0 0 12px;
	font-size: 15px;
}

.listing-hero__replaces strong {
	color: var(--text);
}

.listing-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.listing-hero__badge {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.listing-hero__count {
	color: var(--muted);
	font-size: 12.5px;
}

.listing-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
	padding-bottom: 60px;
}

@media (max-width: 960px) {
	.listing-body {
		grid-template-columns: 1fr;
	}

	.listing-hero__badge {
		align-items: flex-start;
	}
}

.panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	margin-bottom: 20px;
}

.panel__title {
	font-size: 17px;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.panel__count {
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--muted);
	font-size: 12px;
	padding: 1px 9px;
}

.panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.panel__head .panel__title {
	margin-bottom: 0;
}

.panel--center {
	text-align: center;
	padding: 40px 28px;
}

.panel__icon {
	color: var(--accent-bright);
	margin-bottom: 10px;
}

.panel__actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.panel--cta p {
	color: var(--muted);
	font-size: 14px;
}

.prose {
	color: var(--text);
}

.prose p {
	margin: 0 0 1em;
}

.prose p:last-child {
	margin-bottom: 0;
}

/* data table */

.data-table {
	margin: 0;
	display: flex;
	flex-direction: column;
}

.data-table__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px solid var(--border);
}

.data-table__row:last-child {
	border-bottom: none;
}

.data-table__label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.data-table__label .lucide {
	color: var(--accent);
	opacity: 0.85;
}

.data-table__value {
	margin: 0;
	text-align: right;
	font-size: 14px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.oneliner {
	margin-top: 16px;
}

.oneliner__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	margin-bottom: 7px;
}

.oneliner__box {
	display: flex;
	align-items: stretch;
	background: #0e0e10;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	overflow: hidden;
}

.oneliner__code {
	flex: 1;
	padding: 10px 12px;
	font-size: 12.5px;
	overflow-x: auto;
	white-space: nowrap;
	color: #d7d7db;
}

.oneliner__copy {
	background: var(--surface-2);
	border: none;
	border-left: 1px solid var(--border);
	color: var(--muted);
	padding: 0 12px;
	cursor: pointer;
	transition: color 0.15s;
}

.oneliner__copy:hover {
	color: var(--text);
}

.oneliner__copy.is-copied {
	color: var(--ok);
}

/* rating breakdown bars */

.breakdown__row {
	display: grid;
	grid-template-columns: 160px 1fr 36px;
	align-items: center;
	gap: 12px;
	padding: 6px 0;
}

.breakdown__label {
	color: var(--muted);
	font-size: 13.5px;
}

.breakdown__bar {
	height: 8px;
	background: var(--surface-2);
	border-radius: 999px;
	overflow: hidden;
}

.breakdown__fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--accent), var(--accent-bright));
	border-radius: 999px;
}

.breakdown__value {
	text-align: right;
	font-weight: 700;
	font-size: 13.5px;
}

@media (max-width: 560px) {
	.breakdown__row {
		grid-template-columns: 110px 1fr 34px;
	}
}

/* ---------------------------------- reports ---------------------------------- */

.reports {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.reports__empty {
	color: var(--muted);
}

.report {
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
}

.report__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.report__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--muted);
	flex-shrink: 0;
}

.report__who {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.report__env {
	color: var(--muted);
	font-size: 12.5px;
}

.report__overall {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}

.report__date {
	color: var(--muted);
	font-size: 12px;
}

.stars {
	display: inline-flex;
	gap: 1px;
	color: var(--tier-unrated);
}

.stars__star--on {
	color: var(--tier-gold);
}

.stars__star--on .lucide {
	fill: currentColor;
}

.report__ratings {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	padding: 10px 12px;
	background: var(--surface);
	border-radius: var(--radius-sm);
	margin-bottom: 12px;
}

.report__rating {
	display: flex;
	align-items: baseline;
	gap: 7px;
	font-size: 12.5px;
}

.report__rating-label {
	color: var(--muted);
}

.report__rating-value {
	font-weight: 700;
}

.report__difficulty--drop-in,
.report__difficulty--easy {
	color: var(--ok);
}

.report__difficulty--moderate {
	color: var(--warn);
}

.report__difficulty--hard {
	color: var(--bad);
}

.report__text {
	margin: 0 0 8px;
}

.report__gotchas {
	margin: 0;
	color: var(--muted);
	font-size: 13.5px;
	border-left: 3px solid var(--warn);
	padding-left: 10px;
}

/* ---------------------------------- forms ---------------------------------- */

.form-field {
	margin-bottom: 18px;
	border: none;
	padding: 0;
}

.form-field label,
.form-field legend {
	display: block;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 7px;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (max-width: 560px) {
	.form-grid {
		grid-template-columns: 1fr;
	}
}

.req {
	color: var(--accent-bright);
}

.star-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 24px;
}

@media (max-width: 640px) {
	.star-inputs {
		grid-template-columns: 1fr;
	}
}

.star-input {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.star-input__label {
	font-size: 13px;
	color: var(--muted);
	font-weight: 600;
}

.star-input__stars {
	display: inline-flex;
	gap: 3px;
}

.star-input__star {
	cursor: pointer;
	color: var(--tier-unrated);
	transition: color 0.1s, transform 0.1s;
}

.star-input__star:hover {
	transform: scale(1.12);
}

.star-input__star.is-on {
	color: var(--tier-gold);
}

.star-input__star.is-on .lucide {
	fill: currentColor;
}

.star-input__star input:focus-visible + .lucide {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 3px;
}

.form-notice {
	border-radius: var(--radius-sm);
	padding: 12px 14px;
	margin-bottom: 16px;
	font-weight: 600;
	font-size: 14px;
}

.form-notice--error {
	background: var(--accent-soft);
	color: var(--accent-bright);
	border: 1px solid rgba(230, 57, 70, 0.4);
}

.form-notice--success {
	background: rgba(63, 182, 139, 0.12);
	color: var(--ok);
	border: 1px solid rgba(63, 182, 139, 0.4);
}

.form-footnote {
	color: var(--muted);
	font-size: 13px;
	margin: 12px 0 0;
}

/* ---------------------------------- profile ---------------------------------- */

.my-reports {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 10px;
}

.my-report {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 12px 16px;
}

.my-report__app {
	display: flex;
	align-items: center;
	gap: 12px;
}

.my-report__app .app-logo {
	width: 34px;
	height: 34px;
	padding: 7px;
}

.my-report__app a {
	color: var(--text);
}

.my-report__meta {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--muted);
	font-size: 13px;
}

/* ---------------------------------- misc ---------------------------------- */

.seo-outro {
	border-top: 1px solid var(--border);
	padding: 34px 0 60px;
	max-width: 640px;
}

.seo-outro p {
	color: var(--muted);
	margin-bottom: 18px;
}

.err-code {
	font-size: 64px;
	font-weight: 800;
	color: var(--accent);
	margin: 0;
	line-height: 1;
}

.pagination,
.nav-links {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 10px 0 50px;
	flex-wrap: wrap;
}

.nav-links .page-numbers {
	display: inline-flex;
	min-width: 36px;
	justify-content: center;
	padding: 7px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--muted);
	font-weight: 600;
	font-size: 14px;
}

.nav-links .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.nav-links a.page-numbers:hover {
	color: var(--text);
	border-color: var(--muted);
	text-decoration: none;
}

/* ---------------------------------- footer ---------------------------------- */

.site-footer {
	border-top: 1px solid var(--border);
	background: var(--surface);
	padding: 36px 0;
	margin-top: 40px;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-start;
	justify-content: space-between;
}

.site-footer__brand .site-logo__text {
	font-size: 17px;
	font-weight: 800;
}

.site-footer__tagline {
	color: var(--muted);
	font-size: 13px;
	max-width: 320px;
	margin: 6px 0 0;
}

.site-footer__nav {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
}

.site-footer__meta {
	color: var(--muted);
	font-size: 12.5px;
	margin: 0;
	flex-basis: 100%;
	border-top: 1px solid var(--border);
	padding-top: 18px;
}
