/* صفحه‌ی «شناسه کالا و خدمت»؛ بعد از site.css بارگذاری می‌شود و از همان متغیرها (--brand, --ink, --line …) استفاده می‌کند */

.sid-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap
}

/* ---------- مسیر صفحه ---------- */
.sid-crumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: .85rem;
    color: var(--muted);
    padding: 18px 0 0
}

    .sid-crumbs a:hover {
        color: var(--brand-dark)
    }

    .sid-crumbs [aria-current] {
        color: var(--ink);
        font-weight: 600
    }

/* ---------- بخش اول ---------- */
.sid-hero {
    text-align: center;
    padding: 28px 0 8px
}

.sid-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--brand-dark);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 4px 14px 4px 12px
}

    .sid-eyebrow i {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--brand);
        box-shadow: 0 0 0 4px rgba(31,181,164,.18)
    }

.sid-hero h1 {
    font-size: clamp(1.7rem, 4.4vw, 2.8rem);
    line-height: 1.5;
    margin: 14px auto 10px;
    max-width: 880px;
    font-weight: 800
}

    .sid-hero h1 em {
        font-style: normal;
        color: var(--brand-dark);
        display: block
    }

.sid-lead {
    max-width: 720px;
    margin: 0 auto 26px;
    color: var(--muted);
    font-size: 1.05rem
}

/* ---------- جعبه‌ی جستجو ---------- */
.sid-search {
    max-width: 860px;
    margin: 0 auto;
    text-align: start;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 16px;
    box-shadow: 0 24px 60px -24px rgba(14,127,116,.35)
}

.sid-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 18px;
    padding: 6px 14px;
    transition: border-color .2s, box-shadow .2s
}

    .sid-field:focus-within {
        border-color: var(--brand);
        box-shadow: 0 0 0 5px rgba(31,181,164,.16)
    }

.sid-ico {
    width: 22px;
    height: 22px;
    flex: none;
    stroke: var(--brand-dark);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.sid-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 1.05rem;
    color: var(--ink);
    padding: 12px 0;
    -webkit-appearance: none;
    appearance: none
}

    .sid-field input::placeholder {
        color: #8aa5a2
    }

    .sid-field input::-webkit-search-cancel-button {
        display: none
    }

.sid-field :focus-visible {
    outline: none
}

.sid-clear {
    border: 0;
    background: #eaf6f4;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex: none
}

    .sid-clear[hidden] {
        display: none
    }

    .sid-clear svg {
        width: 14px;
        height: 14px;
        stroke: var(--muted);
        fill: none;
        stroke-width: 2.4;
        stroke-linecap: round
    }

    .sid-clear:hover {
        background: #d8eeea
    }

.sid-kbd {
    font: inherit;
    font-size: .8rem;
    color: var(--muted);
    border: 1px solid var(--line);
    border-bottom-width: 2px;
    border-radius: 7px;
    padding: 0 8px;
    line-height: 1.6;
    flex: none
}

.sid-go {
    padding: 10px 22px;
    border-radius: 12px;
    flex: none
}

.sid-try {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 4px 0;
    font-size: .85rem;
    color: var(--muted)
}

    .sid-try button {
        font: inherit;
        font-size: .85rem;
        cursor: pointer;
        border: 1px solid var(--line);
        background: #fff;
        color: var(--brand-dark);
        border-radius: 99px;
        padding: 2px 14px;
        transition: background .2s, border-color .2s
    }

        .sid-try button:hover {
            background: var(--brand);
            border-color: var(--brand);
            color: #fff
        }

.sid-status {
    margin: 12px 6px 0;
    min-height: 1.6em;
    font-size: .9rem;
    color: var(--muted)
}

    .sid-status b {
        color: var(--ink)
    }

/* انیمیشن جستجو */
.sid-load {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 28px;
    vertical-align: middle
}

.sid-load-lens {
    width: 24px;
    height: 24px;
    stroke: var(--brand-dark);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    transform-origin: 40% 40%;
    animation: sidLens 1.4s ease-in-out infinite
}

.sid-load-cells {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 24px;
    direction: ltr
}

    .sid-load-cells i {
        width: 7px;
        height: 8px;
        border-radius: 3px;
        background: var(--line);
        animation: sidWave 1.1s ease-in-out infinite;
        animation-delay: calc(var(--n) * 70ms)
    }

