/* =========================================================
   دیزاین سیستم «بهترین‌های بوشهر» — نسخهٔ مینیمال
   توکن‌ها → پایه → کامپوننت‌ها
   ========================================================= */

@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Yekan Bakh"; src: url("../fonts/YekanBakh-Heavy.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  /* برند */
  --c-gulf: #0b2a3c;
  --c-teal: #0e7c86;
  --c-coral: #d9532b;
  --c-gold: #e0a526;
  --c-pearl: #fffaf2;
  --c-sand: #f6ecdb;

  /* معنایی (روشن) — سطوح تقریباً سفید، یک رنگ تأکید */
  --bg: #ffffff;
  --bg-soft: #f6f7f7;
  --surface: #ffffff;
  --text: #14191c;
  --text-soft: #5f6b72;
  --line: #e7eaec;
  --accent: var(--c-teal);
  --accent-ink: #ffffff;
  --link: var(--c-teal);

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;

  --font: "Yekan Bakh", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --fs-sm: clamp(.8rem, .78rem + .1vw, .875rem);
  --fs-base: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-md: clamp(1.1rem, 1.05rem + .3vw, 1.25rem);
  --fs-lg: clamp(1.3rem, 1.2rem + .6vw, 1.6rem);
  --fs-xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);

  --wrap: 1180px;
  --wrap-narrow: 760px;
  --header-h: 64px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
