/*
 * Site-specific styles. The Qurno theme (static/theme/css/style.css + Bootstrap) provides the layout;
 * this file only maps the theme onto our fonts/brand and styles the parts the theme has no equivalent for.
 * Brand colours (from the logo): navy #161445, peach #f5c796, teal #509aa7.
 */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-variable.f6d31671339d.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Typeface trial: formal Naskh for headings (default) and Estedad as an alternative; both SIL OFL, Persian glyphs only
   (Latin text falls back to Vazirmatn). Preview any of them with ?font=vazir|estedad|naskh (see base.html). */
@font-face {
  font-family: "Estedad";
  src: url("../fonts/Estedad-arabic-variable.f3e0531cb081.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("../fonts/NotoNaskhArabic-arabic-variable.b5523c994f90.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --font-body: "Vazirmatn", system-ui, sans-serif;
  --font-display: "Noto Naskh Arabic", "Vazirmatn", system-ui, serif;
  --navy: #161445;
  --peach: #f5c796;
  --teal: #509aa7;
  --primary: #397582;
  --muted: #5f5c7d;
  --border: #d3bf9f;
  --soil: #e7d8c1;
  --radius: 10px;
  --bs-font-sans-serif: "Vazirmatn", system-ui, sans-serif;
}

/* The theme asks for "iransans"; we use our self-hosted Vazirmatn everywhere instead. */
body, .btn, .form-control { font-family: var(--font-body); }
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6, .section-title, .post-title, .brand-name {
  font-family: var(--font-display);
}
html[data-font="vazir"] { --font-display: "Vazirmatn", system-ui, sans-serif; }
html[data-font="estedad"] { --font-body: "Estedad", "Vazirmatn", system-ui, sans-serif; --font-display: "Estedad", "Vazirmatn", system-ui, sans-serif; }
/* Persian headings are tall; the theme's English-sized display headings are too big for them. */
h1, .h1 { font-size: 40px; line-height: 1.6; }
h2, .h2 { font-size: 30px; line-height: 1.6; }
h3, .h3 { font-size: 24px; line-height: 1.6; }
@media (max-width: 767px) {
  h1, .h1 { font-size: 28px; }
  h2, .h2 { font-size: 24px; }
  h3, .h3 { font-size: 20px; }
}
body { line-height: 1.9; }
p { line-height: 1.9; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Header */
.brand-name { font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.navbar-brand img { width: auto; height: 88px; }
@media (max-width: 575.98px) { .navbar-brand img { height: 68px; } }
/* The header is fixed; the spacer under it must match its height (24px padding × 2 + logo + navbar padding + border). */
.header-height-fix { height: 153px; }
@media (max-width: 575.98px) { .header-height-fix { height: 133px; } }
.search-block .search-form { position: static; transform: none; }

/* Page headings on list pages */
.page-header .section-title { margin-bottom: 0; }

/* Post cards: fixed ratio so mixed cover sizes line up */
.post-card .post-image img { aspect-ratio: 97 / 50; object-fit: cover; }
.post-card .post-image.placeholder { aspect-ratio: 97 / 50; background: linear-gradient(135deg, var(--navy), var(--teal)); border-radius: 0.375rem; }
/* Article cards use portrait covers (3:4); event and album cards keep the landscape ratio above. */
.post-card .post-image-portrait img, .post-card .post-image-portrait .placeholder { aspect-ratio: 3 / 4; }
.post-card .post-title { font-size: 22px; }
.post-card .card-text { color: var(--muted); }

/* Article / event body */
/* Space between the end of an article and the footer divider */
.article-page { padding-bottom: clamp(64px, 8vw, 110px); }
/* Previous / next article links under the text, styled like the footer's social buttons (RTL: «قبلی» on the right, «بعدی» on the left) */
.share-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.share-label { color: var(--gold); font-size: .9rem; font-weight: 600; margin-inline-end: 4px; }
.share-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--gold); font-size: 1.15rem; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.share-x { width: .85em; height: .85em; }
.share-link:hover, .share-link:focus-visible { background: var(--gold); border-color: var(--gold); color: #000; }
.article-nav { display: flex; justify-content: space-between; align-items: center; gap: 56px; margin-top: 56px; }
.article-nav-link { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: calc(50% - 28px); padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold); text-decoration: none; font-size: .9rem; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.article-nav-link:hover, .article-nav-link:focus-visible { background: var(--gold); border-color: var(--gold); color: #000; }
.article-nav-next { margin-inline-start: auto; }
.article-nav-label { flex: none; font-weight: 600; white-space: nowrap; }
.article-nav-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) { .article-nav { flex-direction: column; align-items: stretch; gap: 20px; } .article-nav-link { max-width: none; } .article-nav-next { margin-inline-start: 0; } }

/* Article reading text: larger and with more line spacing than the site default (16px / 1.9) */
.post-content-block .content { font-size: 22px; line-height: 2.3; }
.post-content-block .content p, .post-content-block .content li, .post-content-block .content blockquote { line-height: inherit; }
.post-content-block .content li { margin-bottom: 0.5rem; }
@media (max-width: 575.98px) { .post-content-block .content { font-size: 1.125rem; line-height: 2.15; } }
.content img, .content video { max-width: 100%; height: auto; }
.content .video { height: auto; }
.cover-img { width: 50%; max-width: 100%; }
@media (max-width: 575.98px) { .cover-img { width: 100%; } }
.cover-figure figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }

.video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); margin: 24px 0; }
.video.embed { position: relative; overflow: hidden; }
.video.embed img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.video.embed iframe { width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; inset: 0; margin: auto; z-index: 1; width: 64px; height: 64px;
  border-radius: 50%; border: 0; background: var(--primary); color: #fff; font-size: 1.5rem; cursor: pointer;
}

