/* Rug ID. Page layout only. Group links reuse .vsf-tag from site.css. */

.rk-page {
  max-width: 52rem;
}

.rk-name {
  margin: 0.2rem 0 0.35rem;
  color: #000;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rk-lead,
.rk-note,
.rk-why,
.rk-cap,
.rk-origin,
.rk-ask,
.rk-src {
  margin: 0 0 0.75rem;
  max-width: 40em;
  color: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.rk-lead {
  color: rgba(0, 0, 0, 0.55);
}

.rk-note {
  margin-bottom: 0.85rem;
}

.rk-lab {
  display: block;
  margin-bottom: 0.15rem;
  color: #000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rk-sec {
  margin: 0 0 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid #000;
  scroll-margin-top: 0.75rem;
}

.rk-kicker {
  margin: 0 0 0.75rem;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rk-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0;
  margin: 0 0 1.2rem;
}

.rk-jump a.vsf-tag {
  text-decoration: none;
}

.rk-terms {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.7fr) minmax(0, 1.6fr);
  margin: 0 0 0.4rem;
  max-width: 44rem;
  border-top: 1px solid rgba(0, 0, 0, 0.35);
}

.rk-term,
.rk-def {
  margin: 0;
  padding: 0.4rem 0.75rem 0.4rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  font-size: 12px;
  line-height: 1.4;
}

.rk-def {
  color: rgba(0, 0, 0, 0.72);
}

.rk-type {
  margin: 0 0 1.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.35);
}

.rk-type-name {
  margin: 0 0 0.45rem;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rk-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.9rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.rk-index a {
  color: inherit;
}

.rk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  align-items: flex-start;
  margin: 0 0 0.85rem;
}

.rk-fig {
  margin: 0;
  flex: 1 1 14rem;
  max-width: 18rem;
}

.rk-fig svg {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.rk-cap {
  margin: 0.4rem 0 0;
  max-width: 18rem;
  color: rgba(0, 0, 0, 0.72);
}

.rk-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  margin: 0;
}

.rk-check {
  margin: 0;
  min-width: 0;
}

