/* ==========================================================================
   Parak Mahan Chemi — Demo 3 · pages-c.css
   Page-specific styles for: blog.html · post.html · contact.html · 404.html
   Load AFTER style.css + pages.css. Uses only the tokens defined in style.css.
   ========================================================================== */

/* ---------- Shared small parts ---------- */
.meta-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.meta-item svg { inline-size: 16px; block-size: 16px; flex: none; color: var(--cobalt); }
.article__foot .meta-item svg { inline-size: 15px; block-size: 15px; }

.avatar {
  --size: 44px;
  inline-size: var(--size); block-size: var(--size); flex: none; border-radius: 50%;
  display: grid; place-items: center; line-height: 1; letter-spacing: 0;
  font-size: calc(var(--size) * .34); font-weight: 700; color: #fff;
  background: linear-gradient(140deg, var(--cobalt) 0%, var(--cobalt-800) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18), 0 6px 14px -8px rgba(15, 42, 122, .6);
}
.avatar--sm { --size: 36px; }
.avatar--lg { --size: 76px; }
.avatar--ice { background: var(--ice-200); color: var(--cobalt-700); box-shadow: inset 0 0 0 1px var(--ice-300); }
.avatar--orange { background: var(--orange-50); color: var(--orange-ink); box-shadow: inset 0 0 0 1px #FFD9C6; }

.byline { display: flex; align-items: center; gap: 12px; min-inline-size: 0; }
.byline__name { display: block; font-size: .875rem; font-weight: 600; color: var(--ink); line-height: 1.5; }
.byline__role { display: block; font-size: .75rem; color: var(--muted); line-height: 1.5; }

.spin-art { animation: spin 90s linear infinite; transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .spin-art { animation: none !important; } }

.empty-state[hidden], .form-success[hidden], .field__error[hidden], .form__alert[hidden] { display: none !important; }

/* Forms on light surfaces (index .form is tuned for the cobalt band) */
.form--flat { border: 1px solid var(--line); box-shadow: var(--shadow); }
.form__head h2 { font-size: 1.1875rem; }
.field textarea {
  min-block-size: 148px; resize: vertical; line-height: 1.85;
}
.field textarea::placeholder { color: #7A889B; }
.field textarea:hover { border-color: #A9B7C9; }
.field textarea:focus { outline: none; border-color: var(--cobalt); background: #fff; box-shadow: 0 0 0 4px rgba(31, 79, 216, .15); }
.field input[type="email"] { direction: ltr; text-align: end; }
.field input[type="email"]::placeholder { direction: rtl; }
.field [aria-invalid="true"] { border-color: var(--danger); background-color: #FFF5F4; }
.field [aria-invalid="true"]:focus { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(217, 45, 32, .14); }
.field__req { color: var(--orange-ink); margin-inline-start: 3px; }
.field__opt { color: var(--muted); font-weight: 400; font-size: .75rem; margin-inline-start: 4px; }
.field__error { display: flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 500; line-height: 1.6; color: #B42318; }
.field__error::before {
  content: "!"; flex: none; inline-size: 16px; block-size: 16px; border-radius: 50%;
  display: grid; place-items: center; background: var(--danger); color: #fff; font-size: .625rem; font-weight: 700; line-height: 1;
}
.form__alert {
  display: flex; align-items: center; gap: 10px; margin-block-end: 16px; padding: 10px 14px; border-radius: 10px;
  background: #FFF5F4; border: 1px solid #F8CFCB; color: #B42318; font-size: .8125rem; font-weight: 600;
}
.form__alert svg { inline-size: 18px; block-size: 18px; flex: none; }

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .8125rem; line-height: 1.85; color: var(--ink-2); cursor: pointer; }
.consent input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 3px 0 0;
  inline-size: 20px; block-size: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong);
  background: var(--ice-50) center / 14px no-repeat; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.consent input:hover { border-color: var(--cobalt); }
.consent input:checked {
  background-color: var(--cobalt); border-color: var(--cobalt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.consent input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.consent input[aria-invalid="true"] { border-color: var(--danger); background-color: #FFF5F4; }
.consent a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; }
.consent-wrap { display: grid; gap: 6px; }
@media (min-width: 560px) { .consent-wrap { grid-column: 1 / -1; } }

.form-success { display: grid; justify-items: center; text-align: center; gap: 10px; padding-block: clamp(28px, 5vw, 56px); }
.form-success__icon { inline-size: 76px; block-size: 76px; border-radius: 50%; display: grid; place-items: center; background: #E7F6EF; color: var(--success); margin-block-end: 6px; box-shadow: 0 0 0 10px rgba(11, 122, 85, .06); }
.form-success__icon svg { inline-size: 38px; block-size: 38px; }
.form-success h3 { font-size: 1.25rem; }
.form-success p { color: var(--muted); max-inline-size: 46ch; font-size: .9375rem; }
.form-success__ref { font-size: .8125rem; color: var(--ink-2); background: var(--ice-100); border-radius: 999px; padding: 4px 14px; }
.form-success__ref b { color: var(--ink); }
.form-success .btn { margin-block-start: 10px; }

/* Grid-lined photo overlay, same as page-hero media */
.ph-grid::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .18) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---------- Page hero with crystal art (blog) ---------- */
.page-hero__art { display: none; }
@media (min-width: 1000px) {
  .page-hero--art .page-hero__inner { grid-template-columns: minmax(0, 1fr) 400px; }
  .page-hero__art { display: block; inline-size: 100%; block-size: auto; overflow: visible; margin-block: -12px -24px; }
}

/* ==========================================================================
   BLOG
   ========================================================================== */
/* body.blog هم کلاس وردپرس است؛ فقط بخش محتوا فاصله می‌گیرد */
.blog:not(body) { padding-block-start: clamp(40px, 5vw, 72px); }

/* Featured post */
.post-feature {
  position: relative; display: grid; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow);
  margin-block-end: clamp(48px, 6vw, 80px);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease), border-color .3s;
}
.post-feature:hover { box-shadow: var(--shadow-l); transform: translateY(-4px); border-color: var(--cobalt-100); }
@media (min-width: 900px) { .post-feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.post-feature__media { margin: 0; aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .post-feature__media { aspect-ratio: auto; min-block-size: 460px; }
  .post-feature__media > img { position: absolute; inset: 0; }
}
.post-feature:hover .post-feature__media img { transform: scale(1.04); }
.post-feature__card {
  position: absolute; z-index: 3; inset-block-end: 18px; inset-inline-end: 18px; inline-size: 228px;
  padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .93); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow); font-size: .75rem;
}
.post-feature__card .coa__label b { color: var(--ink); font-weight: 700; }
.post-feature__card .coa__bar { margin-block: 4px 8px; }
.post-feature__card .coa__bar span { margin-inline-start: 0; }
.post-feature__card .coa__bar--alt span { background: linear-gradient(270deg, var(--orange), #FFB38F); }
@media (max-width: 479.98px) { .post-feature__card { display: none; } }
.post-feature__media .photo-chip { inset-block-start: 16px; inset-inline-start: 16px; }

.post-feature__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(24px, 4vw, 52px); }
.post-feature__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-feature__title { font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2.125rem); line-height: 1.5; }
.post-feature__title a {
  background-image: linear-gradient(var(--cobalt), var(--cobalt)); background-size: 0 2px; background-repeat: no-repeat; background-position: 100% 100%;
  transition: background-size .45s var(--ease), color .2s;
}
.post-feature:hover .post-feature__title a { background-size: 100% 2px; color: var(--cobalt-700); }
.post-feature__title a::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.post-feature__excerpt { color: var(--muted); font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem); line-height: 1.95; }
.post-feature__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8125rem; color: var(--muted); }
.post-feature__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-block-start: 6px; padding-block-start: 20px; border-block-start: 1px solid var(--line);
}
.post-feature:hover .link-arrow svg { transform: translateX(-4px); }

