:root {
  --ink: #101417;
  --deep: #071018;
  --gold: #b88a4c;
  --gold-2: #d9ad72;
  --paper: #f4f0e9;
  --paper-2: #faf7f1;
  --line: #d9cfc1;
  --muted: #746e67;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family:"Vazirmatn",Tahoma,Arial,sans-serif;
  line-height: 1.95;
}

body.modal-open {
  overflow: hidden;
}

.lang-en-only {
  display: none;
}

html[lang="en"] .lang-fa-only {
  display: none;
}

html[lang="en"] .lang-en-only {
  display: inline;
}


main {
  margin: 0;
  padding: 0;
}

main > section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.container {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) auto;
  align-items: center;
  min-height: 82px;
  padding: 0 24px;
  background: rgba(7, 16, 24, 0.98);
  color: #fff;
  border-bottom: 1px solid rgba(217, 173, 114, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--gold-2);
  border: 1px solid var(--gold);
  font-size: 28px;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  min-width: 0;
  white-space: nowrap;
}

.brand-text small {
  font-size: 11px;
}

.brand-text strong {
  font-size: 18px;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.25vw, 21px);
  font-size: 12px;
  white-space: nowrap;
}

.desktop-nav a {
  position: relative;
  padding: 31px 0 26px;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 19px;
  width: 0;
  height: 1px;
  content: "";
  background: var(--gold);
  transition: width 0.3s ease;
}

.desktop-nav a:hover, .desktop-nav a.active {
  color: var(--gold-2);
}

.desktop-nav a:hover::after, .desktop-nav a.active::after {
  width: 100%;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid rgba(217, 173, 114, 0.42);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 1px;
  margin: 5px 0;
  background: var(--gold-2);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 82px;
  right: 0;
  left: 0;
  z-index: 45;
  display: grid;
  gap: 14px;
  padding: 22px 28px;
  color: #fff;
  background: rgba(7, 16, 24, 0.99);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  pointer-events: none;
  transition: 0.3s ease;
  max-height: calc(100vh - 82px);
  overflow-y: auto;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

.mobile-menu a {
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.mobile-menu a.active {
  color: var(--gold-2);
}

body.mobile-menu-open {
  overflow: hidden;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Hero */
.page-hero {
  position: relative;
  min-height: 370px;
  overflow: hidden;
  background: url("img/research/crisis-certificate-bg.png") center 22% / cover no-repeat;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient( 90deg, rgba(5, 13, 19, 0.45), rgba(5, 13, 19, 0.9) ), linear-gradient( 0deg, rgba(5, 13, 19, 0.5), transparent );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 88px;
  color: #fff;
  text-align: center;
}

.page-hero-content p {
  margin: 0;
  color: var(--gold-2);
  font-size: 13px;
}

.page-hero-content h1 {
  margin: 13px 0 7px;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 500;
}

.page-hero-content span {
  color: #ddd;
  font-size: 16px;
}

.page-hero-content i {
  display: block;
  width: 95px;
  height: 1px;
  margin: 24px auto 0;
  background: var(--gold);
}

/* Intro */
.article-intro {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  margin-top: 55px;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
}

.poster-column {
  background: #e9e9e9;
}

.poster-column button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.poster-column img {
  height: 100%;
  min-height: 640px;
  object-fit: contain;
}

.poster-column button > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(7, 16, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

.article-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
}

.article-badge {
  align-self: flex-start;
  padding: 5px 10px;
  color: var(--deep);
  background: var(--gold-2);
  font-size: 11px;
}

.article-summary h2 {
  margin: 15px 0 7px;
  color: var(--gold-2);
  font-size: 33px;
  font-weight: 500;
  line-height: 1.7;
}

.article-subtitle {
  margin: 0 0 20px;
  color: #bbb;
  font-size: 13px;
}

.article-info {
  margin: 0 0 20px;
  border-top: 1px solid rgba(217, 173, 114, 0.2);
}

.article-info div {
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(217, 173, 114, 0.2);
}

.article-info dt {
  color: var(--gold-2);
  font-size: 11px;
}

.article-info dd {
  margin: 0;
  color: #ddd;
  font-size: 12px;
}

.article-summary > p:last-of-type {
  color: #c5c5c5;
  font-size: 13px;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.keywords span {
  padding: 5px 9px;
  color: var(--gold-2);
  border: 1px solid rgba(217, 173, 114, 0.34);
  font-size: 10px;
}

/* Article */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  margin-bottom: 0;
  padding: 40px 0 0;
}

.article-content {
  min-width: 0;
}

.article-section {
  position: relative;
  margin-bottom: 18px;
  padding: 34px 38px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.article-section:last-child {
  margin-bottom: 0;
}

.section-index {
  position: absolute;
  top: 24px;
  left: 27px;
  color: rgba(184, 138, 76, 0.25);
  font-size: 34px;
}

.article-section h2 {
  margin: 0 0 15px;
  color: #805d32;
  font-size: 25px;
  font-weight: 500;
}

.article-section p, .article-section li {
  color: var(--muted);
  font-size: 13px;
}

.question-list {
  margin: 0;
  padding-right: 22px;
}

.question-list li {
  margin: 10px 0;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.actions-grid article {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.actions-grid b {
  color: var(--gold);
  font-size: 15px;
}

.actions-grid h3 {
  margin: 6px 0 7px;
  font-size: 15px;
  font-weight: 500;
}

.actions-grid p {
  margin: 0;
  font-size: 12px;
}

.conclusion-section {
  border-top: 3px solid var(--gold);
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-cloud span {
  padding: 7px 11px;
  color: #805d32;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 11px;
}

/* Sidebar */
.article-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.sidebar-box {
  padding: 22px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.sidebar-box h3 {
  margin: 0 0 14px;
  color: #805d32;
  font-size: 16px;
  font-weight: 500;
}

.sidebar-box dl {
  margin: 0;
}

.sidebar-box dl div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-box dt {
  color: var(--muted);
  font-size: 10px;
}

.sidebar-box dd {
  margin: 3px 0 0;
  font-size: 11px;
}

.sidebar-box ul {
  margin: 0;
  padding-right: 18px;
}

.sidebar-box li, .sidebar-box p {
  color: var(--muted);
  font-size: 12px;
}

.primary-button {
  width: 100%;
  padding: 10px 15px;
  border: 0;
  color: var(--gold-2);
  background: var(--deep);
  cursor: pointer;
}

/* =====================================================
   FOOTER
===================================================== */

footer#contact {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #d4d4d4;
  background:
    linear-gradient(
      120deg,
      #11181d 0%,
      #0b1115 52%,
      #071018 100%
    );
  border-top: 3px solid var(--gold);
}

footer#contact .footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  margin: 0 auto;
  padding-top: 32px;
  padding-bottom: 24px;
}

footer#contact .footer-grid > div {
  min-width: 0;
  margin: 0;
  padding: 0 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

footer#contact .footer-grid > div:first-child {
  padding-right: 0;
}

footer#contact .footer-grid > div:last-child {
  padding-left: 0;
  border-left: 0;
}

footer#contact .footer-brand {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}

footer#contact .footer-brand .brand {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

footer#contact .footer-logo {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
  max-height: 135px;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: right top;
}

footer#contact h4 {
  position: relative;
  margin: 0 0 9px;
  padding: 0 0 7px;
  color: var(--gold-2);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

footer#contact h4::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 1px;
  content: "";
  background: var(--gold);
}

footer#contact .footer-grid > div:not(.footer-brand) > a {
  display: block;
  width: fit-content;
  margin: 0;
  padding: 2px 0;
  color: #d8d8d8;
  font-size: 12px;
  line-height: 1.7;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

footer#contact .footer-grid > div:not(.footer-brand) > a:hover {
  color: var(--gold-2);
  transform: translateX(-4px);
}

footer#contact p {
  margin: 0;
  padding: 2px 0;
  color: #c8c8c8;
  font-size: 12px;
  line-height: 1.7;
}

