/*
Theme Name:        Nexa Casino
Theme URI:         https://example.com/nexa-casino/
Author:            Nexa Themes
Author URI:        https://example.com/
Description:       A clean, fast editorial theme for casino and betting review sites. Dark top bar, centered logo, topic sub-bar, long-form article typography, comparison tables, author box, FAQ and a ready-to-use casino toplist (shortcode + block patterns).
Version:           1.0.1
Requires at least: 6.0
Tested up to:      6.8
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       nexa-casino
Tags:              blog, news, one-column, custom-logo, custom-menu, featured-images, block-patterns, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	--nx-red: #e40916;
	--nx-red-dark: #ba000b;
	--nx-ink: #1d1d1b;
	--nx-grey: #6c6c6c;
	--nx-line: #f0f0f0;
	--nx-white: #ffffff;
	--nx-green: #28a745;
	--nx-green-dark: #1c8835;
	--nx-star: #ffcb00;
	--nx-soft: #f8f8f8;
	--nx-radius: 15px;
	--nx-wrap: 1240px;
	--nx-gutter: 20px;
	--nx-font-body: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
	--nx-font-head: "Epunda Slab", Georgia, "Times New Roman", serif;
	--nx-font-ui: "Montserrat", "Plus Jakarta Sans", Arial, sans-serif;
	scrollbar-color: var(--nx-red) var(--nx-white);
}

/* ==========================================================================
   2. Base / reset
   ========================================================================== */

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

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

body {
	margin: 0;
	font-family: var(--nx-font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--nx-ink);
	background: var(--nx-white);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--nx-ink);
	transition: color .2s ease, background-color .2s ease;
}

a:hover,
a:focus {
	color: var(--nx-red);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 20px;
	font-family: var(--nx-font-head);
	font-weight: 700;
	color: var(--nx-ink);
	text-wrap: balance;
}

h1 { font-size: 42px; line-height: 1.2; }
h2 { font-size: 35px; line-height: 1.2; }
h3 { font-size: 29px; line-height: 1.2; }
h4 { font-size: 24px; line-height: 1.6; }
h5 { font-size: 20px; line-height: 1.6; }
h6 { font-size: 18px; line-height: 1.6; }

p {
	margin: 0 0 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
	padding: 0;
}

li::marker {
	color: var(--nx-red);
}

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

input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--nx-red);
}

/* WordPress core accessibility helper (output by WP itself). */
.screen-reader-text,
.nx-sr-only {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.nx-sr-only:focus {
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto;
	width: auto;
	left: 8px;
	top: 8px;
	z-index: 100000;
	padding: 12px 20px;
	background: var(--nx-white);
	color: var(--nx-ink);
	font-size: 14px;
	font-weight: 700;
	border-radius: 6px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}

.nx-wrap {
	width: 100%;
	max-width: var(--nx-wrap);
	margin-inline: auto;
	padding-inline: var(--nx-gutter);
}

.nx-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	fill: currentColor;
	vertical-align: -.125em;
}

/* ==========================================================================
   3. Top bar
   ========================================================================== */

.nx-topbar {
	background: var(--nx-ink);
	color: var(--nx-white);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
}

.nx-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 46px;
	padding-block: 5px;
}

.nx-topbar__tagline {
	margin: 0;
}

.nx-social {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nx-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: var(--nx-white);
	border-radius: 6px;
	text-decoration: none;
}

.nx-social__link:hover,
.nx-social__link:focus {
	color: var(--nx-white);
	background: rgba(255, 255, 255, .12);
}

.nx-social__link .nx-icon {
	width: 18px;
	height: 18px;
}

.nx-social--boxed .nx-social__link {
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 6px;
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.nx-header {
	position: relative;
	z-index: 50;
	background: var(--nx-white);
}

.nx-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 76px;
	padding-block: 20px;
}

.nx-header__brand {
	grid-column: 2;
	text-align: center;
}

.nx-header__brand img {
	max-height: 40px;
	width: auto;
}