:root[data-theme="dark"] {
  --bg: #0c1215; --bg-soft: #121a1e; --surface: #121a1e; --text: #eef2f3; --text-soft: #97a6ad;
  --line: #222d33; --accent: #3fc1c9; --accent-ink: #062226; --link: #3fc1c9;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1215; --bg-soft: #121a1e; --surface: #121a1e; --text: #eef2f3; --text-soft: #97a6ad;
    --line: #222d33; --accent: #3fc1c9; --accent-ink: #062226; --link: #3fc1c9;
  }
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--fs-base); line-height: 1.95; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.5; margin: 0 0 var(--s-3); font-weight: 700; text-wrap: balance; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 4px; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.muted { color: var(--text-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -100px; inset-inline-start: 12px; z-index: 100; background: var(--text); color: var(--bg); padding: .5rem 1rem; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2rem, var(--wrap-narrow)); }
.section { padding-block: var(--s-7); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- دکمه، چیپ، لینک‌ها ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--s-2); padding: .55rem 1.2rem; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; border: 1px solid transparent; transition: opacity .2s; }
.btn:hover { opacity: .88; color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--text); opacity: 1; }
.btn--block { width: 100%; justify-content: center; }
.chip { display: inline-block; padding: .05rem .75rem; border-radius: var(--r-pill); background: var(--bg-soft); color: var(--text); font-size: var(--fs-sm); text-decoration: none; border: 1px solid var(--line); line-height: 1.8; }
a.chip:hover { border-color: var(--text); color: var(--text); }
.chip--float { position: absolute; top: 10px; inset-inline-start: 10px; background: rgba(255,255,255,.92); color: #14191c; border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.more { display: inline-flex; align-items: center; gap: var(--s-1); font-weight: 500; text-decoration: none; font-size: var(--fs-sm); }
.more .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.more:hover .ico { transform: translateX(-3px); }
.ico { flex: none; }

/* ---------- هدر ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: var(--s-5); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--text); flex: none; }
.brand__text { font-size: 1.15rem; font-weight: 400; }
.brand__text b { font-weight: 900; color: var(--accent); }
.nav { margin-inline-start: var(--s-4); }
.menu { list-style: none; display: flex; gap: var(--s-1); }
.menu a { display: block; padding: .3rem .8rem; color: var(--text-soft); text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.menu a:hover, .menu .current-menu-item > a { color: var(--text); }
.menu .current-menu-item > a::after { content: ""; position: absolute; inset-inline: .8rem; bottom: -14px; height: 2px; background: var(--accent); }
.tools { display: flex; align-items: center; gap: var(--s-1); margin-inline-start: auto; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--text); }
.icon-btn:hover { background: var(--bg-soft); }
.nav-toggle { display: none; }
.when-dark { display: none; }
:root[data-theme="dark"] .when-light { display: none; }
:root[data-theme="dark"] .when-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .when-light { display: none; } :root:not([data-theme="light"]) .when-dark { display: block; } }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav { position: absolute; inset-inline: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s-2) 1rem var(--s-4); display: none; margin: 0; }
  .nav.is-open { display: block; }
  .menu { flex-direction: column; }
  .menu a { padding: .7rem .5rem; }
  .menu .current-menu-item > a::after { display: none; }
}

/* ---------- جستجو ---------- */
.searchform { display: flex; gap: var(--s-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; max-width: 560px; transition: border-color .2s; }
.searchform:focus-within { border-color: var(--accent); background: var(--bg); }
.searchform input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; padding: .4rem 1rem; outline: 0; }
.searchform input::placeholder { color: var(--text-soft); }
.searchform button { display: inline-flex; align-items: center; gap: var(--s-2); border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 500; padding: 0 1.1rem; border-radius: var(--r-pill); }
.searchform button .ico { width: 18px; height: 18px; }
@media (max-width: 480px) { .searchform button span { display: none; } }

/* ---------- سرتیتر ---------- */
.page-head { padding-top: var(--s-6); margin-bottom: var(--s-5); display: grid; gap: var(--s-4); }
.page-head__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); }
.page-head__title { font-size: var(--fs-xl); font-weight: 900; margin: 0; }
.page-head__lead { color: var(--text-soft); max-width: 560px; margin: var(--s-2) 0 0; }
.page-head .searchform { width: min(100%, 380px); flex: none; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.section__head h2 { font-size: var(--fs-lg); margin: 0; font-weight: 900; }
.tabs { display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: var(--s-5); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: .5rem 1rem; color: var(--text-soft); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.is-active { color: var(--accent); border-color: var(--accent); }

/* ---------- قهرمان: اسلایدر + ستون کناری ---------- */
.hero { padding-top: var(--s-5); display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.slider { display: grid; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--c-gulf); min-height: 420px; isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; color: #fff; display: flex; align-items: flex-end; }
.slide.is-active { opacity: 1; visibility: visible; position: relative; min-height: 420px; height: 100%; }
.slide__media { position: absolute; inset: 0; z-index: -2; }
.slide__media img, .slide__media .scene { width: 100%; height: 100%; object-fit: cover; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 20, 28, .88), rgba(8, 20, 28, .1) 65%); }
.slide__body { padding: var(--s-6); max-width: 640px; }
.slide__title { font-size: var(--fs-xl); font-weight: 900; line-height: 1.55; margin: var(--s-2) 0; }
.slide__title a { color: #fff; text-decoration: none; }
.slide__excerpt { color: rgba(255, 255, 255, .85); margin-bottom: var(--s-4); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide__foot { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-4); font-size: var(--fs-sm); color: rgba(255,255,255,.8); }
.slide .chip { background: rgba(255,255,255,.16); color: #fff; border-color: transparent; backdrop-filter: blur(6px); }
.slide .btn { background: #fff; color: #14191c; }
.slide .rating, .slide .loc { color: rgba(255,255,255,.9); }
@media (max-width: 640px) { .slider, .slide.is-active { min-height: 360px; } .slide__body { padding: var(--s-5); } }

.hero__list { list-style: none; display: grid; gap: 6px; align-content: start; }
.hero__item { position: relative; display: flex; gap: var(--s-3); align-items: center; width: 100%; text-align: start; padding: var(--s-2) var(--s-3); border: 1px solid transparent; border-radius: var(--r-md); background: transparent; transition: background .2s, border-color .2s; overflow: hidden; }
.hero__item:hover { background: var(--bg-soft); }
.hero__item.is-active { background: var(--bg-soft); border-color: var(--line); }
.hero__item .thumb { width: 72px; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; flex: none; background: var(--bg-soft); }
.hero__item .thumb img, .hero__item .thumb .scene { width: 100%; height: 100%; object-fit: cover; }
.hero__item small { display: block; color: var(--accent); font-size: var(--fs-sm); font-weight: 500; line-height: 1.6; }
.hero__item b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: .95rem; line-height: 1.7; }
.hero__item i { position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; }
.hero__item.is-active i { animation: bb-progress var(--dur, 6s) linear forwards; }
.hero.is-paused .hero__item.is-active i { animation-play-state: paused; }
@keyframes bb-progress { to { transform: scaleX(1); } }
@media (max-width: 900px) { .hero__list { grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .hero__item { scroll-snap-align: start; border-color: var(--line); } }

/* ---------- کارت ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--s-5); }
.card { display: flex; flex-direction: column; background: transparent; }
.card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-md); background: var(--bg-soft); }
.card__media img, .card__media .scene { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img, .card:hover .card__media .scene { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-3) 2px 0; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); font-size: var(--fs-sm); color: var(--text-soft); }
.card__title { font-size: 1.05rem; margin: 0; font-weight: 700; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__excerpt { color: var(--text-soft); font-size: .92rem; line-height: 1.85; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { margin-top: var(--s-2); display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); color: var(--text-soft); }
.card__foot .ico { width: 15px; height: 15px; vertical-align: -3px; }

/* ---------- کاروسل ---------- */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--s-5)) / 4); gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
@media (max-width: 1000px) { .carousel__track { grid-auto-columns: calc((100% - var(--s-5)) / 2.2); } }
@media (max-width: 560px) { .carousel__track { grid-auto-columns: 78%; } }
.carousel__nav { display: flex; gap: var(--s-2); }
.carousel__btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); transition: border-color .2s, opacity .2s; }
.carousel__btn:hover:not(:disabled) { border-color: var(--text); }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__btn .ico { width: 18px; height: 18px; }