/* List head */
.list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-block-end: 18px; }
.list-head .eyebrow { margin-block-end: 8px; }
.list-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); line-height: 1.35; }
.list-head h2 em { font-style: normal; color: var(--cobalt); }
.list-head__count { font-size: .8125rem; color: var(--muted); }
.list-head__count b { color: var(--ink); font-weight: 600; }

/* Article grid in the main column */
.articles--blog { gap: clamp(16px, 2vw, 24px); }
@media (min-width: 640px) { .articles--blog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .articles--blog { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) {
  .article--wide { grid-column: 1 / -1; flex-direction: row; }
  .article--wide .article__cover { position: relative; flex: 0 0 50%; aspect-ratio: auto; min-block-size: 300px; }
  .article--wide .article__cover > img { position: absolute; inset: 0; }
  .article--wide .article__body { padding: clamp(24px, 3vw, 36px); justify-content: center; gap: 12px; }
  .article--wide h3 { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.5rem); line-height: 1.55; }
  .article--wide p { font-size: .9375rem; }
}
.blog-empty { margin-block-start: 4px; }
.blog-empty__q { color: var(--ink); font-weight: 600; }

/* Sidebar: static column, last widget sticks */
.blog-aside { align-self: stretch; align-content: start; }
@media (min-width: 1024px) {
  .blog-aside { position: static; }
  .blog-aside .side-cta { position: sticky; inset-block-start: calc(var(--header-h) + 24px); }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  .blog-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

.mini-posts { display: grid; }
.mini-posts li + li .mini-post { border-block-start: 1px solid var(--line); }
.mini-post { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding-block: 12px; }
.mini-posts li:first-child .mini-post { padding-block-start: 4px; }
.mini-post__thumb { aspect-ratio: 1; border-radius: 12px; }
.mini-post:hover .mini-post__thumb img { transform: scale(1.08); }
.mini-post__num {
  position: absolute; z-index: 3; inset-block-start: 4px; inset-inline-start: -8px;
  inline-size: 24px; block-size: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s);
  font-size: .6875rem; font-weight: 700; color: var(--cobalt); line-height: 1;
}
.mini-posts li:first-child .mini-post__num { inset-block-start: -4px; }
.mini-post__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: .875rem; font-weight: 600; color: var(--ink); line-height: 1.75; transition: color .2s;
}
.mini-post:hover .mini-post__title { color: var(--cobalt); }
.mini-post__meta { display: block; font-size: .75rem; color: var(--muted); margin-block-start: 2px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
/* body.tag کلاس بایگانی برچسب وردپرس است؛ این قاعده فقط برای چیپ برچسب است */
.tag:not(body) {
  display: inline-flex; align-items: center; gap: 8px; min-block-size: 36px; padding-inline: 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--ice-50);
  font-size: .8125rem; color: var(--ink-2); transition: border-color .2s, color .2s, background-color .2s;
}
.tag:not(body)::before { content: ""; inline-size: 5px; block-size: 5px; border-radius: 1px; background: var(--cobalt-300); transform: rotate(45deg); flex: none; transition: background-color .2s; }
.tag:not(body):hover { border-color: var(--cobalt); color: var(--cobalt); background: var(--surface); }
.tag:not(body):hover::before { background: var(--orange); }