footer#contact p a {
  display: inline-block;
  margin: 0;
  padding: 0;
  color: #d8d8d8;
  direction: ltr;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

footer#contact p a:hover {
  color: var(--gold-2);
  transform: translateX(-3px);
}

footer#contact .social {
  margin: 7px 0 0;
  padding: 0;
  color: var(--gold-2);
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: 6px;
  direction: ltr;
  user-select: none;
}

footer#contact .copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 auto;
  padding-top: 12px;
  padding-bottom: 12px;
  color: #858585;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  line-height: 1.6;
  direction: ltr;
}

footer#contact .copyright span {
  margin: 0;
  padding: 0;
}

footer#contact .copyright span:last-child {
  direction: rtl;
}

/* =====================================================
   ADDITIONAL RESEARCH
===================================================== */

.additional-research {
  padding: 34px 0 72px;
}

.additional-research-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.additional-research-heading small {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.additional-research-heading h2 {
  max-width: 900px;
  margin: 5px 0 0;
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.55;
}

.additional-research-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  color: #fff;
  background: var(--deep);
}

.additional-poster {
  position: relative;
  min-height: 640px;
  padding: 0;
  border: 0;
  background: #ececec;
  cursor: zoom-in;
}

.additional-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.additional-poster > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(7, 16, 24, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

html[dir="ltr"] .additional-poster > span {
  right: auto;
  left: 18px;
}

.additional-research-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
}

.additional-research-copy h3 {
  margin: 15px 0 18px;
  color: var(--gold-2);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.65;
}

.additional-research-copy > p {
  margin: 6px 0 0;
  color: #c9c9c9;
  font-size: 13px;
}

@media (max-width: 820px) {
  .additional-research-card {
    grid-template-columns: 1fr;
  }

  .additional-poster {
    min-height: 0;
  }

  .additional-poster img {
    height: auto;
    max-height: 720px;
  }
}

/* =====================================================
   POSTER MODAL
===================================================== */

.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.poster-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.poster-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 11, 0.9);
  backdrop-filter: blur(7px);
}

.poster-modal-card {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: #eef0f2;
  border: 1px solid rgba(217, 173, 114, 0.55);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.poster-modal-scroll {
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.poster-modal-card img {
  display: block;
  width: min(100%, 1040px);
  height: auto;
  max-width: none;
  max-height: none;
  margin-inline: auto;
  object-fit: contain;
  background: #fff;
}

.poster-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  color: var(--deep);
  background: var(--gold-2);
  border: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.28);
}

.poster-close:hover {
  filter: brightness(1.07);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: minmax(175px, 205px) minmax(0, 1fr) auto;
    padding-inline: 18px;
  }

  .desktop-nav {
    gap: 11px;
    font-size: 11px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .brand-text strong {
    font-size: 16px;
  }
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 72px;
  }

  .desktop-nav {
    display: none;
  }

  .site-header .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .menu-btn {
    display: block;
  }

  .site-header .language-trigger {
    min-width: 46px;
    width: 46px;
    min-height: 42px;
    padding-inline: 8px;
  }

  .site-header .language-trigger-label {
    display: none;
  }

  .mobile-menu {
    top: 72px;
    max-height: calc(100vh - 72px);
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 66px;
    padding-inline: 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 21px;
  }

  .brand-text small {
    font-size: 9px;
  }

  .brand-text strong {
    font-size: 14px;
  }

  .site-header .language-trigger,
  .menu-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .mobile-menu {
    top: 66px;
    max-height: calc(100vh - 66px);
    gap: 7px;
    padding: 16px 20px 22px;
  }
}

@media (max-width: 1100px) {
  footer#contact .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 28px;
    padding-bottom: 20px;
  }

  footer#contact .footer-brand {
    grid-column: 1 / -1;
  }

  footer#contact .footer-grid > div {
    padding: 10px 15px;
  }

  footer#contact .footer-logo {
    width: 250px;
    max-height: 120px;
  }
}