.nx-brand-text {
	font-family: var(--nx-font-ui);
	font-size: 28px;
	font-style: italic;
	font-weight: 800;
	letter-spacing: -.5px;
	line-height: 1;
	color: var(--nx-red);
	text-decoration: none;
	text-transform: uppercase;
}

.nx-brand-text:hover,
.nx-brand-text:focus {
	color: var(--nx-red-dark);
}

.nx-header__left {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}

.nx-header__right {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
}

.nx-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: var(--nx-radius);
	background: transparent;
	color: var(--nx-ink);
	font-size: 17px;
	font-weight: 500;
	cursor: pointer;
}

.nx-iconbtn:hover,
.nx-iconbtn:focus-visible {
	background: var(--nx-line);
}

.nx-iconbtn .nx-icon {
	width: 20px;
	height: 20px;
}

.nx-iconbtn__close {
	display: none;
}

.nx-menu-open .nx-iconbtn__bars {
	display: none;
}

.nx-menu-open .nx-iconbtn__close {
	display: inline-block;
}

/* Primary navigation (drop-down panel, toggled by the burger on all screens like the source design). */
.nx-nav {
	display: none;
	border-top: 1px solid var(--nx-line);
	background: var(--nx-white);
	box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
}

.nx-menu-open .nx-nav {
	display: block;
}

.nx-nav__list,
.nx-nav__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nx-nav__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 0 32px;
	padding-block: 16px 24px;
}

.nx-nav__list a {
	display: block;
	padding: 10px 0;
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid var(--nx-line);
}

.nx-nav__list ul a {
	padding-left: 16px;
	font-weight: 400;
	font-size: 15px;
}

.nx-nav__list .current-menu-item > a,
.nx-nav__list .current-menu-ancestor > a {
	color: var(--nx-red);
}

/* ==========================================================================
   5. Topic sub-bar
   ========================================================================== */

.nx-subbar {
	position: relative;
	z-index: 40;
	background: var(--nx-white);
	box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, .1);
	font-size: 16px;
}

.nx-subbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 64px;
	padding: 10px var(--nx-gutter);
}

.nx-subbar__group {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
}

.nx-subbar__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 10px 0 0;
	padding-right: 20px;
	border-right: 1px solid var(--nx-line);
	font-size: 17px;
	font-weight: 600;
	color: var(--nx-red-dark);
	text-transform: uppercase;
}

.nx-subbar__label .nx-icon {
	width: 18px;
	height: 18px;
}

.nx-subbar__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
}

.nx-subbar__list a {
	text-decoration: none;
}

/* ==========================================================================
   6. Layout
   ========================================================================== */

.nx-site {
	padding-block: 20px 0;
}

.nx-main {
	min-height: 40vh;
}

.nx-entry {
	margin-bottom: 40px;
}

.nx-entry__title {
	font-size: 42px;
	line-height: 1.2;
	margin-bottom: 0;
}

.nx-entry__thumb {
	margin: 0 0 24px;
}

.nx-entry__thumb img {
	width: 100%;
	border: 1px solid var(--nx-line);
	border-radius: var(--nx-radius);
}

/* Advertiser disclosure pill + tooltip */
.nx-disclosure {
	position: relative;
	display: flex;
	justify-content: flex-end;
}

.nx-disclosure__box {
	position: absolute;
	top: 21px;
	right: 0;
	z-index: 5;
	width: 250px;
}

.nx-disclosure__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 250px;
	height: 40px;
	padding: 0 12px;
	border: 2px solid var(--nx-line);
	border-radius: 20px;
	background: var(--nx-white);
	font-size: 12px;
	font-weight: 700;
	cursor: help;
	user-select: none;
}

.nx-disclosure__text {
	display: none;
	position: absolute;
	top: 50px;
	padding: 12px;
	border-radius: 12px;
	background: rgba(0, 0, 0, .9);
	color: var(--nx-white);
	font-size: 12px;
	line-height: 1.5;
}

