/*
Theme Name: A Gift Personalized
Theme URI: https://www.agiftpersonalized.com/
Author: A Gift Personalized
Description: Custom theme for the restored A Gift Personalized archive. Products as posts, collections as categories, clean templates for blog articles and the optimized Gambling Template.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: agp
*/

/* ================================================================ fonts */
@font-face {
	font-family: "ITC Stepp";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("../../../files/cdn/fonts/itc_stepp/itcstepp_n4.1377d53634affe9094599344f31c944b2415c775.woff") format("woff");
}
@font-face {
	font-family: "Harmonia Sans";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("../../../files/cdn/fonts/harmonia_sans/harmoniasans_n4.73cf0589f7839ec88463a09f5335a2885467ed0c.woff") format("woff");
}
@font-face {
	font-family: "Harmonia Sans";
	font-weight: 600;
	font-style: normal;
	font-display: swap;
	src: url("../../../files/cdn/fonts/harmonia_sans/harmoniasans_n6.dd3d6084d29e4754e80fe6aa1c0e37f511474ffa.woff") format("woff");
}

/* ================================================================ tokens */
:root {
	/* palette */
	--c-bg: #ffffff;
	--c-bg-soft: #f7f5f2;
	--c-text: #26292c;
	--c-text-soft: #5b6166;
	--c-heading: #17191b;
	--c-brand: #d95c35;        /* logo terracotta */
	--c-brand-dark: #b84a28;
	--c-accent: #2f7e7e;       /* teal */
	--c-accent-dark: #226262;
	--c-border: #e5e1db;
	--c-price: #226262;

	/* type */
	--font-heading: "ITC Stepp", Georgia, "Times New Roman", serif;
	--font-body: "Harmonia Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--fs-base: 1rem;           /* 16px */
	--lh-base: 1.65;

	/* spacing rhythm */
	--space-1: 0.5rem;
	--space-2: 1rem;
	--space-3: 1.5rem;
	--space-4: 2.5rem;
	--space-5: 4rem;

	--radius: 8px;
	--shadow-card: 0 1px 3px rgba(23, 25, 27, 0.08);
	--wrap: 1240px;
	--wrap-narrow: 820px;
}

/* ================================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh-base);
	color: var(--c-text);
	background: var(--c-bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--c-accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--c-accent-dark); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: 400;
	line-height: 1.25;
	color: var(--c-heading);
	margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.85rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p, ul, ol { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.4em; }

.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;
	clip: rect(1px, 1px, 1px, 1px);
	overflow: hidden;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	position: fixed; top: 8px; left: 8px; z-index: 1000;
	background: var(--c-heading); color: #fff; padding: 8px 14px; border-radius: 4px;
}

.button {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.03em;
	padding: 12px 26px;
	border-radius: 4px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}
.button--primary { background: var(--c-heading); color: #fff; }
.button--primary:hover { background: #000; color: #fff; }
.button--ghost { background: transparent; color: var(--c-heading); border-color: var(--c-heading); }
.button--ghost:hover { background: var(--c-heading); color: #fff; }

.section-title {
	text-align: center;
	margin: 0 0 var(--space-3);
}

/* ================================================================ header */
.site-header { border-bottom: 1px solid var(--c-border); background: #fff; }
.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding-top: 14px;
	padding-bottom: 14px;
}
.site-logo { flex: 0 0 auto; display: block; line-height: 0; }
.site-logo img { width: 180px; height: auto; }

.header-search {
	flex: 1 1 auto;
	max-width: 480px;
	display: flex;
	align-items: center;
	background: var(--c-bg-soft);
	border: 1px solid var(--c-border);
	border-radius: 24px;
	padding: 0 6px 0 18px;
}
.header-search input {
	flex: 1 1 auto;
	border: 0; background: transparent;
	font: inherit; color: var(--c-text);
	padding: 10px 0; outline: none; min-width: 0;
}
.header-search button {
	border: 0; background: transparent; color: var(--c-text-soft);
	padding: 8px 10px; cursor: pointer; line-height: 0;
}
.header-search button:hover { color: var(--c-heading); }