/* ---------- امتیاز و موقعیت ---------- */
.rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text); }
.rating__stars { --p: 0%; letter-spacing: 1px; font-size: .95rem; line-height: 1; background: linear-gradient(to left, var(--c-gold) var(--p), var(--line) var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; direction: rtl; }
.loc { display: inline-flex; align-items: center; gap: 4px; }
.slide .rating__stars { background: linear-gradient(to left, var(--c-gold) var(--p), rgba(255,255,255,.3) var(--p)); -webkit-background-clip: text; background-clip: text; }

/* ---------- لیست برترین‌ها ---------- */
.ranks { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 var(--s-6); counter-reset: r; }
.rank { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.rank::before { counter-increment: r; content: counter(r, persian); font-size: var(--fs-xl); font-weight: 900; color: var(--line); width: 1.6ch; text-align: center; line-height: 1; }
.rank__body { flex: 1; min-width: 0; }
.rank__title { color: var(--text); font-weight: 700; text-decoration: none; }
.rank__title:hover { color: var(--accent); }
.rank__meta { font-size: var(--fs-sm); color: var(--text-soft); }

/* ---------- مقالهٔ تکی ---------- */
.crumbs { font-size: var(--fs-sm); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); color: var(--text-soft); }
.crumbs li + li::before { content: "‹"; margin-inline-end: var(--s-2); opacity: .6; }
.crumbs a { color: var(--text-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.article__head { padding-top: var(--s-6); display: grid; gap: var(--s-3); justify-items: start; }
.article__title { font-size: var(--fs-2xl); font-weight: 900; line-height: 1.55; margin: 0; }
.article__lead { font-size: var(--fs-md); color: var(--text-soft); margin: 0; }
.article__meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); align-items: center; font-size: var(--fs-sm); color: var(--text-soft); }
.article__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.article__meta .ico { width: 15px; height: 15px; }
.article__hero { margin-block: var(--s-5); }
.article__hero img, .article__hero .scene { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--r-lg); }
.article__grid { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .article__grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.article__side { display: grid; gap: var(--s-4); align-content: start; }
@media (min-width: 1000px) { .article__side { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }
.side-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.side-card__title { font-size: .95rem; font-weight: 900; margin-bottom: var(--s-3); }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: .2rem .7rem; border-inline-start: 2px solid var(--line); color: var(--text-soft); text-decoration: none; font-size: .9rem; line-height: 1.8; }
.toc a:hover { color: var(--text); }
.toc a.is-active { border-color: var(--accent); color: var(--text); font-weight: 700; }
.mini { list-style: none; display: grid; gap: var(--s-3); }
.mini a { display: flex; gap: var(--s-3); align-items: center; text-decoration: none; color: var(--text); }
.mini .thumb { width: 56px; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; flex: none; background: var(--bg-soft); }
.mini .thumb img, .mini .thumb .scene { width: 100%; height: 100%; object-fit: cover; }
.mini b { font-size: .9rem; font-weight: 500; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini a:hover b { color: var(--accent); }

.prose { font-size: var(--fs-md); line-height: 2.1; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--s-7); font-weight: 900; }
.prose h3 { font-size: var(--fs-md); margin-top: var(--s-6); font-weight: 700; }
.prose ul, .prose ol { padding-inline-start: 1.4rem; display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--accent); }
.prose img { border-radius: var(--r-md); }
.prose figcaption { font-size: var(--fs-sm); color: var(--text-soft); text-align: center; margin-top: var(--s-2); }
.prose blockquote { margin-inline: 0; padding: var(--s-2) var(--s-5); border-inline-start: 3px solid var(--accent); color: var(--text-soft); }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: var(--s-6) 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .65rem 1rem; text-align: start; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-soft); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
/* باکس‌های توضیحی (استایل بلوک) */
.is-style-callout, .is-style-callout-tip, .is-style-callout-warn { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--bg-soft); border: 1px solid var(--line); border-inline-start: 3px solid var(--accent); }
.is-style-callout-tip { border-inline-start-color: var(--c-gold); background: color-mix(in srgb, var(--c-gold) 10%, var(--bg)); }
.is-style-callout-warn { border-inline-start-color: var(--c-coral); background: color-mix(in srgb, var(--c-coral) 8%, var(--bg)); }
.tip { display: flex; gap: var(--s-3); margin-top: var(--s-6); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: color-mix(in srgb, var(--c-gold) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--c-gold) 35%, var(--bg)); }
.tip .ico { width: 24px; height: 24px; color: var(--c-gold); margin-top: 4px; }
.tip p { margin: 0; }
.faq { margin-top: var(--s-7); }
.faq h2 { font-size: var(--fs-lg); font-weight: 900; }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s-3) 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: var(--s-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: var(--s-2) 0 0; color: var(--text-soft); }
.tags { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tags a { font-size: var(--fs-sm); background: var(--bg-soft); padding: .05rem .8rem; border-radius: var(--r-pill); text-decoration: none; color: var(--text-soft); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-7); }
.pn__a { display: grid; gap: 2px; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--text); }
.pn__a:hover { border-color: var(--text); color: var(--text); }
.pn__a small { color: var(--text-soft); }
.pn__a span { font-weight: 700; line-height: 1.7; }
.pn__a--next { text-align: end; grid-column: 2; }
@media (max-width: 560px) { .pn { grid-template-columns: 1fr; } .pn__a--next { grid-column: auto; } }
.progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 60; background: var(--accent); transform-origin: right; transform: scaleX(0); }