.nx-disclosure__text::before {
	content: "";
	position: absolute;
	top: -10px;
	left: 0;
	width: 100%;
	height: 10px;
}

.nx-disclosure__text::after {
	content: "";
	position: absolute;
	top: -20px;
	left: 50%;
	width: 20px;
	height: 20px;
	border: 10px solid rgba(0, 0, 0, .9);
	border-color: transparent transparent rgba(0, 0, 0, .9);
	transform: translateX(-50%);
}

.nx-disclosure__box:hover .nx-disclosure__text,
.nx-disclosure__box:focus-within .nx-disclosure__text {
	display: block;
}

/* Byline */
.nx-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 20px 0;
	font-size: 15px;
	line-height: 1.6;
}

.nx-byline__avatar img,
.nx-byline__avatar {
	width: 50px;
	height: 50px;
	border-radius: 100%;
	object-fit: cover;
}

.nx-byline__author {
	margin-left: 10px;
	padding-right: 10px;
	font-weight: 700;
	text-decoration: none;
}

.nx-byline__date {
	display: inline-flex;
	gap: 7px;
	padding: 0 5px 0 10px;
}

.nx-byline__sep {
	opacity: .5;
	margin-inline: .15rem;
}

/* ==========================================================================
   7. Article content
   ========================================================================== */

.nx-entry__content {
	overflow-wrap: break-word;
}

.nx-entry__content > *:last-child {
	margin-bottom: 0;
}

.nx-entry__content a {
	color: var(--nx-ink);
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--nx-red-dark);
	text-underline-offset: .25em;
}

.nx-entry__content a:hover {
	color: var(--nx-red);
	text-decoration-color: var(--nx-ink);
}

.nx-entry__content p {
	margin-bottom: 27px;
}

.nx-entry__content h2,
.nx-entry__content h3,
.nx-entry__content h4,
.nx-entry__content h5 {
	margin-top: 0;
	scroll-margin-top: 20px;
}

.nx-entry__content ul,
.nx-entry__content ol {
	margin: 0 0 27px 54px;
}

.nx-entry__content li {
	margin-bottom: 0;
}

.nx-entry__content li > ul,
.nx-entry__content li > ol {
	margin-bottom: 0;
}

.nx-entry__content figure {
	margin: 0 0 24px;
}

.nx-entry__content figure img {
	border-radius: 6px;
}

.nx-entry__content figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--nx-grey);
	text-align: center;
}

.nx-entry__content blockquote {
	margin: 0 0 27px;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--nx-red);
	font-style: italic;
}

.nx-entry__content blockquote cite {
	display: block;
	margin-top: 16px;
	font-size: 16px;
	font-style: normal;
	color: var(--nx-grey);
}

/* Tables: thin dark grid, bold first row (as in the source comparison tables). */
.nx-entry__content table {
	width: 100%;
	margin: 0 0 27px;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 18px;
}

.nx-entry__content figure > table {
	margin-bottom: 0;
}

.nx-entry__content th,
.nx-entry__content td {
	padding: 9px;
	border: 1px solid var(--nx-ink);
	text-align: left;
	vertical-align: middle;
	overflow-wrap: anywhere;
}

.nx-entry__content th,
.nx-entry__content thead td {
	font-weight: 700;
}

.nx-table-scroll {
	overflow-x: auto;
	margin-bottom: 27px;
}

.nx-table-scroll table {
	min-width: 640px;
	margin-bottom: 0;
}

/* WordPress core alignment classes (output by the block editor). */
.alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.aligncenter {
	display: block;
	margin-inline: auto;
	text-align: center;
}

.alignwide,
.alignfull {
	width: 100%;
}

/* Pros / cons box (pattern) */
.nx-proscons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 27px;
}

.nx-proscons__col {
	padding: 20px 24px;
	border-radius: var(--nx-radius);
	background: var(--nx-soft);
}

.nx-proscons__col > *:last-child {
	margin-bottom: 0;
}

.nx-proscons__col ul {
	margin-left: 22px;
	margin-bottom: 0;
}