.nav-toggle {
	display: none;
	margin-left: auto;
	background: none; border: 0; cursor: pointer;
	padding: 10px;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; content: ""; width: 22px; height: 2px;
	background: var(--c-heading); position: relative; transition: transform 0.15s;
}
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }

.site-nav { border-top: 1px solid var(--c-border); position: relative; }
.site-nav__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center;
}
.site-nav__list > li { position: relative; }
.site-nav__list a {
	display: block;
	padding: 13px 16px;
	font-size: 0.82rem;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--c-heading);
}
.site-nav__list a:hover { color: var(--c-brand); }
.site-nav__list .sub-menu {
	list-style: none; margin: 0; padding: 8px 0;
	position: absolute; top: 100%; left: 0; z-index: 60;
	min-width: 230px;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 10px 24px rgba(23, 25, 27, 0.12);
	display: none;
}
.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu,
.site-nav__list li.is-open > .sub-menu { display: block; }
.site-nav__list .sub-menu a {
	padding: 9px 18px;
	text-transform: none;
	letter-spacing: 0.02em;
	font-weight: 400;
	font-size: 0.92rem;
}

/* megamenu: 2nd level = columns, 3rd level = links (items with class "mega") */
.site-nav__list > li.mega { position: static; }
.site-nav__list > li.mega > .sub-menu {
	left: 0; right: 0;
	padding: 26px 30px;
	border-radius: 0 0 var(--radius) var(--radius);
}
.site-nav__list > li.mega:hover > .sub-menu,
.site-nav__list > li.mega:focus-within > .sub-menu,
.site-nav__list > li.mega.is-open > .sub-menu {
	display: flex; flex-wrap: wrap; gap: 18px 36px;
}
.site-nav__list > li.mega > .sub-menu > li { min-width: 168px; flex: 0 0 auto; }
.site-nav__list > li.mega > .sub-menu > li > a {
	padding: 0 0 8px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-brand-dark);
}
.site-nav__list > li.mega .sub-menu .sub-menu {
	position: static;
	display: block;
	min-width: 0; padding: 0;
	border: 0; box-shadow: none;
}
.site-nav__list > li.mega .sub-menu .sub-menu a { padding: 5px 0; }

/* ================================================================ breadcrumbs */
.breadcrumbs {
	font-size: 0.85rem;
	color: var(--c-text-soft);
	padding: var(--space-2) 0;
}
.breadcrumbs a { color: var(--c-text-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-accent-dark); text-decoration: underline; }
.breadcrumbs__sep { margin: 0 8px; color: var(--c-border); }
.breadcrumbs__current { color: var(--c-heading); }

/* ================================================================ product grid */
.product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-3) var(--space-2);
	margin: 0 0 var(--space-3);
}
.product-card__link { display: block; text-decoration: none; color: inherit; }
.product-card__media {
	aspect-ratio: 1 / 1;
	background: var(--c-bg-soft);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 10px;
}
.product-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}
.product-card__link:hover .product-card__media img { transform: scale(1.04); }
.product-card__placeholder { font-size: 3rem; opacity: 0.4; }
.product-card__title {
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.4;
	margin: 0 0 4px;
	color: var(--c-text);
}
.product-card__link:hover .product-card__title { color: var(--c-accent-dark); }
.product-card__price {
	font-weight: 600;
	color: var(--c-price);
	margin: 0;
}
.product-card__price s { color: var(--c-text-soft); font-weight: 400; margin-right: 6px; }

