/* AtraByte journal — styling for the existing post-list markup. */
.blog-list-page {
  --blx-container: 1200px;
  --blx-ink: #141421;
  --blx-muted: #686b84;
  --blx-purple: #6945f5;
  --blx-purple-dark: #5530da;
  --blx-border: #e5e5f0;
  --blx-surface: #fff;
  --blx-night: #11121f;
  background: #f8f9fd;
}
.blx, .blx *, .blx *::before, .blx *::after { box-sizing: border-box; }
.blx {
  padding-top: var(--nav,68px);
  color: var(--blx-ink);
  background: linear-gradient(115deg,#fafaff 0%,#f6f8fc 100%);
  font-family: 'Vazirmatn',sans-serif;
}
html[dir=ltr] .blx { font-family: 'Space Grotesk','Vazirmatn',sans-serif; }
.blx-container { width: min(calc(100% - 64px),var(--blx-container)); margin-inline: auto; }
.blx a { color: inherit; text-decoration: none; }
.blx :is(button,input) { font: inherit; }
.blx :is(h1,h2,h3,p,figure) { margin: 0; }
.blx :is(h1,h2,h3) { color: var(--blx-ink); text-wrap: balance; }
.blx p { text-wrap: pretty; }
.blx img { display: block; width: 100%; }
.blx :is(a,button,input):focus-visible { outline: 3px solid var(--blx-purple); outline-offset: 4px; }
.blx-hero { padding: 66px 0 38px; }
.blx-hero__grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); align-items: center; gap: 70px; direction: ltr; }
.blx-hero__copy { direction: ltr; text-align: left; min-width: 0; }
html[dir=rtl] .blx-hero__copy { direction: rtl; }
.blx-breadcrumb { display: none; }
.blx-kicker { color: var(--blx-purple); font-size: 12px; margin-bottom: 14px !important; }
.blx-hero h1 { font-size: clamp(34px,4vw,55px); font-weight: 900; line-height: 1.2; }
.blx-hero h1 em { display: block; color: inherit; font-style: normal; }
.blx-hero__description { margin-top: 18px !important; color: var(--blx-muted); font-size: 14px; line-height: 1.9; }
.blx-hero__tools { min-width: 0; padding-top: 34px; direction: ltr; }
html[dir=rtl] .blx-hero__tools { direction: rtl; }
.blx-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.blx-search__field { display: flex; align-items: center; min-height: 48px; border: 1px solid var(--blx-border); border-radius: 14px; background: rgba(255,255,255,.35); }
.blx-search__field:focus-within { border-color: var(--blx-purple); }
.blx-search input { width: 100%; min-width: 0; padding: 12px 16px; color: var(--blx-ink); background: transparent; border: 0; border-radius: 14px; font-size: 12px; }
.blx-search input::placeholder { color: var(--blx-muted); opacity: 1; }
.blx-search button { position: relative; flex: 0 0 46px; align-self: stretch; border: 0; background: none; color: var(--blx-ink); cursor: pointer; border-radius: 12px; }
.blx-search button span { font-size: 0; }
.blx-search button::before { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 50%; left: 13px; top: 13px; }
.blx-search button::after { content: ''; position: absolute; width: 8px; height: 2px; background: currentColor; left: 26px; top: 29px; transform: rotate(45deg); }
.blx-count { display: flex; gap: 4px; justify-content: flex-start; margin-top: 14px !important; color: var(--blx-muted); font-size: 11px; }
.blx-count strong { font-weight: 400; }
.blx-filters { display: flex; align-items: stretch; gap: 3px; padding-bottom: 5px; border-bottom: 1px solid var(--blx-border); overflow-x: auto; scrollbar-width: thin; }
.blx-filters a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; flex: 0 0 auto; padding: 10px 24px; border: 1px solid var(--blx-border); border-radius: 5px; color: #4d4d64; font-size: 12px; font-weight: 600; transition: background 160ms ease,color 160ms ease; }
.blx-filters a:hover { color: var(--blx-purple); background: #f0ecff; }
.blx-filters a.is-active { background: var(--blx-purple); border-color: var(--blx-purple); color: #fff; box-shadow: inset 0 0 12px #ffffff24; }
.blx-result { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 14px; color: var(--blx-muted); }
.blx-result strong { color: var(--blx-ink); overflow-wrap: anywhere; }
.blx-result > a { display: grid; place-items: center; width: 44px; height: 44px; font-size: 26px; color: var(--blx-purple); }
/* Featured article: image at the right, copy at the left. */
.blx-lead { display: grid; grid-template-columns: 56% 44%; margin-top: 30px; border: 1px solid var(--blx-border); background: rgba(255,255,255,.4); border-radius: 4px; overflow: hidden; }
.blx-lead__media { position: relative; display: block; min-height: 445px; overflow: hidden; background: #eeecf7; }
.blx-lead__media img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.blx-lead__badge { display: none; }
.blx-lead__body { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 22px 16px; padding: 38px 40px; min-width: 0; }
.blx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 11px; color: var(--blx-muted); }
.blx-meta a { color: var(--blx-purple); font-size: 12px; font-weight: 600; }
.blx-lead__body > .blx-meta { display: contents; }
.blx-lead .blx-meta > a { grid-column: 1/-1; grid-row: 1; }
.blx-lead .blx-meta > span { grid-row: 4; font-size: 11px; color: var(--blx-muted); }
.blx-lead .blx-meta > span:last-child { border-inline-start: 1px solid #d8d8e9; padding-inline-start: 20px; }
.blx-lead h2 { grid-column: 1/-1; grid-row: 2; font-size: clamp(24px,2.4vw,33px); font-weight: 800; line-height: 1.6; }
.blx-lead__body > p { grid-column: 1/-1; grid-row: 3; color: #54546c; font-size: 15px; line-height: 1.95; }
.blx-read { grid-column: 1/-1; grid-row: 5; justify-self: end; display: inline-flex; align-items: center; gap: 25px; min-height: 46px; padding: 11px 20px; margin-top: 5px; border-radius: 12px; background: var(--blx-purple); color: #fff !important; font-size: 13px; transition: background 160ms ease; }
.blx-read:hover { background: var(--blx-purple-dark); }
.blx-read b { font-size: 21px; font-weight: 400; }
.blx-media-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: inherit; background: #eeecf7; color: #6b628b; font-size: 22px; }
html[dir=ltr] .blx-lead { direction: rtl; }
html[dir=ltr] .blx-lead__body { direction: ltr; }
/* Latest articles. The existing metadata is positioned on the bottom row. */
.blx-index { padding-top: 42px; }
.blx-section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.blx-section-head > div > p { display: none; }
.blx-section-head h2, .blx-more__head p { font-size: 27px; line-height: 1.5; font-weight: 800; }
.blx-section-head > a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--blx-purple); font-size: 11px; }
.blx-section-head > a span { font-size: 19px; }
.blx-index:not(:has(.blx-more)) .blx-section-head > a { display: none; }
.blx-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.blx-card { min-width: 0; display: flex; flex-direction: column; padding: 7px; background: var(--blx-surface); border: 1px solid var(--blx-border); border-radius: 5px; transition: border-color 180ms ease,box-shadow 180ms ease; }
.blx-card:hover { border-color: #bcb0f7; box-shadow: 0 8px 25px #30205c09; }
.blx-card__media { display: block; aspect-ratio: 1.87; overflow: hidden; background: #eeecf7; }
.blx-card__media img { height: 100%; object-fit: cover; }
.blx-card__body { flex: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 32px; grid-template-rows: auto auto 1fr auto; gap: 12px 8px; padding: 16px 10px 2px; }
.blx-card .blx-meta, .blx-card footer { display: contents; }
.blx-card .blx-meta a { grid-row: 1; grid-column: 1/-1; font-size: 11px; }
.blx-card .blx-meta > span { grid-row: 4; grid-column: 1; align-self: center; color: var(--blx-muted); font-size: 10px; }
.blx-card h3 { grid-row: 2; grid-column: 1/-1; font-size: 21px; font-weight: 800; line-height: 1.65; }
.blx-card__body > p { grid-row: 3; grid-column: 1/-1; margin-bottom: 10px; color: var(--blx-muted); font-size: 14px; line-height: 1.85; }
.blx-card footer > span { grid-row: 4; grid-column: 2; align-self: center; color: var(--blx-muted); font-size: 10px; border-inline-start: 1px solid var(--blx-border); padding-inline-start: 10px; }
.blx-card footer > a { grid-row: 4; grid-column: 3; display: grid; place-items: center; min-height: 44px; color: var(--blx-purple); font-size: 25px; }
.blx-card h3 a:hover, .blx-lead h2 a:hover { color: var(--blx-purple); }
/* Compact archive: thumbnail, heading, summary, date and link. */
.blx-more { padding-top: 42px; scroll-margin-top: calc(var(--nav,68px) + 24px); }
.blx-more__head { margin-bottom: 18px; }
.blx-list { border-top: 1px solid var(--blx-border); background: rgba(255,255,255,.35); }
.blx-row { border-bottom: 1px solid var(--blx-border); }
.blx-row__hit { display: grid; grid-template-columns: 180px minmax(0,1fr) minmax(0,1.2fr) 145px 44px; grid-template-rows: auto auto; align-items: center; gap: 8px 28px; min-height: 115px; padding: 7px 6px; }
.blx-row__media { grid-column: 1; grid-row: 1/3; aspect-ratio: 1.75; overflow: hidden; background: #eeecf7; }
.blx-row__media img { height: 100%; object-fit: cover; }
.blx-row__copy, .blx-row .blx-meta { display: contents; }
.blx-row .blx-meta > span:first-child:not(:last-child) { grid-column: 2; grid-row: 1; align-self: end; color: var(--blx-purple); font-size: 12px; }
.blx-row .blx-meta > span:last-child { grid-column: 4; grid-row: 1/3; color: var(--blx-muted); font-size: 11px; text-align: center; }
.blx-row__copy h3 { grid-column: 2; grid-row: 2; align-self: start; font-size: 17px; line-height: 1.8; font-weight: 700; }
.blx-row__copy > p { grid-column: 3; grid-row: 1/3; color: var(--blx-muted); font-size: 12px; line-height: 1.9; }
.blx-row__time { display: none; }
.blx-row__open { grid-column: 5; grid-row: 1/3; display: grid; place-items: center; min-height: 44px; color: var(--blx-purple); font-size: 24px; }
.blx-row__hit:hover h3 { color: var(--blx-purple); }
.blx-empty { padding: 64px 24px; text-align: center; border: 1px solid var(--blx-border); background: #fff; border-radius: 5px; }
.blx-empty > span { display: block; color: var(--blx-purple); font-size: 45px; margin-bottom: 15px; }
.blx-empty p { color: var(--blx-muted); font-size: 15px; line-height: 1.9; }
.blx-pages { display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 82px; margin-top: 8px; }
.blx-pages a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 8px; color: var(--blx-purple); font-size: 12px; }
.blx-pages strong { display: grid; place-items: center; min-width: 48px; min-height: 42px; padding: 7px 12px; border-radius: 24px; color: #fff; background: var(--blx-purple); font-size: 12px; font-weight: 500; }
.blx-pages a:hover { color: var(--blx-purple-dark); }
.blx-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin: 28px -16px 0; padding: 28px 40px; min-height: 165px; border: 1px solid #302e49; border-radius: 7px; color: #fff; background: radial-gradient(ellipse at 5% 120%,#352566 0,transparent 52%),var(--blx-night); }
.blx > .blx-container { padding-bottom: 28px; }
.blx-cta > div { max-width: 620px; }
.blx-cta p { margin-bottom: 10px; color: #b6a0ff; font-size: 11px; }
.blx-cta h2 { max-width: 620px; color: #fff; font-size: clamp(25px,3vw,37px); font-weight: 400; line-height: 1.5; }
.blx-cta button { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex: 0 0 auto; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 24px; background: #fff; color: #242137; font-size: 12px; font-weight: 600; cursor: pointer; }
.blx-cta button:hover { background: #eee9ff; }
.blx-cta button b { font-size: 20px; font-weight: 400; }
@media(max-width:1100px) {
  .blx-hero__grid { gap: 40px; grid-template-columns: 1.5fr 1fr; }
  .blx-lead__body { padding: 30px; gap: 18px 12px; }
  .blx-lead__media { min-height: 400px; }
  .blx-card h3 { font-size: 18px; }
  .blx-row__hit { grid-template-columns: 150px minmax(0,1fr) minmax(0,1.1fr) 110px 32px; gap: 8px 18px; }
  .blx-row__copy h3 { font-size: 15px; }
  .blx-cta { margin-inline: 0; }
}
@media(max-width:800px) {
  .blx-container { width: calc(100% - 40px); }
  .blx-hero { padding: 40px 0 28px; }
  .blx-hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .blx-hero__copy { max-width: 650px; }
  .blx-hero__tools { padding-top: 0; }
  .blx-search { max-width: 500px; }
  .blx-hero h1 { font-size: clamp(34px,6vw,46px); }
  .blx-lead { grid-template-columns: 1fr 1fr; }
  .blx-lead__body { padding: 24px; }
  .blx-lead h2 { font-size: 24px; }
  .blx-lead__body > p { font-size: 13px; }
  .blx-lead .blx-meta > span { font-size: 10px; }
  .blx-cards { gap: 12px; }
  .blx-card__body { grid-template-columns: 1fr 28px; padding: 12px 5px 0; }
  .blx-card .blx-meta > span { grid-row: 4; grid-column: 1; }
  .blx-card footer > span { grid-row: 5; grid-column: 1; padding: 0; border: 0; }
  .blx-card footer > a { grid-row: 4/6; grid-column: 2; }
  .blx-card h3 { font-size: 16px; }
  .blx-card__body > p { font-size: 12px; }
  .blx-row__hit { grid-template-columns: 120px minmax(0,1fr) 100px 30px; gap: 8px 16px; }
  .blx-row__media { grid-row: 1/4; }
  .blx-row__copy > p { grid-column: 2; grid-row: 3; }
  .blx-row .blx-meta > span:last-child { grid-column: 3; grid-row: 1/4; }
  .blx-row__open { grid-column: 4; grid-row: 1/4; }
  .blx-cta { padding: 28px; gap: 24px; }
  .blx-cta h2 { font-size: 26px; }
}
@media(max-width:600px) {
  .blx-container { width: calc(100% - 32px); }
  .blx-filters a { min-height: 44px; padding-inline: 16px; font-size: 11px; }
  .blx-lead, html[dir=ltr] .blx-lead { grid-template-columns: 1fr; direction: inherit; margin-top: 22px; }
  .blx-lead__media { min-height: 0; aspect-ratio: 1.45; }
  .blx-lead__body { padding: 25px; }
  .blx-lead h2 { font-size: 25px; }
  .blx-lead__body > p { font-size: 14px; }
  .blx-index { padding-top: 30px; }
  .blx-section-head { gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
  .blx-section-head h2, .blx-more__head p { font-size: 23px; }
  .blx-section-head > a { font-size: 10px; gap: 7px; }
  .blx-cards { grid-template-columns: 1fr; gap: 18px; }
  .blx-card__body { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 32px; padding: 16px 12px 4px; }
  .blx-card h3 { font-size: 21px; }
  .blx-card__body > p { font-size: 14px; }
  .blx-card footer > span { grid-row: 4; grid-column: 2; border-inline-start: 1px solid var(--blx-border); padding-inline-start: 10px; }
  .blx-card footer > a { grid-row: 4; grid-column: 3; }
  .blx-more { padding-top: 30px; }
  .blx-row__hit { grid-template-columns: 95px minmax(0,1fr) 26px; gap: 8px 12px; padding-block: 14px; }
  .blx-row__media { grid-row: 1/3; align-self: start; }
  .blx-row .blx-meta > span:first-child:not(:last-child) { font-size: 10px; }
  .blx-row__copy h3 { font-size: 14px; }
  .blx-row__copy > p { grid-column: 1/3; grid-row: 3; }
  .blx-row .blx-meta > span:last-child { grid-column: 1/3; grid-row: 4; text-align: start; font-size: 10px; }
  .blx-row__open { grid-column: 3; grid-row: 1/5; }
  .blx-cta { flex-direction: column; align-items: stretch; padding: 26px 22px; }
  .blx-cta button { align-self: flex-end; }
  .blx-cta h2 { font-size: 27px; }
}
@media(prefers-reduced-motion:reduce) {
  .blx *, .blx *::before, .blx *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  html:has(.blog-list-page) { scroll-behavior: auto !important; }
}
/* Small metadata symbols and directional links from the reference. */
.blx-lead .blx-meta > span:not(:last-child)::before,
.blx-card .blx-meta > span::before,
.blx-row .blx-meta > span:last-child::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-inline-end: 7px;
  vertical-align: -2px;
  border: 1px solid currentColor;
  border-top-width: 3px;
  border-radius: 2px;
}
.blx-lead .blx-meta > span:last-child::before,
.blx-card footer > span::before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-inline-end: 7px;
  vertical-align: -2px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(currentColor,currentColor) 5px 2px / 1px 4px no-repeat,
    linear-gradient(currentColor,currentColor) 5px 5px / 4px 1px no-repeat;
}
html[dir=rtl] .blx-read b,
html[dir=rtl] .blx-card footer > a,
html[dir=rtl] .blx-row__open,
html[dir=rtl] .blx-cta button b { transform: rotate(-135deg); }
html[dir=rtl] .blx-section-head > a span { transform: rotate(45deg); }
.blx-pages strong { direction: ltr; }