@media (max-width: 820px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  footer#contact .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 20px;
    padding-bottom: 14px;
  }

  footer#contact .footer-brand {
    grid-column: 1 / -1;
  }

  footer#contact .footer-grid > div {
    padding: 12px 14px;
  }

  footer#contact .footer-logo {
    width: 230px;
    max-height: 110px;
  }

  footer#contact .copyright {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  footer#contact .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 12px;
    padding-bottom: 8px;
    text-align: center;
  }

  footer#contact .footer-grid > div {
    padding: 13px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  footer#contact .footer-grid > div:last-child {
    border-bottom: 0;
  }

  footer#contact .footer-brand {
    grid-column: auto;
    justify-content: center;
  }

  footer#contact .footer-logo {
    width: 215px;
    max-height: 105px;
    margin-inline: auto;
    object-position: center;
  }

  footer#contact h4::after {
    right: 50%;
    transform: translateX(50%);
  }

  footer#contact .footer-grid > div:not(.footer-brand) > a {
    width: max-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  footer#contact .footer-grid > div:not(.footer-brand) > a:hover,
  footer#contact p a:hover {
    transform: none;
  }

  .poster-modal {
    padding: 12px;
  }

  .poster-modal-card {
    max-height: calc(100vh - 24px);
    border-radius: 7px;
  }

  .poster-modal-scroll {
    max-height: calc(100vh - 24px);
  }
}

/* Final layout refinements */
.poster-open:focus-visible,
.primary-button:focus-visible,
.poster-close:focus-visible {
  outline: 3px solid var(--gold-2);
  outline-offset: 3px;
}

.poster-column {
  display: grid;
  place-items: center;
  min-width: 0;
}

.poster-column .poster-open {
  min-height: 100%;
  cursor: zoom-in;
}

.poster-column img {
  min-height: 0;
  max-height: 720px;
  padding: 18px;
  object-fit: contain;
}

.poster-column button > span,
.additional-poster > span {
  right: auto;
  inset-inline-end: 18px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.primary-button.poster-open {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--deep);
  background: var(--gold-2);
  cursor: zoom-in;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.primary-button.poster-open:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .article-intro {
    grid-template-columns: 1fr;
  }

  .poster-column img {
    height: auto;
    max-height: 680px;
  }

  .article-summary {
    padding: 30px 24px;
  }
}

@media (max-width: 520px) {
  .page-hero {
    min-height: 300px;
  }

  .page-hero-content {
    padding-top: 65px;
  }

  .page-hero-content h1 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .poster-column img {
    max-height: 580px;
    padding: 10px;
  }

  .poster-column button > span,
  .additional-poster > span {
    bottom: 12px;
    inset-inline-end: 12px;
  }
}


.research-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.research-actions .download-link,
.research-actions .preview-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 12px 18px;
  border: 1px solid rgba(185,144,75,.45);
  color: #f3e2bf;
  background: rgba(10,19,27,.82);
  text-decoration: none;
  font-size: 13px;
  transition: .25s ease;
}

.research-actions .preview-link {
  background: transparent;
  color: #fff;
}

.research-actions .download-link:hover,
.research-actions .preview-link:hover {
  transform: translateY(-2px);
  border-color: rgba(215,186,124,.85);
  background: rgba(185,144,75,.16);
}


/* =========================================================
   FINAL REFERENCE FOOTER — locked to supplied screenshot
   ========================================================= */