/* ================================================================ product single */
.product-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: var(--space-4);
	margin-bottom: var(--space-5);
}
.product-gallery__main {
	background: var(--c-bg-soft);
	border-radius: var(--radius);
	overflow: hidden;
}
.product-gallery__main img { width: 100%; display: block; }
.product-gallery--empty {
	aspect-ratio: 1 / 1;
	display: flex; align-items: center; justify-content: center;
	font-size: 5rem; opacity: 0.35;
	background: var(--c-bg-soft); border-radius: var(--radius);
}
.product-gallery__thumbs {
	display: flex; flex-wrap: wrap; gap: 10px;
	margin-top: 12px;
}
.product-gallery__thumb {
	width: 74px; height: 74px;
	padding: 0; border: 2px solid transparent; border-radius: 6px;
	overflow: hidden; cursor: pointer; background: var(--c-bg-soft);
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery__thumb.is-active { border-color: var(--c-accent); }

.product-single__title { margin-bottom: var(--space-2); }
.product-single__price {
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--c-heading);
	margin: 0 0 var(--space-3);
}
.product-single__price s { color: var(--c-text-soft); font-weight: 400; margin-right: 10px; font-size: 1.1rem; }
.product-single__description { margin-bottom: var(--space-3); }
.product-single__cats { color: var(--c-text-soft); font-size: 0.9rem; }
.chip {
	display: inline-block;
	background: var(--c-bg-soft);
	border: 1px solid var(--c-border);
	border-radius: 16px;
	padding: 3px 12px;
	margin: 3px 4px 3px 0;
	font-size: 0.85rem;
	text-decoration: none;
	color: var(--c-text);
}
.chip:hover { border-color: var(--c-accent); color: var(--c-accent-dark); }

.related-products { margin-bottom: var(--space-5); }

/* ================================================================ collections */
.collection-header { text-align: center; margin: var(--space-2) 0 var(--space-4); }
.collection-header__description {
	max-width: 760px; margin: 0 auto var(--space-1);
	color: var(--c-text-soft);
}
.collection-header__count { color: var(--c-text-soft); font-size: 0.9rem; margin: 0; }

.product-grid--archive { margin-bottom: var(--space-4); }

.collection-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-2);
}
.collection-tile {
	position: relative; display: block;
	border-radius: var(--radius); overflow: hidden;
	text-decoration: none;
	background: var(--c-bg-soft);
}
.collection-tile__media { aspect-ratio: 4 / 3; }
.collection-tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collection-tile__label {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 14px 18px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
	color: #fff;
	font-family: var(--font-heading);
	font-size: 1.25rem;
}
.collection-tiles--index { grid-template-columns: repeat(4, 1fr); }
.collection-tile--compact {
	display: flex; align-items: center; justify-content: space-between;
	gap: 10px; padding: 16px 18px;
	border: 1px solid var(--c-border);
	background: #fff;
}
.collection-tile--compact .collection-tile__label {
	position: static; padding: 0; background: none;
	color: var(--c-heading); font-size: 1rem; font-family: var(--font-body); font-weight: 600;
}
.collection-tile--compact:hover { border-color: var(--c-accent); }
.collection-tile__count { color: var(--c-text-soft); font-size: 0.85rem; }

/* ================================================================ pagination */
.pagination-nav { text-align: center; margin: 0 0 var(--space-5); }
.pagination-nav .page-numbers {
	display: inline-block;
	min-width: 40px; padding: 8px 12px; margin: 2px;
	border: 1px solid var(--c-border); border-radius: 4px;
	text-decoration: none; color: var(--c-heading);
}
.pagination-nav .page-numbers.current { background: var(--c-heading); color: #fff; border-color: var(--c-heading); }
.pagination-nav .page-numbers:hover:not(.current) { border-color: var(--c-accent); color: var(--c-accent-dark); }

/* ================================================================ static pages / rte */
.static-page__header { margin: var(--space-2) 0 var(--space-3); }
.static-page__featured { margin: 0 0 var(--space-3); }
.static-page__featured img { border-radius: var(--radius); }
.static-page { margin-bottom: var(--space-5); }

.rte h2 { margin-top: 1.8em; }
.rte h3 { margin-top: 1.5em; }
.rte img { border-radius: 6px; }
.rte blockquote {
	margin: 1.5em 0; padding: 0.5em 1.2em;
	border-left: 3px solid var(--c-brand);
	color: var(--c-text-soft);
}
.article-list { padding-left: 1.2em; }
.article-list li { margin-bottom: 0.5em; }

.table-scroll { overflow-x: auto; margin: 0 0 1.5em; -webkit-overflow-scrolling: touch; }
.rte table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.95rem;
}
.rte table th, .rte table td,
.rte table tr:first-child td {
	border: 1px solid var(--c-border);
	padding: 10px 14px;
	text-align: left;
}
.rte table tr:nth-child(even) { background: var(--c-bg-soft); }

