
#museum-app {
  --museum-ink: #30291f;
  --museum-muted: #665748;
  --museum-paper: #f5eddc;
  --museum-cloth: #642932;
  --museum-rule: #baa58a;
  width: 100%;
  color: var(--museum-ink);
  font: 16px/1.4 Georgia, "Times New Roman", serif;
  background: transparent;
}
#museum-app *,
#museum-app *::before,
#museum-app *::after { box-sizing: border-box; }
#museum-app [hidden] { display: none !important; }
#museum-app button,
#museum-app input,
#museum-app select { font: inherit; }
#museum-app .museum-stage {
  width: min(100%, 960px);
  container: museum / inline-size;
  margin-inline: auto;
  padding: 8px 8px 18px;
}
#museum-app .bound-volume {
  position: relative;
  padding: 15px 11px 19px 29px;
  border: 1px solid #4b1c25;
  border-radius: 3px 7px 7px 3px;
  background-color: var(--museum-cloth);
  background-image:
    repeating-linear-gradient(0deg, #ffffff06 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, #00000012 0 1px, transparent 1px 4px);
  box-shadow: 0 5px 9px #27170935, inset 1px 0 1px #ffffff38;
}
#museum-app .bound-volume::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 10px;
  width: 11px;
  border-inline: 1px solid #351b2270;
  background: linear-gradient(90deg, #00000000, #0000003b, #ffffff0d, #00000017);
  pointer-events: none;
}
#museum-app .volume-interior {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: 0;
  align-items: start;
  position: relative;
}
#museum-app .paper-stack {
  min-width: 0;
  position: relative;
  z-index: 1;
  isolation: isolate;
}
#museum-app .paper-stack::before,
#museum-app .paper-stack::after {
  content: "";
  position: absolute;
  inset: 4px -4px -4px 3px;
  z-index: -1;
  border: 1px solid #b49a76;
  background: #e6d8bd;
  box-shadow: 0 1px 1px #22180e30;
  pointer-events: none;
}
#museum-app .paper-stack::after {
  inset: 8px -7px -8px 6px;
  z-index: -2;
  background: #d5c5a9;
}
#museum-app .catalogue-leaf {
  position: relative;
  padding: 19px 25px 16px 30px;
  border: 1px solid #c6b394;
  background-color: var(--museum-paper);
  background-image:
    radial-gradient(ellipse at 100% 0, #ae8c4612, transparent 55%),
    repeating-linear-gradient(82deg, #764d2503 0 1px, transparent 1px 5px),
    linear-gradient(90deg, #93806525, #fbf5e600 25px);
  box-shadow: inset 2px 0 8px #7a624426, 1px 1px 4px #28160b40;
}
#museum-app .masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--museum-muted);
  border-bottom: 1px solid var(--museum-rule);
  padding-bottom: 6px;
}
#museum-app .text-control {
  min-height: 36px;
  min-width: 44px;
  padding: 4px 5px;
  color: var(--museum-cloth);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#museum-app .masthead {
  text-align: center;
  border-bottom: 3px double var(--museum-rule);
  padding: 15px 0 16px;
}
#museum-app .museum-imprint {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--museum-cloth);
}
#museum-app h1 {
  margin: 0;
  font: 400 34px/1.08 "Times New Roman", Georgia, serif;
  text-wrap: balance;
  color: #50272b;
}
#museum-app .arabic-title {
  margin: 7px 0 0;
  font: 400 24px/1.4 "Times New Roman", serif;
  color: #50272b;
}
#museum-app .museum-intro {
  margin: 10px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--museum-muted);
}
#museum-app .sector-index {
  position: absolute;
  top: 133px;
  inset-inline-end: -139px;
  width: 138px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  z-index: 2;
  min-width: 0;
}
#museum-app .sector-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-height: 48px;
  padding: 9px 9px 9px 12px;
  border: 1px solid #c0a67d;
  border-inline-start: 0;
  border-radius: 0 3px 3px 0;
  color: #53392c;
  background: linear-gradient(90deg, #c7b697, #e6d6b8 12px, #e1d0af);
  box-shadow: 0 2px 2px #210a1640;
  font-size: 13px;
  line-height: 1.25;
  text-align: start;
}
#museum-app .sector-tab[aria-pressed="true"] {
  position: relative;
  color: #612831;
  background: linear-gradient(90deg, #f5eddc, #f5eddc 85%, #efe4ce);
  box-shadow: 1px 1px 3px #210a1630;
  font-weight: 700;
  border-color: #c6b394;
}
#museum-app .tab-count {
  color: #79634b;
  font: 12px/1.2 "Times New Roman", serif;
  flex: 0 0 auto;
}
#museum-app .catalogue-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  gap: 13px;
  margin-top: 17px;
}
#museum-app .field-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #564637;
}
#museum-app .search-field { min-width: 0; }
#museum-app .search-row { display: flex; min-width: 0; }
#museum-app input,
#museum-app select {
  min-width: 0;
  width: 100%;
  height: 38px;
  padding: 5px 8px;
  border: 1px solid #a89170;
  border-radius: 0;
  color: var(--museum-ink);
  background: #fcf7eb;
  box-shadow: inset 1px 2px 2px #59442614;
  font-size: 14px;
}
#museum-app input::placeholder { color: #776450; opacity: 1; }
#museum-app .search-button {
  padding: 5px 10px;
  border: 1px solid #a89170;
  border-inline-start: 0;
  border-radius: 0;
  color: #5c3032;
  background: linear-gradient(#f5ecd9, #e2cfad);
  box-shadow: inset 1px 1px 0 #fffaf0;
  font-size: 13px;
}
#museum-app .collection-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 13px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--museum-rule);
}
#museum-app h2 {
  margin: 0;
  font: 400 19px/1.3 "Times New Roman", serif;
  color: #563233;
}
#museum-app .specimen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 20px;
}
#museum-app .specimen {
  min-width: 0;
  margin: 0;
}
#museum-app .specimen-mount {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid #d3c6ac;
  background: #fcf8ef;
  box-shadow: 1px 2px 3px #5c483d26;
  overflow: hidden;
}
#museum-app .specimen-mount::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #ccb993 0 6px, #e8d9bd 6px 11px, transparent 11px) top left,
    linear-gradient(225deg, #ccb993 0 6px, #e8d9bd 6px 11px, transparent 11px) top right,
    linear-gradient(45deg, #ccb993 0 6px, #e8d9bd 6px 11px, transparent 11px) bottom left,
    linear-gradient(315deg, #ccb993 0 6px, #e8d9bd 6px 11px, transparent 11px) bottom right;
  background-size: 16px 16px;
  background-repeat: no-repeat;
  pointer-events: none;
}
#museum-app .specimen-mount img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#museum-app .sample-mark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  width: 100%;
  height: 100%;
  font-family: "Times New Roman", serif;
  text-align: center;
  color: var(--specimen-color, #243944);
}
#museum-app .mark-word { font-size: 29px; font-weight: 700; line-height: 1.1; }
#museum-app .mark-note { font-size: 9px; font-weight: 700; letter-spacing: 1px; }
#museum-app .seal .mark-word {
  border: 3px double currentColor;
  border-radius: 50%;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  font-size: 26px;
}
#museum-app .wing .mark-word {
  font-style: italic;
  border-top: 3px solid currentColor;
  border-bottom: 5px double currentColor;
  padding: 3px 8px;
  letter-spacing: -3px;
}
#museum-app .block .mark-word {
  color: #fcf8ef;
  background: var(--specimen-color);
  font-family: Arial, sans-serif;
  padding: 8px 7px;
  letter-spacing: -2px;
}
#museum-app .arabic .mark-word { font-size: 32px; font-weight: 400; }
#museum-app .striped::before {
  content: "";
  width: 52px;
  height: 40px;
  background: repeating-linear-gradient(0deg, currentColor 0 5px, transparent 5px 9px);
  transform: skewX(-20deg);
}
#museum-app .striped .mark-word { font: 700 19px/1 Arial, sans-serif; }
#museum-app .diamond .mark-word {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border: 3px solid currentColor;
  transform: rotate(-10deg);
  margin: 5px;
}
#museum-app figcaption { margin-top: 7px; }
#museum-app .specimen-name { display: block; font-size: 13px; line-height: 1.3; }
#museum-app .specimen-date {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--museum-muted);
  font-style: italic;
}
#museum-app .empty-state {
  margin: 24px 0;
  color: var(--museum-muted);
  font-style: italic;
  font-size: 14px;
}
#museum-app .catalogue-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 23px;
  padding-top: 8px;
  border-top: 3px double var(--museum-rule);
  color: var(--museum-muted);
  font-size: 11px;
}
#museum-app [dir="rtl"] .bound-volume { padding: 15px 29px 19px 11px; }
#museum-app [dir="rtl"] .catalogue-leaf { padding: 19px 30px 16px 25px; }
#museum-app [dir="rtl"] .sector-tab { border-radius: 3px 0 0 3px; }
#museum-app [dir="rtl"] .museum-imprint { letter-spacing: 0; font-size: 13px; }
@media (max-width: 820px) {
  #museum-app .volume-interior { grid-template-columns: minmax(0, 1fr) 125px; }
  #museum-app .sector-index { inset-inline-end: -126px; width: 125px; }
  #museum-app .catalogue-leaf { padding-inline: 24px 20px; }
  #museum-app .specimen-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #museum-app h1 { font-size: 30px; }
}
@media (max-width: 650px) {
  #museum-app .bound-volume,
  #museum-app [dir="rtl"] .bound-volume { padding: 13px 13px 18px 22px; }
  #museum-app .volume-interior { display: flex; flex-direction: column; }
  #museum-app .sector-index {
    position: static;
    width: 100%;
    padding: 0 0 0 0;
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3px;
  }
  #museum-app .sector-tab {
    width: auto;
    min-height: 44px;
    padding: 7px 10px;
    border: 1px solid #c0a67d;
    border-radius: 3px 3px 0 0;
    box-shadow: none;
    flex: 1 1 27%;
    font-size: 12px;
  }
  #museum-app [dir="rtl"] .sector-tab { border-radius: 3px 3px 0 0; }
  #museum-app .tab-count { font-size: 11px; }
  #museum-app .sector-tab[aria-pressed="true"] { box-shadow: none; }
  #museum-app .paper-stack { width: 100%; }
  #museum-app .catalogue-leaf,
  #museum-app [dir="rtl"] .catalogue-leaf { padding: 14px 17px 14px 19px; }
  #museum-app .catalogue-controls { grid-template-columns: minmax(0, 1fr) 130px; }
  #museum-app .specimen-grid { gap: 20px 18px; }
  #museum-app input,
  #museum-app select { font-size: 16px; min-height: 44px; }
  #museum-app .search-button { min-height: 44px; }
  #museum-app .text-control { min-height: 44px; }
}
@media (max-width: 460px) {
  #museum-app .museum-stage { padding-inline: 4px; }
  #museum-app .bound-volume,
  #museum-app [dir="rtl"] .bound-volume { padding: 10px 10px 17px 16px; }
  #museum-app .bound-volume::before { inset-inline-start: 5px; width: 7px; }
  #museum-app .catalogue-leaf,
  #museum-app [dir="rtl"] .catalogue-leaf { padding: 11px 12px 13px 14px; }
  #museum-app .masthead-top { font-size: 11px; gap: 4px; }
  #museum-app .museum-imprint { font-size: 11px; letter-spacing: 1px; }
  #museum-app h1 { font-size: 29px; }
  #museum-app .arabic-title { font-size: 21px; }
  #museum-app .museum-intro { font-size: 12px; }
  #museum-app .catalogue-controls { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  #museum-app .era-field { display: grid; grid-template-columns: 45px minmax(0, 1fr); align-items: center; gap: 8px; }
  #museum-app .era-field .field-label { margin: 0; }
  #museum-app .specimen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  #museum-app .collection-heading { align-items: start; }
  #museum-app h2 { font-size: 18px; }
  #museum-app .sector-tab { padding: 7px 8px; flex-basis: 43%; }
  #museum-app .sector-tab:first-child { flex-basis: 100%; }
  #museum-app .mark-note { font-size: 8px; letter-spacing: .5px; }
  #museum-app .specimen-name { font-size: 13px; }
  #museum-app .specimen-date { font-size: 11px; }
}