.nx-proscons__col--pros li::marker {
	color: var(--nx-green);
}

/* ==========================================================================
   8. FAQ (accordion, works with <details> and with the theme JS)
   ========================================================================== */

.nx-faq {
	margin: 0 0 27px;
}

.nx-faq details {
	margin: 0 0 12px;
	border: 1px solid var(--nx-line);
	border-radius: 12px;
	background: var(--nx-white);
}

.nx-faq summary {
	position: relative;
	padding: 16px 52px 16px 20px;
	font-weight: 700;
	line-height: 1.6;
	cursor: pointer;
	list-style: none;
}

.nx-faq summary::-webkit-details-marker {
	display: none;
}

.nx-faq summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 20px;
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
	color: var(--nx-red);
	transform: translateY(-50%);
}

.nx-faq details[open] summary::after {
	content: "\2212";
}

.nx-faq details > *:not(summary) {
	margin: 0;
	padding: 0 20px 16px;
}

/* ==========================================================================
   9. Casino toplist
   ========================================================================== */

.nx-toplist {
	margin-bottom: 30px;
	font-family: var(--nx-font-ui);
}

.nx-toplist__list {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: nx-toplist-rank;
}

.nx-entry__content .nx-toplist__list {
	margin: 0;
}

.nx-toplist__item {
	counter-increment: nx-toplist-rank;
}

.nx-toplist__item::marker {
	content: none;
}

.nx-card {
	position: relative;
	display: grid;
	gap: 20px 30px;
	grid-template-areas:
		"head head head"
		"logo offer cta";
	grid-template-columns: 280px 1fr 300px;
	padding: 15px 0;
	border: 1px solid #efe5e5;
	border-radius: var(--nx-radius);
	background: var(--nx-white);
	box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .15);
	transition: box-shadow .3s ease;
}

.nx-card:hover {
	box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .2);
}

.nx-card__head {
	grid-area: head;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px 10px;
	border-bottom: 1px solid #bdbdbd;
}

.nx-card__name {
	margin: 0;
	font-family: var(--nx-font-ui);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #000;
}

.nx-card__name::before {
	content: counter(nx-toplist-rank) ".";
	margin-right: 9px;
	padding-left: 5px;
	font-weight: 500;
}

.nx-card__badge {
	position: absolute;
	top: -14px;
	left: 20px;
	padding: 4px 10px;
	border-radius: 4px;
	background: var(--nx-red);
	color: var(--nx-white);
	font-size: 13px;
	font-weight: 800;
	line-height: 18px;
	text-transform: uppercase;
}

.nx-rating {
	display: flex;
	align-items: center;
	color: #000;
}

.nx-rating::before {
	content: "\2605";
	display: inline-block;
	width: 22px;
	margin-right: 2px;
	font-size: 22px;
	line-height: 1;
	color: var(--nx-star);
}

.nx-rating__score {
	font-size: 18px;
	font-weight: 600;
}

.nx-rating__max {
	margin-left: 4px;
	font-size: 14px;
	font-weight: 400;
}

.nx-card__logo {
	grid-area: logo;
	position: relative;
	display: block;
	width: 240px;
	height: 120px;
	margin-left: 20px;
	border-radius: 6px;
	background: var(--nx-ink);
	overflow: hidden;
}

.nx-entry__content .nx-card__logo {
	text-decoration: none;
}

.nx-card__logo img {
	display: block;
	width: 100%;
	height: 100%;
	padding: 6px;
	border-radius: inherit;
	object-fit: contain;
}

.nx-card__offer {
	grid-area: offer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px;
	border-radius: 6px;
	background: var(--nx-soft);
	text-align: center;
	color: #000;
}