@keyframes sidWave {
    0%, 100% {
        height: 8px;
        background: var(--line)
    }

    40% {
        height: 24px;
        background: var(--brand)
    }

    70% {
        background: #7fe3d6
    }
}

@keyframes sidLens {
    0%, 100% {
        transform: translate(0, 0) rotate(0)
    }

    25% {
        transform: translate(5px, -3px) rotate(-12deg)
    }

    75% {
        transform: translate(-5px, 2px) rotate(12deg)
    }
}

/* ---------- نتایج ---------- */
.sid-results {
    margin-top: 6px
}

    .sid-results [data-when] {
        display: none
    }

    .sid-results[data-state="idle"] [data-when="idle"],
    .sid-results[data-state="loading"] [data-when="loading"],
    .sid-results[data-state="empty"] [data-when="empty"],
    .sid-results[data-state="short"] [data-when="short"],
    .sid-results[data-state="limited"] [data-when="limited"],
    .sid-results[data-state="error"] [data-when="error"],
    .sid-results[data-state="ok"] [data-when="ok"] {
        display: block
    }

    .sid-results[data-state="ok"] .sid-more[hidden] {
        display: none
    }

    .sid-results[data-state="ok"] .sid-list {
        display: grid
    }

    .sid-results[data-state="loading"] .sid-skel {
        display: grid
    }

.sid-idle {
    text-align: center;
    padding: 26px 12px 18px;
    color: var(--muted)
}

    .sid-idle svg {
        width: 38px;
        height: 38px;
        stroke: var(--brand);
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        opacity: .8;
        margin-bottom: 6px
    }

    .sid-idle p {
        font-size: .95rem
    }

.sid-empty {
    text-align: center;
    padding: 22px 14px;
    background: #f7fcfb;
    border: 1px dashed var(--line);
    border-radius: 16px;
    margin-top: 8px
}

    .sid-empty b {
        display: block;
        margin-bottom: 4px
    }

    .sid-empty p {
        color: var(--muted);
        font-size: .92rem
    }

    .sid-empty a, .sid-link {
        color: var(--brand-dark);
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 3px
    }

.sid-link {
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0
}

.sid-err {
    background: #fff8ec;
    border-color: #f2d9a6
}

.sid-skel {
    display: grid;
    gap: 10px;
    margin-top: 10px
}

    .sid-skel i {
        height: 74px;
        border-radius: 16px;
        background: linear-gradient(100deg, #eef7f5 30%, #f9fdfc 50%, #eef7f5 70%);
        background-size: 220% 100%;
        animation: sidShine 1.2s linear infinite
    }

@keyframes sidShine {
    to {
        background-position: -220% 0
    }
}

.sid-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    gap: 10px;
    max-height: min(70vh, 640px);
    overflow: auto;
    overscroll-behavior: contain;
    padding-inline-end: 2px
}

.sid-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    animation: sidIn .28s ease both;
    animation-delay: calc(var(--i, 0) * 18ms)
}

    .sid-row:hover {
        border-color: var(--brand);
        box-shadow: 0 10px 26px -16px rgba(14,127,116,.5);
        transform: translateY(-1px)
    }

@keyframes sidIn {
    from {
        opacity: 0;
        transform: translateY(6px)
    }
}

.sid-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--brand-dark);
    background: #ecf9f7;
    border-radius: 10px;
    padding: 6px 12px;
    direction: ltr;
    unicode-bidi: isolate;
    white-space: nowrap
}

.sid-title {
    margin: 0;
    font-weight: 600;
    line-height: 1.7;
    overflow-wrap: anywhere
}

    .sid-title mark, .sid-code mark {
        background: #ffe9a8;
        color: inherit;
        border-radius: 4px;
        padding: 0 2px
    }

.sid-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px
}

    .sid-meta span {
        font-size: .78rem;
        color: var(--muted);
        background: #f1f7f6;
        border-radius: 99px;
        padding: 0 10px
    }

        .sid-meta span.vat {
            color: #8a5a00;
            background: #fff3d6
        }

.sid-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid var(--brand);
    background: #fff;
    color: var(--brand-dark);
    border-radius: 11px;
    padding: 6px 12px;
    transition: background .2s, color .2s
}

    .sid-copy svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round
    }

    .sid-copy:hover, .sid-copy.done {
        background: var(--brand);
        color: #fff
    }