footer#contact.shared-site-footer {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #d7d7d7 !important;
  direction: ltr !important;
  background: linear-gradient(120deg, #11181d 0%, #0b1115 52%, #071018 100%) !important;
  border: 0 !important;
  border-top: 1px solid #d9ad72 !important;
  box-sizing: border-box !important;
}
footer#contact.shared-site-footer .container {
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
footer#contact.shared-site-footer .footer-grid {
  display: grid !important;
  grid-template-columns: minmax(230px, 1.45fr) repeat(4, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 0 !important;
  margin: 0 auto !important;
  padding: 36px 0 28px !important;
  direction: ltr !important;
}
footer#contact.shared-site-footer .footer-grid > div {
  min-width: 0 !important;
  min-height: 150px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-left: 1px solid rgba(255,255,255,.075) !important;
  text-align: left !important;
  box-sizing: border-box !important;
}
footer#contact.shared-site-footer .footer-grid > div:first-child { padding-left: 0 !important; }
footer#contact.shared-site-footer .footer-grid > div:last-child { padding-right: 0 !important; border-left: 0 !important; }
footer#contact.shared-site-footer .footer-brand {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}
footer#contact.shared-site-footer .footer-brand-link {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
}
footer#contact.shared-site-footer .footer-logo {
  display: block !important;
  width: 245px !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 116px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center top !important;
}
footer#contact.shared-site-footer h4,
html[lang="fa"] footer#contact.shared-site-footer h4,
html[lang="en"] footer#contact.shared-site-footer h4 {
  position: relative !important;
  margin: 0 0 11px !important;
  padding: 0 0 8px !important;
  color: #f0cf96 !important;
  font: 600 14px/1.6 "Vazirmatn",Tahoma,Arial,sans-serif !important;
  text-align: left !important;
  direction: ltr !important;
}
footer#contact.shared-site-footer h4::after,
html[dir="ltr"] footer#contact.shared-site-footer h4::after,
html[dir="rtl"] footer#contact.shared-site-footer h4::after {
  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  bottom: 0 !important;
  width: 30px !important;
  height: 1px !important;
  content: "" !important;
  background: #d9ad72 !important;
}
footer#contact.shared-site-footer .footer-column > a,
footer#contact.shared-site-footer .footer-contact p a,
html[lang="fa"] footer#contact.shared-site-footer .footer-column > a,
html[lang="en"] footer#contact.shared-site-footer .footer-column > a {
  display: block !important;
  width: fit-content !important;
  margin: 0 !important;
  padding: 3px 0 !important;
  color: #d8d8d8 !important;
  background: transparent !important;
  text-decoration: none !important;
  font: 400 12px/1.75 "Vazirmatn",Tahoma,Arial,sans-serif !important;
  direction: ltr !important;
  text-align: left !important;
  transition: color .2s ease !important;
}
footer#contact.shared-site-footer .footer-column > a:hover,
footer#contact.shared-site-footer .footer-contact p a:hover {
  color: #f0cf96 !important;
  transform: none !important;
}
footer#contact.shared-site-footer .footer-contact p {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  direction: ltr !important;
}
footer#contact.shared-site-footer .site-phone,
footer#contact.shared-site-footer .footer-email {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  font-family:"Vazirmatn",Tahoma,Arial,sans-serif !important;
}
footer#contact.shared-site-footer .social {
  margin: 7px 0 0 !important;
  padding: 0 !important;
  color: #f0cf96 !important;
  font: 400 20px/1.4 "Vazirmatn",Tahoma,Arial,sans-serif !important;
  letter-spacing: 5px !important;
  direction: ltr !important;
  text-align: left !important;
  user-select: none !important;
}
footer#contact.shared-site-footer .copyright {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin: 0 auto !important;
  padding: 13px 0 !important;
  border-top: 1px solid rgba(255,255,255,.075) !important;
  color: #929292 !important;
  font: 400 11px/1.6 "Vazirmatn",Tahoma,Arial,sans-serif !important;
  direction: ltr !important;
  text-align: left !important;
  box-sizing: border-box !important;
}
footer#contact.shared-site-footer .copyright > span {
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}
footer#contact.shared-site-footer .footer-rights,
footer#contact.shared-site-footer .footer-legal {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  font: 400 11px/1.6 "Vazirmatn",Tahoma,Arial,sans-serif !important;
}
footer#contact.shared-site-footer .footer-legal b {
  margin: 0 4px !important;
  color: inherit !important;
  font: inherit !important;
}
footer#contact.shared-site-footer .saren-design-credit,
footer#contact.shared-site-footer .footer-design-final {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #929292 !important;
  opacity: 1 !important;
  font: 400 12px/1.6 "Vazirmatn",Tahoma,Arial,sans-serif !important;
  white-space: nowrap !important;
  direction: ltr !important;
}
footer#contact.shared-site-footer .saren-design-credit a,
footer#contact.shared-site-footer .footer-design-final a {
  display: inline !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
footer#contact.shared-site-footer .saren-design-credit a:hover,
footer#contact.shared-site-footer .footer-design-final a:hover { color: #f0cf96 !important; }
@media (max-width: 1120px) {
  footer#contact.shared-site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  footer#contact.shared-site-footer .footer-brand { grid-column: 1 / -1 !important; }
  footer#contact.shared-site-footer .footer-grid > div {
    min-height: 0 !important;
    padding: 14px 16px !important;
    border-left: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
  }
  footer#contact.shared-site-footer .footer-grid > div:last-child { border-bottom: 0 !important; }
  footer#contact.shared-site-footer .footer-logo { width: 220px !important; }
}
@media (max-width: 620px) {
  footer#contact.shared-site-footer .container { width: min(calc(100% - 28px), 1180px) !important; }
  footer#contact.shared-site-footer .footer-grid { grid-template-columns: 1fr !important; padding-top: 26px !important; }
  footer#contact.shared-site-footer .footer-brand { grid-column: auto !important; }
  footer#contact.shared-site-footer .footer-grid > div { min-height: 0 !important; padding: 15px 0 !important; }
  footer#contact.shared-site-footer .footer-logo { width: 200px !important; }
  footer#contact.shared-site-footer .copyright {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    direction: ltr !important;
  }
  footer#contact.shared-site-footer .copyright > span { white-space: normal !important; }
  footer#contact.shared-site-footer .saren-design-credit { white-space: nowrap !important; }
}



/* =========================================================
   ARTICLE BOX REFINEMENT
   For: "پایداری فرهنگی و حرفه‌ای در موزه تاریخ تجارت جندی‌شاپور"
   ========================================================= */
.article-intro-refined{
  margin-top:56px;
  border:1px solid rgba(185,144,75,.18);
  border-radius:18px;
  box-shadow:0 24px 60px rgba(10,16,22,.14);
  background:
    linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,0)),
    var(--deep);
  overflow:hidden;
}
.article-intro-refined .poster-column{
  position:relative;
  background:
    radial-gradient(circle at 16% 16%, rgba(185,144,75,.18), transparent 30%),
    linear-gradient(160deg, #efeee9, #e4e0d6);
}
.article-intro-refined .poster-column::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}
.article-intro-refined .poster-column img{
  padding:20px;
  min-height:640px;
  object-fit:contain;
}
.article-intro-refined .poster-column button > span{
  right:22px;
  bottom:22px;
  padding:10px 14px;
  border-radius:999px;
  border-color:rgba(255,255,255,.24);
  background:rgba(7,16,24,.9);
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  backdrop-filter:blur(10px);
}
.article-summary-refined{
  position:relative;
  padding:52px 50px !important;
  background:
    radial-gradient(circle at 86% 10%, rgba(217,173,114,.10), transparent 24rem),
    linear-gradient(180deg, rgba(255,255,255,.015), transparent 40%),
    transparent;
}
.article-summary-refined::before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:38px;
  bottom:38px;
  width:3px;
  border-radius:3px;
  background:linear-gradient(180deg, rgba(217,173,114,.15), var(--gold), rgba(217,173,114,.12));
}
.article-summary-refined .article-badge{
  border-radius:999px;
  font-weight:600;
  letter-spacing:.02em;
  box-shadow:0 8px 18px rgba(217,173,114,.18);
}
.article-summary-refined h2{
  margin-top:18px;
  margin-bottom:12px;
  line-height:1.6;
}
.article-summary-refined .article-subtitle{
  margin-bottom:24px;
  line-height:2;
}
.article-summary-refined .article-info{
  border-top-color:rgba(217,173,114,.24);
  background:rgba(255,255,255,.03);
  border-radius:12px;
  overflow:hidden;
}
.article-summary-refined .article-info div{
  padding:14px 16px;
  background:linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}