.widget--accent::after {
  content: ""; position: absolute; inset-block-start: -45%; inset-inline-end: -35%; inline-size: 90%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(134, 163, 242, .55), transparent 65%);
}
.widget--accent::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%); mask-image: linear-gradient(200deg, #000, transparent 60%);
}
.widget--accent > * { position: relative; z-index: 1; }
.nl-points { display: grid; gap: 6px; margin-block-end: 16px; font-size: .8125rem; color: #fff; }
.nl-points li { display: flex; align-items: center; gap: 8px; }
.nl-points svg { inline-size: 18px; block-size: 18px; flex: none; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.nl-form { display: grid; gap: 10px; }
.nl-form input {
  inline-size: 100%; min-block-size: 48px; padding-inline: 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff;
  direction: ltr; text-align: end; font-size: .9375rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.nl-form input::placeholder { color: #C9D6FA; direction: rtl; }
.nl-form input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .16); box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }
.nl-form input[aria-invalid="true"] { border-color: #FFB38F; box-shadow: 0 0 0 4px rgba(255, 107, 44, .3); }
.nl-msg { font-size: .75rem; color: #fff; line-height: 1.7; min-block-size: 1.3em; }
.nl-msg.is-ok { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.nl-msg svg { inline-size: 16px; block-size: 16px; flex: none; }
.nl-meta { display: flex; align-items: center; gap: 8px; margin-block-start: 12px; padding-block-start: 12px; border-block-start: 1px solid rgba(255, 255, 255, .16); font-size: .75rem; color: var(--cobalt-100); }
.nl-meta::before { content: ""; inline-size: 6px; block-size: 6px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); flex: none; }

.side-cta { padding: 0; overflow: hidden; }
.side-cta__media { margin: 0; aspect-ratio: 16 / 9; }
.side-cta__body { padding: 20px 22px 22px; }
.side-cta__body > p { font-size: .875rem; color: var(--muted); line-height: 1.85; margin-block-end: 16px; }
.side-cta__tel { display: flex; justify-content: center; align-items: center; gap: 8px; margin-block-start: 12px; font-size: .875rem; font-weight: 600; color: var(--ink-2); transition: color .2s; }
.side-cta__tel svg { inline-size: 16px; block-size: 16px; color: var(--cobalt); }
.side-cta__tel:hover { color: var(--cobalt); }

/* ==========================================================================
   POST
   ========================================================================== */
.read-progress { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 120; block-size: 3px; pointer-events: none; }
.read-progress__bar {
  display: block; block-size: 100%; inline-size: 100%; transform: scaleX(0); transform-origin: right center;
  background: linear-gradient(270deg, var(--cobalt) 0%, var(--cobalt-300) 75%, var(--orange) 100%);
  box-shadow: 0 1px 6px rgba(31, 79, 216, .35);
}

.post-hero { padding-block-end: clamp(132px, 17vw, 236px); }
.post-hero .page-hero__content { max-inline-size: 940px; }
.post-hero__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-hero .page-hero__title { font-size: clamp(1.625rem, 1.05rem + 2.3vw, 2.75rem); line-height: 1.45; margin-block: 18px 14px; }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px;
  margin-block-start: 28px; padding-block-start: 22px; border-block-start: 1px solid var(--line);
}
.post-meta__info { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; font-size: .8125rem; color: var(--muted); }
.post-meta__sep { inline-size: 1px; block-size: 30px; background: var(--line); }
@media (max-width: 639.98px) { .post-meta__sep { display: none; } .post-meta__info .byline { inline-size: 100%; } }

.share { display: flex; align-items: center; gap: 6px; }
.share__label { font-size: .8125rem; color: var(--muted); margin-inline-end: 6px; }
.share__btn {
  position: relative; inline-size: 40px; block-size: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
  cursor: pointer; transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.share__btn:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; transform: translateY(-2px); }
.share__btn svg { inline-size: 18px; block-size: 18px; }
.share__tip {
  position: absolute; inset-block-end: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(50%);
  padding: 2px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .6875rem; font-weight: 600; line-height: 1.8; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.share__btn.is-copied { background: var(--success); border-color: var(--success); color: #fff; }
.share__btn.is-copied .share__tip { opacity: 1; }

.post-cover { position: relative; z-index: 2; margin-block-start: calc(clamp(100px, 13.5vw, 196px) * -1); }
.post-cover__figure { margin: 0; aspect-ratio: 21 / 9; border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
@media (max-width: 639.98px) { .post-cover__figure { aspect-ratio: 16 / 10; border-radius: var(--radius); } }
.post-cover__figure .photo-chip { inset-block-start: auto; inset-block-end: 16px; }
.post-cover__figure > img { object-position: 50% 45%; }

.post-body { padding-block: clamp(40px, 6vw, 80px) var(--section-y); }
@media (min-width: 1024px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 5vw, 72px); }
  .post-aside { position: static; align-self: stretch; align-content: start; }
  .post-aside__sticky { position: sticky; inset-block-start: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
}
@media (max-width: 1023.98px) {
  .post-aside { display: grid; gap: 20px; }
  .post-aside__sticky { display: grid; gap: 20px; }
  .post-aside .toc-widget { display: none; }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  .post-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* Mobile table of contents */
.toc-mobile { margin-block-end: 28px; }
@media (min-width: 1024px) { .toc-mobile { display: none; } }
.toc-mobile .accordion__body { padding-block-end: 12px; }

.toc__list { display: grid; gap: 2px; }
.toc__link {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: baseline;
  padding: 8px 10px; border-radius: 10px; font-size: .875rem; line-height: 1.7; color: var(--ink-2);
  transition: background-color .2s, color .2s, box-shadow .25s;
}
.toc__num { font-size: .75rem; font-weight: 600; color: var(--muted); transition: color .2s; }
.toc__link:hover { background: var(--ice-50); color: var(--cobalt); }
.toc__link[aria-current="true"] { background: var(--cobalt-50); color: var(--cobalt-700); font-weight: 600; box-shadow: inset -3px 0 0 var(--cobalt); }
.toc__link[aria-current="true"] .toc__num { color: var(--cobalt); }
.toc__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-start: 14px; padding-block-start: 14px; border-block-start: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.toc__meter { flex: 1; block-size: 4px; border-radius: 4px; background: var(--ice-200); overflow: hidden; }
.toc__meter span { display: block; block-size: 100%; inline-size: 100%; transform: scaleX(0); transform-origin: right center; background: linear-gradient(270deg, var(--cobalt), var(--cobalt-300)); border-radius: inherit; }
.toc__pct { min-inline-size: 3.2em; text-align: end; font-weight: 600; color: var(--ink-2); }

.side-product__top { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center; }
.side-product__thumb { aspect-ratio: 1; border-radius: 14px; }
.side-product__name { font-size: 1rem; line-height: 1.5; }
.side-product__name a::after { content: ""; position: absolute; inset: 0; }
.side-product { position: relative; transition: border-color .3s, box-shadow .4s var(--ease); }
.side-product:hover { border-color: var(--cobalt-200); box-shadow: var(--shadow); }
.side-product:hover .side-product__thumb img { transform: scale(1.08); }
.side-product__purity { display: block; font-size: 1.75rem; font-weight: 700; color: var(--cobalt); line-height: 1.2; }
.side-product__grade { display: block; font-size: .6875rem; color: var(--muted); font-weight: 600; text-align: start; }
.side-product__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block-start: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.side-product__specs div { padding: 6px 10px; }
.side-product__specs div + div { border-inline-start: 1px solid var(--line); }
.side-product__specs dt { font-size: .6875rem; color: var(--muted); }
.side-product__specs dd { margin: 0; font-size: .875rem; font-weight: 700; color: var(--ink); }
.side-product__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-start: 14px; }
.side-product__foot .product__badge { position: static; }
.side-product:hover .link-arrow svg { transform: translateX(-4px); }

.widget--ink { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); border-color: var(--ink); color: #C9D3E1; }
.widget--ink::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 65%); mask-image: linear-gradient(200deg, #000, transparent 65%);
}
.widget--ink .widget__title { color: #fff; }
.widget--ink .widget__title::before { background: var(--orange); }
.widget--ink p { font-size: .875rem; line-height: 1.85; margin-block-end: 16px; }
.widget--ink .side-cta__tel { color: #fff; }
.widget--ink .side-cta__tel svg { color: var(--cobalt-300); }
.widget--ink .side-cta__tel:hover { color: var(--cobalt-200); }

/* Prose extras */
.post-layout .prose { max-inline-size: none; }
.prose .btn, .prose .btn:hover { color: var(--btn-fg); text-decoration: none; }
.prose .table-card { margin-block: 1.6em; }
.prose .table-card__head h3 { margin: 0; font-size: 1rem; }
.prose .table-card__head h3::before { content: none; }
.prose table.analysis { display: table; overflow: visible; border: 0; border-radius: 0; background: none; font-size: .9375rem; line-height: 1.6; }
.prose .analysis th, .prose .analysis td { padding: 14px 20px; white-space: normal; }
.prose .analysis thead th { font-size: .75rem; }
.prose .analysis tbody tr:last-child th { border-block-end: 0; }
.prose .analysis .num { white-space: nowrap; }
.diff { display: inline-flex; align-items: center; padding: 1px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; color: var(--orange-ink); background: var(--orange-50); border: 1px solid #FFD9C6; }
.diff--none { color: var(--muted); background: var(--ice-100); border-color: var(--line); }
@media (max-width: 719.98px) {
  .prose table.analysis { display: block; }
  .prose .analysis th, .prose .analysis td { padding: 4px 0; border: 0; }
}

.prose .prose__note strong { color: var(--ink); }
.prose .prose__note p + p { margin-block-start: .5em; }

.calc { margin-block: 1.6em; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-s); line-height: 1.6; }
.calc__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 20px; background: var(--ice-50); border-block-end: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.calc__formula { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.calc__formula i { font-style: normal; color: var(--cobalt); font-weight: 700; }
.calc__grid { display: grid; }
@media (min-width: 560px) { .calc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .calc__col + .calc__col { border-inline-start: 1px solid var(--line); } }
@media (max-width: 559.98px) { .calc__col + .calc__col { border-block-start: 1px solid var(--line); } }
.calc__col { padding: 18px 20px 14px; }
.calc__grade { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 6px; }
.calc__grade b { font-size: 1rem; color: var(--ink); }
.calc__rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 8px; border-block-end: 1px dashed var(--line); font-size: .875rem; }
.calc__rows > div:last-child { border-block-end: 0; }
.calc__rows dt { color: var(--muted); }
.calc__rows dd { margin: 0; font-weight: 600; color: var(--ink); white-space: nowrap; }
.calc__total dt { color: var(--ink); font-weight: 600; }
.calc__total dd { font-size: 1.1875rem; font-weight: 700; color: var(--cobalt); }
.calc__col--alt .calc__total dd { color: var(--ink); }
.calc__foot { display: flex; align-items: flex-start; gap: 12px; padding: 14px 20px; background: var(--cobalt-50); border-block-start: 1px solid var(--cobalt-100); font-size: .875rem; color: var(--ink-2); line-height: 1.9; }
.calc__foot svg { inline-size: 20px; block-size: 20px; flex: none; color: var(--cobalt); margin-block-start: 3px; }
.calc__foot strong { color: var(--cobalt-700); }

.post-cta {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 18px 32px; align-items: center;
  padding: clamp(24px, 3.5vw, 36px); border-radius: var(--radius-l); background: var(--cobalt); color: #DCE5FC; line-height: 1.85;
}
.prose .post-cta { margin-block-start: 2.4em; }
.post-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 75%); mask-image: linear-gradient(90deg, #000, transparent 75%);
}
.post-cta::after { content: ""; position: absolute; z-index: -1; inset-block-start: -70%; inset-inline-start: -15%; inline-size: 55%; aspect-ratio: 1; background: radial-gradient(circle, rgba(134, 163, 242, .5), transparent 65%); }
@media (min-width: 760px) { .post-cta { grid-template-columns: minmax(0, 1fr) auto; } }
.post-cta__eyebrow { font-size: .8125rem; color: var(--cobalt-200); font-weight: 500; }
.post-cta__title { color: #fff; font-size: clamp(1.1875rem, 1rem + .7vw, 1.5rem); font-weight: 700; line-height: 1.5; margin-block: 4px 6px; }
.post-cta__text { font-size: .9375rem; max-inline-size: 48ch; }
.post-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.post-cta__actions .btn { flex: 1 1 auto; }
.post-cta :focus-visible { outline-color: var(--orange); }

/* Post footer */
.post-foot { display: grid; gap: 24px; margin-block-start: clamp(40px, 5vw, 56px); }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; border-block: 1px solid var(--line); }
.post-tags__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-tags__label { font-size: .8125rem; color: var(--muted); margin-inline-end: 4px; }

.author-box {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; align-items: start;
  padding: clamp(22px, 3vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
}
.author-box::after { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; block-size: 3px; background: linear-gradient(90deg, var(--cobalt) 0 70%, var(--orange) 70% 100%); }
.author-box__label { font-size: .75rem; font-weight: 600; color: var(--cobalt); }
.author-box__name { font-size: 1.125rem; margin-block: 2px 8px; }
.author-box p { font-size: .9063rem; color: var(--muted); line-height: 1.95; }
.author-box__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-block-start: 14px; font-size: .8125rem; color: var(--muted); }
@media (max-width: 479.98px) { .author-box { grid-template-columns: 1fr; } }

.post-nav { display: grid; gap: 12px; }
@media (min-width: 640px) { .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-nav__link {
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, box-shadow .35s var(--ease), transform .35s var(--ease);
}
.post-nav__link:hover { border-color: var(--cobalt-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-nav__link--next { grid-template-columns: minmax(0, 1fr) 76px; text-align: end; }
.post-nav__thumb, .mini-post__thumb, .side-product__thumb { display: block; }
.post-nav__thumb { aspect-ratio: 1; border-radius: 10px; }
.post-nav__link:hover .post-nav__thumb img { transform: scale(1.08); }
.post-nav__dir { display: flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--cobalt); line-height: 1.6; }
.post-nav__dir svg { inline-size: 14px; block-size: 14px; flex: none; transition: transform .3s var(--ease); }
.post-nav__link--prev .post-nav__dir svg { transform: scaleX(-1); }
.post-nav__link--prev:hover .post-nav__dir svg { transform: scaleX(-1) translateX(-3px); }
.post-nav__link--next .post-nav__dir { justify-content: flex-end; }
.post-nav__link--next:hover .post-nav__dir svg { transform: translateX(-3px); }
.post-nav__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .875rem; font-weight: 600; line-height: 1.75; color: var(--ink); }

/* Comments */
.comments { margin-block-start: clamp(48px, 6vw, 72px); scroll-margin-top: calc(var(--header-h) + 16px); }
.comments__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-block-end: 20px; }
.comments__head h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.375rem, 1.15rem + .9vw, 1.75rem); }
.comments__head h2::before { content: ""; inline-size: 10px; block-size: 10px; border-radius: 2px; background: var(--cobalt); transform: rotate(45deg); flex: none; }
.comments__head p { font-size: .8125rem; color: var(--muted); }
.comment-list { display: grid; gap: 14px; }
.comment { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.comment__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-block-end: 6px; }
.comment__name { font-size: .9375rem; font-weight: 700; color: var(--ink); }
.comment__role { display: block; font-size: .75rem; color: var(--muted); line-height: 1.6; }
.comment__head time { font-size: .75rem; color: var(--muted); }
.comment__text { font-size: .9375rem; color: var(--ink-2); line-height: 1.95; }
.comment__actions { display: flex; align-items: center; gap: 16px; margin-block-start: 8px; }
.comment__reply { display: inline-flex; align-items: center; gap: 6px; min-block-size: 36px; padding: 0; border: 0; background: none; color: var(--cobalt); font-size: .8125rem; font-weight: 600; cursor: pointer; }
.comment__reply svg { inline-size: 16px; block-size: 16px; }
.comment__reply:hover { color: var(--cobalt-700); text-decoration: underline; text-underline-offset: 4px; }
.comment-list--children { margin-block-start: 12px; padding-inline-start: clamp(14px, 4vw, 44px); border-inline-start: 2px solid var(--cobalt-100); }
.comment--staff { background: var(--ice-50); border-color: var(--cobalt-100); }
@media (max-width: 479.98px) { .comment { grid-template-columns: 1fr; padding: 16px; } .comment .avatar { --size: 36px; } }
.comment-form { margin-block-start: 24px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.contact-card::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline-start: 24px; inline-size: 28px; block-size: 3px; background: var(--cobalt); border-radius: 0 0 3px 3px; }
.contact-card--orange::before { background: var(--orange); }
.contact-card:hover { border-color: var(--cobalt-200); transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card__icon { inline-size: 52px; block-size: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--cobalt-50); color: var(--cobalt); margin-block-end: 6px; transition: background-color .3s, color .3s; }
.contact-card__icon svg { inline-size: 26px; block-size: 26px; }
.contact-card:hover .contact-card__icon { background: var(--cobalt); color: #fff; }
.contact-card--orange .contact-card__icon { background: var(--orange-50); color: var(--orange-ink); }
.contact-card--orange:hover .contact-card__icon { background: var(--orange); color: var(--ink); }
.contact-card__idx { position: absolute; inset-block-start: 22px; inset-inline-end: 22px; font-size: .75rem; font-weight: 600; color: var(--line-strong); }
.contact-card h3 { font-size: 1.0625rem; }
.contact-card > p { font-size: .875rem; color: var(--muted); line-height: 1.85; }
.contact-card__list { display: grid; gap: 6px; margin-block-start: auto; padding-block-start: 14px; border-block-start: 1px dashed var(--line-strong); font-size: .875rem; }
.contact-card__list li { display: flex; align-items: center; gap: 10px; min-inline-size: 0; min-block-size: 30px; }
.contact-card__list svg { inline-size: 16px; block-size: 16px; flex: none; color: var(--cobalt); }
.contact-card__list a { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; transition: color .2s; }
.contact-card__list a:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; }
.contact-card__list span { color: var(--ink-2); font-size: .8125rem; }
.contact-card__list small { margin-inline-start: auto; font-size: .6875rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; white-space: nowrap; }

.contact-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); gap: 32px; align-items: stretch; } }
.contact-form .form__head { flex-wrap: wrap; padding-block-end: 16px; margin-block-end: 20px; border-block-end: 1px solid var(--line); }
.contact-form .form__head p { font-size: .8125rem; color: var(--muted); inline-size: 100%; }
.contact-form .form__foot { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .contact-form .form__foot { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 20px; }
  .contact-form .form__foot .btn { inline-size: auto; padding-inline: 28px; }
  .contact-form .form__ok { grid-column: 1 / -1; }
}

