/* GENERATED by tools/build-rtl.ps1 from theme.css + theme.rtl.src.css - do not edit */
/* IransiteNews - Default theme. Left-to-right base; theme.rtl.css is served instead on right-to-left pages. */
.isn { --isn-accent: #1a9bd7; --isn-text: #333; --isn-muted: #888; --isn-border: #e5e5e5; color: var(--isn-text); line-height: 1.9; font-family: Tahoma, Arial, Helvetica, sans-serif; direction: ltr; text-align: left; }
.isn a { color: var(--isn-accent); text-decoration: none; }
.isn a:hover { text-decoration: underline; }

.isn-btn { display: inline-block; padding: .35em 1em; border-radius: 4px; background: var(--isn-accent); color: #fff !important; font-size: .9em; }
.isn-btn-light { background: #f1f1f1; color: var(--isn-text) !important; }
.isn-btn:hover { text-decoration: none !important; opacity: .9; }

.isn-list-heading { font-size: 1.6rem; margin: 0 0 1.5rem; }
.isn-article { padding: 1.25rem 0; border-bottom: 1px solid var(--isn-border); }
.isn-article::after { content: ""; display: table; clear: both; }
.isn-featured { border-inline-start: 3px solid var(--isn-accent); padding-inline-start: 1rem; }
.isn-image img { max-width: 100%; height: auto; display: block; margin-bottom: .75rem; }
.isn-title { font-size: 1.4rem; margin: 0 0 .25rem; line-height: 1.6; }
.isn-title a { color: inherit; }
.isn-subtitle { font-size: 1.05rem; font-weight: normal; color: var(--isn-muted); margin: 0 0 .5rem; }
.isn-meta { font-size: .85rem; color: var(--isn-muted); margin-bottom: .5rem; }
.isn-meta > * + *::before { content: " / "; color: var(--isn-border); }
.isn-views::after { content: " \1F441"; }
.isn-comments::after { content: " \1F4AC"; }
.isn-badge { background: #f0ad4e; color: #fff; border-radius: 3px; padding: 0 .4rem; font-size: .75rem; }
.isn-summary { margin: .5rem 0 .75rem; }
.isn-category + .isn-category::before { content: ", "; color: var(--isn-muted); }

.isn-details .isn-title { font-size: 1.8rem; }
.isn-main-image { margin: 1rem 0; }
.isn-main-image img { max-width: 100%; height: auto; }
.isn-content { margin: 1rem 0; }
.isn-content img { max-width: 100%; height: auto; }
/* the bar under an article: its facts (views, code) on one side, its actions (short link, share, print) on the other */
.isn-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin: 1.5rem 0 1rem; padding: .7rem .9rem;
  font-size: .85rem; color: var(--isn-muted); background: var(--isn-soft, #f7f7f9); border: 1px solid var(--isn-border); border-radius: 14px; }
.isn-facts, .isn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.isn-facts > span { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; background: #fff; border: 1px solid var(--isn-border); line-height: 1.6; }
.isn-facts svg, .isn-act svg { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.isn-facts b { color: var(--isn-text, inherit); font-weight: 700; letter-spacing: .02em; }
.isn-footer .isn-views::after { content: none; }
.isn-act { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: 0 .9rem; border: 1px solid var(--isn-border); border-radius: 10px; background: #fff;
  color: var(--isn-text, inherit); font: inherit; font-size: .85rem; font-weight: 600; line-height: 1; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.isn-act:hover, .isn-act:focus-visible { border-color: var(--isn-accent); color: var(--isn-accent); outline: none; }
.isn-act.isn-copied { border-color: #2e7d32; background: #edf7ee; color: #2e7d32; }
.isn-act[hidden] { display: none; }
.isn-act-n:empty { display: none; }
.isn-act-n { font-weight: 700; }
.isn-like.isn-on { border-color: #e0245e; background: #fdeef3; color: #c21a50; }
.isn-like.isn-on svg { fill: currentColor; }
.isn-save.isn-on { border-color: var(--isn-accent); background: #eef6fc; color: var(--isn-accent); }
.isn-save.isn-on svg { fill: currentColor; }
.isn-print { background: none; border: 1px solid var(--isn-border); border-radius: 3px; cursor: pointer; color: inherit; font: inherit; }
.isn-print.isn-act { background: #fff; border-radius: 10px; color: var(--isn-text, inherit); font-size: .85rem; font-weight: 600; }
.isn-act-label { white-space: nowrap; }
@media (max-width: 600px) {
  .isn-footer { padding: .6rem; }
  .isn-actions { width: 100%; }
  .isn-act { flex: 1; justify-content: center; padding: 0 .5rem; }
  .isn-act-label { font-size: .8rem; }
}
.isn-rating { position: relative; display: inline-block; width: 80px; height: 16px; background: linear-gradient(90deg, #ddd 0 100%); -webkit-mask: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 16px); }
.isn-rating span { position: absolute; inset: 0 auto 0 0; background: #f5b301; }
.isn-tags { margin-top: 1rem; font-size: .85rem; }
.isn-tags a { display: inline-block; background: #f3f3f3; border-radius: 3px; padding: 0 .5rem; margin: 0 .25rem .25rem 0; color: var(--isn-text); }

.isn-pager { display: flex; flex-wrap: wrap; gap: .25rem; margin: 1.5rem 0; }
.isn-pager a, .isn-pager span { padding: .2rem .65rem; border: 1px solid var(--isn-border); border-radius: 3px; }
.isn-pager .isn-current { background: var(--isn-accent); border-color: var(--isn-accent); color: #fff; }
.isn-pager .isn-gap { border: 0; }
.isn-rss a::before { content: "RSS "; font-weight: bold; color: #f26522; }
.isn-empty, .isn-notfound { padding: 2rem 0; color: var(--isn-muted); }

.isn-event-box { background: #fff7e6; border: 1px solid #ffe0a3; border-radius: 6px; padding: .75rem 1rem; margin: 1rem 0; font-size: .9rem; }
.isn-event-box strong { display: block; margin-bottom: .25rem; }
.isn-event-box span { color: var(--isn-muted); }
.isn-event-past { color: #c62828; margin-top: .25rem; }
.isn-event-box .isn-event-title { font-size: 1rem; }
.isn-event-when > div, .isn-event-later { margin: .15rem 0; }
.isn-event-next time { font-weight: 700; }
.isn-event-later summary { cursor: pointer; color: var(--isn-muted); }
.isn-event-later ul, .isn-reg-mine ul, .isn-reg-people ul { margin: .25rem 0; padding-inline-start: 1.25rem; }
.isn-event-map { display: block; width: 100%; height: 260px; border: 0; border-radius: 6px; margin: .6rem 0 .3rem; background: #eee; }
.isn-event-links { margin: .35rem 0; }
.isn-event-links a { display: inline-block; margin-inline-end: .6rem; }
.isn-reg-box { border-top: 1px dashed #ffd27a; margin-top: .75rem; padding-top: .6rem; }
.isn-reg-form { display: grid; gap: .5rem; max-width: 420px; }
.isn-reg-form label { display: grid; gap: .2rem; color: var(--isn-muted); }
.isn-reg-form input, .isn-reg-form select, .isn-reg-form textarea { font: inherit; padding: .4rem .5rem; border: 1px solid #ddd; border-radius: 4px; background: #fff; color: inherit; }
.isn-reg-form .isn-hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.isn-reg-send, .isn-reg-cancel { font: inherit; cursor: pointer; border: 0; border-radius: 4px; padding: .45rem 1rem; background: #e8590c; color: #fff; justify-self: start; }
.isn-reg-cancel { background: transparent; color: #c62828; padding: 0 .3rem; text-decoration: underline; }
.isn-reg-cancel-link .isn-reg-cancel { background: #c62828; color: #fff; text-decoration: none; padding: .4rem 1rem; }
.isn-reg-send[disabled] { opacity: .6; cursor: default; }
.isn-reg-note { margin: .3rem 0; }
.isn-reg-msg:empty { display: none; }
.isn-reg-msg { margin: .4rem 0 0; font-weight: 700; }
.isn-reg-msg.isn-bad { color: #c62828; }
.isn-reg-waiting { color: #b26a00; }
.isn-reg-people summary { cursor: pointer; }
.isn-badge-paid { background: #8e44ad; }
.isn-paywall { position: relative; margin: 0 0 1.5rem; padding: 1.25rem; border: 1px solid #e0cdea; border-radius: 8px; background: #faf5fc; text-align: center; }
.isn-paywall-fade { position: absolute; inset-inline: 0; top: -5rem; height: 5rem; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events: none; }
.isn-paywall-title { display: block; font-size: 1.1rem; margin-bottom: .4rem; }
.isn-paywall-plans { list-style: none; margin: .75rem auto; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.isn-paywall-plans li { list-style: none; border: 1px solid #e0cdea; border-radius: 6px; padding: .4rem .8rem; background: #fff; }
.isn-paywall-price { color: #8e44ad; font-weight: 700; }
.isn-paywall-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: .5rem; }
.isn-paywall-buy { background: #8e44ad; color: #fff !important; border-radius: 4px; padding: .5rem 1.25rem; text-decoration: none; font-weight: 700; }
.isn-paywall-login { padding: .5rem .5rem; }
.isn-contact { margin-top: .6rem; }
.isn-contact summary { cursor: pointer; color: var(--isn-link, #1565c0); font-weight: 500; }
.isn-contact-form { display: grid; gap: .5rem; max-width: 460px; margin-top: .5rem; }
.isn-contact-form label { display: grid; gap: .2rem; color: var(--isn-muted); }
.isn-contact-form input, .isn-contact-form textarea { font: inherit; padding: .4rem .5rem; border: 1px solid #ddd; border-radius: 4px; background: #fff; color: inherit; }
.isn-contact-form .isn-captcha { display: flex; align-items: center; gap: .4rem; }
.isn-contact-form .isn-captcha input { width: 4.5rem; }
.isn-contact-form .isn-hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.isn-contact-send { font: inherit; cursor: pointer; border: 0; border-radius: 4px; padding: .45rem 1rem; background: #1565c0; color: #fff; justify-self: start; }
.isn-contact-send[disabled] { opacity: .6; cursor: default; }
.isn-contact-msg:empty { display: none; }
.isn-contact-msg { margin: .4rem 0 0; font-weight: 700; }
.isn-contact-msg.isn-bad { color: #c62828; }
.isn-reg-manage { display: inline-block; margin-top: .4rem; font-size: .85rem; }
.isn-gallery, .isn-documents, .isn-links-box { margin: 1.5rem 0; }
.isn-gallery h3, .isn-documents h3, .isn-links-box h3 { font-size: 1.1rem; margin: 0 0 .75rem; }
.isn-gallery { position: relative; }
.isn-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.isn-gallery[style*="--isn-gallery-cols"] .isn-gallery-grid { grid-template-columns: repeat(var(--isn-gallery-cols), minmax(0, 1fr)); }
.isn-gallery-thumbnails .isn-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .4rem; }
.isn-gallery-slider .isn-gallery-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.isn-gallery-slider .isn-gallery-grid > a { flex: 0 0 calc(100% / var(--isn-gallery-cols, 3) - .5rem); scroll-snap-align: start; }
.isn-slide-prev, .isn-slide-next { position: absolute; top: 55%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.isn-slide-prev { inset-inline-start: .3rem; }
.isn-slide-next { inset-inline-end: .3rem; }
.isn-lightbox { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.9); }
.isn-lightbox[hidden] { display: none; }
.isn-lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.isn-lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; }
.isn-lightbox figcaption { color: #eee; margin-top: .5rem; }
.isn-lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 2rem; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; }
.isn-lb-close { top: 1rem; inset-inline-end: 1rem; }
.isn-lb-prev { inset-inline-start: 1rem; top: 50%; }
.isn-lb-next { inset-inline-end: 1rem; top: 50%; }
.isn-lb-count { position: absolute; bottom: 1rem; color: #ccc; font-size: .85rem; }
html.isn-lb-open { overflow: hidden; }
.isn-gallery-grid a { position: relative; display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: #eee; }
.isn-gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.isn-gallery-grid a:hover img { transform: scale(1.04); }
.isn-gallery-grid a span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; padding: .2rem .5rem; }
.isn-video { grid-column: 1 / -1; position: relative; aspect-ratio: 16 / 9; }
.isn-video iframe, .isn-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; background: #000; }
.isn-documents ul, .isn-links-box ul { list-style: none; padding: 0; margin: 0; }
.isn-documents li, .isn-links-box li { padding: .4rem 0; border-bottom: 1px dashed var(--isn-border); }
.isn-doc-ext { display: inline-block; min-width: 2.6rem; text-align: center; text-transform: uppercase; font-size: .7rem; background: var(--isn-accent); color: #fff; border-radius: 3px; padding: 0 .3rem; margin-right: .5rem; }
.isn-documents small, .isn-links-box small { color: var(--isn-muted); }
.isn-muted { color: var(--isn-muted); }

.isn-comments { margin: 2rem 0 1rem; }
.isn-comments h3 small { color: var(--isn-muted); font-weight: normal; }
.isn-comment-list, .isn-comment-replies { list-style: none; margin: 0; padding: 0; }
.isn-comment { display: flex; gap: .75rem; padding: .9rem 0; border-bottom: 1px solid var(--isn-border); }
.isn-comment-replies .isn-comment { border-bottom: 0; padding: .6rem 0 0; }
.isn-comment-replies { margin-top: .4rem; padding-left: .9rem; border-left: 2px solid var(--isn-border); }
.isn-comment-waiting { opacity: .75; }
.isn-comment-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: var(--isn-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.isn-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.isn-comment-body { flex: 1; min-width: 0; }
.isn-comment-head { font-size: .9rem; }
.isn-comment-head time { color: var(--isn-muted); font-size: .8rem; margin: 0 .4rem; }
.isn-comment-text { margin: .3rem 0; overflow-wrap: anywhere; }
.isn-comment-tools { display: flex; gap: .4rem; font-size: .8rem; }
.isn-comment-tools button { border: 1px solid var(--isn-border); background: #fff; border-radius: 14px; padding: 0 .6rem; cursor: pointer; color: var(--isn-text); font: inherit; }
.isn-comment-tools button:hover { border-color: var(--isn-accent); color: var(--isn-accent); }
.isn-comment-form { background: #f8f9fa; border-radius: 8px; padding: 1rem 1.2rem; margin-top: 1.2rem; }
.isn-comment-form h4 { margin: 0 0 .6rem; }
.isn-comment-form label { display: block; margin-bottom: .6rem; font-size: .85rem; }
.isn-comment-form input[type=text], .isn-comment-form input[type=email], .isn-comment-form textarea { display: block; width: 100%; box-sizing: border-box; border: 1px solid #ddd; border-radius: 4px; padding: .45rem .6rem; font: inherit; margin-top: .2rem; background: #fff; }
.isn-comment-form small { display: block; color: var(--isn-muted); font-size: .75rem; }
.isn-comment-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .isn-comment-row { grid-template-columns: 1fr; } }
.isn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.isn-articles { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.isn-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.isn-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.isn-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.isn-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.isn-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .isn-cols-3, .isn-cols-4, .isn-cols-5, .isn-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .isn-articles[class*="isn-cols-"] { grid-template-columns: 1fr; } }
.isn-articles > .isn-article, .isn-articles > .isn-category-card { margin: 0; }
.isn-load-more { display: block; margin: 1.5rem auto 0; }
.isn-load-prev { display: table; margin: 0 auto 1.25rem; }
.isn-loading { text-align: center; color: #888; padding: 1rem; }
.isn-subcategories { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.isn-subcategories a { display: inline-block; padding: .15rem .6rem; border-radius: 1rem; background: #f1f3f5; font-size: .85rem; }
.isn-category-card .isn-count { color: #999; font-weight: normal; font-size: .8em; }
.isn-group-articles { list-style: none; padding: 0; margin: .75rem 0; display: grid; gap: .5rem; }
.isn-group-articles li { display: flex; align-items: center; gap: .6rem; }
.isn-group-more { font-size: .85rem; }
.isn-list picture, .isn-details picture, .isn-category-list picture { display: contents; }
.isn-ad { margin: 1.25rem 0; text-align: center; clear: both; }
.isn-ad img { max-width: 100%; height: auto; border-radius: 6px; }
.isn-articles > .isn-ad { margin: 0; grid-column: 1 / -1; }
.isn-related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; }
.isn-related-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--isn-border); border-radius: 10px; background: #fff; color: var(--isn-text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.isn-related-card:hover { border-color: var(--isn-accent); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); text-decoration: none; }
.isn-related-image { display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #eef1f6, #f8f9fb); }
.isn-related-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.isn-related-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: .6rem .7rem .3rem; font-size: .92rem; line-height: 1.7; font-weight: 700; }
.isn-related-card:hover .isn-related-title { color: var(--isn-accent); }
.isn-related-card small { margin: auto .7rem .6rem; color: var(--isn-muted); font-size: .8rem; }
.isn-comment-extra { display: none; }
.isn-comments-open .isn-comment-extra { display: flex; }
.isn-comments-paging { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: .5rem 0 1rem; }
.isn-comments-pager a { cursor: pointer; }
.isn-comments-all { margin: .5rem 0 1rem; }
.isn-category-logo { width: 48px; height: 48px; object-fit: contain; vertical-align: middle; margin-inline-end: .6rem; }
.isn-category-description { margin: 0 0 1.5rem; line-height: 1.9; }
.isn-figure { margin: 1rem 0; text-align: center; }
.isn-figure img { max-width: 100%; height: auto; border-radius: 6px; }
.isn-figure figcaption { font-size: .875rem; color: #666; margin-top: .35rem; }
.isn-figure figcaption strong { display: block; color: #333; }
.isn-token-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; margin: 1rem 0; }
.isn-token-gallery .isn-figure { margin: 0; }
.isn-token-gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.isn-recaptcha { margin: .5rem 0; min-height: 1px; }
.isn-captcha input { display: inline-block !important; width: 5rem !important; margin: 0 .5rem !important; text-align: center; }
.isn-terms small { margin-top: .2rem; }
.isn-replying { background: #e8f4fd; border-radius: 4px; padding: .3rem .6rem; margin-bottom: .6rem; font-size: .85rem; }
.isn-replying button { border: 0; background: none; color: var(--isn-accent); cursor: pointer; }
.isn-comment-actions { display: flex; align-items: center; gap: .75rem; }
.isn-comment-send { border: 0; cursor: pointer; font: inherit; }
.isn-comment-result { font-size: .85rem; }
.isn-comment-result.isn-error { color: #c62828; }
.isn-comment-result.isn-ok { color: #2e7d32; }
.isn-stars { display: inline-flex; flex-direction: row-reverse; margin-bottom: .5rem; }
.isn-stars input { display: none; }
.isn-stars label { font-size: 1.6rem; color: #ccc; cursor: pointer; margin: 0; }
.isn-stars input:checked ~ label, .isn-stars label:hover, .isn-stars label:hover ~ label { color: #f5b301; }
.isn-badge { font-style: normal; }

@media print {
  .isn-edit, .isn-admin, .isn-print, .isn-pager, .isn-rss { display: none !important; }
}

/* article rating */
.isn-rate { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1rem 0; padding: .75rem 1rem; border: 1px solid var(--isn-border); border-radius: 8px; }
.isn-rate-label { font-weight: 600; }
.isn-rate-buttons { display: inline-flex; flex-direction: row-reverse; direction: ltr; }
.isn-rate-buttons button { border: 0; background: none; font-size: 1.6rem; line-height: 1; color: #ccc; cursor: pointer; padding: 0 .1rem; }
.isn-rate-buttons button:hover, .isn-rate-buttons button:hover ~ button, .isn-rate-buttons button.isn-rate-mine, .isn-rate-buttons button.isn-rate-mine ~ button { color: #f5b301; }
.isn-rate-likes button { border: 1px solid var(--isn-border); background: #fff; border-radius: 20px; padding: .3rem .8rem; cursor: pointer; }
.isn-rate-likes button.isn-rate-mine { border-color: var(--isn-accent); background: var(--isn-accent); color: #fff; }
.isn-rate-likes button:disabled { cursor: default; opacity: .7; }
.isn-rate-msg { color: #2e7d32; font-size: .9em; }
.isn-rate-info { color: #666; }

/* writer */
.isn-author-box { display: flex; gap: 1rem; align-items: flex-start; margin: 1.5rem 0; padding: 1rem; border: 1px solid var(--isn-border); border-radius: 10px; background: #fafafa; }
.isn-author-box .isn-author-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex: none; }
.isn-author-box p { margin: .4rem 0; color: #444; }
.isn-author-job { display: block; color: var(--isn-muted); font-size: .9em; }
.isn-author-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.isn-author-links a { font-size: .85em; padding: .15rem .6rem; border: 1px solid var(--isn-border); border-radius: 20px; text-decoration: none; }
.isn-author-page { margin-bottom: 1.5rem; }

/* custom fields */
.isn-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem 1rem; margin: 1.25rem 0; padding: .75rem 1rem; border: 1px solid var(--isn-border); border-radius: 8px; }
.isn-fields > div { display: flex; flex-direction: column; }
.isn-fields dt { color: var(--isn-muted); font-size: .85em; }
.isn-fields dd { margin: 0; font-weight: 500; }
.isn-fields img { max-width: 100%; height: auto; border-radius: 6px; }
.isn-fields-list { margin: .5rem 0; padding: .4rem .6rem; font-size: .9em; }

/* custom fields: groups, chips, filter box */
.isn-fields-title { font-size: 1rem; margin: 1rem 0 .25rem; }
.isn-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border: 1px solid var(--isn-border); border-radius: 20px; margin: 0 0 .25rem .25rem; font-size: .9em; }
.isn-chip img { width: 18px; height: 18px; object-fit: contain; }
.isn-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.isn-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; margin: 0 0 1.25rem; padding: .75rem 1rem; border: 1px solid var(--isn-border); border-radius: 10px; background: #fafafa; }
.isn-filter-title { width: 100%; }
.isn-filter fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; }
.isn-filter legend { font-size: .85em; color: var(--isn-muted); padding: 0; margin-bottom: .2rem; width: 100%; }
.isn-filter select, .isn-filter input[type=text] { padding: .3rem .5rem; border: 1px solid var(--isn-border); border-radius: 6px; font: inherit; }
.isn-filter-range input { width: 6rem; }
.isn-filter-clear { font-size: .9em; }

.isn-content img.isn-zoomable { cursor: zoom-in; }

/* shared layouts: slider, headlines, timeline (List.{layout}.html) */
.isn-slider { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; scrollbar-width: thin; }
.isn-slide { flex: 0 0 min(320px, 80%); scroll-snap-align: start; position: relative; border-radius: 10px; overflow: hidden; background: #f4f4f4; }
.isn-slide-link { display: block; color: inherit !important; text-decoration: none !important; height: 100%; }
.isn-slide-image img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.isn-slide-text { display: block; padding: .75rem 1rem 1rem; }
.isn-slide-text .isn-title { display: block; font-size: 1.05rem; line-height: 1.6; margin-bottom: .3rem; }
.isn-slide-text time { font-size: .8rem; color: var(--isn-muted); }
.isn-slide > .isn-edit { position: absolute; top: .5rem; inset-inline-end: .5rem; z-index: 1; background: #fff; float: none; }
.isn-headlines { list-style: none; margin: 0; padding: 0; counter-reset: isn-h; }
.isn-headlines li { counter-increment: isn-h; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; padding: .55rem 0; border-bottom: 1px dashed var(--isn-border); }
.isn-headlines li::before { content: counter(isn-h); min-width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--isn-accent); color: #fff; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.isn-headlines a { color: var(--isn-text); font-weight: 600; flex: 1; }
.isn-headlines time { font-size: .8rem; color: var(--isn-muted); }
.isn-headlines .isn-featured a { color: var(--isn-accent); }
.isn-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.isn-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 6.5rem; width: 2px; background: var(--isn-border); }
.isn-timeline-item { display: grid; grid-template-columns: 6rem 1fr; gap: 1.5rem; padding: .75rem 0; position: relative; }
.isn-timeline-item::before { content: ""; position: absolute; top: 1.3rem; inset-inline-start: calc(6.5rem - 5px); width: 12px; height: 12px; border-radius: 50%; background: var(--isn-accent); box-shadow: 0 0 0 4px #fff; }
.isn-timeline-date { font-size: .85rem; color: var(--isn-muted); padding-top: .9rem; text-align: end; }
.isn-timeline-card { background: #fafafa; border: 1px solid var(--isn-border); border-radius: 8px; padding: .9rem 1rem; }
.isn-timeline-card .isn-image img { border-radius: 6px; max-height: 220px; width: 100%; object-fit: cover; }
.isn-timeline-card .isn-title { font-size: 1.15rem; }
@media (max-width: 600px) { .isn-timeline::before { inset-inline-start: .4rem; } .isn-timeline-item { grid-template-columns: 1fr; gap: .25rem; padding-inline-start: 1.5rem; } .isn-timeline-item::before { inset-inline-start: 0; } .isn-timeline-date { text-align: start; padding: 0; } }

/* the edit link of an article: as wide as its text, also inside grid / flex layouts */
.isn-article > .isn-edit, .isn-slide > .isn-edit, .isn-timeline-card > .isn-edit { width: max-content; justify-self: end; align-self: flex-end; }
.isn-headlines a.isn-edit { flex: 0 0 auto; font-size: .7rem; font-weight: normal; color: var(--isn-muted); }

/* widgets (Templates/{Theme}/{Kind}/*.html) */
.isn-widget .isn-empty { padding: .5rem 0; }
.isn-wcount { display: inline-block; min-width: 1.6em; text-align: center; font-size: .75rem; color: var(--isn-muted); background: #f2f2f2; border-radius: 999px; padding: 0 .4rem; margin-inline-start: .35rem; }
.isn-wcat-tree, .isn-wcat-tree ul { list-style: none; margin: 0; padding: 0; }
.isn-wcat-tree ul { padding-inline-start: 1rem; border-inline-start: 1px dashed var(--isn-border); margin-inline-start: .45rem; }
.isn-wcat-item > a { display: flex; align-items: center; gap: .45rem; padding: .3rem .4rem; border-radius: 6px; color: var(--isn-text); }
.isn-wcat-item > a:hover { background: #f6f7f9; text-decoration: none; }
.isn-wcat-item > a .isn-wcount { margin-inline-start: auto; }
.isn-wcat-item.isn-current > a { background: var(--isn-accent); color: #fff; }
.isn-wcat-item.isn-current > a .isn-wcount { background: rgba(255,255,255,.25); color: #fff; }
.isn-wcat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--isn-border); flex: none; }
.isn-wcat-tree summary { display: flex; align-items: center; list-style: none; cursor: pointer; border-radius: 6px; }
.isn-wcat-tree summary::-webkit-details-marker { display: none; }
.isn-wcat-tree summary > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: .45rem; padding: .3rem .4rem; border-radius: 6px; color: var(--isn-text); }
.isn-wcat-tree summary > a:hover { background: #f6f7f9; text-decoration: none; }
.isn-wcat-tree summary > a .isn-wcount { margin-inline-start: auto; }
.isn-wcat-tree summary::before { content: ""; flex: none; order: -1; width: 1.4rem; height: 1.6rem; border-radius: 6px;
  background: no-repeat center / .62rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23667' stroke-width='1.6'/%3E%3C/svg%3E"); transform: rotate(90deg); transition: transform .15s; }
/* ltr: closed points right, open down; rtl (as the owner of rayeshmand wants it): closed points right, open up */
.isn-wcat-tree summary:hover::before { background-color: #f0f1f4; }
.isn-wcat-tree summary:dir(rtl)::before { transform: rotate(90deg); }
.isn-wcat-tree details[open] > summary::before { transform: none; }
.isn-wcat-tree details[open] > summary:dir(rtl)::before { transform: rotate(180deg); }
/* leaves line up with the names that have an arrow */
.isn-wcat-tree li:not(:has(> details)) > a { padding-inline-start: 1.8rem; }
.isn-wcat-item.isn-current > details > summary > a { background: var(--isn-accent); color: #fff; }
.isn-wcat-item.isn-current > details > summary > a .isn-wcount { background: rgba(255,255,255,.25); color: #fff; }
.isn-wall { display: inline-block; margin-top: .5rem; font-size: .85rem; }
.isn-wcat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.isn-wcat-card { display: flex; flex-direction: column; gap: .3rem; align-items: center; text-align: center; padding: .6rem; border: 1px solid var(--isn-border); border-radius: 10px; color: var(--isn-text); }
.isn-wcat-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.isn-wcat-card.isn-current { border-color: var(--isn-accent); }
.isn-wtags { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: baseline; }
.isn-wtag { color: var(--isn-text); line-height: 1.6; }
.isn-wtag-1 { font-size: .8rem; opacity: .75; } .isn-wtag-2 { font-size: .9rem; } .isn-wtag-3 { font-size: 1.05rem; } .isn-wtag-4 { font-size: 1.25rem; font-weight: 600; } .isn-wtag-5 { font-size: 1.5rem; font-weight: 700; color: var(--isn-accent); }
.isn-wtag.isn-current { text-decoration: underline; }
.isn-wtag-list { list-style: none; margin: 0; padding: 0; }
.isn-wtag-list li { display: flex; justify-content: space-between; padding: .25rem 0; border-bottom: 1px dashed var(--isn-border); }
.isn-wcal { max-width: 320px; }
.isn-wcal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.isn-wcal-nav { font-size: 1.4rem; line-height: 1; padding: 0 .5rem; color: var(--isn-text); }
.isn-wcal-grid { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: center; font-size: .85rem; }
.isn-wcal-grid th { color: var(--isn-muted); font-weight: normal; padding: .25rem 0; }
.isn-wcal-grid td { padding: .15rem; height: 2rem; }
.isn-wcal-grid td.isn-wcal-has a { display: inline-flex; width: 1.9rem; height: 1.9rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--isn-accent); color: #fff; font-weight: 600; }
.isn-wcal-grid td.isn-wcal-today { outline: 2px solid var(--isn-accent); outline-offset: -2px; border-radius: 50%; }
.isn-wcal-total { font-size: .85rem; margin: .4rem 0 0; text-align: center; }
.isn-warchive-year summary { cursor: pointer; padding: .3rem 0; font-weight: 600; }
.isn-warchive-year ul { list-style: none; margin: 0 0 .5rem; padding-inline-start: 1rem; }
.isn-warchive-year li { display: flex; justify-content: space-between; padding: .15rem 0; }
.isn-warchive-year li.isn-current a { font-weight: 700; }
.isn-wsearch { display: flex; gap: .4rem; flex-wrap: wrap; }
.isn-wsearch-input { flex: 1 1 160px; min-width: 0; padding: .45rem .7rem; border: 1px solid var(--isn-border); border-radius: 6px; font: inherit; }
.isn-wsearch-category { padding: .45rem; border: 1px solid var(--isn-border); border-radius: 6px; font: inherit; background: #fff; }
.isn-wsearch-go { padding: .45rem 1rem; border: 0; border-radius: 6px; background: var(--isn-accent); color: #fff; font: inherit; cursor: pointer; }
.isn-wevents { display: grid; gap: .5rem; }
.isn-wevent { display: flex; gap: .7rem; align-items: center; color: var(--isn-text); padding: .4rem; border-radius: 8px; }
.isn-wevent:hover { background: #f6f7f9; text-decoration: none; }
.isn-wevent-date { flex: none; width: 3.2rem; text-align: center; border-radius: 8px; background: var(--isn-accent); color: #fff; padding: .25rem 0; line-height: 1.3; }
.isn-wevent-date b { display: block; font-size: 1.25rem; }
.isn-wevent-date small { font-size: .7rem; }
.isn-wevent-text strong { display: block; line-height: 1.5; }
.isn-wevent-text small { color: var(--isn-muted); font-size: .8rem; }
.isn-wauthors { list-style: none; margin: 0; padding: 0; }
.isn-wauthors a { display: flex; gap: .6rem; align-items: center; padding: .35rem; border-radius: 8px; color: var(--isn-text); }
.isn-wauthors a:hover { background: #f6f7f9; text-decoration: none; }
.isn-wauthors img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.isn-wauthors span { flex: 1; display: flex; flex-direction: column; }
.isn-wauthors span small { color: var(--isn-muted); font-size: .78rem; }
.isn-wauthors li.isn-current a { background: #f0f6ff; }

/* ticker (Templates/{Theme}/Ticker/*.html): the latest headlines on one line */
.isn-wticker { display: flex; align-items: stretch; min-height: 3.4em; border: 1px solid var(--isn-border); border-radius: 8px; background: #fff; overflow: hidden; line-height: 1.6; }
.isn-wticker-label { flex: none; display: flex; align-items: center; gap: .5em; padding: 0 1.1em; background: var(--isn-accent); color: #fff !important; font-weight: 700; white-space: nowrap; text-decoration: none !important; }
.isn-wticker-view { flex: 1 1 auto; min-width: 0; position: relative; display: flex; align-items: center; overflow: hidden; }
.isn-wticker-list { flex: none; display: flex; width: max-content; margin: 0; padding: 0; list-style: none; white-space: nowrap; will-change: transform; }
.isn .isn-wticker-item { flex: none; position: relative; margin: 0; padding: 0 1.4em; list-style: none; }
.isn-wticker-item::marker { content: none; }
.isn-wticker-item + .isn-wticker-item::before { content: ""; position: absolute; inset-inline-start: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--isn-accent); opacity: .45; }
.isn .isn-wticker-item a { display: inline-flex; align-items: center; gap: .55em; max-width: 100%; color: var(--isn-text); }
.isn .isn-wticker-item a:hover { color: var(--isn-accent); text-decoration: none; }
.isn-wticker-item time { flex: none; color: var(--isn-muted); font-size: .85em; }
.isn-wticker-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.isn-wticker-featured .isn-wticker-title { font-weight: 700; }
.isn-wticker-new { flex: none; padding: 0 .45em; border-radius: 3px; background: #e53935; color: #fff; font-size: .75em; line-height: 1.6; }
.isn-wticker-tools { flex: none; display: flex; align-items: center; gap: 2px; padding: 0 .4em; border-inline-start: 1px solid var(--isn-border); }
.isn-wticker-tools button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--isn-muted); cursor: pointer; }
.isn-wticker-tools button:hover, .isn-wticker-tools button:focus-visible { background: #f2f4f7; color: var(--isn-accent); }
.isn-wticker-tools svg { width: 16px; height: 16px; }
.isn-wticker-i-play, .isn-paused .isn-wticker-i-pause { display: none; }
.isn-paused .isn-wticker-i-play { display: block; }
.isn-wticker[data-effect="scroll"] .isn-wticker-prev, .isn-wticker[data-effect="scroll"] .isn-wticker-next { display: none; }
.isn-wticker-empty { align-self: center; padding: 0 1em; }
/* one headline at a time (fade, slide): laid out so from the first paint (data-effect), the first one shown before the
   script runs, and no transition until it ran (all headlines fading out at once looked like spilled ink) */
.isn-wticker:is([data-effect="fade"], [data-effect="slide"]) .isn-wticker-list { position: absolute; inset: 0; display: block; width: auto; }
.isn .isn-wticker:is([data-effect="fade"], [data-effect="slide"]) .isn-wticker-item { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 1.1em; opacity: 0; visibility: hidden; }
.isn-wticker:is([data-effect="fade"], [data-effect="slide"]) .isn-wticker-item::before { display: none; }
.isn .isn-wticker:is([data-effect="fade"], [data-effect="slide"]):not(.isn-wticker-one) .isn-wticker-item:first-child,
.isn .isn-wticker-one .isn-wticker-item.isn-on { opacity: 1; visibility: visible; }
.isn .isn-wticker-ready .isn-wticker-item { transition: opacity .6s, transform .6s, visibility .6s; }
.isn-wticker-slide .isn-wticker-item { transform: translateY(100%); }
.isn-wticker-slide .isn-wticker-item.isn-on { transform: none; }
.isn-wticker-slide .isn-wticker-item.isn-out { transform: translateY(-100%); }
/* quotes (Ticker/Quote.html): the text, then its source */
.isn-wticker-quote { display: flex; align-items: baseline; gap: .7em; min-width: 0; margin: 0; padding: 0; border: 0; }
.isn-wticker-quote .isn-wticker-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.isn-wticker-source { flex: none; color: var(--isn-muted); font-size: .85em; font-style: normal; white-space: nowrap; }
.isn-wticker-source::before { content: "— "; }
/* breaking news */
.isn-wticker-breaking { border-color: #f1c6c6; }
.isn-wticker-breaking .isn-wticker-label { background: #c62828; }
.isn-wticker-pulse { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: isn-pulse 1.4s ease-out infinite; }
@keyframes isn-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); } 100% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } }
@media (max-width: 600px) {
  .isn-wticker-label { padding: 0 .75em; font-size: .9em; }
  .isn-wticker-tools .isn-wticker-prev, .isn-wticker-tools .isn-wticker-next, .isn-wticker-item time { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .isn-wticker-pulse { animation: none; }
  .isn .isn-wticker-ready .isn-wticker-item { transition: none; }
}

/* products of the shop chosen for the article (RelatedProducts.html) */
.isn-products-box { margin: 1.5rem 0; }
.isn-product-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.isn .isn-product-card { display: flex; flex-direction: column; gap: .35rem; padding: .6rem; border: 1px solid var(--isn-border); border-radius: 10px; background: #fff; color: var(--isn-text); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.isn .isn-product-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); text-decoration: none; }
.isn-product-pic { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; background: #f6f7f9; overflow: hidden; }
.isn-product-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.isn-product-off { position: absolute; top: .4em; inset-inline-start: .4em; padding: 0 .45em; border-radius: 4px; background: #e53935; color: #fff; font-size: .8em; }
.isn-product-name { font-weight: 700; line-height: 1.6; }
.isn-product-price { font-size: .9em; }
.isn-product-price del { color: var(--isn-muted); font-size: .85em; }
.isn-product-price strong { color: var(--isn-accent); }
.isn-product-out { color: #c62828; font-size: .85em; }
.isn-product-buy { margin-top: auto; padding: .35em; border-radius: 6px; background: var(--isn-accent); color: #fff; text-align: center; font-size: .9em; }

.isn-code { color: var(--isn-muted); font-size: .85rem; }
/* templates of other sites may still have the plain short-link button */
.isn-short:not(.isn-act) { border: 1px solid var(--isn-border); background: #fff; border-radius: 6px; padding: 2px 10px; font: inherit; font-size: 13px; line-height: 1.5; cursor: pointer; }
.isn-short:not(.isn-act):hover, .isn-short:not(.isn-act):focus-visible { border-color: var(--isn-accent); color: var(--isn-accent); outline: none; }
.isn-short.isn-copied:not(.isn-act) { border-color: #2e7d32; color: #2e7d32; }
.isn-short-text { font: inherit; font-size: 12px; padding: 2px 6px; border: 1px solid var(--isn-border); border-radius: 6px; min-width: 16em; max-width: 100%; margin-inline-start: 6px; }

/* reading time */
.isn-reading { color: #78909c; font-size: .85em; }
.isn-reading::before { content: "\23F1\FE0E"; margin-inline-end: .25em; }

/* live coverage: updates on a time line, pinned ones marked, new ones flash */
.isn-live { margin: 1.5em 0; padding: 1em 1.2em; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; }
.isn-live-title { display: flex; align-items: center; gap: .5em; font-size: 1.15em; margin: 0 0 .8em; }
.isn-live-on .isn-live-title { color: #c62828; }
.isn-live-dot { width: .7em; height: .7em; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 0 rgba(229, 57, 53, .6); animation: isn-live-pulse 1.6s infinite; }
@keyframes isn-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, .6); } 70% { box-shadow: 0 0 0 .6em rgba(229, 57, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); } }
.isn-live-list { list-style: none; margin: 0; padding: 0; }
.isn-live-item { position: relative; display: grid; grid-template-columns: 4.2em 1fr; gap: .8em; padding: .8em 0; border-top: 1px solid #eee; }
.isn-live-item:first-child { border-top: 0; }
.isn-live-item time { font-weight: bold; color: #c62828; font-variant-numeric: tabular-nums; }
.isn-live-body h3 { margin: 0 0 .3em; font-size: 1em; }
.isn-live-body > :last-child { margin-bottom: 0; }
.isn-live-pinned { background: #fff8e1; border-radius: 6px; padding-inline: .6em; }
.isn-live-pinned time::after { content: "\1F4CC"; display: block; font-size: .9em; }
.isn-live-fresh { animation: isn-live-fresh 2.5s ease-out; }
@keyframes isn-live-fresh { from { background: #e3f2fd; } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .isn-live-dot, .isn-live-fresh { animation: none; } }

/* poll */
.isn-poll { margin: 1.5em 0; padding: 1em 1.2em; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa; }
.isn-poll-question { margin: 0 0 .8em; font-size: 1.05em; }
.isn-poll-options { display: flex; flex-direction: column; gap: .45em; margin-bottom: .8em; }
.isn-poll-option { display: flex; align-items: center; gap: .5em; padding: .45em .7em; border: 1px solid #ddd; border-radius: 6px; background: #fff; cursor: pointer; }
.isn-poll-option:hover { border-color: #90caf9; }
.isn-poll-vote { padding: .45em 1.4em; border: 0; border-radius: 6px; background: #1976d2; color: #fff; cursor: pointer; font: inherit; }
.isn-poll-vote[disabled] { opacity: .6; }
.isn-poll-results { list-style: none; margin: 0 0 .6em; padding: 0; }
.isn-poll-results li { display: grid; grid-template-columns: 1fr auto; gap: .2em .6em; margin-bottom: .6em; }
.isn-poll-bar { grid-column: 1 / -1; height: .55em; border-radius: 1em; background: #e0e0e0; overflow: hidden; }
.isn-poll-bar span { display: block; height: 100%; border-radius: 1em; background: #1976d2; }
.isn-poll-percent { font-weight: bold; font-variant-numeric: tabular-nums; }
.isn-poll-voters, .isn-poll-msg { margin: .3em 0 0; font-size: .9em; color: #607d8b; }

/* newsletter widget */
.isn-newsletter { position: relative; padding: 1em; border: 1px solid #e0e0e0; border-radius: 8px; background: #fafafa; }
.isn-newsletter-intro { margin: 0 0 .7em; color: #607d8b; font-size: .92em; }
.isn-newsletter-row { display: flex; gap: .5em; margin-bottom: .5em; }
.isn-newsletter input[type=email], .isn-newsletter-name { flex: 1; min-width: 0; width: 100%; box-sizing: border-box; padding: .5em .7em; border: 1px solid #ccc; border-radius: 6px; font: inherit; }
.isn-newsletter-send { padding: .5em 1.1em; border: 0; border-radius: 6px; background: #1976d2; color: #fff; cursor: pointer; font: inherit; white-space: nowrap; }
.isn-newsletter-send[disabled] { opacity: .6; }
.isn-newsletter-msg { margin: .5em 0 0; font-size: .9em; color: #2e7d32; }

/* bar of the editors above a list: a thin strip, small words with an icon each; sized in px so a skin's large
   root font does not blow it up */
.isn-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin: 8px 0 14px; padding: 4px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; line-height: 1.4; }
.isn-admin a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; color: #4b5563 !important; font-weight: 500; text-decoration: none !important; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.isn-admin a:hover, .isn-admin a:focus-visible { background: #fff; color: var(--isn-accent, #1976d2) !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); outline: none; }
.isn-admin a::before, .isn-edit::before { content: ""; flex: none; background: currentColor; -webkit-mask: var(--isn-icon) center / contain no-repeat; mask: var(--isn-icon) center / contain no-repeat; }
.isn-admin a::before { width: 16px; height: 16px; opacity: .9; }
.isn-admin a.isn-admin-add { color: var(--isn-accent, #1976d2) !important; }
.isn-admin-add { --isn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z'/%3E%3C/svg%3E"); }
.isn-admin-articles { --isn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zm-1 7V3.5L18.5 9zM8 13h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E"); }
.isn-admin-dashboard { --isn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z'/%3E%3C/svg%3E"); }
.isn-admin-settings { --isn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.14 12.94a7.07 7.07 0 0 0 0-1.88l2.03-1.58a.5.5 0 0 0 .12-.64l-1.92-3.32a.5.5 0 0 0-.61-.22l-2.39.96a7.03 7.03 0 0 0-1.62-.94l-.36-2.54a.5.5 0 0 0-.5-.42h-3.84a.5.5 0 0 0-.5.42l-.36 2.54c-.59.24-1.13.56-1.62.94l-2.39-.96a.5.5 0 0 0-.61.22L2.71 8.84a.5.5 0 0 0 .12.64l2.03 1.58a7.07 7.07 0 0 0 0 1.88l-2.03 1.58a.5.5 0 0 0-.12.64l1.92 3.32c.13.22.39.3.61.22l2.39-.96c.49.38 1.03.7 1.62.94l.36 2.54c.05.24.25.42.5.42h3.84c.25 0 .45-.18.5-.42l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.48 0 .61-.22l1.92-3.32a.5.5 0 0 0-.12-.64zM12 15.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7z'/%3E%3C/svg%3E"); }
/* edit link of an article: small, outlined, with a pencil */
.isn-edit { float: right; display: inline-flex; align-items: center; gap: 4px; font-size: 12px !important; line-height: 1.4; padding: 2px 8px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fff; color: #6b7280 !important; font-weight: normal; text-decoration: none !important; --isn-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z'/%3E%3C/svg%3E"); }
.isn-edit::before { width: 12px; height: 12px; }
.isn-edit:hover, .isn-edit:focus-visible { color: var(--isn-accent, #1976d2) !important; border-color: currentColor; outline: none; }
@media print { .isn-admin, .isn-edit, .isn-actions, .isn-img-broken { display: none !important; } .isn-footer { background: none; border: 0; padding: 0; } }

/* search suggestions (js/isn-widgets.js) */
.isn-wsearch { position: relative; }
.isn-wsearch-suggest { position: absolute; z-index: 50; top: 100%; inset-inline: 0; margin: .25rem 0 0; padding: .25rem 0; list-style: none; background: #fff; border: 1px solid var(--isn-border, #ddd); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); max-height: 22rem; overflow: auto; }
.isn-wsearch-suggest a { display: flex; align-items: center; gap: .6rem; padding: .45rem .75rem; color: inherit; text-decoration: none; line-height: 1.6; }
.isn-wsearch-suggest a:hover, .isn-wsearch-suggest a.isn-on { background: rgba(0, 0, 0, .05); }
.isn-wsearch-suggest img { width: 44px; height: 32px; object-fit: cover; border-radius: 4px; flex: none; }

/* «load more» / endless lists hide the pager (it stays in the page for search engines); [hidden] must win over display */
.isn-pager[hidden] { display: none !important; }

/* Right-to-left overrides of theme.css. tools/build-rtl.ps1 writes theme.rtl.css = base + this file. */
@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url("../../fonts/Vazirmatn-Regular.woff2") format("woff2"); }
@font-face { font-family: Vazirmatn; font-weight: 500; font-display: swap; src: url("../../fonts/Vazirmatn-Medium.woff2") format("woff2"); }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url("../../fonts/Vazirmatn-Bold.woff2") format("woff2"); }

.isn { direction: rtl; text-align: right; font-family: Vazirmatn, Tahoma, Arial, sans-serif; }
.isn-edit { float: left; }
.isn-category + .isn-category::before { content: "، "; }
.isn-tags a { margin: 0 0 .25rem .25rem; }
.isn-comment-replies { padding-left: 0; border-left: 0; padding-right: .9rem; border-right: 2px solid var(--isn-border); }
.isn-hp { left: auto !important; right: -9999px !important; }
.isn-stars { flex-direction: row-reverse; }
.isn-doc-ext { margin-right: 0; margin-left: .5rem; }
/* ticker: the arrows point the other way */
.isn-wticker-tools svg { transform: scaleX(-1); }
.isn-wticker-i-play { transform: scaleX(-1); }
