/* Article archive: the supplied Persian pink editorial reference.
   The 1240px site container and shared header/footer remain owned by site.css. */
.article-archive-reference {
  --archive-accent: #a70244;
  --archive-ink: #34102e;
  --archive-copy: #65475f;
  --archive-ground: #fff7fc;
  --archive-chip: #fbe5f2;
  --archive-border: #f3d7e8;
  --archive-radius: 10px;
  --archive-page-radius: 12px;
  background: radial-gradient(ellipse at 0 30%, #fbe3f3 0, transparent 43%), radial-gradient(ellipse at 100% 28%, #fce2ef 0, transparent 43%), linear-gradient(180deg, #fff7fc, #fffafd 60%, #fff1f8);
}
/* One continuous outer field spans the archive and footer. */
.article-archive-reference #main-content,
.article-archive-reference > .site-footer.footer-reference { background: transparent; }
.article-archive-reference > .site-footer.footer-reference::before { content: none; }
/* Reuse the homepage scene for the masthead, without changing its contents. */
.article-archive-reference > .site-header.header-reference {
  background-color: #fff8fc;
  background-image: url("../img/hero-reference-scene.svg?v=20261107-no-join-wave-1");
  background-size: 100% 900px;
  background-position: center top;
  background-repeat: no-repeat;
}
.archive-canvas { position: relative; isolation: isolate; overflow: hidden; padding: 40px 0 36px; background: transparent; }
.archive-intro, .archive-results { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 28px; }
.archive-intro { text-align: center; padding-top: 0; padding-bottom: 42px; }
.archive-title-wrap { display: inline-block; position: relative; isolation: isolate; padding: 10px 86px 0; }
.archive-title-wrap h1 { position: relative; margin: 0; color: #4b123f; font-size: clamp(38px, 3.8vw, 56px); font-weight: 700; line-height: 1.65; letter-spacing: -.035em; }
.archive-title-wrap h1::before {
  content: ""; position: absolute; z-index: -1;
  top: 56%; left: 50%; width: calc(100% + 78px); height: 55px;
  transform: translate(-50%, -50%); pointer-events: none;
  background: linear-gradient(100deg, #f0b6e7, #fbd8ee 57%, #f5c0e8);
  -webkit-mask: url("../img/archive-title-brush-highlight.webp?v=20261107-brush-1") center / 100% 100% no-repeat;
  mask: url("../img/archive-title-brush-highlight.webp?v=20261107-brush-1") center / 100% 100% no-repeat;
  mask-mode: alpha;
}
.archive-title-divider { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 5px auto 12px; color: #d85498; }
.archive-title-divider::before, .archive-title-divider::after { content: ""; width: 57px; height: 1px; background: currentColor; }
.archive-title-divider span { width: 8px; height: 8px; border: 1.5px solid currentColor; transform: rotate(45deg); }
.archive-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.archive-icon { display: block; width: 22px; height: 22px; flex: 0 0 auto; }
.archive-filter { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--archive-border); border-radius: var(--archive-radius); background: rgba(255,255,255,.87); color: var(--archive-ink); font-size: 12px; font-weight: 700; box-shadow: 0 4px 12px #993c7914; transition: background .18s, color .18s, transform .18s; }
.archive-filter .archive-icon { color: #bf176a; }
.archive-filter.active { background: linear-gradient(140deg, #ce2b80, var(--archive-accent)); border-color: transparent; color: white; box-shadow: 0 6px 16px #a7024428; }
.archive-filter.active .archive-icon { color: white; }
.archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.archive-card { min-width: 0; display: flex; flex-direction: column; border-radius: var(--archive-radius); overflow: hidden; background: linear-gradient(150deg, #fff, #fffafd); box-shadow: 0 9px 26px #a53c7620; transition: transform .2s, box-shadow .2s; }
.archive-card-media { display: block; width: 100%; aspect-ratio: 1.95; overflow: hidden; border-radius: 10px 10px 0 0; background: #f3e5f1; }
.archive-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.archive-card-body { flex: 1; display: flex; flex-direction: column; padding: 14px 20px 18px; }
.archive-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.archive-category { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 3px 9px; border-radius: var(--archive-radius); color: var(--archive-accent); background: var(--archive-chip); font-size: 10px; font-weight: 700; line-height: 1.7; }
.archive-category .archive-icon { width: 18px; height: 18px; }
.archive-card-meta time { flex-shrink: 0; display: flex; align-items: center; gap: 5px; color: #80627d; font-size: 9px; }
.archive-card-meta time .archive-icon { width: 13px; height: 13px; color: #8d4e7b; }
.archive-card h2 { margin: 0 0 7px; color: var(--archive-ink); font-size: 18px; line-height: 1.8; font-weight: 700; letter-spacing: -.02em; }
.archive-card h2 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.archive-card-body > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 14px; color: var(--archive-copy); font-size: 12px; line-height: 1.95; }
.archive-read-link { margin-top: auto; align-self: flex-end; display: inline-flex; align-items: center; gap: 4px; min-height: 30px; color: var(--archive-accent); font-size: 12px; font-weight: 700; }
.archive-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 38px 0 5px; direction: rtl; }
.archive-page, .archive-page-arrow { width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0; border-radius: var(--archive-page-radius); background: #fff8fc; border: 1px solid #f5ddec; color: #5d1d50; font-size: 14px; font-weight: 700; box-shadow: 0 5px 13px #bd538819; }
.archive-page-arrow { width: 50px; }
.archive-page-arrow .archive-icon { width: 21px; height: 21px; }
.archive-page.active { color: #fff; background: linear-gradient(145deg, #cd2c7c, var(--archive-accent)); border-color: transparent; }
.archive-page-arrow.disabled { opacity: .35; box-shadow: none; }
.archive-empty { grid-column: 1 / -1; padding: 60px 18px; text-align: center; }
.article-archive-reference #main-content a:focus-visible { outline: 3px solid var(--archive-accent); outline-offset: 4px; }
@media (hover:hover) {
  .archive-filter:not(.active):hover { background: #fce6f2; transform: translateY(-2px); }
  .archive-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px #a53c762b; }
  .archive-card:hover .archive-card-media img { transform: scale(1.025); }
  .archive-card h2 a:hover, .archive-read-link:hover { color: #bb0d60; }
  .archive-pagination a:hover { background: #f7d7eb; }
}
@media (max-width:980px) {
  .archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
  .archive-filters { gap: 10px; }
  .archive-intro { padding-bottom: 32px; }
}
/* Match the shared mobile navigation breakpoint. This is native RTL scrolling. */
@media (max-width:720px) {
  .archive-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 6px 4px 12px;
    scroll-padding-inline: 4px;
    scroll-snap-type: x proximity;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .archive-filters::-webkit-scrollbar { display: none; }
  .archive-filter { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
}
@media (max-width:600px) {
  .archive-canvas { padding-top: 22px; padding-bottom: 30px; }
  .archive-intro, .archive-results { padding-inline: 18px; }
  .archive-title-wrap { padding-inline: 35px; }
  .archive-title-wrap h1 { font-size: clamp(26px,7.1vw,34px); letter-spacing: -.04em; }
  .archive-title-wrap h1::before { width: calc(100% + 52px); }
  .archive-title-divider { margin-top: 8px; margin-bottom: 12px; }
  .archive-filters { gap: 8px; margin-top: 22px; }
  .archive-filter { font-size: 11px; padding: 7px 12px; gap: 6px; }
  .archive-filter .archive-icon { width: 19px; height: 19px; }
  .archive-grid { grid-template-columns: minmax(0,1fr); gap: 23px; }
  .archive-card { border-radius: var(--archive-radius); }
  .archive-card-media { border-radius: 10px 10px 0 0; }
  .archive-card-body { padding: 14px 18px 16px; }
  .archive-card h2 { font-size: 18px; }
  .archive-card-body > p { font-size: 13px; }
  .archive-read-link { min-height: 38px; }
  .archive-pagination { gap: 5px; margin-top: 30px; }
  .archive-page, .archive-page-arrow { width: 34px; height: 44px; }
  .archive-page-arrow { width: 38px; }
}
@media (prefers-reduced-motion:reduce) {
  .archive-filter, .archive-card, .archive-card-media img { transition: none; }
  .archive-card:hover, .archive-card:hover .archive-card-media img, .archive-filter:not(.active):hover { transform: none; }
}