.article-summary-refined .article-info div:nth-child(even){
  background:linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,0));
}
.article-summary-refined .keywords{
  margin-top:18px;
  gap:8px;
}
.article-summary-refined .keywords span{
  padding:7px 11px;
  border-radius:999px;
  background:rgba(217,173,114,.06);
}
.article-layout{
  gap:28px;
  padding-top:30px;
}
.article-keywords-box{
  position:relative;
  padding:34px 34px 30px;
  border:1px solid rgba(185,144,75,.22);
  border-radius:18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(217,173,114,.10), transparent 14rem),
    linear-gradient(180deg, #fffdf9, #f7f1e8);
  box-shadow:0 20px 48px rgba(24,20,14,.08);
}
.article-keywords-box::before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  inset-inline-end:0;
  top:0;
  height:4px;
  border-radius:18px 18px 0 0;
  background:linear-gradient(90deg, transparent, var(--gold), transparent);
}
.article-keywords-box h2{
  margin-bottom:18px;
  font-size:28px;
}
.article-keywords-box .keyword-cloud{
  gap:10px;
}
.article-keywords-box .keyword-cloud span{
  padding:9px 14px;
  border-radius:999px;
  border:1px solid rgba(185,144,75,.22);
  background:#fff;
  box-shadow:0 8px 18px rgba(21,19,14,.04);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.article-keywords-box .keyword-cloud span:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 24px rgba(21,19,14,.08);
  border-color:rgba(185,144,75,.36);
}
.article-sidebar{
  gap:18px;
}
.article-sidebox{
  position:relative;
  overflow:hidden;
  padding:24px 24px 22px;
  border:1px solid rgba(185,144,75,.18);
  border-radius:18px;
  background:
    radial-gradient(circle at 90% 14%, rgba(217,173,114,.12), transparent 12rem),
    linear-gradient(180deg, #fffdf9, #f7f1e8);
  box-shadow:0 18px 40px rgba(24,20,14,.07);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.article-sidebox::before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:0;
  width:4px;
  height:100%;
  background:linear-gradient(180deg, rgba(217,173,114,.14), var(--gold), rgba(217,173,114,.12));
}
.article-sidebox:hover{
  transform:translateY(-3px);
  box-shadow:0 22px 44px rgba(24,20,14,.10);
  border-color:rgba(185,144,75,.30);
}
.article-sidebox h3{
  margin-bottom:16px;
  font-size:17px;
}
.article-sidebox dl div:last-child{
  border-bottom:0;
  padding-bottom:0;
}
.article-sidebox ul{
  margin:0;
  padding-right:18px;
}
.article-sidebox li{
  margin:8px 0;
  line-height:1.9;
}
.article-sidebox p{
  line-height:2;
}
.article-sidebox .primary-button{
  margin-top:12px;
  border-radius:12px;
  border:1px solid rgba(185,144,75,.22);
  box-shadow:0 12px 22px rgba(10,16,22,.08);
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.article-sidebox .primary-button:hover{
  transform:translateY(-2px);
  filter:brightness(1.03);
  box-shadow:0 16px 28px rgba(10,16,22,.12);
}
@media (max-width: 900px){
  .article-intro-refined .poster-column img{
    min-height:0;
    max-height:720px;
  }
  .article-summary-refined{
    padding:38px 28px !important;
  }
  .article-summary-refined::before{
    top:24px;
    bottom:24px;
  }
}
@media (max-width: 640px){
  .article-intro-refined{
    border-radius:14px;
  }
  .article-intro-refined .poster-column img{
    padding:14px;
  }
  .article-summary-refined{
    padding:30px 20px !important;
  }
  .article-keywords-box,
  .article-sidebox{
    padding:22px 18px;
    border-radius:14px;
  }
  .article-keywords-box h2{
    font-size:24px;
  }
}

/* =========================================================
   TEXTILE-RESEARCH KEYWORDS REFINEMENT
   Force selected fa terms to appear in English and improve box design
   ========================================================= */

.textile-research-card{
  border:1px solid rgba(185,144,75,.18);
  border-radius:20px;
  box-shadow:0 24px 60px rgba(10,16,22,.12);
}

.textile-research-copy{
  position:relative;
  background:
    radial-gradient(circle at 90% 12%, rgba(217,173,114,.10), transparent 18rem),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 42%),
    transparent;
}

.textile-research-copy::before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:36px;
  bottom:36px;
  width:3px;
  border-radius:3px;
  background:linear-gradient(180deg, rgba(217,173,114,.16), var(--gold), rgba(217,173,114,.12));
}

.textile-research-copy h3{
  line-height:1.7;
}

.textile-research-copy .article-info{
  margin-bottom:18px;
  border-top-color:rgba(217,173,114,.22);
  background:rgba(255,255,255,.03);
  border-radius:12px;
  overflow:hidden;
}

.textile-research-copy .article-info div{
  padding:13px 16px;
  background:linear-gradient(90deg, rgba(255,255,255,.018), rgba(255,255,255,0));
}

.textile-research-copy p{
  line-height:2.05;
}

.textile-keywords-box{
  display:flex;
  flex-wrap:wrap;
  gap:10px !important;
  margin-top:18px !important;
  padding-top:18px;
  border-top:1px solid rgba(217,173,114,.16);
}