.notice { background: #fff; border: 1px dashed var(--primary); border-radius: var(--radius); padding: 8px 16px; color: var(--muted); }
.notice.success { border-style: solid; color: inherit; }
.errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: #c0392b; font-size: 0.9rem; }
/* Honeypot: off-screen rather than display:none, which some bots skip */
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact label { display: block; font-weight: 600; margin-bottom: 4px; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 16px 0; }
.facts dt { color: var(--muted); font-weight: 400; }
.facts dd { margin: 0; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 24px 0; }
.photos figure { margin: 0; }
.photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photos figcaption { color: var(--muted); font-size: 0.85rem; }

/* Footer */

/* Home page slider: cross-fade with a slow zoom */
.slider { position: relative; margin: 0 0 8px; border-radius: var(--radius); overflow: hidden; background: transparent; }
.slides { position: relative; aspect-ratio: 16 / 6; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.9s ease; z-index: 1; }
.slide img, .slide-link { display: block; width: 100%; height: 100%; }
.slide img { object-fit: cover; transform: scale(1); transition: transform 7s ease-out; }
.slide.is-active img { transform: scale(1.12); }
.slide-link { color: inherit; text-decoration: none; }
.slide-title {
  position: absolute; inset-inline: 0; bottom: 0; margin: 0; padding: 40px 24px 20px;
  color: #fff; font-size: 1.3rem; font-weight: 700;
  background: linear-gradient(to top, rgba(22, 20, 69, 0.85), rgba(22, 20, 69, 0));
}
.slider-btn {
  display: none; position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(22, 20, 69, 0.65); color: var(--peach); font-size: 1.8rem; line-height: 1;
}
.slider-btn:hover { background: var(--navy); }
.slider-btn.prev { inset-inline-end: 12px; }
.slider-btn.next { inset-inline-start: 12px; }
.dots { display: none; position: absolute; z-index: 2; inset-inline: 0; bottom: 10px; justify-content: center; gap: 8px; }
.slider.js .slider-btn { display: block; }
.slider.js .dots { display: flex; }
.dot { width: 12px; height: 12px; padding: 0; border: 2px solid var(--peach); border-radius: 50%; background: transparent; cursor: pointer; }
.dot.is-active { background: var(--peach); }
@media (max-width: 640px) {
  .slides { aspect-ratio: 4 / 3; }
  .slide-title { font-size: 1.05rem; padding: 32px 16px 28px; }
  .slider-btn { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active, .slide img, .slide.is-active img { transition: none; transform: none; }
}

.footer-about { max-width: 40rem; }

/* Landing page */
.hero-plain { padding: 72px 16px; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy), #2b2a7a 60%, var(--teal)); color: #fff; }
.hero-plain h1 { color: #fff; }
.hero-plain .btn-primary { background-color: var(--peach) !important; border-color: var(--peach); color: var(--navy); }
.slider { margin-bottom: 0; }

.tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy), var(--teal)); }
.tile.tile-sm { aspect-ratio: 1; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22, 20, 69, 0.8), rgba(22, 20, 69, 0.05) 60%); }
.tile:hover img { transform: scale(1.05); }
.tile-label { position: absolute; z-index: 1; inset-inline: 0; bottom: 0; padding: 16px 20px; color: #fff; font-weight: 700; font-size: 1.15rem; }
.tile-sm .tile-label { font-size: 0.95rem; padding: 12px 14px; }

.news-list { display: grid; gap: 16px; }
.news-item { display: flex; gap: 16px; align-items: center; }
.news-item img, .news-thumb { flex: none; width: 120px; height: 90px; object-fit: cover; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy), var(--teal)); }
.news-title { font-weight: 700; color: var(--navy); line-height: 1.7; }
.news-item:hover .news-title { color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } }

/* Page background: layered radial glows (peach top-start, light soil top-end, earth at the bottom) over the soil colour.
   A fixed pseudo-element instead of background-attachment: fixed, which is janky on mobile browsers. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 12% 0%, rgba(250, 214, 168, 0.95), transparent 62%),
    radial-gradient(ellipse 55% 45% at 92% 12%, rgba(247, 240, 227, 0.9), transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 105%, rgba(176, 134, 92, 0.45), transparent 68%),
    radial-gradient(circle at 78% 62%, rgba(255, 255, 255, 0.35), transparent 38%);
}

/* Article and event cards: muted image that gains full colour on hover */
.hover-zoom .post-image { overflow: hidden; border-radius: 14px; box-shadow: 0 4px 14px rgba(22, 20, 69, 0.12); }
.hover-zoom .post-image img { filter: grayscale(0.7) sepia(0.2); transition: filter 0.5s ease; }
.hover-zoom:hover .post-image img, .hover-zoom:focus-within .post-image img { filter: none; }
@media (prefers-reduced-motion: reduce) {
  .hover-zoom .post-image img { transition: none; }
}

/* Gallery viewer (GLightbox): keep its internal geometry LTR, captions RTL, brand colours */
.glightbox-container { direction: ltr; z-index: 10000000 !important; font-family: "Vazirmatn", system-ui, sans-serif; }
.glightbox-container .goverlay { background: rgba(12, 11, 40, 0.94); }
.glightbox-container .gslide-description { direction: rtl; text-align: center; background: transparent; }
.glightbox-container .gdesc-inner { color: #f3e8d6; }
.glightbox-container .gslide-image img { border-radius: 8px; }
.glightbox-container .gbtn { background-color: rgba(255, 255, 255, 0.12); }
.glightbox-container .gbtn:hover { background-color: rgba(255, 255, 255, 0.28); }
.photos a { display: block; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }

/* Header campaign button: solid navy pill; on hover it glows and a sheen sweeps across */
.btn.btn-campaign {
  position: relative; overflow: hidden; isolation: isolate;
  white-space: nowrap; font-size: 0.9rem; font-weight: 600; padding: 0.45rem 1.2rem; border-radius: 999px;
  color: var(--peach); border: 1px solid rgba(245, 199, 150, 0.45);
  background: var(--navy) !important;
  box-shadow: 0 4px 14px rgba(22, 20, 69, 0.25);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.btn.btn-campaign .ti { color: #f08f8f; vertical-align: -2px; }
.btn.btn-campaign::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; width: 45%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
}
.btn.btn-campaign:hover, .btn.btn-campaign:focus-visible {
  color: #fff; border-color: var(--peach);
  background: var(--navy) !important;
  box-shadow: 0 0 0 1px rgba(245, 199, 150, 0.5), 0 0 18px 3px rgba(245, 199, 150, 0.55), 0 0 36px 8px rgba(245, 199, 150, 0.25);
}
.btn.btn-campaign:hover::after, .btn.btn-campaign:focus-visible::after { animation: campaign-shine 0.9s ease; }
@keyframes campaign-shine { from { left: -60%; } to { left: 120%; } }
@media (prefers-reduced-motion: reduce) {
  .btn.btn-campaign { transition: none; }
  .btn.btn-campaign:hover::after, .btn.btn-campaign:focus-visible::after { animation: none; }
}

/* Play badge on article cards that have a video */
.play-badge { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(22, 20, 69, 0.7); color: var(--peach); font-size: 1.5rem; pointer-events: none; border: 1px solid rgba(245, 199, 150, 0.5); }

/* Desktop header: use the full width and let the menu take the free space */
@media (min-width: 992px) {
  .header-nav > .container { max-width: none; padding-inline: clamp(16px, 2vw, 40px); }
  .header-nav .navbar-collapse { flex: 1 1 auto; min-width: 0; align-items: center; }
  .header-nav .navbar-nav { flex: 1 1 auto; justify-content: center; flex-wrap: nowrap; margin-inline: 0 !important; }
  .header-nav .nav-item .nav-link { white-space: nowrap; padding: 10px clamp(8px, 0.9vw, 16px) !important; }
  .header-nav .nav-item.dropdown .nav-link.dropdown-toggle { padding-left: clamp(26px, 2.2vw, 34px) !important; }
  .header-nav .nav-item.dropdown .nav-link::after { left: clamp(8px, 0.9vw, 14px); }
  .header-nav .navbar-right { flex: 0 0 auto; }
  .header-nav .navbar-right .list-inline-item { margin-inline: 0 0.75rem !important; }
  .header-nav .search-toggle { padding-inline: 8px; white-space: nowrap; }
  .header-nav .navbar-brand { flex: 0 0 auto; margin-inline-end: 1rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .brand-name { font-size: 1rem; }
  .header-nav .btn.btn-campaign { padding-inline: 0.8rem; font-size: 0.85rem; }
}

/* Contact page: direct contact channels */
.contact-links li { padding: 0.35rem 0; font-size: 1.05rem; }
.contact-links .ti { color: var(--teal); vertical-align: -2px; }


/* Video gallery: 3 albums per row; cover size and gap scale with the container */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.75rem, 4vw, 3rem); }
.album-cover { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.album-cover.placeholder { background: var(--border, #ddd); }

/* User reports (/reports/): one card per anonymous report, no title or cover. The small card shows the first
   words; reports.js opens an enlarged copy (.report-modal) with the date and full text. Without JS (no .js-on on
   .reports) each card shows everything inline. */
.reports-intro { max-width: 720px; margin: 0 auto 32px; text-align: center; color: var(--muted); }
.reports { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; align-items: start; }
.report-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 18px; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .09) 50%, transparent 65%) 160% 0 / 250% 100% no-repeat, var(--navy); border: .5px solid rgba(212, 161, 108, .28); border-radius: 16px; transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease, background-position .7s ease; }
.report-meta { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.report-province { color: var(--gold); font-size: .8rem; line-height: 1.6; }
.report-heritage-name { color: var(--ivory); font-family: var(--font-display); font-size: 1.05rem; line-height: 1.6; overflow-wrap: anywhere; }
.report-text { color: var(--ivory); line-height: 2; overflow-wrap: anywhere; }
.report-text p:last-child { margin-bottom: 0; }
.report-alias { margin: 0; color: var(--ivory); font-weight: 600; }
.report-alias span { color: var(--gold); font-weight: 400; font-size: .85rem; }
.report-date { display: inline-flex; align-items: center; gap: 4px; margin-top: -6px; color: var(--gold); font-size: .8rem; }
.report-excerpt { display: block; color: var(--ivory); font-size: 1.05rem; line-height: 2; overflow-wrap: anywhere; }

/* The whole small card opens the enlarged view: the button's ::after covers it; images and the action sit above. */
.report-open { display: none; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.report-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.report-open:focus-visible { outline: none; }
.report-images, .report-heritage { position: relative; z-index: 1; }
.js-on .report-card { cursor: pointer; }
.js-on .report-card .report-open { display: block; }
.js-on .report-card .report-text, .js-on .report-card .report-alias, .js-on .report-card .report-date { display: none; }
/* Hover: thicker gold border and a frosted-glass look (lighter translucent tint, top highlight, a light sweep). */
.js-on .report-card:hover, .js-on .report-card:focus-within { background-color: rgba(28, 40, 66, .62); background-position: -60% 0; backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); border-color: var(--gold); box-shadow: 0 0 0 1.5px var(--gold), inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 40px rgba(212, 161, 108, .08), 0 12px 32px rgba(0, 0, 0, .45); }
.js-on .report-card:has(.report-open:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }
/* Small cards are all one size: fixed slots (header, 3 lines of text, one strip of images) and the action
   pinned to the bottom, so a short text or a missing image leaves room instead of a shorter card. */
.js-on > .report-card { height: var(--report-card-h, 28rem); overflow: hidden; }
.js-on > .report-card .report-meta { flex: none; }
.js-on > .report-card .report-province, .js-on > .report-card .report-heritage-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.js-on > .report-card .report-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.js-on > .report-card .report-images { flex: none; height: 8.5rem; }
/* No images: the text takes the free space. reports.js sets the line count to what fits; 7 is the fallback. */
.js-on > .report-card .report-open:has(.report-excerpt-fill) { flex: 1 1 auto; min-height: 0; }
.js-on > .report-card .report-excerpt-fill { -webkit-line-clamp: 7; line-clamp: 7; white-space: pre-line; }
.js-on > .report-card .report-images a, .js-on > .report-card .report-images img { height: 100%; }
.js-on > .report-card .report-images img { aspect-ratio: auto; }
.js-on > .report-card .report-heritage { flex: none; margin-top: auto; }

.report-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.report-images-1 { grid-template-columns: 1fr; }
.report-images-2 { grid-template-columns: 1fr 1fr; }
.report-images a { position: relative; display: block; border-radius: 10px; overflow: hidden; }
/* More than CARD_IMAGES: the small card shows the first three, the third with «+N»; all stay in the lightbox. */
.report-images-more { display: none; }
.js-on .report-images-many a:nth-child(n+4) { display: none; }
.js-on .report-images-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); color: var(--ivory); font-size: 1.4rem; font-weight: 600; }
.report-images img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.report-images-1 img { aspect-ratio: 16 / 9; }
.report-images a:hover img, .report-images a:focus-visible img { transform: scale(1.04); }
.report-heritage { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 10px 14px; border: 1px solid var(--orange); border-radius: 12px; color: var(--ivory); text-decoration: none; font-weight: 600; transition: background .2s ease, color .2s ease; }
.report-heritage > span:not(.visually-hidden) { flex: 1; }
.report-heritage .ti { color: var(--gold); font-size: 1.2rem; }
.report-heritage:hover, .report-heritage:focus-visible { background: var(--orange); color: #000; }
.report-heritage:hover .ti, .report-heritage:focus-visible .ti { color: #000; }

/* Enlarged card. A plain fixed layer (not a modal <dialog>, whose top layer would hide the image lightbox). */
.report-modal { position: fixed; inset: 0; z-index: 1060; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow-y: auto; }
.report-modal[hidden] { display: none; }
.report-modal .report-card { width: min(720px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px 28px 22px; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 24px 60px rgba(0, 0, 0, .6); cursor: auto; }
.report-modal .report-meta { padding-inline-end: 48px; } /* clear of the close button */
.report-modal .report-open { display: none; }
.report-modal .report-text, .report-modal .report-alias, .report-modal .report-date { display: revert; }
.report-modal .report-date { display: inline-flex; }
.report-modal .report-text { font-size: 1.05rem; }
.report-modal .report-images-many { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.report-modal .report-images-1 img { aspect-ratio: auto; max-height: 60vh; object-fit: contain; background: #000; }
.report-close { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 1.2rem; cursor: pointer; }
.report-close:hover, .report-close:focus-visible { background: var(--gold); border-color: var(--gold); color: #000; }
body.report-modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .report-card, .report-images img { transition: none; } .js-on .report-card:hover { background-position: 160% 0; } }