/* ---------- صفحه‌بندی ---------- */
.pagination { margin-top: var(--s-6); }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.page-numbers { min-width: 40px; height: 40px; padding: 0 var(--s-3); display: inline-grid; place-items: center; border-radius: var(--r-pill); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
a.page-numbers:hover { border-color: var(--text); }
.page-numbers.current { background: var(--text); color: var(--bg); border-color: var(--text); }

.notfound { text-align: center; display: grid; justify-items: center; gap: var(--s-3); }
.notfound__art { width: min(100%, 380px); border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--s-4); }

/* ---------- دیدگاه‌ها ---------- */
.comments { margin-top: var(--s-7); }
.comment-list { list-style: none; display: grid; gap: var(--s-4); margin-bottom: var(--s-6); }
.comment-body { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.comment-form { display: grid; gap: var(--s-3); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: .6rem .9rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); color: var(--text); font: inherit; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); outline: 0; }
.comment-form .submit { background: var(--accent); color: var(--accent-ink); border: 0; padding: .6rem 1.4rem; border-radius: var(--r-pill); font-weight: 500; }

/* ---------- فوتر ---------- */
.site-footer { margin-top: var(--s-8); border-top: 1px solid var(--line); background: var(--bg-soft); padding-top: var(--s-6); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1.4fr 1fr 1fr; padding-bottom: var(--s-5); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.footer-brand b { color: var(--accent); font-weight: 900; }
.footer-title { font-size: .95rem; font-weight: 900; margin-bottom: var(--s-3); }
.footer-list { list-style: none; display: grid; gap: var(--s-1); }
.footer-list a { color: var(--text-soft); text-decoration: none; }
.footer-list a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); border-top: 1px solid var(--line); padding-block: var(--s-4); font-size: var(--fs-sm); color: var(--text-soft); }
.to-top { color: var(--text-soft); text-decoration: none; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@media print { .site-header, .site-footer, .article__side, .progress, .comments { display: none; } }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* ---------- نوار بالا ---------- */
.topbar { background: var(--tb-bg, #14191c); color: var(--tb-fg, #fff); font-size: var(--fs-sm); }
[data-tb="closed"] .topbar { display: none; }
.topbar__in { display: flex; align-items: center; gap: var(--s-4); min-height: 38px; position: relative; padding-inline-end: 34px; }
.topbar__msg { margin: 0; flex: 1; }
.topbar__msg a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; margin-inline-start: var(--s-2); }
.topbar__links { list-style: none; display: flex; gap: var(--s-4); }
.topbar__links a { color: inherit; opacity: .85; text-decoration: none; } .topbar__links a:hover { opacity: 1; }
.topbar__x { position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: transparent; color: inherit; opacity: .7; display: grid; place-items: center; border-radius: 50%; }
.topbar__x:hover { opacity: 1; background: rgba(255,255,255,.14); } .topbar__x .ico { width: 16px; height: 16px; }
@media (max-width: 640px) { .topbar__links { display: none; } }

.site-header { position: relative; }
.site-header.is-sticky { position: sticky; }
.brand__logo { display: block; max-width: 220px; object-fit: contain; }
.btn--sm { padding: .3rem 1rem; font-size: .9rem; }

/* زیرمنو */
.menu li { position: relative; }
.menu .has-sub > a { display: flex; align-items: center; gap: 2px; }
.menu .has-sub > a .ico { width: 14px; height: 14px; opacity: .6; }
.menu .sub { list-style: none; position: absolute; top: calc(100% + 6px); inset-inline-start: 0; min-width: 200px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease); z-index: 60; }
.menu .has-sub:hover > .sub, .menu .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.menu .sub a { padding: .45rem .8rem; border-radius: var(--r-sm); } .menu .sub a:hover { background: var(--bg-soft); }
@media (max-width: 860px) {
  .menu .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 var(--s-4) 0 0; min-width: 0; background: transparent; }
}