.textile-keywords-box .keyword-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 15px;
  border-radius:999px;
  border:1px solid rgba(217,173,114,.24);
  color:var(--gold-2);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow:0 10px 22px rgba(0,0,0,.08);
  font-size:11px;
  line-height:1.6;
  letter-spacing:.01em;
  text-align:center;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.textile-keywords-box .keyword-pill:hover{
  transform:translateY(-2px);
  border-color:rgba(217,173,114,.42);
  box-shadow:0 16px 30px rgba(0,0,0,.12);
  background:linear-gradient(180deg, rgba(217,173,114,.10), rgba(255,255,255,.03));
}

html[lang="fa"] .textile-keywords-box .keyword-pill,
html[lang="fa"] .textile-keywords-box .keyword-pill-enforce{
  direction:ltr;
  font-family:"Inter","Segoe UI",Arial,sans-serif;
  font-weight:600;
}

html[lang="fa"] .textile-keywords-box .keyword-pill .lang-fa-only{
  display:inline !important;
}

html[lang="fa"] .textile-keywords-box .keyword-pill .lang-en-only{
  display:none !important;
}

@media (max-width: 820px){
  .textile-research-card{
    border-radius:16px;
  }
  .textile-research-copy::before{
    top:24px;
    bottom:24px;
  }
}

@media (max-width: 560px){
  .textile-research-copy::before{
    width:2px;
  }
  .textile-keywords-box .keyword-pill{
    width:100%;
    justify-content:flex-start;
    padding-inline:14px;
  }
}


/* =========================================================
   MOVE ARTICLE SUPPORT BOXES INTO NAVY SUMMARY CARD
   ========================================================= */

.article-layout{
  grid-template-columns:minmax(0,1fr) !important;
}

.article-summary-refined{
  overflow:hidden;
}

.article-inner-panels{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(230px,.75fr);
  gap:14px;
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid rgba(217,173,114,.18);
}

.article-inner-box{
  position:relative;
  min-width:0;
  padding:22px 22px 20px;
  overflow:hidden;
  border:1px solid rgba(217,173,114,.22);
  border-radius:14px;
  background:
    radial-gradient(circle at 90% 10%, rgba(217,173,114,.09), transparent 11rem),
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 14px 30px rgba(0,0,0,.12);
}

.article-inner-box::before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:0;
  width:3px;
  height:100%;
  background:linear-gradient(180deg, rgba(217,173,114,.14), var(--gold-2), rgba(217,173,114,.10));
}

.article-inner-box h3{
  margin:0 0 15px;
  color:var(--gold-2);
  font-size:16px;
  font-weight:600;
}

.article-inner-themes ul{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 18px;
  margin:0;
  padding:0;
  list-style:none;
}

.article-inner-themes li{
  position:relative;
  margin:0;
  padding-inline-start:15px;
  color:rgba(255,255,255,.76);
  font-size:11px;
  line-height:1.9;
}

.article-inner-themes li::before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:.85em;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--gold-2);
  box-shadow:0 0 0 3px rgba(217,173,114,.08);
}