/* ================================================================ hero + home */
.hero { background: var(--c-bg-soft); }
.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	align-items: center;
	gap: var(--space-4);
	padding-top: var(--space-4);
	padding-bottom: var(--space-4);
}
.hero__title { margin-bottom: 0.4em; }
.hero__subtitle { color: var(--c-text-soft); margin-bottom: 1.6em; max-width: 46ch; }
.hero__media img { border-radius: var(--radius); display: block; }

.home-section { padding: var(--space-4) 0 0; }
.home-section:last-of-type { padding-bottom: var(--space-5); }
.home-section__more { text-align: center; }
.home-section--text { background: var(--c-bg-soft); margin-top: var(--space-4); padding: var(--space-4) 0; }
.home-section--text h2 { text-align: center; }

/* ================================================================ search + 404 */
.search-page-form { max-width: 560px; margin: 0 0 var(--space-4); }
.search-page-form form { display: flex; gap: 8px; }
.search-page-form input[type="search"] {
	flex: 1 1 auto; padding: 12px 16px;
	border: 1px solid var(--c-border); border-radius: 4px;
	font: inherit;
}
.search-page-form input[type="submit"],
.search-page-form button {
	padding: 12px 22px; border: 0; border-radius: 4px;
	background: var(--c-heading); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.search-page-hits { margin: 0 0 var(--space-4); }
.error-404 { text-align: center; padding: var(--space-5) 0; }
.error-404 .search-page-form { margin: var(--space-3) auto; }

/* ================================================================ footer */
.site-footer {
	margin-top: var(--space-5);
	background: var(--c-bg-soft);
	border-top: 1px solid var(--c-border);
	font-size: 0.92rem;
}
.site-footer__cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-3);
	padding-top: var(--space-4);
	padding-bottom: var(--space-4);
}
.site-footer__title {
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 1em;
}
.site-footer__menu { list-style: none; margin: 0; padding: 0; }
.site-footer__menu li { margin-bottom: 0.55em; }
.site-footer__menu a { color: var(--c-text); text-decoration: none; }
.site-footer__menu a:hover { color: var(--c-accent-dark); text-decoration: underline; }
.site-footer__about { color: var(--c-text-soft); }
.site-footer__bottom {
	border-top: 1px solid var(--c-border);
	padding: 14px 0;
	color: var(--c-text-soft);
}
.site-footer__bottom p { margin: 0; }

/* ================================================================ gambling template
   Optimized: high-contrast palette, readable measure, spacing rhythm, styled tables. */
.gambling-wrap { max-width: 1024px; margin: 0 auto; padding: 0 20px; }

.gambling-header {
	background: #14181d;
	border-bottom: 3px solid var(--c-brand);
}
.gambling-header__inner {
	display: flex; align-items: center; gap: var(--space-3);
	padding-top: 14px; padding-bottom: 14px;
}
.gambling-header__logo {
	display: block;
	line-height: 0;
	background: #fff;
	border-radius: 6px;
	padding: 6px 10px;
}
.gambling-header__logo img { width: 170px; height: auto; }
.gambling-nav { margin-left: auto; }
.gambling-nav__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 2px;
}
.gambling-nav__list > li { position: relative; }
.gambling-nav__list a {
	display: block; padding: 8px 14px;
	color: #e8eaed; text-decoration: none;
	font-size: 0.9rem; font-weight: 600;
	border-radius: 4px;
}
.gambling-nav__list a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.gambling-nav__list .sub-menu {
	list-style: none; margin: 0; padding: 6px 0;
	position: absolute; top: 100%; right: 0; z-index: 60;
	min-width: 220px;
	background: #14181d; border-radius: 0 0 6px 6px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
	display: none;
}
.gambling-nav__list li:hover > .sub-menu,
.gambling-nav__list li:focus-within > .sub-menu { display: block; }