/* دکمهٔ جستجو در هدر */
.search-trigger { display: inline-flex; align-items: center; gap: var(--s-2); height: 38px; padding: 0 .5rem 0 .8rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg-soft); color: var(--text-soft); min-width: 190px; transition: border-color .2s, background .2s; }
.search-trigger:hover { border-color: var(--text-soft); background: var(--bg); }
.search-trigger .ico { width: 17px; height: 17px; } .search-trigger span { flex: 1; text-align: start; font-size: .9rem; }
.search-trigger kbd, .spot kbd { font-family: inherit; font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; line-height: 1.6; color: var(--text-soft); background: var(--bg); }
@media (max-width: 860px) { .search-trigger { min-width: 0; width: 40px; padding: 0; justify-content: center; border: 0; background: transparent; } .search-trigger span, .search-trigger kbd { display: none; } }

/* ---------- جستجوی شناور (Spotlight) ---------- */
.spot { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.spot[hidden] { display: none; }
.spot__bg { position: absolute; inset: 0; background: rgba(12, 18, 21, .38); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); animation: spot-fade .18s ease-out; }
.spot__panel { position: relative; width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04) inset; overflow: hidden; animation: spot-in .22s var(--ease); }
@keyframes spot-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes spot-fade { from { opacity: 0; } }
.spot__bar { display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-5); height: 64px; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.spot__bar .ico { width: 22px; height: 22px; }
.spot__bar input { flex: 1; border: 0; background: transparent; outline: 0; font: inherit; font-size: 1.15rem; color: var(--text); min-width: 0; }
.spot__bar input::placeholder { color: var(--text-soft); opacity: .7; }
.spot__esc { border: 1px solid var(--line); border-bottom-width: 2px; background: var(--bg); color: var(--text-soft); border-radius: 7px; font-size: 11px; padding: 0 8px; line-height: 1.8; }
.spot__body { overflow-y: auto; padding: var(--s-2); overscroll-behavior: contain; }
.spot__group { padding: var(--s-3) var(--s-3) var(--s-1); font-size: 12px; color: var(--text-soft); font-weight: 700; }
.spot__item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: 14px; color: var(--text); text-decoration: none; }
.spot__item.is-sel { background: var(--accent); color: var(--accent-ink); }
.spot__item.is-sel small { color: inherit; opacity: .85; }
.spot__thumb { width: 52px; height: 40px; border-radius: 9px; overflow: hidden; flex: none; background: var(--bg-soft); display: grid; place-items: center; color: var(--text-soft); }
.spot__thumb img { width: 100%; height: 100%; object-fit: cover; }
.spot__txt { display: grid; min-width: 0; line-height: 1.6; }
.spot__txt b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot__txt small { color: var(--text-soft); }
.spot__item mark { background: transparent; color: inherit; font-weight: 900; text-decoration: underline; text-decoration-color: var(--c-gold); text-underline-offset: 4px; }
.spot__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-1) var(--s-3) var(--s-2); }
.spot__chips button { border: 1px solid var(--line); background: var(--bg-soft); border-radius: var(--r-pill); padding: 0 .8rem; color: var(--text); }
.spot__chips button:hover { border-color: var(--text); }
.spot__empty { text-align: center; color: var(--text-soft); padding: var(--s-6) var(--s-4); }
.spot__foot { display: flex; gap: var(--s-5); padding: var(--s-2) var(--s-5); border-top: 1px solid var(--line); font-size: 12px; color: var(--text-soft); }
.spot__foot kbd { margin-inline-end: 4px; }
@media (max-width: 560px) { .spot { padding-top: 8vh; } .spot__foot { display: none; } }
html.spot-open { overflow: hidden; }

/* فوتر */
.social { list-style: none; display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--text-soft); transition: .2s; }
.social a:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.footer-grid { grid-template-columns: 1.5fr repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-bottom__links { list-style: none; display: flex; gap: var(--s-4); }
.footer-bottom__links a { color: var(--text-soft); text-decoration: none; } .footer-bottom__links a:hover { color: var(--accent); }