.nx-card__value {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.nx-card__label {
	font-size: 16px;
	font-weight: 400;
}

.nx-card__cta {
	grid-area: cta;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-right: 20px;
}

.nx-btn,
.nx-entry__content .nx-btn {
	display: inline-block;
	width: 100%;
	min-width: 160px;
	padding: 20px 15px;
	border: 0;
	border-radius: 6px;
	background: var(--nx-green);
	color: var(--nx-white);
	font-family: var(--nx-font-ui);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.nx-btn:hover,
.nx-btn:focus,
.nx-entry__content .nx-btn:hover {
	background: var(--nx-green-dark);
	color: var(--nx-white);
	text-decoration: none;
}

.nx-btn--small {
	width: auto;
	padding: 12px 22px;
	font-size: 16px;
}

.nx-card__terms {
	font-size: 11px;
	line-height: 1.4;
	color: var(--nx-grey);
	text-align: center;
}

/* ==========================================================================
   10. Author box
   ========================================================================== */

.nx-authorbox {
	display: grid;
	grid-template-columns: 1fr 3fr;
	gap: 15px;
	margin: 20px 0 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.6;
}

.nx-authorbox__media {
	display: flex;
	justify-content: center;
}

.nx-authorbox__media img {
	width: 200px;
	height: 200px;
	border-radius: 100%;
	object-fit: cover;
}

.nx-authorbox__title {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin: 0 0 20px;
	font-size: 35px;
	line-height: 1.2;
}

.nx-authorbox__name {
	color: var(--nx-red);
	text-decoration: none;
}

.nx-authorbox__role {
	color: var(--nx-ink);
}

.nx-authorbox__bio > *:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   11. Cards grid (archive, search, front page)
   ========================================================================== */

.nx-archive__head {
	margin: 0 0 30px;
}

.nx-archive__desc {
	color: var(--nx-grey);
}

.nx-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin-bottom: 40px;
}

.nx-post {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--nx-line);
	border-radius: var(--nx-radius);
	overflow: hidden;
	background: var(--nx-white);
	transition: box-shadow .2s ease, transform .2s ease;
}

.nx-post:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
	transform: translateY(-2px);
}

.nx-post__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--nx-line);
	overflow: hidden;
}

.nx-post__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nx-post__cat {
	position: absolute;
	left: 0;
	bottom: -1px;
	padding: 4px 12px;
	background: var(--nx-red);
	color: var(--nx-white);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	border-top-right-radius: 8px;
}

.nx-post__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px 22px;
}

.nx-post__title {
	margin: 0;
	font-size: 21px;
	line-height: 1.3;
}

.nx-post__title a {
	text-decoration: none;
}

.nx-post__excerpt {
	margin: 0;
	font-size: 15px;
	color: #444;
}

.nx-post__meta {
	margin-top: auto;
	font-size: 13px;
	color: var(--nx-grey);
}

.nx-pagination {
	margin: 0 0 40px;
}

.nx-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.nx-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 2px solid var(--nx-line);
	border-radius: 22px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.nx-pagination .page-numbers.current,
.nx-pagination .page-numbers:hover {
	border-color: var(--nx-red);
	background: var(--nx-red);
	color: var(--nx-white);
}

.nx-postnav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin: 40px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--nx-line);
	font-size: 15px;
	font-weight: 600;
}

.nx-postnav a {
	text-decoration: none;
}

.nx-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}

.nx-tags a {
	display: inline-block;
	padding: 4px 14px;
	border: 2px solid var(--nx-line);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

/* Full-width page template: blocks keep the reading width unless set to "Full width". */
.nx-site:has(.nx-main--full) {
	padding-top: 0;
}

.nx-entry__content--full > *:not(.alignfull):not(.alignwide) {
	max-width: var(--nx-wrap);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--nx-gutter);
	padding-right: var(--nx-gutter);
}

.nx-entry__content--full > .alignwide {
	max-width: calc(var(--nx-wrap) + 200px);
	margin-left: auto;
	margin-right: auto;
}

.nx-entry__content--full > .alignfull {
	max-width: none;
}

/* ==========================================================================
   12. Front page hero
   ========================================================================== */

