@font-face{font-family:Vazirmatn;src:url('./vazirmatn.woff2') format('woff2');font-weight:100 900;font-display:swap}
* { box-sizing: border-box; }
body { margin: 0; background: #f5f7fb; color: #18243d; font-family: Vazirmatn, Tahoma, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #a07b2d; outline-offset: 4px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 24px); }
header { background: #fff; border-bottom: 1px solid #e1e8f0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 84px; }
main { padding-block: 26px 64px; }
.crumb { color: #4b5b77; font-size: .88rem; }
.crumb a { text-decoration: underline; text-underline-offset: .18em; }
.product-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.product-hero h1 { font-size: clamp(1.35rem, 3.5vw, 2.3rem); line-height: 1.35; overflow-wrap: anywhere; }
.product-hero h1 bdi { display: inline-block; }
.product-hero p { margin: 0; }
.product-hero .product-photo { margin: 0; padding: 14px; background: #fff; border-radius: 12px; }
.product-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.product-links a, .sheet-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.product-links a { color: #f5d68b; }
.detail-section { margin-top: 24px; padding: clamp(15px, 3vw, 24px); border: 1px solid #dfe7f1; border-radius: 16px; background: #fff; }
.detail-section h2 { margin: 0 0 12px; font-size: 1.25rem; }
#specs-title { font-size: 1.4rem; font-weight: 900; }
.spec-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.spec-group { padding: 14px 16px; background: #f6f8fc; border-radius: 10px; }
.product-hero .board-intro,
.spec-group {
  position: relative;
  isolation: isolate;
}
.product-hero .board-intro::before,
.spec-group::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("./footer-logo-gold-vector.svg") center / min(42%, 148px) auto no-repeat;
  opacity: .19;
}
.product-hero .board-intro::before {
  background-size: min(52%, 176px) auto;

  opacity: .22;
}
.spec-group h3 { margin: 0 0 8px; font-size: 1rem; }
.spec-group dl { margin: 0; }
.spec-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 8px 12px; padding-block: 8px; }
.spec-row + .spec-row { border-top: 1px solid #e1e8f0; }
.spec-row dt { font-size: .88rem; font-weight: 600; }
#specs-title, .spec-group h3 { color: #23519b; }
.spec-row dt { color: #775025; }
.spec-row dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: .92rem; }
.datasheet figure { margin: 8px 0 0; }
.datasheet img { display: block; width: min(100%, 420px); height: auto; margin-inline: auto; border: 1px solid #e1e8f0; border-radius: 8px; }
.datasheet .board-layout-image { width: auto; max-width: 100%; }
.sheet-link { color: #263b73; }
@media (max-width: 660px) {
  .product-hero, .spec-groups { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .spec-row { grid-template-columns: 1fr; gap: 2px; }
}

.board-intro > p:not(.board-eyebrow), .spec-note { text-align: justify; text-align-last: start; }
.spec-note { color: #4b5b77; font-size: .88rem; margin: 14px 0 0; }
.datasheet figure + figure { margin-top: 18px; }

.board-gallery:focus-visible {
  outline: 2px solid #a07b2d;
  outline-offset: 2px;
}
.board-gallery.is-rotating .board-gallery__slides {
  display: grid;
  place-items: center stretch;
  overflow: hidden;
}
.board-gallery.is-rotating [data-board-slide] {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity .28s ease, transform .28s ease;
}
.board-gallery.is-rotating [data-board-slide].is-active {
  opacity: 1;
  transform: translateX(0);
}


.board-photo-frame--contain > .board-photo { height: 100%; object-fit: contain; }
