/* GENERATED by tools/build-themes.py from theme.own.css - do not edit */
@import url("/DesktopModules/IransiteNews/Templates/Default/theme.rtl.css?v=ae61b8bf");
/* Library: the list is a wooden bookcase (each row of covers stands on a shelf, a book leans out on hover); the article
   page shows the book with a 3D cover, its record (fields bookAuthor, bookTranslator, bookPages, bookLanguage) and the
   download button beside it. Colors: --isn-wood (shelf), --isn-back (back of the case), --isn-accent (buttons). */
.isn-theme-Library { --isn-accent: #c8432b; --isn-wood: #9a6a3f; --isn-wood-dark: #6e4524; --isn-back: #3a281b; }

/* ---- the bookcase: shelf by shelf. Each row of books stands on its own plank and the back of the case shows between the
   shelves. A book without a cover picture gets a printed cover (a band with its shelf, the title, a rule, the author) in
   the colour of its shelf (the category's colour); under every book its author, and its title too when the cover is a
   picture (a printed cover already says it). */
.isn-list.isn-theme-Library .isn-articles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); column-gap: 0; row-gap: 34px;
  padding: 22px 16px 18px; border: 14px solid var(--isn-wood-dark); border-top-width: 18px; border-radius: 8px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 40px), repeating-linear-gradient(90deg, var(--isn-back) 0 46px, #34241a 46px 92px);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .5), 0 10px 24px rgba(40, 24, 10, .25);
}
/* (higher than the site skins that give list items a card background) */
.isn-list.isn-theme-Library .isn-articles .isn-article.isn-book {
  position: relative; display: flex; flex-direction: column; align-items: center; padding: 16px 10px 0;
  border: 0; border-radius: 0; background: none; box-shadow: none; margin: 0; text-align: center;
}
.isn-theme-Library .isn-book { --isn-cover-w: 126px; --isn-cover-h: 189px; }
/* the plank right under the covers: the pieces of one row join into one board; the labels hang below it */
.isn-theme-Library .isn-book::after {
  content: ""; position: absolute; z-index: 0; display: block; left: -1px; right: -1px; bottom: auto; top: calc(16px + var(--isn-cover-h)); height: 20px;
  background: linear-gradient(180deg, #c99561 0 3px, var(--isn-wood) 3px 14px, var(--isn-wood-dark) 14px);
  box-shadow: 0 10px 12px -4px rgba(0, 0, 0, .6);
}
.isn-theme-Library .isn-book-cover {
  position: relative; z-index: 1; display: block; width: var(--isn-cover-w); max-width: 100%; height: var(--isn-cover-h); flex: none;
  border-radius: 2px 5px 5px 2px; overflow: hidden; background: #fff;
  box-shadow: inset 4px 0 6px -2px rgba(0, 0, 0, .45), 3px 4px 8px rgba(0, 0, 0, .55);
  transform-origin: 50% 100%; transition: transform .25s ease, box-shadow .25s ease;
}
/* the spine fold on the left edge */
.isn-theme-Library .isn-book-cover::before {
  content: ""; position: absolute; z-index: 1; inset-block: 0; left: 0; width: 9px;
  background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .18) 60%, rgba(0, 0, 0, .12));
}
.isn-theme-Library .isn-book-cover:hover, .isn-theme-Library .isn-book-cover:focus-visible { transform: translateY(-8px) rotate(-2deg); box-shadow: 6px 12px 16px rgba(0, 0, 0, .5); }
/* the picture fills the 2:3 cover whatever its own size (a tall scan must not make its book taller) */
.isn-theme-Library .isn-book-cover picture, .isn-theme-Library .isn-book-cover > img { position: absolute; inset: 0; display: block; }
.isn-theme-Library .isn-book-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* the colour of a shelf (category colour; the sub-shelves share their shelf's) */
.isn-theme-Library .isn-book, .isn-wcat.isn-theme-Library .isn-wcat-tree > li { --isn-cloth: #6b4a22; }
.isn-theme-Library .isn-cat-red, .isn-wcat.isn-theme-Library .isn-wcat-tree > li:has(> a > .isn-color-red, > details > summary > a > .isn-color-red) { --isn-cloth: #8e2f2f; }
.isn-theme-Library .isn-cat-orange, .isn-wcat.isn-theme-Library .isn-wcat-tree > li:has(> a > .isn-color-orange, > details > summary > a > .isn-color-orange) { --isn-cloth: #a24d18; }
.isn-theme-Library .isn-cat-yellow, .isn-wcat.isn-theme-Library .isn-wcat-tree > li:has(> a > .isn-color-yellow, > details > summary > a > .isn-color-yellow) { --isn-cloth: #8a6a0e; }
.isn-theme-Library .isn-cat-green, .isn-wcat.isn-theme-Library .isn-wcat-tree > li:has(> a > .isn-color-green, > details > summary > a > .isn-color-green) { --isn-cloth: #2f6b45; }
.isn-theme-Library .isn-cat-blue, .isn-wcat.isn-theme-Library .isn-wcat-tree > li:has(> a > .isn-color-blue, > details > summary > a > .isn-color-blue) { --isn-cloth: #1f4e79; }
.isn-theme-Library .isn-cat-purple, .isn-wcat.isn-theme-Library .isn-wcat-tree > li:has(> a > .isn-color-purple, > details > summary > a > .isn-color-purple) { --isn-cloth: #4a3470; }
.isn-theme-Library .isn-cat-gray, .isn-wcat.isn-theme-Library .isn-wcat-tree > li:has(> a > .isn-color-gray, > details > summary > a > .isn-color-gray) { --isn-cloth: #4c5960; }
.isn-theme-Library .isn-cat-black, .isn-wcat.isn-theme-Library .isn-wcat-tree > li:has(> a > .isn-color-black, > details > summary > a > .isn-color-black) { --isn-cloth: #263238; }

/* a printed cover: a band with the shelf, the title, a rule, the author */
.isn-theme-Library .isn-book-cloth {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 0 10px 12px 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), transparent 45%), var(--isn-cloth);
  color: #fbf3df; text-align: center;
}
.isn-theme-Library .isn-book-cloth i {
  display: block; margin: 0 -10px 0 -16px; padding: 7px 8px 6px 14px; background: rgba(0, 0, 0, .24); color: rgba(251, 243, 223, .85);
  font-style: normal; font-size: .62rem; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.isn-theme-Library .isn-book-cloth i em { font-style: normal; }
.isn-theme-Library .isn-book-cloth i em + em { display: none; }
.isn-theme-Library .isn-book-cloth b {
  margin: auto 0 8px; font-size: .86rem; line-height: 1.7; font-weight: 800;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.isn-theme-Library .isn-book-cloth small {
  margin: 0 0 auto; padding-top: 8px; border-top: 1px solid rgba(251, 243, 223, .45); font-size: .7rem; line-height: 1.6; opacity: .9;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* under the shelf: the title on a paper label (picture covers only) and the author */
.isn-list.isn-theme-Library .isn-book .isn-title {
  position: relative; z-index: 1; margin: 28px 0 0; padding: 4px 8px; font-size: .76rem; line-height: 1.6; font-weight: 600;
  background: #f6efdf; border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.isn-theme-Library .isn-book .isn-title a { color: #3a281b; }
/* a printed cover says its title: the label is kept for readers of the page, not shown */
.isn-list.isn-theme-Library .isn-book-printed .isn-title { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.isn-theme-Library .isn-book-author {
  position: relative; z-index: 1; margin: 6px 0 0; max-width: 100%; font-size: .74rem; line-height: 1.6; color: #f1e4c8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.isn-theme-Library .isn-book-printed .isn-book-author { margin-top: 30px; }
.isn-theme-Library .isn-book .isn-edit { position: absolute; z-index: 2; top: 2px; inset-inline-start: 4px; }
@media (max-width: 560px) {
  .isn-list.isn-theme-Library .isn-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; padding: 14px 6px 12px; border-width: 8px; border-top-width: 10px; }
  .isn-list.isn-theme-Library .isn-articles .isn-article.isn-book { padding: 12px 5px 0; }
  .isn-theme-Library .isn-book { --isn-cover-w: 112px; --isn-cover-h: 168px; }
  .isn-theme-Library .isn-book::after { top: calc(12px + var(--isn-cover-h)); }
}

/* ---- the shelves (category menu beside the bookcase): each shelf a label with the colour of its books on its spine,
   its sub-shelves under it */
.isn-wcat.isn-theme-Library .isn-wcat-tree { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.isn-wcat.isn-theme-Library .isn-wcat-tree > li > a, .isn-wcat.isn-theme-Library .isn-wcat-tree > li > details > summary {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; list-style: none; cursor: pointer;
  background: #fbf6ec; border: 1px solid #e6d6b6; border-inline-start: 6px solid var(--isn-cloth);
}
.isn-wcat.isn-theme-Library .isn-wcat-tree > li > details > summary::-webkit-details-marker { display: none; }
.isn-wcat.isn-theme-Library .isn-wcat-tree > li > details > summary > a { flex: 1; display: flex; align-items: center; gap: 8px; color: #3a281b; font-weight: 700; }
.isn-wcat.isn-theme-Library .isn-wcat-tree > li > a { color: #3a281b; font-weight: 700; }
.isn-wcat.isn-theme-Library .isn-wcat-tree ul { margin: 6px 0 2px; padding: 0; padding-inline-start: 12px; list-style: none; border-inline-start: 2px solid var(--isn-cloth); margin-inline-start: 10px; }
.isn-wcat.isn-theme-Library .isn-wcat-tree ul a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; color: #5b4026; font-size: .9rem; }
.isn-wcat.isn-theme-Library .isn-wcat-tree ul a:hover, .isn-wcat.isn-theme-Library .isn-wcat-tree > li > a:hover { background: #f4ead6; }
.isn-wcat.isn-theme-Library .isn-wcat-dot { display: none; }
.isn-wcat.isn-theme-Library .isn-wcount { margin-inline-start: auto; min-width: 30px; padding: 1px 8px; border-radius: 999px; background: var(--isn-cloth); color: #fff; font-size: .72rem; text-align: center; }
.isn-wcat.isn-theme-Library .isn-wcat-tree ul .isn-wcount { background: #efe3cb; color: #5b4026; }

/* ---- search and advanced filter (Filter.html): a bar above the bookcase; the filter is a dialog, a bottom sheet on phones */
.isn-theme-Library .isn-libfilter { display: block; margin: 0 0 16px; padding: 0; border: 0; background: none; }
.isn-theme-Library .isn-libfilter-bar { display: flex; gap: 10px; }
.isn-theme-Library .isn-libfilter-q {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid #dccdb0; border-radius: 10px; background: #fffdf8; font: inherit; font-size: 16px;
}
.isn-theme-Library .isn-libfilter-q:focus { outline: none; border-color: var(--isn-accent); box-shadow: 0 0 0 3px rgba(200, 67, 43, .15); }
.isn-theme-Library .isn-libfilter-open {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border: 1px solid var(--isn-accent); border-radius: 10px;
  background: #fff; color: var(--isn-accent); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.isn-theme-Library .isn-libfilter-open:hover { background: #fbf3e8; }
.isn-theme-Library .isn-libfilter-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--isn-accent); color: #fff; font-size: .78rem; line-height: 22px; text-align: center; }
.isn-theme-Library .isn-libfilter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.isn-theme-Library .isn-libfilter-chips:empty { display: none; }
.isn-theme-Library .isn-libfilter-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 12px; border: 1px solid #e3d3b5; border-radius: 999px;
  background: #fbf3e8; color: #4a3220; font: inherit; font-size: .85rem; cursor: pointer;
}
.isn-theme-Library .isn-libfilter-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.isn-theme-Library .isn-libfilter-chip i { font-style: normal; font-size: 1.1rem; line-height: 1; color: var(--isn-accent); }
.isn-theme-Library .isn-libfilter-clearall { font-size: .85rem; color: var(--isn-accent); }
/* the dialog */
.isn-theme-Library .isn-libfilter-sheet { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.isn-theme-Library .isn-libfilter-sheet[hidden] { display: none; }
.isn-theme-Library .isn-libfilter-shade { position: absolute; inset: 0; background: rgba(30, 20, 10, .5); }
.isn-theme-Library .isn-libfilter-panel {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: calc(100vh - 32px);
  background: #fffdf8; border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: isn-lib-pop .18s ease-out;
}
.isn-theme-Library .isn-libfilter-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #eee2cc; }
.isn-theme-Library .isn-libfilter-head strong { font-size: 1.05rem; color: #3a281b; }
.isn-theme-Library .isn-libfilter-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3eadb; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.isn-theme-Library .isn-libfilter-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 18px 12px; }
.isn-theme-Library .isn-libfilter-body .isn-filter-field { display: block; margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid #f1e8d8; }
.isn-theme-Library .isn-libfilter-body .isn-filter-field:last-child { border-bottom: 0; }
.isn-theme-Library .isn-libfilter-body legend { float: none; width: auto; margin: 0 0 8px; padding: 0; font-size: .9rem; font-weight: 700; color: #4a3220; }
.isn-theme-Library .isn-libfilter-body select,
.isn-theme-Library .isn-libfilter-body .isn-filter-range input {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid #dccdb0; border-radius: 10px; background: #fff; font: inherit; font-size: 16px;
}
.isn-theme-Library .isn-libfilter-body .isn-filter-range { display: flex; align-items: center; gap: 10px; }
.isn-theme-Library .isn-libfilter-body .isn-filter-range input { flex: 1; min-width: 0; text-align: center; }
.isn-theme-Library .isn-libfilter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.isn-theme-Library .isn-libfilter-pills label { position: relative; cursor: pointer; }
.isn-theme-Library .isn-libfilter-pills input { position: absolute; opacity: 0; pointer-events: none; }
.isn-theme-Library .isn-libfilter-pills span { display: inline-block; padding: 8px 16px; border: 1px solid #dccdb0; border-radius: 999px; background: #fff; font-size: .9rem; }
.isn-theme-Library .isn-libfilter-pills input:checked + span { border-color: var(--isn-accent); background: var(--isn-accent); color: #fff; }
.isn-theme-Library .isn-libfilter-pills input:focus-visible + span { outline: 2px solid var(--isn-accent); outline-offset: 2px; }
.isn-theme-Library .isn-libfilter-foot { display: flex; gap: 10px; padding: 12px 18px; border-top: 1px solid #eee2cc; }
.isn-theme-Library .isn-libfilter-foot .isn-filter-go { flex: 1; height: 48px; border: 0; border-radius: 10px; background: var(--isn-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.isn-theme-Library .isn-libfilter-reset { height: 48px; padding: 0 16px; border: 1px solid #dccdb0; border-radius: 10px; background: #fff; font: inherit; cursor: pointer; }
html.isn-libfilter-on { overflow: hidden; }
@keyframes isn-lib-pop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes isn-lib-up { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 600px) {
  .isn-theme-Library .isn-libfilter-open span { display: none; }
  .isn-theme-Library .isn-libfilter-open { padding: 0 13px; }
  .isn-theme-Library .isn-libfilter-sheet { align-items: flex-end; padding: 0; }
  .isn-theme-Library .isn-libfilter-panel { max-width: none; max-height: 88vh; border-radius: 18px 18px 0 0; animation: isn-lib-up .22s ease-out; padding-bottom: env(safe-area-inset-bottom); }
  .isn-theme-Library .isn-libfilter-panel::before { content: ""; align-self: center; width: 42px; height: 4px; margin-top: 8px; border-radius: 2px; background: #dccdb0; }
}
@media (prefers-reduced-motion: reduce) {
  .isn-theme-Library .isn-libfilter-panel { animation: none; }
}

/* ---- the book page */
.isn-theme-Library.isn-details .isn-book-head { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 32px; align-items: start; margin: 8px 0 28px; }
.isn-theme-Library .isn-book-3d {
  position: relative; aspect-ratio: 2 / 3; perspective: 900px; border-radius: 3px 8px 8px 3px;
  background: #6b2d2d; transform: perspective(900px) rotateY(14deg); transform-origin: 0 50%;
  box-shadow: inset 6px 0 10px -4px rgba(0, 0, 0, .5), 18px 18px 30px rgba(40, 24, 10, .35);
}
/* the pages seen from the side */
.isn-theme-Library .isn-book-3d::after {
  content: ""; position: absolute; top: 3%; bottom: 3%; right: -14px; width: 14px; border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(180deg, #f7f1e3 0 2px, #e2d7bf 2px 3px); transform: skewY(-8deg); transform-origin: 0 0;
}
.isn-theme-Library .isn-book-3d img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.isn-theme-Library .isn-book-3d .isn-book-cloth { border-radius: inherit; font-size: 1.05rem; }
.isn-theme-Library .isn-book-card { background: #fbf7ee; border: 1px solid #e8dcc3; border-radius: 12px; padding: 22px 24px; }
.isn-theme-Library .isn-book-card .isn-title { margin: 0 0 4px; }
.isn-theme-Library .isn-book-card .isn-subtitle { margin: 0 0 14px; font-size: .95rem; color: #6d5a43; font-weight: 500; direction: ltr; text-align: end; }
.isn-theme-Library .isn-book-record { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 18px; }
.isn-theme-Library .isn-book-record div { background: #fff; border: 1px solid #eadfca; border-radius: 8px; padding: 8px 12px; }
.isn-theme-Library .isn-book-record dt { font-size: .75rem; color: #8a7558; }
.isn-theme-Library .isn-book-record dd { margin: 2px 0 0; font-weight: 600; color: #3a281b; }
.isn-theme-Library .isn-book-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.isn-theme-Library .isn-book-dl {
  display: inline-flex; flex-direction: column; align-items: center; min-width: 190px; padding: 10px 22px; border-radius: 10px;
  background: var(--isn-accent); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 #8a2a19;
}
.isn-theme-Library .isn-book-dl:hover { background: #a93520; color: #fff; text-decoration: none; }
.isn-theme-Library .isn-book-dl:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a2a19; }
.isn-theme-Library .isn-book-dl .isn-doc-ext { text-transform: uppercase; }
.isn-theme-Library .isn-book-dl small { font-weight: 400; color: #fbeedd; font-size: .78rem; }
.isn-theme-Library .isn-book-intro { font-size: 1.15rem; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid #e8dcc3; }
@media (max-width: 700px) {
  .isn-theme-Library.isn-details .isn-book-head { grid-template-columns: 1fr; gap: 20px; }
  .isn-theme-Library .isn-book-3d { width: 58%; margin: 0 auto; }
  .isn-theme-Library .isn-book-dl { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .isn-theme-Library .isn-book-cover { transition: none; }
}
/* a book whose file is not available */
.isn-theme-Library .isn-book-nofile p { margin: 0; padding: 12px 14px; border: 1px dashed #d9c9a8; border-radius: 12px; background: #fffaf0; color: #6b4600; line-height: 1.9; font-size: .92rem; }
/* the printed cover is always there under a picture (a picture that fails to load leaves the printed one, not a hole);
   the band names the author, the line under the rule the shelf */
.isn-theme-Library .isn-book-cover picture { z-index: 1; }
.isn-theme-Library .isn-book-cloth small em { font-style: normal; }
.isn-theme-Library .isn-book-cloth small em + em { display: none; }
.isn-theme-Library .isn-book-cloth i { font-weight: 700; }

/* right to left: Persian books are bound on the right, so the spine, the turn of the 3D cover and its pages are mirrored */
.isn-theme-Library .isn-book-cover { border-radius: 5px 2px 2px 5px; box-shadow: inset -4px 0 6px -2px rgba(0, 0, 0, .45), -3px 4px 8px rgba(0, 0, 0, .55); }
.isn-theme-Library .isn-book-cover::before { left: auto; right: 0; background: linear-gradient(270deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .18) 60%, rgba(0, 0, 0, .12)); }
.isn-theme-Library .isn-book-cover:hover, .isn-theme-Library .isn-book-cover:focus-visible { transform: translateY(-8px) rotate(2deg); box-shadow: -6px 12px 16px rgba(0, 0, 0, .5); }
.isn-theme-Library .isn-book-cloth { padding: 14px 16px 14px 12px; }
.isn-theme-Library .isn-book-3d { border-radius: 8px 3px 3px 8px; transform: perspective(900px) rotateY(-14deg); transform-origin: 100% 50%; box-shadow: inset -6px 0 10px -4px rgba(0, 0, 0, .5), -18px 18px 30px rgba(40, 24, 10, .35); }
.isn-theme-Library .isn-book-3d::after { right: auto; left: -14px; border-radius: 3px 0 0 3px; transform: skewY(8deg); transform-origin: 100% 0; }