.sid-more {
    margin: 10px 6px 0;
    font-size: .85rem;
    color: var(--muted);
    text-align: center
}

.sid-noscript {
    margin-top: 12px;
    font-size: .9rem;
    color: var(--muted)
}

/* پیام کوتاه «کپی شد» */
.sid-toast {
    position: fixed;
    inset-inline: 0;
    bottom: 24px;
    margin: auto;
    width: max-content;
    max-width: 90vw;
    background: var(--ink);
    color: #fff;
    padding: 8px 20px;
    border-radius: 99px;
    font-size: .9rem;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 90
}

    .sid-toast.on {
        opacity: 1;
        transform: none
    }

/* ---------- نکته‌های کلیدی ---------- */
.sid-facts {
    list-style: none;
    padding: 0;
    margin: 22px auto 0;
    max-width: 860px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

    .sid-facts li {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 12px 14px;
        text-align: center
    }

    .sid-facts b {
        display: block;
        color: var(--brand-dark);
        font-size: 1.1rem
    }

    .sid-facts span {
        font-size: .85rem;
        color: var(--muted)
    }

/* ---------- محتوای مقاله ---------- */
.sid-article {
    max-width: 860px;
    margin: 48px auto 0
}

.sid-sec {
    margin-bottom: 44px
}

.sid-article h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    line-height: 1.6;
    margin: 0 0 14px;
    position: relative;
    padding-inline-start: 16px
}

    .sid-article h2::before {
        content: "";
        position: absolute;
        inset-inline-start: 0;
        top: .5em;
        bottom: .5em;
        width: 5px;
        border-radius: 4px;
        background: var(--brand)
    }

.sid-article h3 {
    font-size: 1.05rem;
    margin: 10px 0 4px
}

.sid-article p {
    color: #1d3c39;
    margin-bottom: 12px
}

.sid-article a {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 3px
}

.sid-digits {
    margin: 22px 0 0;
    text-align: center
}

.sid-cells {
    display: inline-grid;
    grid-template-columns: repeat(13, minmax(0, 1fr));
    gap: 5px;
    width: min(100%, 560px)
}

    .sid-cells i {
        aspect-ratio: 3 / 4;
        border-radius: 9px;
        background: #fff;
        border: 1.5px solid var(--line);
        position: relative;
        overflow: hidden
    }

        .sid-cells i::after {
            content: "";
            position: absolute;
            inset: auto 0 0 0;
            height: 0;
            background: linear-gradient(var(--brand), #7fe3d6);
            animation: sidFill 3.6s ease-in-out infinite;
            animation-delay: calc(var(--n, 0) * 90ms)
        }

        .sid-cells i:nth-child(1) {
            --n: 1
        }

        .sid-cells i:nth-child(2) {
            --n: 2
        }

        .sid-cells i:nth-child(3) {
            --n: 3
        }

        .sid-cells i:nth-child(4) {
            --n: 4
        }

        .sid-cells i:nth-child(5) {
            --n: 5
        }

        .sid-cells i:nth-child(6) {
            --n: 6
        }

        .sid-cells i:nth-child(7) {
            --n: 7
        }

        .sid-cells i:nth-child(8) {
            --n: 8
        }

        .sid-cells i:nth-child(9) {
            --n: 9
        }

        .sid-cells i:nth-child(10) {
            --n: 10
        }

        .sid-cells i:nth-child(11) {
            --n: 11
        }

        .sid-cells i:nth-child(12) {
            --n: 12
        }

        .sid-cells i:nth-child(13) {
            --n: 13
        }

@keyframes sidFill {
    0%, 8% {
        height: 0
    }

    30%, 80% {
        height: 100%
    }

    100% {
        height: 0
    }
}

.sid-digits figcaption {
    margin-top: 10px;
    font-size: .9rem;
    color: var(--muted)
}

.sid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.sid-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    transition: transform .2s, box-shadow .2s, border-color .2s
}

    .sid-card:hover {
        transform: translateY(-3px);
        border-color: var(--brand);
        box-shadow: 0 16px 34px -20px rgba(14,127,116,.55)
    }

    .sid-card svg {
        width: 38px;
        height: 38px;
        padding: 8px;
        border-radius: 12px;
        background: #ecf9f7;
        stroke: var(--brand-dark);
        fill: none;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round
    }

    .sid-card p {
        margin: 0;
        font-size: .93rem
    }