.rk-check dt {
  margin: 0 0 0.35rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rk-check dd {
  margin: 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.rk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  margin: 0 0 0.45rem;
  padding: 0;
  list-style: none;
}

.rk-swatch {
  margin: 0;
  width: 4.4rem;
  text-align: center;
}

.rk-chip {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  box-sizing: border-box;
  background: #fff;
}

.rk-swatch figcaption {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
}

.rk-chip[data-swatch="madder"] { background: #6e1c1c; }
.rk-chip[data-swatch="brick"] { background: #8d3b2a; }
.rk-chip[data-swatch="deepblue"] { background: #1a2a4a; }
.rk-chip[data-swatch="ivory"] { background: #f3ede2; }
.rk-chip[data-swatch="apricot"] { background: #e0a070; }
.rk-chip[data-swatch="red"] { background: #8f2424; }
.rk-chip[data-swatch="redbrown"] { background: #6b3328; }
.rk-chip[data-swatch="aubergine"] { background: #5c3a4a; }
.rk-chip[data-swatch="plum"] { background: #6a4450; }
.rk-chip[data-swatch="terracotta"] { background: #c4654a; }
.rk-chip[data-swatch="navy"] { background: #1c2744; }
.rk-chip[data-swatch="teal"] { background: #2f6f6a; }
.rk-chip[data-swatch="rust"] { background: #8a4028; }
.rk-chip[data-swatch="wine"] { background: #6e2438; }
.rk-chip[data-swatch="burgundy"] { background: #4e1c2c; }
.rk-chip[data-swatch="copper"] { background: #b87333; }
.rk-chip[data-swatch="softblue"] { background: #a9c3d4; }
.rk-chip[data-swatch="rose"] { background: #c47a8a; }
.rk-chip[data-swatch="blue"] { background: #1a2a4a; }
.rk-chip[data-swatch="camel"] { background: #c4a574; }
.rk-chip[data-swatch="salmon"] { background: #e39b8d; }
.rk-chip[data-swatch="sky"] { background: #8eb4c9; }
.rk-chip[data-swatch="gold"] { background: #c6a15a; }
.rk-chip[data-swatch="green"] { background: #3d6b45; }
.rk-chip[data-swatch="yellow"] { background: #d2b24c; }
.rk-chip[data-swatch="lavender"] { background: #b7a4c2; }
.rk-chip[data-swatch="indigo"] { background: #1d2450; }
.rk-chip[data-swatch="pink"] { background: #d4899a; }
.rk-chip[data-swatch="raspberry"] { background: #a33b55; }
.rk-chip[data-swatch="sage"] { background: #9aaa86; }
.rk-chip[data-swatch="olive"] { background: #6d7040; }
.rk-chip[data-swatch="aqua"] { background: #6eaea8; }
.rk-chip[data-swatch="fuchsia"] { background: #c43b78; }
.rk-chip[data-swatch="mustard"] { background: #c2a03a; }
.rk-chip[data-swatch="purple"] { background: #5c3d78; }
.rk-chip[data-swatch="sand"] { background: #d9c7a2; }
.rk-chip[data-swatch="chocolate"] { background: #4a3024; }
.rk-chip[data-swatch="coral"] { background: #e07a62; }
.rk-chip[data-swatch="brown"] { background: #4a2e22; }

.rk-empty {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 4.6rem;
  margin: 0 0 0.35rem;
  padding: 0.45rem;
  border: 1px dashed rgba(0, 0, 0, 0.55);
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 7px,
    rgba(0, 0, 0, 0.035) 7px,
    rgba(0, 0, 0, 0.035) 8px
  );
  color: rgba(0, 0, 0, 0.62);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

.rk-why {
  margin: 0;
  color: rgba(0, 0, 0, 0.55);
}

.rk-asks {
  margin: 0.85rem 0 0;
  padding: 0 0 0 1.2rem;
  max-width: 44em;
}

.rk-asks li {
  margin: 0 0 0.35rem;
  line-height: 1.45;
}

.rk-asks a,
.rk-src a,
.rk-note a,
.rk-check a,
.rk-origin a {
  color: inherit;
}

.rk-sources {
  margin: 0;
  padding: 0 0 0 1.2rem;
  max-width: 44em;
}

.rk-sources li {
  margin: 0 0 0.45rem;
  line-height: 1.45;
}

.rk-sources a {
  color: inherit;
}

@media (max-width: 1100px) {
  .rk-page {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .rk-terms,
  .rk-checks {
    grid-template-columns: 1fr;
  }

  .rk-def {
    padding-top: 0;
    padding-bottom: 0.65rem;
  }

  .rk-fig {
    flex-basis: 100%;
    max-width: 100%;
  }

  .rk-cap {
    max-width: none;
  }
}

/* Region dropdown. Same fold as the tag drop on other pages, under rk- prefixes.
   Content stays visible until html.rk-ready. */

html.rk-ready .rk-group,
html.rk-ready .rk-group .rk-type,
html.rk-ready #baluch-sheet {
  display: none;
}

html.rk-ready .rk-group.rk-open {
  display: block;
}

html.rk-ready .rk-group.rk-open .rk-type.rk-show,
html.rk-ready .rk-group.rk-open #baluch-sheet.rk-show {
  display: block;
}

.rk-tagfold {
  flex: 1 0 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0.55rem 0 0;
}

.rk-tagfold[hidden] {
  display: none;
}

.rk-tags-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0 0 0.15rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  line-height: 0;
  appearance: none;
}

.rk-tags-toggle:focus-visible {
  outline: 1px solid #000;
  outline-offset: 3px;
}

.rk-tags-toggle svg {
  display: block;
  width: 16px;
  height: 16px;
  transition: transform 0.22s ease;
}

.rk-tagfold.rk-drop-open .rk-tags-toggle svg {
  transform: rotate(180deg);
}

.rk-tagdrop {
  display: grid;
  grid-template-rows: 0fr;
  max-width: 100%;
}

.rk-tagfold.rk-drop-motion .rk-tagdrop {
  transition: grid-template-rows 0.22s ease;
}

.rk-tagfold.rk-drop-open .rk-tagdrop {
  grid-template-rows: 1fr;
}

.rk-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
  row-gap: 0.45rem;
}

.rk-tagfold.rk-drop-open .rk-tags {
  overflow: visible;
  padding-top: 0.45rem;
}

.rk-tags button.vsf-tag {
  appearance: none;
  -webkit-appearance: none;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  .rk-tagdrop,
  .rk-tags-toggle svg {
    transition: none;
  }
}

/* Baluch Rugs sheet, now inside Rug ID (#baluch-sheet). The map frame reuses .vsf-lb-* from site.css. */

.br-embed {
  margin: 1.6rem 0 1.35rem;
  scroll-margin-top: 0.75rem;
}

.br-name {
  margin: 0.2rem 0 0.35rem;
  color: #000;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.br-lead {
  margin: 0 0 1.4rem;
  max-width: 36em;
  color: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  line-height: 1.5;
}

.br-sec {
  margin: 0 0 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid #000;
}

.br-kicker {
  margin: 0 0 0.75rem;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.br-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 1.75rem;
  align-items: flex-start;
}

.br-fig {
  margin: 0;
  flex: 1 1 14rem;
  max-width: 18rem;
}

.br-fig-lead {
  flex-basis: 18rem;
  max-width: 22rem;
}

.br-fig svg {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.br-cap {
  margin: 0.4rem 0 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.br-cap a {
  color: inherit;
}

.br-swatches {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.35rem;
  margin: 0;
  padding: 0 0 0.35rem;
  list-style: none;
  overflow-x: auto;
  max-width: 100%;
}

.br-swatch {
  flex: 0 0 auto;
  width: 5.6rem;
  margin: 0;
  text-align: center;
}

.br-chip {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 0.4rem;
  border: 1px solid rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  box-sizing: border-box;
}

.br-swatch figcaption {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.br-hex {
  display: block;
  margin-top: 0.15rem;
  color: rgba(0, 0, 0, 0.55);
}

.br-dye {
  display: block;
  margin-top: 0.15rem;
}

.br-note {
  margin: 0.75rem 0 0;
  max-width: 40em;
  color: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  line-height: 1.45;
}

.br-region {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: flex-start;
}

.br-map-hold {
  position: relative;
  width: 148px;
  height: 148px;
  flex: 0 0 148px;
}

/* Same 148px dark frame as the Vacant lightbox. In-flow on this page only. */
.br-map-hold .vsf-lb-map {
  position: absolute;
  left: 0;
  top: 0;
  bottom: auto;
  opacity: 1;
  transform: none;
}

.br-region-copy {
  flex: 1 1 16rem;
  max-width: 28rem;
  margin: 0;
}

.br-cues {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.85fr) minmax(0, 1.3fr);
  margin: 0;
  max-width: 44rem;
  border-top: 1px solid rgba(0, 0, 0, 0.35);
}

.br-cue,
.br-to {
  margin: 0;
  padding: 0.4rem 0.75rem 0.4rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  font-size: 12px;
  line-height: 1.4;
}

.br-to {
  color: rgba(0, 0, 0, 0.72);
}

.br-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.br-slot {
  margin: 0;
}

.br-slot-box {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 9.5rem;
  height: 7.2rem;
  border: 1px dashed rgba(0, 0, 0, 0.55);
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 7px,
    rgba(0, 0, 0, 0.035) 7px,
    rgba(0, 0, 0, 0.035) 8px
  );
  color: rgba(0, 0, 0, 0.62);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.35;
}

.br-slot-wide .br-slot-box {
  width: 14rem;
  height: 9.5rem;
}

.br-slot figcaption {
  margin: 0.35rem 0 0;
  max-width: 14rem;
  color: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  line-height: 1.4;
}

.br-sources {
  margin: 0;
  padding: 0 0 0 1.2rem;
  max-width: 42em;
}

.br-sources li {
  margin: 0 0 0.45rem;
  line-height: 1.45;
}

.br-sources a {
  color: inherit;
}

@media (max-width: 767px) {
  .br-fig,
  .br-fig-lead {
    flex-basis: 100%;
    max-width: 100%;
  }

  .br-cues {
    grid-template-columns: 1fr;
  }

  .br-to {
    padding-top: 0;
    padding-bottom: 0.65rem;
  }

  .br-slot-wide .br-slot-box,
  .br-slot-box {
    width: 100%;
    max-width: 18rem;
  }
}