.nx-hero {
	margin: 0 0 40px;
	padding: 48px 40px;
	border-radius: var(--nx-radius);
	background: linear-gradient(120deg, var(--nx-ink) 0%, #3a0a0d 100%);
	color: var(--nx-white);
}

.nx-hero__title {
	max-width: 820px;
	margin-bottom: 14px;
	color: var(--nx-white);
}

.nx-hero__text {
	max-width: 720px;
	margin: 0;
	font-size: 18px;
	opacity: .9;
}

.nx-section-title {
	margin: 0 0 24px;
	font-size: 35px;
}

/* ==========================================================================
   13. Search form & modal
   ========================================================================== */

.nx-searchform {
	display: flex;
	gap: 8px;
	max-width: 640px;
	margin: 0 0 30px;
}

.nx-searchform__input {
	flex: 1;
	min-width: 0;
	height: 52px;
	padding: 0 18px;
	border: 2px solid var(--nx-line);
	border-radius: 26px;
	background: var(--nx-white);
}

.nx-searchform__input:focus {
	outline: none;
	border-color: var(--nx-ink);
}

.nx-searchform__submit {
	height: 52px;
	padding: 0 24px;
	border: 0;
	border-radius: 26px;
	background: var(--nx-red);
	color: var(--nx-white);
	font-weight: 700;
	cursor: pointer;
}

.nx-searchform__submit:hover {
	background: var(--nx-red-dark);
}

.nx-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh 20px 20px;
	background: rgba(0, 0, 0, .7);
}

.nx-modal.nx-is-open {
	display: flex;
}

.nx-modal__box {
	width: 100%;
	max-width: 720px;
	padding: 24px;
	border-radius: var(--nx-radius);
	background: var(--nx-white);
}

.nx-modal__box .nx-searchform {
	max-width: none;
	margin: 0;
}

.nx-modal__close {
	display: block;
	margin: 0 0 12px auto;
}

/* ==========================================================================
   14. 404
   ========================================================================== */

.nx-404 {
	padding: 40px 0 60px;
	text-align: center;
}

.nx-404__code {
	margin: 0;
	font-family: var(--nx-font-head);
	font-size: 120px;
	font-weight: 800;
	line-height: 1;
	color: var(--nx-red);
}

.nx-404 .nx-searchform {
	margin-inline: auto;
}

/* ==========================================================================
   15. Comments
   ========================================================================== */

.nx-comments {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--nx-line);
	font-size: 16px;
}

.nx-comments__list {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.nx-comments__list ol {
	margin-left: 32px;
	list-style: none;
}

.nx-comments__list article {
	margin-bottom: 20px;
	padding: 16px 20px;
	border-radius: 12px;
	background: var(--nx-soft);
}

.nx-comments textarea,
.nx-comments input[type="text"],
.nx-comments input[type="email"],
.nx-comments input[type="url"] {
	width: 100%;
	padding: 10px 14px;
	border: 2px solid var(--nx-line);
	border-radius: 10px;
}

.nx-comments input[type="submit"] {
	padding: 12px 24px;
	border: 0;
	border-radius: 22px;
	background: var(--nx-red);
	color: var(--nx-white);
	font-weight: 700;
	cursor: pointer;
}

/* ==========================================================================
   16. Footer
   ========================================================================== */

.nx-footer {
	margin-top: 64px;
	padding: 60px 0 20px;
	background: var(--nx-ink);
	color: var(--nx-white);
}

.nx-footer a {
	color: #f0f0f0;
	text-decoration: none;
}

.nx-footer a:hover,
.nx-footer a:focus {
	color: var(--nx-white);
	text-decoration: underline;
}

.nx-footer__grid {
	display: grid;
	grid-template-columns: 1fr 2fr 1fr;
	gap: 32px;
}

.nx-footer__brand .nx-brand-text {
	color: var(--nx-white);
	font-size: 38px;
}

.nx-footer__brand img {
	max-height: 48px;
	width: auto;
}

.nx-footer__about {
	margin: 20px 0;
	font-size: 15px;
	color: #d6d6d6;
}

.nx-footer__title {
	margin: 0 0 20px;
	font-family: var(--nx-font-body);
	font-size: 26px;
	font-weight: 700;
	color: var(--nx-white);
}


.nx-footer__cats,
.nx-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	line-height: 1.6;
}