.info-panel {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 20px;
  padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-l); background: var(--ink); color: #C9D3E1;
}
.info-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 20% 0%, #000 20%, transparent 80%); mask-image: radial-gradient(ellipse 90% 60% at 20% 0%, #000 20%, transparent 80%);
}
.info-panel::after { content: ""; position: absolute; z-index: -1; inset-block-end: -30%; inset-inline-start: -30%; inline-size: 80%; aspect-ratio: 1; background: radial-gradient(circle, rgba(31, 79, 216, .35), transparent 65%); pointer-events: none; }
.info-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.info-panel__head h3 { color: #fff; font-size: 1.1875rem; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: rgba(52, 211, 153, .12); color: #6EE7B7; }
.status::before { content: ""; inline-size: 6px; block-size: 6px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.status.is-off { background: rgba(255, 255, 255, .08); color: #C9D3E1; }
.status.is-off::before { background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 44, .25); }
.info-block { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding-block-start: 20px; border-block-start: 1px solid rgba(255, 255, 255, .1); }
.info-block__icon { inline-size: 40px; block-size: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: var(--cobalt-300); }
.info-block__icon svg { inline-size: 20px; block-size: 20px; }
.info-block h4 { color: #fff; font-size: .9375rem; margin-block-end: 2px; }
.info-block address, .info-block p { font-style: normal; font-size: .875rem; line-height: 1.9; }
.info-block a { color: #fff; font-weight: 600; }
.info-block a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hours { display: grid; margin-block-start: 2px; font-size: .875rem; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding-block: 5px; border-block-end: 1px dashed rgba(255, 255, 255, .12); }
.hours div:last-child { border-block-end: 0; }
.hours dt { color: #C9D3E1; }
.hours dd { margin: 0; color: #fff; font-weight: 600; white-space: nowrap; }
.hours .is-off dd { color: #8FA0B8; font-weight: 500; }
.info-panel__social { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block-start: auto; padding-block-start: 20px; border-block-start: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; }

/* Map */
.map-panel {
  position: relative; overflow: hidden;
  background-color: #FBFCFE; background-image: radial-gradient(circle, #C6D5EB 1.1px, transparent 1.4px); background-size: 12px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-s);
}
.map-panel__canvas { position: relative; overflow: hidden; block-size: 300px; }
.map-panel__canvas svg { inline-size: 100%; block-size: 100%; overflow: visible; }
.map-label { font-size: 9px; }
.map-lens, .map-minor { display: none; }
@media (min-width: 900px) {
  .map-panel__canvas { block-size: clamp(420px, 42vw, 540px); }
  .map-panel__canvas svg { margin-inline-start: 380px; inline-size: calc(100% - 380px); }
  .map-label { font-size: 6.5px; }
  .map-lens, .map-minor { display: inline; }
  .map-panel__card { position: absolute; z-index: 2; inset-block-start: 24px; inset-inline-start: 24px; inline-size: 340px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.map-panel__card { display: grid; gap: 14px; padding: 20px; background: var(--surface); border-block-start: 1px solid var(--line); }
.map-panel__card > h3 { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.map-panel__card > h3::before { content: ""; inline-size: 8px; block-size: 8px; border-radius: 2px; background: var(--cobalt); transform: rotate(45deg); }
.loc { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
.loc + .loc { padding-block-start: 14px; border-block-start: 1px dashed var(--line-strong); }
.loc__pin { inline-size: 38px; block-size: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--cobalt-50); color: var(--cobalt); }
.loc__pin svg { inline-size: 20px; block-size: 20px; }
.loc__pin--factory { background: var(--orange-50); color: var(--orange-ink); }
.loc h4 { font-size: .9375rem; line-height: 1.6; }
.loc address { font-style: normal; font-size: .8125rem; color: var(--muted); line-height: 1.85; }
.loc__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 10px; }
.loc__actions .btn { min-block-size: 38px; padding-inline: 14px; font-size: .8125rem; }
.map-panel .map-legend { position: relative; z-index: 2; }

/* FAQ */
.faq-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) { .faq-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; } .faq-layout__side { position: sticky; inset-block-start: calc(var(--header-h) + 24px); } }
.faq-layout .section-head { margin-block-end: 24px; }
.faq-help { display: grid; gap: 14px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.faq-help p { font-size: .875rem; color: var(--muted); }
.faq-help b { display: block; color: var(--ink); font-size: 1rem; margin-block-end: 2px; }
.faq-help__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   404
   ========================================================================== */
.nf { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(28px, 5vw, 64px) clamp(56px, 7vw, 104px); background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.nf::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(31, 79, 216, .055) 1px, transparent 1px), linear-gradient(to bottom, rgba(31, 79, 216, .055) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 30% 40%, #000 20%, transparent 75%);
}
.nf__grid { display: grid; gap: clamp(8px, 3vw, 48px); align-items: center; }
@media (min-width: 1000px) { .nf__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); } }
.nf__art { order: -1; min-inline-size: 0; }
@media (min-width: 1000px) { .nf__art { order: 0; } }
.nf__art svg { inline-size: 100%; block-size: auto; max-inline-size: 640px; margin-inline: auto; overflow: visible; }
@media (max-width: 639.98px) { .nf__art svg { max-inline-size: 420px; } }
.nf__content { min-inline-size: 0; }
.nf h1 { margin-block: 20px 16px; font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.3; letter-spacing: -.01em; }
.nf h1 em { font-style: normal; color: var(--cobalt); position: relative; white-space: nowrap; }
.nf h1 em::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: .04em; block-size: .12em; background: linear-gradient(90deg, var(--orange), rgba(255, 107, 44, .35)); border-radius: 4px; z-index: -1; opacity: .9; }
.nf__lead { max-inline-size: 52ch; font-size: clamp(1rem, .95rem + .3vw, 1.125rem); color: var(--muted); line-height: 1.95; }
.nf__search { margin-block-start: 28px; max-inline-size: 520px; }
.nf__search .search-field input { min-block-size: 58px; padding-inline-end: 64px; box-shadow: var(--shadow-s); font-size: 1rem; }
.nf__search .search-field button { inline-size: 48px; block-size: 48px; }
.nf__hint { margin-block-start: 10px; font-size: .8125rem; color: var(--muted); }
.nf__hint a { color: var(--cobalt); font-weight: 600; }
.nf__hint a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nf__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }

.nf-links { margin-block-start: clamp(48px, 6vw, 80px); }
.nf-links__title { display: flex; align-items: center; gap: 16px; margin-block-end: 18px; font-size: .875rem; font-weight: 600; color: var(--ink); }
.nf-links__title::after { content: ""; flex: 1; block-size: 1px; background: var(--line-strong); }
.nf-link {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; block-size: 100%;
  padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.nf-link:hover { border-color: var(--cobalt-200); transform: translateY(-4px); box-shadow: var(--shadow); }
.nf-link__icon { inline-size: 48px; block-size: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--cobalt-50); color: var(--cobalt); transition: background-color .3s, color .3s; }
.nf-link__icon svg { inline-size: 24px; block-size: 24px; }
.nf-link:hover .nf-link__icon { background: var(--cobalt); color: #fff; }
.nf-link b { display: block; font-size: .9375rem; color: var(--ink); line-height: 1.5; }
.nf-link small { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.6; }
.nf-link__go { inline-size: 34px; block-size: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ice-100); color: var(--cobalt); transition: background-color .25s, color .25s; }
.nf-link__go svg { inline-size: 16px; block-size: 16px; transition: transform .3s var(--ease); }
.nf-link:hover .nf-link__go { background: var(--cobalt); color: #fff; }
.nf-link:hover .nf-link__go svg { transform: translateX(-3px); }

/* Collision guards with pages.css page-specific rules */
.consent { margin-block-start: 0; }
.consent input::after { content: none; }
@media (min-width: 1000px) and (max-width: 1199.98px) {
  .contact-cards.card-grid--4, .nf-links .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.contact-card__list a.ltr { font-size: .8125rem; }
.nf-links ul { list-style: none; }
.pagination a.pagination__next, .pagination a.pagination__prev { display: inline-flex; align-items: center; }
.nl-msg:empty { display: none; }
.contact-form .form__head[hidden], .cf-body[hidden] { display: none; }
.field__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.field__count { margin-inline-start: auto; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.contact-form .form__head span { font-size: .75rem; color: var(--muted); }

/* ==========================================================================
   en (LTR) / ar adjustments for blog · post · contact · 404
   ========================================================================== */
:lang(en) .prose ol > li::before { content: counter(li); }
:lang(ar) .prose ol > li::before { content: counter(li, arabic-indic); }
[dir="ltr"] .read-progress__bar { transform-origin: left center; background: linear-gradient(90deg, var(--cobalt) 0%, var(--cobalt-300) 75%, var(--orange) 100%); }
[dir="ltr"] .toc__meter span { transform-origin: left center; background: linear-gradient(90deg, var(--cobalt), var(--cobalt-300)); }
[dir="ltr"] .toc__link[aria-current="true"] { box-shadow: inset 3px 0 0 var(--cobalt); }
[dir="ltr"] .share__tip { transform: translateX(-50%); }
[dir="ltr"] .post-feature__card .coa__bar--alt span { background: linear-gradient(90deg, var(--orange), #FFB38F); }
[dir="ltr"] .field input[type="email"], [dir="ltr"] .nl-form input { text-align: start; }
[dir="ltr"] .field input[type="email"]::placeholder, [dir="ltr"] .nl-form input::placeholder { direction: ltr; }
/* letter-spacing only for Latin: it breaks the joined letters of Persian/Arabic */
[dir="ltr"] .side-product__grade { font-size: .625rem; letter-spacing: .14em; }
[dir="ltr"] .nf h1 em::after { background: linear-gradient(270deg, var(--orange), rgba(255, 107, 44, .35)); }
[dir="ltr"] .post-cta::before { -webkit-mask-image: linear-gradient(270deg, #000, transparent 75%); mask-image: linear-gradient(270deg, #000, transparent 75%); }
[dir="ltr"] .post-feature__title a { background-position: 0 100%; }
[dir="ltr"] .post-nav__link--prev .post-nav__dir svg { transform: none; }
[dir="ltr"] .post-nav__link--prev:hover .post-nav__dir svg { transform: translateX(-3px); }
[dir="ltr"] .post-nav__link--next:hover .post-nav__dir svg,
[dir="ltr"] .nf-link:hover .nf-link__go svg,
[dir="ltr"] .post-feature:hover .link-arrow svg,
[dir="ltr"] .side-product:hover .link-arrow svg { transform: scaleX(-1) translateX(-4px); }
[dir="ltr"] .nf-link__go svg { transform: scaleX(-1); }
[dir="ltr"] .page-hero__art { margin-inline-end: -8px; }
@media (min-width: 720px) { .blog .filters { flex-wrap: wrap; overflow: visible; } }
@media (max-width: 719.98px) {
  .prose .analysis td.num { justify-content: flex-start; column-gap: 4px; }
  .prose .analysis td.num::before { margin-inline-end: auto; }
}