.site-main--gambling { padding-bottom: var(--space-5); }
.gambling-article__header { margin: var(--space-3) 0 var(--space-2); }
.gambling-article__title {
	font-size: clamp(1.7rem, 3vw, 2.3rem);
	line-height: 1.25;
}
.gambling-article__featured { margin: 0 0 var(--space-3); }
.gambling-article__featured img { width: 100%; border-radius: var(--radius); display: block; }

.gambling-article__content {
	font-size: 1.02rem;
	line-height: 1.7;
	color: #2b2f33;
}
.gambling-article__content p { margin: 0 0 1.25em; }
.gambling-article__content h2 {
	margin: 2em 0 0.65em;
	padding-bottom: 0.35em;
	border-bottom: 2px solid var(--c-border);
	font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}
.gambling-article__content h3 { margin: 1.7em 0 0.55em; font-size: 1.25rem; }
.gambling-article__content h4 { margin: 1.5em 0 0.5em; font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; }
.gambling-article__content ul, .gambling-article__content ol { margin: 0 0 1.35em; }
.gambling-article__content li { margin-bottom: 0.45em; }
.gambling-article__content li::marker { color: var(--c-brand); }
.gambling-article__content a { color: var(--c-accent-dark); font-weight: 600; }
.gambling-article__content a:hover { color: var(--c-brand-dark); }
.gambling-article__content img { border-radius: var(--radius); margin: 0.5em 0 1.25em; }