.nx-footer__cats {
	column-count: 2;
	column-gap: 16px;
	padding-left: 14px;
	list-style: disc;
}

.nx-footer__cats li::marker {
	color: var(--nx-red);
}

.nx-footer__cats ul {
	display: none;
}

.nx-footer__legal {
	margin: 40px 0 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, .25);
	text-align: center;
	font-size: 14px;
}

.nx-footer__legal-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 14px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.nx-footer__legal-list a {
	color: var(--nx-red);
}

.nx-footer__legal-list a:hover {
	color: #ff4d57;
}

.nx-footer__note {
	margin: 0 auto 12px;
	max-width: 900px;
	font-size: 13px;
	color: #bdbdbd;
}

.nx-footer__copy {
	margin: 0;
	font-size: 16px;
	color: #f0f0f0;
}

/* ==========================================================================
   17. Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	.nx-card {
		grid-template-columns: 260px 1fr 240px;
	}

	.nx-card__logo {
		width: 220px;
		height: 110px;
	}
}

@media (max-width: 991px) {
	.nx-card {
		gap: 0;
		grid-template-areas:
			"head"
			"logo"
			"offer"
			"cta";
		grid-template-columns: 1fr;
		padding: 33px 20px 15px;
	}

	.nx-card__head {
		flex-direction: column;
		justify-content: center;
		padding: 0 0 10px;
	}

	.nx-card__name {
		width: 100%;
		margin-bottom: 10px;
		font-size: 20px;
		text-align: center;
	}

	.nx-rating__score {
		font-size: 26px;
		font-weight: 700;
	}

	.nx-rating__max {
		font-size: 18px;
		font-weight: 600;
	}

	.nx-rating::before {
		width: 30px;
		font-size: 30px;
	}

	.nx-card__logo {
		width: 100%;
		height: 160px;
		margin: 20px 0;
	}

	.nx-card__offer {
		padding: 15px;
	}

	.nx-card__cta {
		margin: 15px 0 0;
	}

	.nx-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nx-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.nx-footer__grid > :first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 800px) {
	.nx-disclosure__box {
		position: relative;
		top: 15px;
	}
}

@media (max-width: 768px) {
	body {
		font-size: 17px;
	}

	h1,
	.nx-entry__title { font-size: 1.9rem; }
	h2 { font-size: 1.6rem; }
	h3 { font-size: 1.4rem; }
	h4 { font-size: 1.25rem; }
	h5 { font-size: 1.125rem; }

	.nx-topbar__tagline {
		font-size: 13px;
	}

	.nx-header__inner {
		min-height: 64px;
		padding-block: 10px;
	}

	.nx-brand-text {
		font-size: 24px;
	}

	/* Like the source: the topic bar only shows on mobile when the menu is open. */
	.nx-subbar {
		display: none;
	}

	.nx-menu-open .nx-subbar {
		display: block;
	}

	.nx-subbar__inner {
		justify-content: flex-start;
		gap: 12px;
	}

	.nx-entry__content ul,
	.nx-entry__content ol {
		margin-left: 28px;
	}

	.nx-entry__content table {
		font-size: 15px;
	}

	.nx-proscons {
		grid-template-columns: 1fr;
	}

	.nx-authorbox {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.nx-authorbox__media img {
		width: 140px;
		height: 140px;
	}

	.nx-authorbox__title {
		justify-content: center;
		font-size: 1.6rem;
	}

	.nx-hero {
		padding: 32px 22px;
	}

	.nx-section-title {
		font-size: 1.6rem;
	}
}

@media (max-width: 600px) {
	.nx-grid,
	.nx-footer__grid {
		grid-template-columns: 1fr;
	}

	.nx-footer__cats {
		column-count: 2;
	}

	.nx-404__code {
		font-size: 80px;
	}

	.nx-searchform {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
