/*
Theme Name: اسب ایرانی (Asbeirani)
Theme URI: https://asbeirani.ir
Author: اسب ایرانی
Description: پوستهٔ اختصاصی پورتال اسب ایرانی: دایرکتوری اسب‌ها و نژادها، پیست‌ها و باشگاه‌ها، سوارکاران، رویدادها و مسابقات، آموزش، اخبار، مجله و فروشگاه. همراه با افزونهٔ «هستهٔ اسب ایرانی» استفاده شود.
Version: 1.0.35
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: asbeirani
Tags: rtl-language-support, custom-menu, custom-logo, featured-images, e-commerce
*/

:root {
	--gold: #F2B967;
	--gold-2: #E9A445;
	--gold-soft: #FBEBD2;
	--amber: #9A6418;
	--ink: #2A1E14;
	--ink-2: #43331F;
	--ink-3: #5E4B37;
	--muted: #7A6A58;
	--cream: #FBF7F0;
	--sand: #F4EBDD;
	--line: #EADFCC;
	--white: #fff;
	--ok: #2F7D4F;
	--err: #B3412E;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(42, 30, 20, .06), 0 8px 24px rgba(42, 30, 20, .06);
	--shadow-lg: 0 2px 6px rgba(42, 30, 20, .08), 0 18px 40px rgba(42, 30, 20, .12);
	--wrap: 1240px;
	--font: "Vazirmatn", "Vazir", Tahoma, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.9;
	color: var(--ink);
	background: var(--cream);
	direction: rtl;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .6em; color: var(--ink); font-weight: 800; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { padding-inline-start: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; right: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #EFE5D6; }
.section--ink h2, .section--ink h3 { color: #fff; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .7em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
	font-weight: 700; font-size: .95rem; line-height: 1.4; cursor: pointer;
	transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s;
	text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); color: var(--ink); box-shadow: 0 6px 18px rgba(233, 164, 69, .35); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--ink .btn--ghost, .hero .btn--ghost { color: #fff; }
.section--ink .btn--ghost:hover, .hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { padding: .45em 1em; font-size: .85rem; }
.btn--block { width: 100%; }

/* Top bar */
.topbar { background: var(--ink); color: #CDBFAA; font-size: .82rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #E9DCC6; }
.topbar a:hover { color: var(--gold); }
.topbar__links { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar__social { display: flex; gap: 12px; }
.topbar__social .icon { width: 17px; height: 17px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile drawer inside the header. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(251, 247, 240, .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand img, .brand .custom-logo { width: 50px; height: 50px; border-radius: 13px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name { font-size: 1.35rem; font-weight: 900; letter-spacing: -.01em; }
.brand__tag { font-size: .74rem; color: var(--muted); font-weight: 500; }

.nav { flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav li { position: relative; }
.nav > ul > li > a { display: flex; align-items: center; gap: 7px; padding: .55em .8em; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .94rem; position: relative; transition: background .2s, color .2s; }
.nav > ul > li > a:hover, .nav > ul > li:hover > a, .nav > ul > li:focus-within > a { background: var(--gold-soft); color: var(--ink); }
.nav > ul > li.current-menu-item > a, .nav > ul > li.current-menu-ancestor > a, .nav > ul > li.is-current > a { color: var(--amber); }
.nav > ul > li.is-current > a::before, .nav > ul > li.current-menu-item > a::before, .nav > ul > li.current-menu-ancestor > a::before { content: ""; position: absolute; right: 50%; bottom: 2px; width: 16px; height: 3px; border-radius: 3px; background: var(--gold); transform: translateX(50%); }
.nav > ul > .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg) translateY(-2px); opacity: .55; transition: transform .25s, opacity .2s; }
.nav > ul > .menu-item-has-children:hover > a::after, .nav > ul > .menu-item-has-children:focus-within > a::after { transform: rotate(135deg) translate(-1px, 1px); opacity: 1; }
.nav-blog-toggle { display: flex; align-items: center; gap: 8px; padding: .55em .8em; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: .94rem; font-weight: 600; cursor: pointer; }
.nav-blog-toggle:hover, .nav-blog-toggle:focus-visible, .nav-blog.is-expanded > .nav-blog-toggle { background: var(--gold-soft); }
.nav-blog.is-current > .nav-blog-toggle { color: var(--amber); }
.nav-blog-toggle::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 0 1.6px 1.6px; transform: translateY(-2px) rotate(-45deg); }
.nav-blog-toggle[aria-expanded="true"]::after { transform: rotate(135deg); }
.sub-toggle { display: none; }

/* Dropdown card */
.nav .sub-menu { position: absolute; top: calc(100% + 12px); right: -8px; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 2px 6px rgba(42, 30, 20, .06), 0 24px 48px -12px rgba(42, 30, 20, .22); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: top right; transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .25s; z-index: 10; }
.nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav .sub-menu::after { content: ""; position: absolute; top: -7px; right: 30px; width: 12px; height: 12px; background: #fff; border-top: 1px solid var(--line); border-left: 1px solid var(--line); transform: rotate(45deg); border-radius: 3px 0 0 0; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
@media (min-width: 1025px) {
	.nav .nav-blog:not(.is-expanded) > .sub-menu { opacity: 0; visibility: hidden; pointer-events: none; }
	.nav .nav-blog.is-expanded > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
.nav .sub-menu li + li { margin-top: 2px; }
.nav .sub-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--ink); font-weight: 500; font-size: .92rem; line-height: 1.5; transition: background .18s; }
.nav .sub-menu a:hover, .nav .sub-menu a:focus-visible, .nav .sub-menu .is-current > a { background: var(--cream); }
.sub-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--sand); color: var(--amber); transition: background .2s, color .2s, transform .25s; }
.sub-ic .icon { width: 19px; height: 19px; }
.nav .sub-menu a:hover .sub-ic { background: var(--gold); color: var(--ink); transform: rotate(-6deg); }
.sub-tx { display: flex; flex-direction: column; min-width: 0; }
.sub-tx b { font-weight: 700; font-size: .93rem; }
.sub-tx small { color: var(--muted); font-size: .76rem; font-weight: 400; }
.nav .sub-menu .sub-cta { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.nav .sub-menu .sub-cta a { color: var(--amber); padding: 7px 10px; }
.nav .sub-menu .sub-cta .sub-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--gold-soft); }
.nav .sub-menu .sub-cta .sub-ic .icon { width: 16px; height: 16px; }
.nav .sub-menu .sub-cta b { font-weight: 700; font-size: .88rem; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--gold); color: var(--ink); }
.cart-count { position: absolute; top: -6px; left: -6px; background: var(--gold); color: var(--ink); font-size: .7rem; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; }
.menu-toggle { display: none; }

.search-panel { display: none; border-top: 1px solid var(--line); padding: 14px 0; background: var(--cream); }
.search-panel.is-open { display: block; }

/* Global search form */
.searchbar { display: flex; align-items: stretch; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 720px; }
.searchbar { position: relative; text-align: right; }
.searchbar input { color: var(--ink); flex: 1; border: 0; outline: 0; padding: .6em 1em; min-width: 0; background: transparent; font: inherit; }
.searchbar .sb-go { border-radius: 999px; }

/* Section picker */
.sb-pick { position: relative; flex: none; display: flex; }
.sb-pick__btn { display: flex; align-items: center; gap: 8px; border: 0; background: var(--sand); color: var(--ink); border-radius: 999px; padding: 0 .65em 0 1em; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .2s, box-shadow .2s; white-space: nowrap; }
.sb-pick__btn:hover, .sb-pick__btn[aria-expanded="true"] { background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px var(--gold); }
.sb-pick__ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--amber); flex: none; transition: transform .3s; }
.sb-pick__ic .icon { width: 17px; height: 17px; }
.sb-pick__btn[aria-expanded="true"] .sb-pick__ic { transform: rotate(-12deg); }
.sb-pick__chev { width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 1.8px 1.8px; transform: rotate(-45deg) translateY(-2px); opacity: .6; margin-inline: 2px 4px; transition: transform .25s; }
.sb-pick__btn[aria-expanded="true"] .sb-pick__chev { transform: rotate(135deg) translate(-1px, 1px); }
.sb-panel { position: absolute; top: calc(100% + 14px); right: -6px; width: 400px; max-width: calc(100vw - 32px); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 2px 6px rgba(42, 30, 20, .08), 0 30px 60px -16px rgba(42, 30, 20, .35); padding: 10px; z-index: 30; transform-origin: top right; animation: sbIn .25s cubic-bezier(.2, .8, .2, 1); }
.sb-panel[hidden] { display: none; }
.sb-panel::before { content: ""; position: absolute; top: -7px; right: 34px; width: 13px; height: 13px; background: #fff; border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 3px 0 0 0; transform: rotate(45deg); }
@keyframes sbUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sbIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.sb-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 8px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.sb-panel__x { display: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--sand); cursor: pointer; position: relative; }
.sb-panel__x::before, .sb-panel__x::after { content: ""; position: absolute; top: 50%; left: 50%; width: 13px; height: 1.8px; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.sb-panel__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.sb-panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sb-opt { display: flex; align-items: center; gap: 10px; text-align: right; border: 1px solid transparent; background: var(--cream); border-radius: 14px; padding: 9px 10px; font: inherit; color: var(--ink); cursor: pointer; transition: background .18s, border-color .18s, transform .18s; position: relative; }
.sb-opt:hover, .sb-opt:focus-visible, .sb-opt.is-active { background: var(--gold-soft); outline: none; }
.sb-opt:active { transform: scale(.97); }
.sb-opt[aria-selected="true"] { background: #fff; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.sb-opt[aria-selected="true"]::after { content: ""; position: absolute; top: 9px; left: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A1E14' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") no-repeat center / 11px; }
.sb-opt--all { grid-column: 1 / -1; background: var(--ink); color: #fff; }
.sb-opt--all:hover, .sb-opt--all:focus-visible, .sb-opt--all.is-active { background: var(--ink-2); }
.sb-opt--all[aria-selected="true"] { background: var(--ink); }
.sb-opt--all small { color: var(--gold) !important; }
.sb-opt__ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--amber); flex: none; transition: transform .25s, background .2s; }
.sb-opt__ic .icon { width: 19px; height: 19px; }
.sb-opt--all .sb-opt__ic { background: var(--gold); color: var(--ink); }
.sb-opt:hover .sb-opt__ic { transform: rotate(-8deg) scale(1.05); background: var(--gold); color: var(--ink); }
.sb-opt__tx { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.sb-opt__tx b { font-weight: 700; font-size: .9rem; }
.sb-opt__tx small { color: var(--muted); font-size: .74rem; }

/* Hero */
.hero { position: relative; background: var(--ink); color: #EFE5D6; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .28; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(1200px 500px at 15% 10%, rgba(242, 185, 103, .16), transparent 60%), linear-gradient(180deg, rgba(42, 30, 20, .2), rgba(42, 30, 20, .85)); }
.hero__mark { position: absolute; z-index: -1; left: -40px; bottom: -70px; width: min(50vw, 620px); opacity: .22; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 98%); mask-image: linear-gradient(90deg, #000 45%, transparent 98%); }
/* Keep the decoration inside its section even when the section stops clipping (open search picker). */
.hero__mark { clip-path: inset(0 0 70px 40px); }
.hero:has(.sb-panel:not([hidden])), .page-head:has(.sb-panel:not([hidden])) { overflow: visible; z-index: 20; }
.hero .wrap { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.hero__eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.hero h1, .hero .hero__h { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; max-width: 15ch; line-height: 1.3; }
.hero h1 em, .hero .hero__h em { font-style: normal; color: var(--gold); }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 56ch; color: #D9CCB8; margin-bottom: 28px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero__chips a { color: #EFE5D6; border: 1px solid rgba(242, 185, 103, .35); padding: .3em .9em; border-radius: 999px; font-size: .85rem; }
.hero__chips a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(242, 185, 103, .2); border-radius: var(--radius); overflow: hidden; margin-top: clamp(32px, 5vw, 56px); max-width: 860px; }
.stats div { background: rgba(42, 30, 20, .75); padding: 18px 20px; }
.stats strong { display: block; font-size: 1.7rem; color: var(--gold); font-weight: 900; line-height: 1.3; }
.stats span { font-size: .85rem; color: #CDBFAA; }

/* Section heading */
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; position: relative; padding-inline-start: 18px; }
.sec-head h2::before { content: ""; position: absolute; right: 0; top: .35em; bottom: .35em; width: 5px; border-radius: 4px; background: var(--gold); }
.sec-head p { margin: 4px 0 0; color: var(--muted); padding-inline-start: 18px; }
.more { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.more .icon { width: 1em; height: 1em; transition: transform .2s; }
.more:hover .icon { transform: translateX(-4px); }

/* Portal tiles */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; color: var(--ink); display: flex; flex-direction: column; gap: 10px; transition: .2s; position: relative; overflow: hidden; }
.tile:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.tile__ic { width: 48px; height: 48px; border-radius: 14px; background: var(--gold-soft); display: grid; place-items: center; color: var(--amber); }
.tile__ic .icon { width: 26px; height: 26px; }
.tile:hover .tile__ic { background: var(--gold); color: var(--ink); }
.tile strong { font-size: 1.02rem; }
.tile span { font-size: .83rem; color: var(--muted); line-height: 1.7; }

/* Cards */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.grid--3 { --cols: 3; }
.grid--2 { --cols: 2; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #E2CFAE; }
.card__media { aspect-ratio: 4 / 3; background: var(--sand); position: relative; overflow: hidden; display: block; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.04); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #F7E3C3, #F2D3A2); }
.ph img { width: 46%; height: auto !important; opacity: .9; object-fit: contain !important; }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: 1.05rem; margin: 0; line-height: 1.6; }
.card__title a { color: var(--ink); }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--muted); }
.card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.card__meta .icon { width: 15px; height: 15px; color: var(--gold-2); }
.card__excerpt { font-size: .9rem; color: var(--ink-3); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; font-size: .85rem; }
.price { font-weight: 800; color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: .2em .7em; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--gold-soft); color: var(--amber); line-height: 1.6; }
.badge--ink { background: var(--ink); color: var(--gold); }
.badge--ok { background: #E3F2E8; color: var(--ok); }
.badge--err { background: #F8E1DC; color: var(--err); }
.card__badges { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 1; }
.verified { color: #2F7D4F; display: inline-flex; vertical-align: -.15em; }
.verified .icon { width: 18px; height: 18px; }

/* Event cards */
.ev { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; transition: .2s; }
.ev:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.ev__date { flex: none; width: 74px; border-radius: 14px; background: var(--ink); color: #fff; text-align: center; padding: 10px 4px; display: flex; flex-direction: column; justify-content: center; }
.ev__date b { font-size: 1.8rem; line-height: 1.1; color: var(--gold); font-weight: 900; }
.ev__date small { font-size: .8rem; }
.ev__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ev__body h3 { font-size: 1rem; margin: 0; }
.ev__body h3 a { color: var(--ink); }
.ev__body h3 a::after { content: ""; position: absolute; inset: 0; }
.ev-list { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }

/* Post cards (news/mag) */
.post-card .card__media { aspect-ratio: 16 / 10; }
.cat-link { font-size: .78rem; font-weight: 700; color: var(--amber); position: relative; z-index: 2; }
.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.feature__main { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; display: flex; align-items: end; color: #fff; background: var(--ink); }
.feature__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: transform .6s; }
.feature__main:hover img { transform: scale(1.03); }
.feature__main img.feature__ph { width: 46%; height: auto; inset: 8% auto auto 6%; opacity: .2; object-fit: contain; }
.feature__main .feature__txt { position: relative; padding: 28px; background: linear-gradient(0deg, rgba(42, 30, 20, .95), transparent); width: 100%; }
.feature__main h3 { color: #fff; font-size: 1.5rem; }
.feature__main a { color: #fff; }
.feature__main a::after { content: ""; position: absolute; inset: 0; }
.feature__side { display: grid; gap: 14px; }
.mini { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.mini__img { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--sand); }
.mini__img img { width: 100%; height: 100%; object-fit: cover; }
.mini h3 { font-size: .95rem; margin: 0 0 4px; }
.mini h3 a { color: var(--ink); }
.mini h3 a::after { content: ""; position: absolute; inset: 0; }

/* Breeds strip */
.breeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.breed { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; transition: .2s; }
.breed:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.breed__img { background: linear-gradient(135deg, #F7E3C3, #F2D3A2); display: grid; place-items: center; min-height: 140px; }
.breed__img img { width: 100%; height: 100%; object-fit: cover; }
.breed__img .ph-mark { width: 70%; }
.breed__body { padding: 14px 16px; }
.breed__body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.breed__body h3 a { color: var(--ink); }
.breed__body h3 a::after { content: ""; position: absolute; inset: 0; }
.breed__body p { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.8; }
.section--ink .breed { background: rgba(255, 255, 255, .04); border-color: rgba(242, 185, 103, .2); }
.section--ink .breed__body h3 a { color: #fff; }
.section--ink .breed__body p { color: #CDBFAA; }
.section--ink .card__meta { color: #BFAF97; }

/* CTA band */
.cta { background: var(--gold); border-radius: 24px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; color: var(--ink-2); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta__mark { position: absolute; left: -40px; top: -40px; width: 260px; opacity: .25; pointer-events: none; filter: brightness(10); }

/* Page header */
.page-head { background: var(--ink); color: #D9CCB8; padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; left: -40px; bottom: -120px; width: 420px; height: 420px; background: url(assets/img/mark-lines.svg) no-repeat center / contain; opacity: .18; clip-path: inset(0 0 120px 40px); }
.page-head h1 { color: #fff; margin-bottom: 6px; }
.page-head p { margin: 0; max-width: 70ch; }
.page-head .wrap { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.crumbs { font-size: .82rem; margin-bottom: 10px; color: #A8977F; }
.crumbs a { color: #D9CCB8; }
.crumbs a:hover { color: var(--gold); }
.crumbs span.sep { margin: 0 6px; opacity: .6; }
.count { color: var(--gold); font-weight: 700; }

/* Filters */
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin: -26px 0 28px; position: relative; z-index: 2; }
.filters form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; align-items: end; }
.filters label { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.filters select, .filters input[type=text], .filters input[type=search] { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--cream); }
.filters .f-actions { display: flex; gap: 8px; grid-column: span 2; min-width: 0; }
.filters .f-actions .btn { height: 44px; flex: 1 1 0; min-width: 0; padding-inline: 1em; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs a { padding: .4em 1.1em; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; }
.tabs a.is-active, .tabs a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed #DCC8A6; border-radius: var(--radius); color: var(--muted); }
.empty img { width: 90px; margin: 0 auto 12px; opacity: .8; }

/* Pagination */
.pagination { margin-top: 36px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Single profile */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.profile__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; margin-bottom: 32px; }
.profile__img { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); box-shadow: var(--shadow); }
.profile__img img { width: 100%; height: 100%; object-fit: cover; }
.profile__img .ph img { width: 40%; }
.profile__intro h1 { margin-bottom: 10px; }
.terms-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.terms-row a { background: var(--gold-soft); color: var(--amber); font-size: .8rem; font-weight: 700; padding: .25em .8em; border-radius: 999px; }
.terms-row a:hover { background: var(--gold); color: var(--ink); }
.keyfacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.keyfacts div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.keyfacts small { display: block; color: var(--muted); font-size: .76rem; }
.keyfacts b { font-size: 1rem; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.box h2, .box h3 { font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.box h2 .icon, .box h3 .icon { color: var(--gold-2); }
.box--gold { background: var(--gold-soft); border-color: #F0D4A6; }
.box--ink { background: var(--ink); border-color: var(--ink); color: #D9CCB8; }
.box--ink h3 { color: #fff; }
.spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec th, .spec td { padding: 9px 0; border-bottom: 1px dashed var(--line); text-align: start; vertical-align: top; }
.spec th { color: var(--muted); font-weight: 500; width: 42%; padding-inline-end: 10px; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.pedigree { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pedigree div { background: var(--cream); border-radius: 10px; padding: 10px 12px; border: 1px solid var(--line); }
.pedigree small { display: block; color: var(--muted); font-size: .75rem; }
.pedigree .full { grid-column: 1 / -1; }
.entry { font-size: 1.02rem; }
.entry > * + * { margin-top: 1em; }
.entry h2 { font-size: 1.4rem; margin-top: 1.6em; }
.entry h3 { margin-top: 1.4em; }
.entry img { border-radius: 14px; }
.entry blockquote { margin: 1.5em 0; padding: 18px 22px; background: var(--gold-soft); border-right: 4px solid var(--gold); border-radius: 12px; font-weight: 500; }
.entry [id] { scroll-margin-top: 110px; }
.entry .asb-toc a { text-decoration: none; }
.entry a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.results { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; border-radius: 12px; overflow: hidden; }
.results th { background: var(--ink); color: var(--gold); font-weight: 700; padding: 10px 12px; text-align: start; }
.results td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.results tr:nth-child(-n+4) td:first-child { font-weight: 900; color: var(--amber); }
.map-embed { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-links { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.video { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 20px; }
.video iframe { width: 100%; height: 100%; border: 0; }
.contact-btns { display: grid; gap: 8px; }
.claim { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 10px; }
.sidebar-sticky { position: sticky; top: 100px; }
.related { margin-top: 48px; }

/* Article */
.article { max-width: 780px; margin-inline: auto; }
.article__head { text-align: center; margin-bottom: 26px; }
.article__meta { color: var(--muted); font-size: .88rem; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.article__cover { border-radius: 20px; overflow: hidden; margin: 0 auto 32px; max-width: 1000px; }
.tags a { display: inline-block; margin: 0 0 6px 6px; padding: .2em .8em; background: var(--sand); border-radius: 999px; font-size: .82rem; color: var(--ink); }

/* Forms (public submission + comments) */
.asb-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 8px; margin: 0 0 18px; background: #fff; }
.asb-form legend { font-weight: 800; padding: 0 8px; }
.asb-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.asb-form__wide { grid-column: 1 / -1; }
.asb-form label, .comment-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.asb-form input[type=text], .asb-form input[type=tel], .asb-form input[type=url], .asb-form input[type=email], .asb-form select, .asb-form textarea,
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
	width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--cream); transition: border-color .2s, box-shadow .2s;
}
.asb-form input:focus, .asb-form select:focus, .asb-form textarea:focus, .comment-form input:focus, .comment-form textarea:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(242, 185, 103, .25); outline: 0; background: #fff; }
.asb-form .req { color: var(--err); }
.asb-form__checks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.asb-form__checks .lbl { width: 100%; font-size: .85rem; font-weight: 600; }
.asb-chip { margin: 0 !important; cursor: pointer; }
.asb-chip input { position: absolute; opacity: 0; }
.asb-chip span { display: inline-block; padding: .3em .9em; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); font-weight: 500; font-size: .85rem; }
.asb-chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.asb-chip input:focus-visible + span { outline: 3px solid var(--gold); }
.asb-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; margin-bottom: 14px; }
.asb-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.asb-notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.asb-notice ul { margin: 0; }
.asb-notice--ok { background: #E3F2E8; color: var(--ok); }
.asb-notice--err { background: #F8E1DC; color: var(--err); }

/* Contact */
.asb-contact { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; margin-top: 8px; }
.asb-contact__info { background: var(--ink); color: #D9CCB8; border-radius: var(--radius); padding: 22px; position: sticky; top: 100px; }
.asb-contact__info h3 { color: #fff; font-size: 1.05rem; }
.asb-contact__info p { display: flex; flex-direction: column; margin-bottom: 14px; }
.asb-contact__info p span { font-size: .78rem; color: #A8977F; }
.asb-contact__info a { color: var(--gold); text-decoration: none; }
.asb-contact__info a[dir=ltr] { text-align: right; }
.asb-contact__note { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; font-size: .88rem; display: block !important; }
.asb-contact__ref { background: var(--gold-soft); border-radius: 10px; padding: 8px 12px; font-size: .9rem; }
@media (max-width: 820px) { .asb-contact { grid-template-columns: 1fr; } .asb-contact__info { position: static; } }

/* Photo credit */
.photo-credit { font-size: .74rem; color: var(--muted); margin: 6px 4px 0; line-height: 1.7; }
.photo-credit a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); }

/* Clubs (photo-less cards) */
.grid--clubs { --cols: 3; }
.club { --tone: var(--gold); --tone-ink: var(--ink); position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; isolation: isolate; transition: transform .2s, box-shadow .2s, border-color .2s; }
.club::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--tone); }
.club::after { content: ""; position: absolute; z-index: -1; left: -46px; bottom: -58px; width: 190px; height: 190px; background: url(assets/img/mark-lines.svg) no-repeat center / contain; opacity: .1; transform: rotate(-8deg); transition: opacity .25s, transform .4s; }
.club:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--tone); }
.club:hover::after { opacity: .18; transform: rotate(0); }
.club--gold { --tone: #F2B967; }
.club--amber { --tone: #E9A445; }
.club--saddle { --tone: #B9772E; --tone-ink: #fff; }
.club--leather { --tone: #6B4423; --tone-ink: #F2B967; }
.club--sand { --tone: #E8D3AE; }
.club--rust { --tone: #A4532C; --tone-ink: #fff; }
.club__head { display: flex; align-items: center; gap: 12px; }
.club__mono { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--tone); color: var(--tone-ink); display: grid; place-items: center; position: relative; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55); }
.club__mono::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--tone); border-bottom-color: transparent; transform: rotate(45deg); opacity: .55; }
.club__mono span { font-size: 1.7rem; font-weight: 900; line-height: 1; transform: translateY(2px); }
.club__where { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.club__region { font-size: .75rem; font-weight: 800; color: var(--amber); letter-spacing: .01em; }
.club__city { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--muted); }
.club__city .icon { width: 15px; height: 15px; color: var(--gold-2); }
.club__ok { margin-inline-start: auto; color: var(--ok); }
.club__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.club__kind { font-size: .75rem; color: var(--muted); }
.club__name { margin: 0; font-size: 1.25rem; line-height: 1.5; }
.club__name a { color: var(--ink); }
.club__name a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.club__addr { margin: 2px 0 0; font-size: .86rem; color: var(--ink-3); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.club__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.club__tags span { font-size: .72rem; background: var(--sand); padding: .15em .7em; border-radius: 999px; }
.club__actions { position: relative; z-index: 1; display: flex; gap: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.club__btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: .45em .8em; border-radius: 10px; background: var(--cream); border: 1px solid var(--line); color: var(--ink); font-size: .82rem; font-weight: 700; }
.club__btn .icon { width: 16px; height: 16px; color: var(--gold-2); }
.club__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.club__btn:hover .icon { color: var(--gold); }
.club__btn--go { margin-inline-start: auto; background: var(--ink); color: #fff; border-color: var(--ink); }
.club__btn--go .icon { color: var(--gold); }
.club__btn--go:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.mono-hero { --tone: var(--gold); --tone-ink: var(--ink); position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 4 / 3; background: radial-gradient(120% 90% at 85% 15%, rgba(242, 185, 103, .28), transparent 60%), var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #fff; text-align: center; box-shadow: var(--shadow); }
.mono-hero::after { content: ""; position: absolute; left: -40px; bottom: -60px; width: 300px; height: 300px; background: url(assets/img/mark-lines.svg) no-repeat center / contain; opacity: .16; }
.mono-hero__mono { width: 128px; height: 128px; }
.mono-hero__mono::before { inset: -12px; border-width: 3px; }
.mono-hero__mono span { font-size: 3.8rem; }
.mono-hero__logo { position: relative; z-index: 1; display: grid; place-items: center; width: clamp(88px, 13vw, 144px); aspect-ratio: 1; padding: 12px; border: 1px solid var(--line); border-radius: 22px; background: #fffaf0; }
.mono-hero__logo img { width: 100%; height: 100%; object-fit: contain; }
.mono-hero__txt { display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.mono-hero__txt strong { font-size: 1.5rem; }
.mono-hero__txt span { color: #CDBFAA; font-size: .9rem; }

/* Magazine page */
.mag-head__issue { display: inline-block; font-size: .8rem; font-weight: 800; color: var(--ink); background: var(--gold); padding: .2em .9em; border-radius: 999px; margin-bottom: 10px; }
.mag-tabs small { opacity: .6; font-weight: 500; }
.mag-cover { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; align-items: stretch; }
.mag-lead { position: relative; display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.mag-lead__img { display: block; aspect-ratio: 16 / 8.2; overflow: hidden; background: var(--sand); }
.mag-lead__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mag-lead:hover .mag-lead__img img { transform: scale(1.03); }
.mag-lead__txt { padding: 22px 26px 24px; position: relative; }
.mag-lead__txt::before { content: ""; position: absolute; top: -18px; right: 26px; width: 64px; height: 6px; border-radius: 3px; background: var(--gold); }
.mag-lead h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 8px 0 10px; }
.mag-lead h2 a { color: var(--ink); }
.mag-lead p { color: var(--ink-3); }
.mag-meta { display: flex; gap: 8px; align-items: center; }
.mag-kicker { background: var(--ink); color: var(--gold); font-size: .72rem; font-weight: 800; padding: .2em .8em; border-radius: 999px; }
.mag-cat { font-size: .76rem; font-weight: 800; color: var(--amber); }
.mag-side { background: var(--ink); color: #D9CCB8; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; }
.mag-side__title { color: var(--gold); font-size: .95rem; letter-spacing: .02em; margin: 0 0 8px; padding-bottom: 12px; border-bottom: 1px solid rgba(242, 185, 103, .25); }
.mag-side ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.mag-item { display: grid; grid-template-columns: auto 1fr 76px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px dashed rgba(242, 185, 103, .2); position: relative; }
.mag-item:last-child { border-bottom: 0; }
.mag-item__no { font-size: 2.1rem; font-weight: 900; color: transparent; -webkit-text-stroke: 1.5px var(--gold); line-height: 1; }
.mag-item h4 { margin: 2px 0; font-size: .98rem; line-height: 1.6; }
.mag-item h4 a { color: #fff; }
.mag-item h4 a::after { content: ""; position: absolute; inset: 0; }
.mag-item h4 a:hover { color: var(--gold); }
.mag-item .mag-cat { color: var(--gold); }
.mag-item__time { font-size: .75rem; color: #A8977F; }
.mag-item__img { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: #3B2A1B; display: block; }
.mag-item__img img { width: 100%; height: 100%; object-fit: cover; }
.mag-item__img .ph { background: #3B2A1B; }
.mag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mag-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.mag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.mag-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.mag-card__img img { width: 100%; height: 100%; object-fit: cover; }
.mag-card__txt { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mag-card h3 { font-size: 1.05rem; margin: 0; line-height: 1.6; }
.mag-card h3 a { color: var(--ink); }
.mag-card h3 a::after { content: ""; position: absolute; inset: 0; }
.mag-card .card__meta { margin-top: auto; }
.mag-card--wide { grid-column: span 2; flex-direction: row; }
.mag-card--wide .mag-card__img { flex: 1.15; aspect-ratio: auto; min-height: 260px; }
.mag-card--wide .mag-card__txt { flex: 1; padding: 24px; justify-content: center; }
.mag-card--wide h3 { font-size: 1.35rem; }
.mag-card--wide p { color: var(--ink-3); margin: 0; font-size: .92rem; }
.mag-lead__img .ph img, .mag-card__img .ph img, .mag-item__img .ph img { width: 42%; height: auto; object-fit: contain; }
.mag-call { background: var(--gold); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 12px; position: relative; overflow: hidden; }
.mag-call__q { font-size: 6rem; line-height: .6; font-family: Georgia, serif; color: var(--ink); opacity: .25; }
.mag-call p { margin: 0; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.mag-call .btn { align-self: flex-start; background: var(--ink); color: #fff; }

/* Join page */
.join-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.join-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.join-card .tile__ic { margin-bottom: 4px; }
.join-card p { color: var(--muted); font-size: .9rem; flex: 1; margin: 0; }

/* Footer */
.site-footer { background: #1F160E; color: #BFAF97; padding-top: 64px; font-size: .92rem; margin-top: 0; }
.site-footer a { color: #E2D4BE; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 52px; border-radius: 13px; }
.footer-brand b { color: #fff; font-size: 1.3rem; font-weight: 900; }
.footer-contact { display: grid; gap: 6px; margin-top: 12px; }
.footer-contact span { display: flex; gap: 8px; align-items: center; }
.footer-contact .icon { color: var(--gold); width: 18px; height: 18px; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); }
.socials a:hover { background: var(--gold); color: var(--ink); }
.socials .icon { width: 19px; height: 19px; }
.footer-bottom .credit a { color: var(--gold); font-weight: 600; }
.footer-bottom .credit a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; font-size: .82rem; flex-wrap: wrap; align-items: center; }
.trust { display: flex; gap: 10px; flex: none; }
.trust a { display: block; line-height: 0; border-radius: 12px; transition: transform .2s, box-shadow .2s; }
.trust a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.trust img { height: 84px; width: auto; min-width: 70px; background: #fff; border-radius: 12px; padding: 5px; }
.footer-trust { margin-top: 20px; display: flex; align-items: center; gap: 12px; padding: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(242, 185, 103, .18); border-radius: 16px; max-width: 290px; }
.footer-trust p { margin: 0; font-size: .76rem; line-height: 1.8; color: #A8977F; }
.footer-trust b { display: block; color: #fff; font-size: .86rem; font-weight: 800; }

/* Comments */
.comments { margin-top: 48px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.comment-list .children { list-style: none; padding-inline-start: 24px; margin-top: 12px; }
.comment-meta { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.comment-meta img { display: inline-block; border-radius: 50%; vertical-align: middle; margin-inline-end: 6px; }

/* WooCommerce */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 16px !important; overflow: hidden; text-align: start; transition: .2s; }
.woocommerce ul.products li.product:hover { box-shadow: var(--shadow-lg); border-color: #E2CFAE; }
.woocommerce ul.products li.product a img { margin: 0 0 12px !important; aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .98rem !important; padding: 0 16px !important; color: var(--ink); font-weight: 700; }
.woocommerce ul.products li.product .price { color: var(--ink) !important; padding: 0 16px; font-weight: 800; display: block; }
.woocommerce ul.products li.product .button { margin: 10px 16px 0 !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
	background: var(--gold) !important; color: var(--ink) !important; border-radius: 999px !important; font-weight: 700 !important; padding: .7em 1.4em !important; font-family: var(--font) !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.button.alt:hover { background: var(--gold-2) !important; }
.woocommerce span.onsale { background: var(--ink) !important; color: var(--gold) !important; border-radius: 999px !important; min-height: auto !important; line-height: 1.6 !important; padding: .2em .8em !important; }
.woocommerce div.product div.images img { border-radius: var(--radius); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink) !important; font-weight: 800; font-size: 1.4rem !important; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--gold) !important; background: #fff !important; border-radius: 12px; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--gold-2) !important; }
.woocommerce .woocommerce-breadcrumb { color: var(--muted); }
.shop-layout { padding: 40px 0 72px; }

/* Responsive */
@media (max-width: 1180px) {
	.tiles { grid-template-columns: repeat(4, 1fr); }
	.nav > ul > li > a { padding: .5em .55em; font-size: .9rem; }
}
@media (max-width: 1024px) {
	.grid { --cols: 3; }
	.grid--clubs { --cols: 2; }
	.mag-cover { grid-template-columns: 1fr; }
	.mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.profile { grid-template-columns: 1fr; }
	.sidebar-sticky { position: static; }
	.breeds { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.menu-toggle { display: inline-grid; }
	.site-header .wrap { justify-content: space-between; }
	.nav { position: fixed; top: 0; bottom: 0; right: 0; left: auto; width: min(88vw, 360px); height: 100dvh; background: var(--cream); z-index: 100; padding: 76px 14px 28px; transform: translateX(105%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s; overflow-y: auto; overscroll-behavior: contain; box-shadow: -20px 0 50px rgba(42, 30, 20, .18); flex: none; }
	.nav.is-open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
	.nav::before { content: "منو"; position: absolute; top: 26px; right: 20px; font-weight: 900; font-size: 1.2rem; color: var(--ink); }
	.nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
	.nav > ul > li { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
	.nav > ul > li > a { padding: 13px 16px; font-size: 1rem; border-radius: 0; }
	.nav-blog-toggle { width: 100%; justify-content: space-between; padding: 13px 16px; border-radius: 0; font-size: 1rem; }
	.nav > ul > li > a:hover, .nav > ul > li:hover > a, .nav > ul > li:focus-within > a { background: transparent; }
	.nav > ul > li.is-current > a::before, .nav > ul > li.current-menu-item > a::before, .nav > ul > li.current-menu-ancestor > a::before { right: 0; top: 12px; bottom: 12px; width: 3px; height: auto; transform: none; }
	.nav > ul > .menu-item-has-children > a { padding-left: 56px; }
	.nav > ul > .menu-item-has-children > a::after { display: none; }
	.sub-toggle { display: grid; place-items: center; position: absolute; left: 6px; top: 6px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--sand); color: var(--ink); cursor: pointer; }
	.sub-toggle::before { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); transition: transform .25s; }
	.is-expanded > .sub-toggle { background: var(--gold); }
	.is-expanded > .sub-toggle::before { transform: rotate(135deg) translate(-1px, 1px); }
	.nav .sub-menu, .nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: var(--cream); padding: 6px; display: none; transition: none; }
	.nav > ul > li.is-expanded > .sub-menu { display: block; }
	.nav .sub-menu::before, .nav .sub-menu::after { display: none; }
	.nav .sub-menu a { padding: 8px; }
	.nav .sub-menu a:hover { background: #fff; }
	.nav-close { position: absolute; top: 16px; left: 14px; }
	.nav-backdrop { position: fixed; inset: 0; background: rgba(42, 30, 20, .45); z-index: 90; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
	.nav-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
}
@media (max-width: 1024px) { .admin-bar .nav { top: 32px; height: calc(100dvh - 32px); } }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; height: calc(100dvh - 46px); } }
@media (min-width: 1025px) { .nav-close, .nav-backdrop, .sub-toggle { display: none !important; } }
@media (max-width: 820px) {
	.tiles { grid-template-columns: repeat(2, 1fr); }
	.grid { --cols: 2; }
	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.feature { grid-template-columns: 1fr; }
	.feature__main { min-height: 320px; }
	.ev-list { grid-template-columns: 1fr; }
	.profile__hero { grid-template-columns: 1fr; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.cta { grid-template-columns: 1fr; }
	.breeds { grid-template-columns: 1fr; }
	.topbar__links { display: none; }
	.header-cta { display: none; }
}
@media (max-width: 560px) {
	.grid, .grid--3, .grid--clubs { --cols: 1; }
	.mag-grid { grid-template-columns: 1fr; }
	.mag-card--wide { grid-column: auto; flex-direction: column; }
	.mag-card--wide .mag-card__img { min-height: 0; aspect-ratio: 16 / 10; }
	.filters .f-actions { grid-column: auto; flex-wrap: wrap; }
	.asb-form__grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.sb-pick__lb, .sb-pick__chev { display: none; }
	.sb-pick__btn { padding: 0 6px; }
	.sb-pick__ic { width: 36px; height: 36px; }
	.sb-go span { display: none; }
	.sb-panel { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; max-width: none; border-radius: 24px 24px 0 0; padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); z-index: 200; animation-name: sbUp; box-shadow: 0 -20px 60px rgba(42, 30, 20, .35); }
	.sb-panel::before { top: 7px; right: 50%; width: 40px; height: 4px; border: 0; border-radius: 4px; background: var(--line); transform: translateX(50%); }
	.sb-panel__head { padding-top: 10px; font-size: .95rem; color: var(--ink); }
	.sb-panel__x { display: block; }
	.brand__tag { display: none; }
	.mini { grid-template-columns: 90px 1fr; }
	.keyfacts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Breed album & purchase request ---------- */
.album { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.album__head { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 12px; }
.album__head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.02rem; }
.album__head h3 .icon { width: 20px; height: 20px; color: var(--gold-2); }
.album__head span { font-size: .8rem; color: var(--muted); }
.album__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 330px; overflow-y: auto; padding: 2px 2px 2px 6px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--gold) var(--sand); }
.album__grid::-webkit-scrollbar { width: 6px; }
.album__grid::-webkit-scrollbar-track { background: var(--sand); border-radius: 6px; }
.album__grid::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 6px; }
.album__th { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--sand); outline-offset: 2px; }
.album__th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s, filter .25s; filter: saturate(.85); }
.album__th:hover img { transform: scale(1.08); filter: none; }
.album__th::after { content: ""; position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 0 var(--gold); transition: box-shadow .2s; }
.album__th.is-active::after { box-shadow: inset 0 0 0 3px var(--gold); }
.album__th.is-active img { filter: none; }
.album__th:focus-visible { outline: 2px solid var(--gold-2); }
.gal-main .profile__img img { transition: opacity .25s; }
.gal-main.is-swapping .profile__img img { opacity: .2; }
.buy-box { margin-top: 22px; position: relative; overflow: hidden; border-radius: var(--radius); padding: 20px; background: linear-gradient(135deg, var(--ink), #4a3420); color: #D9CCB8; isolation: isolate; }
.buy-box::after { content: ""; position: absolute; left: -30px; bottom: -40px; width: 170px; height: 170px; background: url(assets/img/mark-lines.svg) no-repeat center / contain; opacity: .14; z-index: -1; }
.buy-box__q { color: #fff; font-weight: 800; font-size: 1.08rem; margin: 0 0 4px; }
.buy-box__q b { color: var(--gold); }
.buy-box__t { font-size: .85rem; margin: 0 0 14px; }
.buy-box .btn .icon { width: 18px; height: 18px; }
.buy-box__ok { background: rgba(47, 125, 79, .18); border: 1px solid rgba(110, 200, 140, .45); color: #CFF0DA; border-radius: 12px; padding: 10px 12px; font-size: .88rem; margin-bottom: 14px; }
.buy-box__ok strong { color: #fff; }
.buy-dlg { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 22px; padding: 0; background: var(--cream); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: auto; }
.buy-dlg::backdrop { background: rgba(42, 30, 20, .55); backdrop-filter: blur(2px); }
.buy-dlg[open] { animation: sbIn .25s cubic-bezier(.2, .8, .2, 1); }
.buy-dlg__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--cream); border-bottom: 1px solid var(--line); }
.buy-dlg__head h3 { margin: 0; font-size: 1.1rem; }
.buy-dlg .asb-notice, .buy-dlg .buy-form { margin: 16px 20px; }
.buy-form__note { font-size: .78rem; color: var(--muted); text-align: center; margin: 10px 0 0; }
@media (max-width: 560px) { .buy-dlg { width: 100vw; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* account button in header (1.0.14) */
.header-account { position: relative; }
.header-account.is-in::after { content: ""; position: absolute; top: 7px; left: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px #fff; }

/* Phones: keep the header inside the screen (1.0.15) */
html, body { max-width: 100%; overflow-x: clip; }
@media (max-width: 560px) {
	.site-header .wrap { gap: 8px; min-height: 64px; }
	.brand { flex: 1 1 auto; min-width: 0; gap: 8px; }
	.brand img, .brand .custom-logo { width: 42px; height: 42px; border-radius: 12px; flex: none; }
	.brand__text { min-width: 0; }
	.brand__name { font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.brand__lat, .brand__sep { display: none; }
	.header-actions { gap: 6px; flex: none; }
	.header-actions .icon-btn { width: 40px; height: 40px; border-radius: 12px; }
}
@media (max-width: 340px) {
	.brand__name { font-size: .95rem; }
	.header-actions .icon-btn { width: 36px; height: 36px; }
}

/* ---------- Home hero slider (1.0.18) ---------- */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero--art .hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); }
.hero__slides { display: grid; }
.hero__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease, visibility 0s linear .7s; }
.hero__slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease, transform .7s ease, visibility 0s; }
.hero .hero__h { margin-top: 0; }
.hero__btn { margin: -8px 0 26px; }
.hero__bg { opacity: 0; transition: opacity 1.1s ease; }
.hero__bg.is-active { opacity: .28; }
.hero__bg--side { display: none; }
.hero__art { position: relative; display: grid; justify-items: center; align-items: center; padding: 20px 0; }
.hero__art::before { content: ""; position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(242, 185, 103, .35); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.hero__art::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(242, 185, 103, .22), transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); filter: blur(10px); }
.hero__frame { grid-area: 1 / 1; position: relative; z-index: 1; margin: 0; width: min(100%, 400px); aspect-ratio: 3 / 4; border-radius: 30px; overflow: hidden; background: #F4EBDD; border: 7px solid #FBF7F0; box-shadow: 0 0 0 1px rgba(242, 185, 103, .55), 0 40px 70px -24px rgba(0, 0, 0, .7); opacity: 0; transform: rotate(-3deg) translateY(16px) scale(.97); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.hero__frame.is-active { opacity: 1; transform: rotate(-3deg); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__dots { display: flex; gap: 8px; margin: -10px 0 24px; }
.hero__dots button { width: 38px; height: 6px; padding: 0; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .18); overflow: hidden; cursor: pointer; }
.hero__dots span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 6px; }
.hero__dots button.is-active span { animation: heroDot var(--hero-dur, 7s) linear forwards; }
.hero.is-paused .hero__dots button.is-active span { animation-play-state: paused; }
@keyframes heroDot { to { width: 100%; } }
@media (max-width: 900px) {
	.hero--art .hero__grid { grid-template-columns: 1fr; }
	.hero__art { display: none; }
	.hero__bg--side { display: block; background-position: center 20%; }
	.hero__bg--side.is-active { opacity: .2; }
}
@media (prefers-reduced-motion: reduce) {
	.hero__slide, .hero__frame, .hero__bg { transition: none; }
}

/* ---------- Clubs map (1.0.19) ---------- */
.filters--clubs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(232px, 29%); gap: 16px 24px; padding: 20px; }
.filters__heading { display: flex; align-items: center; gap: 12px; }
.filters__heading h2 { margin: 0; font-size: clamp(1rem, 1.8vw, 1.35rem); }
.filters__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--cream); color: var(--amber); border: 1px solid var(--line); }
.filters--clubs form { grid-row: 2; grid-column: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.filters--clubs form > :first-child { grid-column: 1 / -1; }
.filters--clubs label.asb-check { display: flex; align-items: center; gap: 6px; }
.filters--clubs input[type=checkbox] { accent-color: var(--amber); }
.filters--clubs .f-actions { grid-column: 2 / -1; }
.filters--clubs .f-map { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
.map-card { display: flex; position: relative; isolation: isolate; align-items: flex-end; width: 100%; height: 100%; min-height: 205px; padding: 12px; overflow: hidden; border: 1px solid #c5b895; border-radius: 16px; background: #ece4cd; cursor: pointer; }
.map-card__terrain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; transition: transform .25s ease; }
.map-card:hover .map-card__terrain { transform: scale(1.05); }
.map-card__compass { position: absolute; inset: 12px auto auto 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fffaf0; border: 1px solid #c5b895; color: var(--ink); font-size: 1rem; }
.map-card__tx { display: flex; align-items: center; justify-content: space-between; gap: 9px; width: 100%; padding: 9px 11px; color: #fffaf0; background: var(--ink); border-radius: 10px; text-align: start; }
.map-card__tx > span { display: grid; place-items: center; color: var(--gold); }
.map-card:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
@media (max-width: 780px) {
	.filters--clubs { grid-template-columns: minmax(0, 1fr); }
	.filters--clubs .f-map { grid-column: 1; grid-row: auto; }
	.map-card { min-height: 165px; }
}
@media (max-width: 480px) {
	.filters--clubs { padding: 14px; gap: 14px; }
	.filters--clubs form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.filters--clubs .f-actions { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .map-card__terrain { transition: none; } }

html.mapx-lock, html.mapx-lock body { overflow: hidden; }
.mapx { position: fixed; inset: 0; z-index: 1000; background: rgba(31, 22, 14, .55); display: none; padding: 18px; }
.mapx.is-open { display: flex; }
.mapx > * { position: relative; }
.mapx__bar { position: absolute; top: 18px; right: 18px; left: 18px; height: 60px; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: var(--ink); color: #fff; border-radius: 18px 18px 0 0; }
.mapx__ttl { display: flex; flex-direction: column; line-height: 1.5; }
.mapx__ttl small { color: #CDBFAA; font-size: .78rem; }
.mapx__x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.mapx__x:hover { background: var(--gold); color: var(--ink); }
.mapx__body { flex: 1; display: grid; grid-template-columns: 330px minmax(0, 1fr); margin-top: 60px; background: #fff; border-radius: 0 0 18px 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.mapx__side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); background: var(--cream); }
.mapx__tools { display: grid; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.mapx__tools input { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; }
.mapx__hint { margin: 0; padding: 8px 14px; font-size: .78rem; color: var(--muted); }
.mapx__list { flex: 1; overflow-y: auto; padding: 0 10px 12px; display: grid; gap: 6px; align-content: start; }
.mapx__empty { font-size: .82rem; color: var(--muted); padding: 8px; margin: 0; }
.mapx-item { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; text-align: right; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.mapx-item:hover { border-color: var(--gold); }
.mapx-item b { font-size: .88rem; }
.mapx-item small { grid-column: 1; color: var(--muted); font-size: .74rem; }
.mapx-item i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: .76rem; font-weight: 800; color: var(--amber); direction: ltr; }
.mapx-item i.ok { color: var(--ok); }
.mapx__map { position: relative; min-height: 0; }
#mapx-map { position: absolute; inset: 0; background: #EFE7DA; }
#mapx-map .leaflet-tile-pane { filter: saturate(.8) sepia(.12); }
.mapx__tog { display: none; }
.mapx-pin { background: none; border: 0; }
.mapx-pin svg { display: block; filter: drop-shadow(0 4px 4px rgba(42, 30, 20, .35)); transition: transform .15s; transform-origin: 50% 100%; }
.mapx-pin:hover svg { transform: scale(1.15); }
.mapx-cl { display: grid; place-items: center; border-radius: 50%; background: rgba(242, 185, 103, .35); }
.mapx-cl span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-weight: 800; font-size: .82rem; border: 2px solid var(--gold); }
.mapx-cl.is-big span { width: 38px; height: 38px; background: var(--gold); color: var(--ink); border-color: var(--ink); }
.mapx-me span { display: block; width: 22px; height: 22px; border-radius: 50%; background: #2B7BE4; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(43, 123, 228, .25); animation: meP 1.8s infinite; }
@keyframes meP { 50% { box-shadow: 0 0 0 12px rgba(43, 123, 228, .08); } }
.leaflet-tooltip.mapx-tt { padding: 0; border: 0; border-radius: 14px; box-shadow: 0 12px 30px rgba(42, 30, 20, .25); font-family: var(--font); direction: rtl; white-space: normal; }
.leaflet-tooltip.mapx-tt::before { border-top-color: #fff; }
.mapx-tip { display: flex; gap: 10px; align-items: center; padding: 10px 12px; width: 250px; }
.mapx-tip img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.mapx-tip > div { display: flex; flex-direction: column; line-height: 1.6; min-width: 0; }
.mapx-tip b { font-size: .9rem; color: var(--ink); }
.mapx-tip small { color: var(--amber); font-size: .76rem; font-weight: 600; }
.mapx-tip span { color: var(--ink-3); font-size: .74rem; }
.mapx-ok { color: var(--ok); font-size: .72rem; }
.mapx-pp .leaflet-popup-content-wrapper { border-radius: 16px; font-family: var(--font); direction: rtl; }
.mapx-pp .leaflet-popup-content { margin: 12px 14px; }
.mapx-pop b { display: block; font-size: 1rem; }
.mapx-pop small { color: var(--amber); font-weight: 600; }
.mapx-pop p { margin: 6px 0; font-size: .8rem; color: var(--ink-3); }
.mapx-dist { color: #2B7BE4 !important; font-weight: 700; }
.mapx-pop__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mapx-pop__btns .btn { color: var(--ink); }
.mapx-pop__btns .btn--ink { color: #fff; }
.leaflet-container a.btn--ink { color: #fff; }
@media (max-width: 760px) {
	.mapx { padding: 0; }
	.mapx__bar { top: 0; right: 0; left: 0; border-radius: 0; }
	.mapx__body { grid-template-columns: 1fr; border-radius: 0; }
	.mapx__side { position: absolute; z-index: 2; top: 0; right: 0; left: 0; max-height: 100%; border: 0; background: transparent; pointer-events: none; }
	.mapx__tools { pointer-events: auto; background: rgba(251, 247, 240, .96); grid-template-columns: 1fr auto; }
	.mapx__hint, .mapx__list { display: none; pointer-events: auto; background: var(--cream); }
	.mapx.is-list .mapx__hint, .mapx.is-list .mapx__list { display: grid; }
	.mapx.is-list .mapx__list { max-height: 55vh; }
	.mapx__tog { display: block; position: absolute; z-index: 1000; bottom: 18px; left: 50%; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 10px 22px; background: var(--ink); color: var(--gold); font: inherit; font-weight: 800; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
}

/* ---------- Header account menu (1.0.20) ---------- */
.hacc { position: relative; }
.hacc .header-account { padding: 0; overflow: hidden; }
.hacc__ava { width: 100%; height: 100%; display: grid; place-items: center; background: var(--ink); color: var(--gold); font-weight: 900; font-size: 1.05rem; border-radius: inherit; }
.hacc .header-account.is-in::after { top: 4px; left: 4px; box-shadow: 0 0 0 2px var(--ink); }
.hacc.is-open .header-account { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 185, 103, .3); }
.hacc__menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 22px 50px -18px rgba(42, 30, 20, .4); padding: 8px; z-index: 60; opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left; transition: opacity .18s, transform .18s, visibility 0s linear .18s; }
.hacc__menu::before { content: ""; position: absolute; top: -7px; left: 16px; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.hacc.is-open .hacc__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s, visibility 0s; }
.hacc__head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; margin-bottom: 6px; border-bottom: 1px dashed var(--line); }
.hacc__big { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, var(--ink), #4a3626); color: var(--gold); font-weight: 900; font-size: 1.2rem; display: grid; place-items: center; flex: none; }
.hacc__head div { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.hacc__head b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hacc__head small { color: var(--muted); font-size: .76rem; text-align: right; }
.hacc__menu a[role=menuitem] { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; color: var(--ink); font-size: .9rem; font-weight: 600; }
.hacc__menu a[role=menuitem] .icon { width: 18px; height: 18px; color: var(--amber); flex: none; }
.hacc__menu a[role=menuitem]:hover { background: var(--cream); }
.hacc__out { margin-top: 4px; border-top: 1px dashed var(--line); border-radius: 0 0 11px 11px !important; color: var(--err) !important; }
.hacc__out .icon { color: var(--err) !important; }
@media (max-width: 560px) {
	.hacc { position: static; }
	.hacc__menu { left: 10px; right: 10px; top: calc(100% + 6px); min-width: 0; transform-origin: top center; }
	.hacc__menu::before { display: none; }
	.hacc__menu a[role=menuitem] { padding: 12px 12px; font-size: .95rem; }
}

/* ---------- Mobile: home sections scroll sideways (1.0.22) ---------- */
@media (max-width: 820px) {
	.hscroll { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: var(--hs-w, 240px); gap: 12px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding-bottom: 10px; scrollbar-width: none; }
	.hscroll::-webkit-scrollbar { display: none; }
	.hscroll > * { scroll-snap-align: start; min-width: 0; }
	.hscroll--2 { grid-template-rows: repeat(2, auto); }
	.hscroll--1 { grid-template-rows: auto; }
}

/* ---------- Mobile: breed cards = square image + name bar (1.0.24) ---------- */
@media (max-width: 820px) {
	.breeds.hscroll { grid-auto-columns: 170px; grid-template-rows: repeat(2, 1fr); gap: 12px; }
	.breeds .breed { display: flex; flex-direction: column; grid-template-columns: none; height: auto; background: var(--gold); border: 0; border-radius: var(--radius); }
	.breeds .breed__img { position: relative; display: block; flex: 0 0 auto; width: 100%; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; }
	.breeds .breed__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
	.breeds .breed__img .ph-mark { inset: 15%; width: 70%; height: 70%; object-fit: contain; }
	.breeds .breed__body { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 10px; background: var(--gold); text-align: center; }
	.breeds .breed__body h3 { margin: 0; font-size: .95rem; line-height: 1.5; font-weight: 800; }
	.breeds .breed__body h3 a, .section--ink .breed__body h3 a { color: var(--ink); }
	.breeds .breed__body .card__meta, .breeds .breed__body p { display: none; }
}

/* ---------- Mobile: footer in two columns (1.0.25) ---------- */
@media (max-width: 820px) {
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
	.footer-grid > * { min-width: 0; }
	.footer-about { grid-column: 1 / -1; }
	.footer-join { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
	.footer-join > h4 { grid-column: 1 / -1; }
	.footer-join .footer-trust { margin-top: 0; max-width: none; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 12px 8px; }
	.footer-join .footer-trust .trust { display: flex; justify-content: center; max-width: 100%; }
	.footer-join .footer-trust .trust img { max-width: 100%; height: auto; }
	.site-footer h4 { font-size: .95rem; margin-bottom: 10px; }
	.site-footer ul { gap: 8px; font-size: .88rem; }
}

/* ---------- Club photo gallery slider (1.0.26) ---------- */
.club-gal { position: relative; margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.club-gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.club-gal__track::-webkit-scrollbar { display: none; }
.club-gal__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 16 / 9; background: var(--ink-2); }
.club-gal__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.club-gal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(42, 30, 20, .55); color: #fff; cursor: pointer; transition: background .2s; }
.club-gal__nav:hover { background: var(--gold); color: var(--ink); }
.club-gal__nav--prev { right: 12px; }
.club-gal__nav--next { left: 12px; }
.club-gal__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.club-gal__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: width .2s, background .2s; }
.club-gal__dot.is-on { width: 22px; border-radius: 6px; background: var(--gold); }
@media (max-width: 640px) {
	.club-gal__slide { aspect-ratio: 4 / 3; }
	.club-gal__nav { width: 36px; height: 36px; }
	.club-gal__nav--prev { right: 8px; }
	.club-gal__nav--next { left: 8px; }
}

/* Club identity and approved contact details. */
.club__mono--logo { background: #fff; }
.club__mono--logo img { display: block; width: 76%; height: 76%; object-fit: contain; }
.club-profile-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 32%); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-bottom: 28px; background: #fff; }
.club-profile-head__main { min-width: 0; padding: clamp(18px, 3vw, 36px); background: linear-gradient(135deg, #fffaf1, #fff 70%); }
.club-profile-head__identity { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.club-profile-head__logo { display: grid; place-items: center; flex: none; box-sizing: border-box; width: clamp(62px, 9vw, 108px); aspect-ratio: 1; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.club-profile-head__logo img { width: 100%; height: 100%; object-fit: contain; }
.club-profile-head__name { min-width: 0; }
.club-profile-head h1 { margin: 0; font-size: clamp(1.35rem, 3vw, 2.55rem); line-height: 1.45; overflow-wrap: anywhere; }
.club-profile-head .terms-row { margin: 8px 0 0; }
.club-profile-head p { margin: 12px 0 0; color: var(--ink-3); }
.club-profile-head__facts { display: flex; gap: 10px 26px; flex-wrap: wrap; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.club-profile-head__facts dt { color: var(--muted); font-size: .8rem; }
.club-profile-head__facts dd { margin: 0; font-weight: 700; }
.club-profile-head__side { min-width: 0; border-inline-start: 1px solid var(--line); padding: 20px; background: var(--cream); }
.club-profile-head__side h2 { margin: 0 0 10px; font-size: 1.05rem; }
.club-profile-head__side .pc-cta { display: grid; gap: 8px; margin: 0; }
.club-profile-head__side > .btn { margin-top: 12px; }
.club-profile-links { list-style: none; padding: 0; margin: 0; }
.club-profile-links li + li { border-top: 1px solid var(--line); }
.club-profile-links a { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.club-profile-links a > span:last-child { min-width: 0; }
.club-profile-links a:hover b { text-decoration: underline; }
.club-profile-links small { display: block; color: var(--ink-3); text-align: right; overflow-wrap: anywhere; }
.club-profile-links__icon { display: grid; place-items: center; flex: none; width: 33px; height: 33px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--amber); }
.club-profile-links__icon .icon { width: 16px; height: 16px; }
@media (max-width: 720px) {
	.club-profile-head { grid-template-columns: minmax(0, 1fr); }
	.club-profile-head__side { border-inline-start: 0; border-top: 1px solid var(--line); }
}

/* Monthly events archive. */
.event-calendar { margin: 0 0 36px; padding: clamp(10px, 2.5vw, 28px); background: #fff; border: 1px solid var(--line); border-radius: 20px; scroll-margin-top: 90px; }
.event-calendar__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.event-calendar__head h2 { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.7rem); }
.event-calendar__nav { display: flex; flex-wrap: wrap; gap: 6px; }
.event-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.event-calendar__weekday { padding: 8px 1px; background: var(--ink); color: #fff; text-align: center; font-size: clamp(.58rem, 1.35vw, .9rem); font-weight: 700; }
.event-calendar__weekday:first-child { border-start-start-radius: 10px; }
.event-calendar__weekday:nth-child(7) { border-start-end-radius: 10px; }
.event-calendar__cell, .event-calendar__blank { position: relative; min-width: 0; background: #fff; }
.event-calendar__blank { background: var(--cream); }
.event-calendar__day { display: flex; min-height: clamp(46px, 6.3vw, 84px); align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 4px; color: var(--ink); font-size: clamp(.83rem, 1.8vw, 1.3rem); list-style: none; }
.event-calendar__day::-webkit-details-marker { display: none; }
.has-events .event-calendar__day { background: var(--gold-soft, #f9ebd0); font-weight: 800; cursor: pointer; }
.event-calendar__day[aria-current=date] { box-shadow: inset 0 0 0 2px var(--amber); }
.event-calendar__day:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.event-calendar__day i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.event-calendar__count { color: var(--ink); background: var(--gold); border-radius: 20px; min-width: 15px; padding: 0 3px; text-align: center; font-size: .63rem; }
.event-calendar__preview { position: absolute; inset-block-start: 100%; inset-inline-start: 0; z-index: 5; width: min(225px, 63vw); margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink); color: #fff; font-size: .83rem; font-weight: 500; overflow-wrap: anywhere; box-shadow: var(--shadow); }
.event-calendar__cell:nth-child(7n) .event-calendar__preview,
.event-calendar__cell:nth-child(7n - 1) .event-calendar__preview,
.event-calendar__cell:nth-child(7n - 2) .event-calendar__preview { inset-inline-start: auto; inset-inline-end: 0; }
.event-calendar__preview small { display: block; margin-top: 3px; color: var(--gold); }
a.event-calendar__day .event-calendar__preview { display: none; pointer-events: none; }
a.event-calendar__day:hover .event-calendar__preview, a.event-calendar__day:focus-visible .event-calendar__preview { display: block; }
.event-calendar__details ul { list-style: none; max-height: min(240px, 40vh); overflow-y: auto; overscroll-behavior: contain; }
.event-calendar__details li + li { margin-top: 6px; border-top: 1px solid #ffffff40; padding-top: 6px; }
.event-calendar__details li a { display: block; color: #fff; }
.event-calendar__details li a:hover, .event-calendar__details li a:focus-visible { text-decoration: underline; }
.event-calendar__empty { margin: 14px 0 0; color: var(--muted); }