.article-inner-poster{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.article-inner-poster p{
  margin:0;
  color:rgba(255,255,255,.64);
  font-size:11px;
  line-height:2;
}

.article-inner-poster-button{
  width:100%;
  margin-top:14px !important;
  padding:12px 16px !important;
  color:#171717 !important;
  background:linear-gradient(135deg,#e1b879,#c99550) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  border-radius:10px !important;
  font-weight:600;
  box-shadow:0 12px 24px rgba(0,0,0,.16) !important;
}

.article-inner-poster-button:hover{
  transform:translateY(-2px);
  filter:brightness(1.05);
  box-shadow:0 16px 30px rgba(0,0,0,.22) !important;
}

html[lang="en"] .article-inner-themes ul{
  direction:ltr;
}

@media (max-width:900px){
  .article-inner-panels{
    grid-template-columns:1fr;
  }

  .article-inner-themes ul{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:560px){
  .article-inner-panels{
    margin-top:22px;
    padding-top:20px;
  }

  .article-inner-box{
    padding:19px 17px;
    border-radius:12px;
  }

  .article-inner-themes ul{
    grid-template-columns:1fr;
    gap:7px;
  }
}


/* =========================================================
   FINAL TEXTILE KEYWORD BAR
   Cleaner equal cards + correct English order in FA/EN
   ========================================================= */

.textile-keywords-box{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:10px !important;
  width:100%;
  max-width:720px;
  margin:22px 0 0 !important;
  padding:18px 0 0 !important;
  border-top:1px solid rgba(217,173,114,.16);
  direction:ltr !important;
}

.textile-keywords-box .keyword-pill{
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  min-height:44px;
  margin:0 !important;
  padding:9px 12px !important;
  overflow:hidden;
  color:#e3b76e !important;
  background:
    linear-gradient(180deg, rgba(217,173,114,.055), rgba(255,255,255,.018)) !important;
  border:1px solid rgba(217,173,114,.28) !important;
  border-radius:6px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 8px 18px rgba(0,0,0,.09) !important;
  font-family:"Inter","Segoe UI",Arial,sans-serif !important;
  font-size:10px !important;
  font-weight:600 !important;
  line-height:1.35 !important;
  letter-spacing:.015em;
  white-space:nowrap;
  text-align:center;
  direction:ltr !important;
  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease !important;
}

.textile-keywords-box .keyword-pill:hover{
  transform:translateY(-2px);
  color:#f0c982 !important;
  border-color:rgba(217,173,114,.55) !important;
  background:
    linear-gradient(180deg, rgba(217,173,114,.10), rgba(255,255,255,.025)) !important;
  box-shadow:0 12px 22px rgba(0,0,0,.14) !important;
}

/* Explicit visual order */
.textile-keywords-box .keyword-textile{ order:1; }
.textile-keywords-box .keyword-ftir{ order:2; }
.textile-keywords-box .keyword-dsc{ order:3; }
.textile-keywords-box .keyword-synthetic{ order:4; }

html[lang="fa"] .textile-keywords-box,
html[lang="en"] .textile-keywords-box{
  direction:ltr !important;
}

@media (max-width:760px){
  .textile-keywords-box{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    max-width:none;
  }
}

@media (max-width:430px){
  .textile-keywords-box{
    grid-template-columns:1fr !important;
    gap:8px !important;
  }

  .textile-keywords-box .keyword-pill{
    min-height:42px;
  }
}


/* =========================================================
   FINAL REQUEST — KEYWORDS INSIDE NAVY + SYNC POSTER SIZES
   ========================================================= */

/* Move/visualize article keywords as part of the navy article card */
.article-summary-refined .article-inner-keywords{
  position:relative;
  margin-top:14px;
  padding:22px 22px 20px;
  overflow:hidden;
  border:1px solid rgba(217,173,114,.22);
  border-radius:14px;
  background:
    radial-gradient(circle at 92% 10%, rgba(217,173,114,.08), transparent 12rem),
    linear-gradient(145deg, rgba(255,255,255,.042), rgba(255,255,255,.012));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 12px 26px rgba(0,0,0,.11);
}

.article-summary-refined .article-inner-keywords::before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  top:0;
  width:3px;
  height:100%;
  background:linear-gradient(180deg,rgba(217,173,114,.12),var(--gold-2),rgba(217,173,114,.10));
}

.article-summary-refined .article-inner-keywords h2{
  margin:0 0 16px !important;
  color:var(--gold-2) !important;
  font-size:17px !important;
  font-weight:600 !important;
  line-height:1.7 !important;
}

.article-summary-refined .article-inner-keywords .keyword-cloud{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.article-summary-refined .article-inner-keywords .keyword-cloud span{
  padding:8px 12px;
  color:#e2b86f;
  border:1px solid rgba(217,173,114,.28);
  border-radius:6px;
  background:rgba(255,255,255,.025);
  box-shadow:none;
  font-size:10px;
  line-height:1.5;
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}

.article-summary-refined .article-inner-keywords .keyword-cloud span:hover{
  transform:translateY(-1px);
  border-color:rgba(217,173,114,.48);
  background:rgba(217,173,114,.07);
}

/* The separate white keywords card no longer exists */
.article-layout{
  grid-template-columns:minmax(0,1fr) !important;
}

/* Synchronize the media/image column proportions across all article cards */
.article-intro-refined,
.additional-research-card{
  grid-template-columns:minmax(340px,.84fr) minmax(0,1.16fr) !important;
}

/* Synchronize poster viewport dimensions */
.article-intro-refined .poster-column,
.additional-research-card .additional-poster{
  min-height:640px !important;
  height:640px !important;
  background:#ececec !important;
}

/* Synchronize actual image fitting */
.article-intro-refined .poster-column img,
.additional-research-card .additional-poster img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  max-height:none !important;
  padding:18px !important;
  object-fit:contain !important;
  object-position:center center !important;
  background:#ececec;
}

/* Remove extra visual gap left by deleted research headings */
.additional-research{
  padding-top:30px !important;
}

.additional-research + .additional-research{
  padding-top:12px !important;
}

@media (max-width:900px){
  .article-intro-refined,
  .additional-research-card{
    grid-template-columns:1fr !important;
  }

  .article-intro-refined .poster-column,
  .additional-research-card .additional-poster{
    min-height:0 !important;
    height:auto !important;
    aspect-ratio:4 / 5;
  }

  .article-intro-refined .poster-column img,
  .additional-research-card .additional-poster img{
    height:100% !important;
    padding:14px !important;
  }
}

@media (max-width:560px){
  .article-summary-refined .article-inner-keywords{
    padding:18px 16px;
    border-radius:12px;
  }

  .article-summary-refined .article-inner-keywords .keyword-cloud{
    gap:7px;
  }

  .article-summary-refined .article-inner-keywords .keyword-cloud span{
    flex:1 1 calc(50% - 7px);
    text-align:center;
  }
}


/* =========================================================
   REMOVE INNER POSTER BOX / KEEP KEYWORDS
   ========================================================= */

.article-inner-panels{
  grid-template-columns:1fr !important;
}

.article-inner-keywords{
  margin-top:14px;
}

/* Hide any stale styling hook for the deleted support box */
.article-inner-poster{
  display:none !important;
}


/* =========================================================
   ARTICLE IMAGE SIZE — FINAL ONLY
   Keeps all existing layout/content; only fixes poster sizing.
   ========================================================= */

/* Keep the image side balanced with the text side */
.article-intro-refined,
.additional-research-card{
  grid-template-columns:minmax(0, 1.08fr) minmax(360px, .92fr) !important;
  align-items:stretch !important;
}

/* Shared media box */
.article-media,
.article-intro-refined .poster-column,
.additional-research-card .additional-poster{
  position:relative;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  padding:18px !important;
  overflow:hidden !important;
  background:#e9e9e9 !important;
  box-sizing:border-box !important;
}

/* Full poster visible; no cropping or distortion */
.article-media img,
.article-intro-refined .poster-column img,
.additional-research-card .additional-poster img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  max-width:100% !important;
  max-height:100% !important;
  margin:auto !important;
  padding:0 !important;
  object-fit:contain !important;
  object-position:center center !important;
}

/* Main sustainability poster: larger portrait presentation */
.article-media-main{
  min-height:680px !important;
}

.article-media-main img{
  width:min(100%, 620px) !important;
  height:auto !important;
  max-height:calc(100% - 8px) !important;
}

/* Textile research poster: same visual scale as main poster */
.article-media-textile{
  min-height:680px !important;
}

.article-media-textile img{
  width:min(100%, 620px) !important;
  height:auto !important;
  max-height:calc(100% - 8px) !important;
}

/* Crisis certificate is horizontal, so use a shorter viewport */
.article-media-crisis{
  min-height:430px !important;
  padding:16px !important;
}

.article-media-crisis img{
  width:100% !important;
  height:auto !important;
  max-height:400px !important;
}

/* Keep "view full poster" badge in the corner without affecting image size */
.article-media > span,
.additional-poster > span,
.poster-column button > span{
  position:absolute !important;
  inset-inline-end:16px !important;
  bottom:16px !important;
  z-index:3;
}

/* Tablet / mobile */
@media (max-width:900px){
  .article-intro-refined,
  .additional-research-card{
    grid-template-columns:1fr !important;
  }

  .article-media,
  .article-media-main,
  .article-media-textile,
  .article-media-crisis,
  .article-intro-refined .poster-column,
  .additional-research-card .additional-poster{
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    padding:14px !important;
  }

  .article-media-main,
  .article-media-textile{
    aspect-ratio:4 / 5 !important;
  }

  .article-media-crisis{
    aspect-ratio:16 / 10 !important;
  }

  .article-media img,
  .article-media-main img,
  .article-media-textile img,
  .article-media-crisis img{
    width:100% !important;
    height:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
  }
}

@media (max-width:560px){
  .article-media,
  .article-intro-refined .poster-column,
  .additional-research-card .additional-poster{
    padding:10px !important;
  }
}


/* =========================================================
   REAL IMAGE RATIO FIX — NO FIXED POSTER HEIGHTS
   Let each poster define the row height from its true ratio.
   ========================================================= */

/* Every article card row follows the actual image height */
.article-intro-refined,
.additional-research-card{
  align-items:stretch !important;
}

/* Remove all forced heights/aspect ratios from media columns */
.article-media,
.article-media-main,
.article-media-textile,
.article-media-crisis,
.article-intro-refined .poster-column,
.additional-research-card .additional-poster{
  display:block !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  aspect-ratio:auto !important;
  padding:0 !important;
  overflow:hidden !important;
  background:#ececec !important;
}

/* Image fills the whole width; its intrinsic ratio sets height */
.article-media img,
.article-media-main img,
.article-media-textile img,
.article-media-crisis img,
.article-intro-refined .poster-column img,
.additional-research-card .additional-poster img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-width:none !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  object-fit:initial !important;
  object-position:initial !important;
  background:#fff !important;
}