/* content tables: readable, striped, scrollable */
.gambling-article__content table {
	border-collapse: collapse;
	width: 100%;
	min-width: 480px;
	font-size: 0.95rem;
	margin: 0;
}
/* настоящая шапка (<th>) + имитация шапки первой строкой <td> в таблицах без <th> */
.gambling-article__content table th,
.gambling-article__content table:not(:has(th)) tr:first-child td {
	background: #14181d;
	color: #fff;
	font-weight: 600;
	text-align: left;
	border: 1px solid #14181d;
	padding: 11px 14px;
}
.gambling-article__content table td {
	border: 1px solid var(--c-border);
	padding: 10px 14px;
	vertical-align: top;
}
.gambling-article__content table tbody tr:nth-child(even) td { background: var(--c-bg-soft); }
.gambling-article__content table th a,
.gambling-article__content table:not(:has(th)) tr:first-child td a { color: #7fd3d3; }

.gambling-footer { background: #14181d; color: #c9cdd2; margin-top: var(--space-5); }
.gambling-footer a { color: #e8eaed; text-decoration: none; }
.gambling-footer a:hover { color: #fff; text-decoration: underline; }
.gambling-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--space-3);
	padding-top: var(--space-4); padding-bottom: var(--space-3);
}
.gambling-footer__title {
	color: #fff;
	font-family: var(--font-body);
	font-size: 0.85rem; font-weight: 600;
	letter-spacing: 0.1em; text-transform: uppercase;
	margin-bottom: 1em;
}
.gambling-footer__menu { list-style: none; margin: 0; padding: 0; }
.gambling-footer__menu li { margin-bottom: 0.5em; }
.gambling-footer__notice {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding: 16px 0;
	font-size: 0.85rem;
}
.gambling-footer__notice p { margin: 0 0 6px; }
.gambling-page .breadcrumbs { padding-top: var(--space-2); }
.gambling-page .breadcrumbs a:hover { color: var(--c-brand); }

/* ================================================================ responsive */
@media (max-width: 1000px) {
	.product-grid { grid-template-columns: repeat(3, 1fr); }
	.collection-tiles--index { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; border-top: 0; }
	.site-nav.is-open { display: block; border-top: 1px solid var(--c-border); }
	.site-nav__list { flex-direction: column; }
	.site-nav__list a { padding: 12px 4px; }
	.site-nav__list .sub-menu {
		position: static; display: none; box-shadow: none; border: 0;
		padding-left: 14px; min-width: 0;
	}
	.site-nav__list li.is-open > .sub-menu { display: block; }
	.site-nav__list > li.mega > .sub-menu,
	.site-nav__list > li.mega:hover > .sub-menu { padding: 0 0 0 14px; }
	.site-nav__list > li.mega.is-open > .sub-menu { display: block; }
	.site-nav__list > li.mega > .sub-menu > li > a { padding: 10px 0 6px; }
	.header-search { order: 3; flex-basis: 100%; max-width: none; }
	.site-header__inner { flex-wrap: wrap; gap: var(--space-2); }
	.product-single__layout { grid-template-columns: 1fr; gap: var(--space-3); }
	.hero__inner { grid-template-columns: 1fr; }
	.site-footer__cols { grid-template-columns: 1fr 1fr; }
	.nav-toggle--gambling { display: block; margin-left: auto; }
	.nav-toggle--gambling .nav-toggle__bars,
	.nav-toggle--gambling .nav-toggle__bars::before,
	.nav-toggle--gambling .nav-toggle__bars::after { background: #fff; }
	.gambling-nav { display: none; flex-basis: 100%; margin-left: 0; }
	.gambling-nav.is-open { display: block; }
	.gambling-nav__list { flex-direction: column; }
	.gambling-header__inner { flex-wrap: wrap; }
	.gambling-nav__list .sub-menu { position: static; display: block; box-shadow: none; padding-left: 14px; }
}
@media (max-width: 640px) {
	.product-grid { grid-template-columns: repeat(2, 1fr); }
	.collection-tiles { grid-template-columns: repeat(2, 1fr); }
	.collection-tiles--index { grid-template-columns: 1fr 1fr; }
	.site-footer__cols { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
	.product-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2) 10px; }
}

/* ================================================================ author archive */
.author-card {
	display: flex;
	gap: var(--space-4);
	align-items: flex-start;
	background: var(--c-bg-soft);
	border-radius: var(--radius);
	padding: var(--space-4);
	margin: var(--space-3) 0 var(--space-4);
}
.author-card__avatar { flex: 0 0 180px; }
.author-card__avatar img {
	width: 180px; height: 180px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #fff;
	box-shadow: var(--shadow-card);
}
.author-card__name { margin-bottom: 0.25em; }
.author-card__job { font-weight: 600; color: var(--c-text-soft); margin: 0 0 0.5em; }
.author-card__credentials { font-style: italic; color: var(--c-text-soft); font-size: 0.9rem; margin: 0 0 1em; }
.author-card__bio { margin-bottom: 1em; }
.author-card__bio p { margin: 0 0 0.7em; }
.author-card__expertise { font-size: 0.95rem; margin: 0 0 1em; }
.author-card__socials { margin: 0; }

.author-articles { margin-bottom: var(--space-5); }
.author-articles__title {
	padding-bottom: 0.4em;
	border-bottom: 2px solid var(--c-border);
	margin-bottom: var(--space-3);
}
.author-article {
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--c-border);
}
.author-article--has-thumb {
	display: flex;
	gap: var(--space-3);
	align-items: flex-start;
}
.author-article__thumb {
	flex: 0 0 200px;
	display: block;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--c-bg-soft);
}
.author-article__thumb img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
}
.author-article__body { flex: 1 1 auto; min-width: 0; }
.author-article:first-child { padding-top: 0; }
.author-article__title { margin: 0 0 0.35em; font-size: 1.25rem; }
.author-article__title a { color: var(--c-heading); text-decoration: none; }
.author-article__title a:hover { color: var(--c-accent-dark); text-decoration: underline; }
.author-article__meta { font-size: 0.85rem; color: var(--c-text-soft); margin: 0 0 0.6em; }
.author-article__excerpt { margin-bottom: 0.6em; }
.author-article__more { font-weight: 600; }

@media (max-width: 700px) {
	.author-card { flex-direction: column; align-items: center; text-align: left; }
	.author-card__avatar { flex-basis: auto; }
	.author-article--has-thumb { flex-direction: column; gap: var(--space-2); }
	.author-article__thumb { flex-basis: auto; width: 100%; }
}