.sid-steps {
    list-style: none;
    padding: 0;
    counter-reset: s;
    display: grid;
    gap: 12px
}

    .sid-steps li {
        counter-increment: s;
        position: relative;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 14px 16px;
        padding-inline-start: 64px
    }

        .sid-steps li::before {
            content: counter(s, persian);
            position: absolute;
            inset-inline-start: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 36px;
            height: 36px;
            border-radius: 12px;
            background: var(--brand);
            color: #fff;
            font-weight: 800;
            display: grid;
            place-items: center
        }

    .sid-steps b {
        color: var(--brand-dark)
    }

.sid-errs {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px
}

    .sid-errs li {
        background: #fff8ec;
        border: 1px solid #f2d9a6;
        border-radius: 14px;
        padding: 12px 16px
    }

    .sid-errs b {
        color: #8a5a00
    }

.sid-faq {
    display: grid;
    gap: 10px
}

    .sid-faq details {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 0 18px;
        transition: border-color .2s
    }

        .sid-faq details[open] {
            border-color: var(--brand)
        }

    .sid-faq summary {
        cursor: pointer;
        font-weight: 700;
        padding: 14px 0;
        list-style: none;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: center
    }

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

        .sid-faq summary::after {
            content: "+";
            color: var(--brand-dark);
            font-size: 1.4rem;
            line-height: 1;
            transition: transform .2s
        }

    .sid-faq details[open] summary::after {
        transform: rotate(45deg)
    }

    .sid-faq details p {
        margin: 0 0 14px
    }

.sid-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: #fff;
    border-radius: 26px;
    padding: 26px 28px
}

    .sid-cta h2 {
        color: #fff;
        margin-bottom: 6px;
        font-size: 1.35rem
    }

        .sid-cta h2::before {
            display: none
        }

.sid-article .sid-cta {
    padding-inline-start: 28px
}

    .sid-article .sid-cta h2 {
        padding-inline-start: 0
    }

.sid-cta p {
    color: rgba(255,255,255,.88);
    margin: 0;
    max-width: 480px
}

.sid-cta-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.sid-cta .btn {
    background: #fff;
    color: var(--brand-dark)
}

    .sid-cta .btn:hover {
        background: #f1fffc
    }

    .sid-cta .btn.ghost {
        background: transparent;
        color: #fff;
        border-color: rgba(255,255,255,.7)
    }

        .sid-cta .btn.ghost:hover {
            background: #fff;
            color: var(--brand-dark)
        }

.sid-article .sid-cta a {
    text-decoration: none
}

.sid-note {
    font-size: .82rem;
    color: var(--muted) !important;
    text-align: center;
    margin-bottom: 40px
}

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 720px) {
    .sid-search {
        padding: 10px;
        border-radius: 22px
    }

    .sid-kbd {
        display: none
    }

    .sid-go {
        padding: 9px 16px
    }

    .sid-row {
        grid-template-columns: 1fr auto;
        row-gap: 8px
    }

        .sid-row .sid-code {
            grid-column: 1 / -1;
            justify-self: start
        }

    .sid-facts, .sid-cards {
        grid-template-columns: 1fr
    }

    .sid-cells {
        gap: 3px
    }

    .sid-copy span {
        display: none
    }

    .sid-copy {
        padding: 8px 10px
    }

    .sid-cta {
        padding: 22px 18px
    }
}

@media (max-width: 420px) {
    .sid-ico {
        display: none
    }
}

@media (prefers-reduced-motion: reduce) {
    .sid-row, .sid-skel i, .sid-cells i::after, .sid-load-lens, .sid-load-cells i {
        animation: none
    }

    .sid-load-cells i {
        height: 16px;
        background: var(--brand);
        opacity: .5
    }

    .sid-cells i::after {
        height: 100%;
        opacity: .35
    }

    .sid-toast {
        transition: none
    }
}

@counter-style persian {
    system: numeric;
    symbols: "۰" "۱" "۲" "۳" "۴" "۵" "۶" "۷" "۸" "۹";
}

/* حالت «صفحه‌ی فعلی» در منو (همان استایل blog.css که فقط در صفحه‌های بلاگ بارگذاری می‌شود) */
nav a.on {
    color: var(--brand-dark);
    background: #e3f7f4;
    font-weight: 700
}

.m-link.on {
    color: var(--brand-dark);
    font-weight: 700
}