/* Main article button wrapper must also follow the image height */
.article-intro-refined .poster-column > .poster-open{
  display:block !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
}

/* Keep overlay controls on top of the real image without changing its size */
.article-intro-refined .poster-column button > span,
.additional-research-card .additional-poster > span{
  position:absolute !important;
  inset-inline-end:14px !important;
  bottom:14px !important;
  z-index:4 !important;
}

/* The dark copy side stretches exactly to the media side */
.article-summary-refined,
.additional-research-copy{
  min-height:100% !important;
  height:auto !important;
}

/* Remove older fixed-size declarations decisively */
.article-poster-main,
.article-poster-textile,
.article-poster-crisis{
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
}

/* Responsive: same principle — image remains full-width at natural ratio */
@media (max-width:900px){
  .article-media,
  .article-media-main,
  .article-media-textile,
  .article-media-crisis,
  .article-intro-refined .poster-column,
  .additional-research-card .additional-poster{
    height:auto !important;
    min-height:0 !important;
    aspect-ratio:auto !important;
    padding:0 !important;
  }

  .article-media img,
  .article-media-main img,
  .article-media-textile img,
  .article-media-crisis img,
  .article-intro-refined .poster-column img,
  .additional-research-card .additional-poster img{
    width:100% !important;
    height:auto !important;
    max-height:none !important;
  }
}


/* =========================================================
   FINAL MEDIA ALIGNMENT FIX
   Stop image columns from stretching to the navy box height.
   ========================================================= */

/* Let each side keep its own natural height */
.article-intro-refined,
.additional-research-card{
  align-items:start !important;
}

/* Media columns must size to their own image, not to the text panel */
.article-intro-refined .poster-column,
.additional-research-card .additional-poster,
.article-media,
.article-media-main,
.article-media-textile,
.article-media-crisis{
  align-self:start !important;
  display:block !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  padding:0 !important;
  margin:0 !important;
  overflow:hidden !important;
  background:transparent !important;
}

/* Poster button wrapper also follows the natural image height */
.article-intro-refined .poster-column > button,
.article-intro-refined .poster-column > .poster-open{
  display:block !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
}

/* Every poster fills its column width and keeps its own ratio */
.article-intro-refined .poster-column img,
.additional-research-card .additional-poster img,
.article-media img,
.article-media-main img,
.article-media-textile img,
.article-media-crisis img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-width:100% !important;
  max-height:none !important;
  margin:0 !important;
  padding:0 !important;
  object-fit:contain !important;
  object-position:center top !important;
  background:#fff !important;
}

/* Better column balance for portrait posters */
.article-intro-refined,
.additional-research-card{
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr) !important;
}

/* Keep the overlay button sitting on the image itself */
.article-intro-refined .poster-column button > span,
.additional-research-card .additional-poster > span{
  position:absolute !important;
  inset-inline-end:14px !important;
  bottom:14px !important;
  z-index:5 !important;
}

/* Do not force the dark copy to match image height */
.article-summary-refined,
.additional-research-copy{
  height:auto !important;
  min-height:0 !important;
  align-self:stretch !important;
}

/* Mobile */
@media (max-width:900px){
  .article-intro-refined,
  .additional-research-card{
    grid-template-columns:1fr !important;
  }

  .article-intro-refined .poster-column,
  .additional-research-card .additional-poster{
    width:100% !important;
    height:auto !important;
  }

  .article-intro-refined .poster-column img,
  .additional-research-card .additional-poster img{
    width:100% !important;
    height:auto !important;
  }
}


/* =========================================================
   REMOVE MAIN THEMES + KEYWORDS BOXES
   ========================================================= */
.article-inner-themes,
.article-inner-keywords{
  display:none !important;
}
