/* Jondishapour Museum of Trade History — design system
   Palette from the museum mark: bronze gold calligraphy + turquoise frame, set on warm ivory and the deep black of the object photography. */
:root {
  color-scheme: light;
  --ink: #0c0b09;
  --ink-2: #171512;
  --ink-3: #24211c;
  --paper: #f5f1e9;
  --paper-2: #ece5d7;
  --paper-3: #e2d8c5;
  --text: #1d1a16;
  --muted: #5f574b;
  --line: rgba(29, 26, 22, .14);
  --line-strong: rgba(29, 26, 22, .28);
  --gold: #9b7c3c;
  --gold-ink: #7a5d24;
  --gold-light: #cdae6a;
  --teal: #0a8aa3;
  --teal-ink: #07697c;
  --on-dark: #f3eee4;
  --on-dark-muted: #b8ae9c;
  --line-dark: rgba(243, 238, 228, .16);

  --font-display: "Doran", "Samir", Tahoma, serif;
  --font-latin: "Instrument Sans", "Samir", "Segoe UI", sans-serif;
  --font-body: "Samir", "Instrument Sans", Tahoma, "Segoe UI", sans-serif;

  --text-xs: .8125rem;
  --text-sm: .9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.15rem, 1rem + .5vw, 1.35rem);
  --text-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  --text-2xl: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem);
  --text-hero: clamp(2.8rem, 1.6rem + 5vw, 6rem);

  --gutter: clamp(1.1rem, 3.5vw, 3rem);
  --maxw: 1320px;
  --head-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r-sm: 2px;
  --r-md: 4px;
}
#app[lang="en"] { --font-body: "Instrument Sans", "Samir", "Segoe UI", sans-serif; --font-display: "Newsreader", "Doran", Georgia, serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
html[lang="fa"] { font-size: 106.25%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.9; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
#app[lang="en"] { line-height: 1.6; font-family: var(--font-body); }
#app { font-family: var(--font-body); }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--teal-ink); text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.on-dark :focus-visible, .dark :focus-visible { outline-color: var(--gold-light); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -.005em; }
#app[lang="en"] .display { letter-spacing: -.015em; }

/* ---------- skip link ---------- */
.skip { position: fixed; inset-inline-start: 12px; top: -80px; z-index: 200; background: var(--ink); color: var(--on-dark); padding: 10px 16px; text-decoration: none; font-size: var(--text-sm); }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.util { background: var(--ink); color: var(--on-dark-muted); font-size: var(--text-xs); }
.util .wrap { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.util .today { display: flex; align-items: center; gap: 8px; margin-inline-end: auto; }
.util .today b { color: var(--on-dark); font-weight: 500; }
.util .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); }
.util a, .util button { color: var(--on-dark-muted); text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: var(--text-xs); }
.util a:hover, .util button:hover { color: var(--on-dark); }
.util .lang { display: flex; gap: 2px; }
.util .lang button { padding: 4px 8px; min-height: 28px; }
.util .lang button[aria-pressed="true"] { color: var(--ink); background: var(--gold-light); }

.head { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); transition: background .35s var(--ease), border-color .35s, color .35s; }
.head .wrap { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.25; }
.brand .bt b { font-size: 15px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.brand .bt small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--font-latin); white-space: nowrap; direction: ltr; text-align: start; }
#app[lang="en"] .brand .bt b { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.nav { display: flex; align-items: stretch; height: 100%; margin-inline-start: auto; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav > ul > li { display: flex; }
.nav-top { display: flex; align-items: center; padding-inline: clamp(8px, 1vw, 14px); background: none; border: 0; cursor: pointer; font-size: var(--text-sm); font-weight: 500; color: inherit; text-decoration: none; position: relative; white-space: nowrap; }
.nav-top::after { content: ""; position: absolute; inset-inline: clamp(8px, 1vw, 14px); bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-top:hover::after, .nav-top[aria-expanded="true"]::after, .nav-top.current::after { transform: scaleX(1); }
.head-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 0; cursor: pointer; color: inherit; border-radius: var(--r-md); }
.icon-btn:hover { background: rgba(0, 0, 0, .06); }
.icon-btn svg { width: 22px; height: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-sm); font-size: var(--text-sm); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.btn .ar { transition: transform .3s var(--ease); }
.btn:hover .ar { transform: translateX(-4px); }
#app[lang="en"] .btn:hover .ar { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: var(--teal-ink); }
.btn-gold { background: var(--gold-light); color: var(--ink); }
.btn-gold:hover { background: var(--on-dark); }
.btn-line { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--text); }
.btn-line-light { border-color: rgba(243, 238, 228, .45); color: var(--on-dark); background: transparent; }
.btn-line-light:hover { border-color: var(--on-dark); background: rgba(243, 238, 228, .08); }
.menu-btn { display: none; }

/* transparent header over home hero */
.is-home .head:not(.solid) { background: transparent; border-color: transparent; color: var(--on-dark); }
.is-home .head:not(.solid) .brand .bt small { color: var(--on-dark-muted); }
.is-home .head:not(.solid) .icon-btn:hover { background: rgba(255, 255, 255, .1); }
.is-home .head:not(.solid) .btn-dark { background: var(--gold-light); color: var(--ink); }
.is-home .head { position: fixed; inset-inline: 0; top: 36px; }
.is-home .head.solid { top: 0; }


/* mega menu */
.mega { position: absolute; inset-inline: 0; top: 100%; background: var(--paper); color: var(--text); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(20, 15, 5, .35); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.mega.open { opacity: 1; visibility: visible; transform: none; }
.mega .wrap { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 48px; padding-block: 36px 44px; height: auto; align-items: start; }
.mega h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; grid-column: 1 / -1; display: none; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.mega li a b { font-weight: 600; font-size: var(--text-base); }
.mega li a small { color: var(--muted); font-size: var(--text-xs); }
.mega li a:hover b { color: var(--teal-ink); }
.mega .feat { display: block; text-decoration: none; color: var(--text); }
.mega .feat .im { aspect-ratio: 16/10; background: var(--ink); overflow: hidden; }
.mega .feat img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mega .feat:hover img { transform: scale(1.04); }
.mega .feat p { margin-top: 10px; font-size: var(--text-sm); }
.mega .feat p b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .head-actions .btn { display: none; }
  .head-actions { margin-inline-start: auto; }
}
@media (max-width: 520px) { .brand .bt small { display: none; } .brand .bt b { font-size: 14px; } .brand img { width: 40px; height: 40px; } .util .hide-s { display: none; } }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 150; background: var(--paper); overflow-y: auto; display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 1; }
.drawer nav { padding: 8px var(--gutter) 40px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; cursor: pointer; line-height: 1.2; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 1.6rem; color: var(--gold); }
.drawer details[open] summary::after { content: "−"; }
.drawer details ul { list-style: none; margin: 0 0 16px; padding: 0; }
.drawer details li a { display: block; padding: 10px 0; color: var(--text); text-decoration: none; font-size: var(--text-base); }
.drawer .drawer-cta { display: grid; gap: 10px; margin-top: 28px; }

/* ---------- generic page head ---------- */
main { display: block; min-height: 70vh; }
main:focus { outline: none; }
.crumbs { font-size: var(--text-xs); color: var(--muted); padding-top: 28px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.phead { padding-block: clamp(20px, 3vw, 36px) clamp(32px, 5vw, 56px); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: var(--text-xs); font-weight: 600; color: var(--gold-ink); letter-spacing: .02em; }
#app[lang="en"] .kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.dark .kicker, .on-dark .kicker, .hero .kicker { color: var(--gold-light); }
.phead h1 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; margin-top: 12px; max-width: 22ch; }
.phead .lede { margin-top: 16px; max-width: 62ch; color: var(--muted); font-size: var(--text-lg); line-height: 1.8; }
#app[lang="en"] .phead .lede { line-height: 1.55; }
.phead-img { position: relative; height: clamp(260px, 42vw, 520px); background: var(--ink); overflow: hidden; }
.phead-img img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }

/* sections */
.sec { padding-block: clamp(56px, 8vw, 120px); }
.sec.tight { padding-block: clamp(40px, 5vw, 72px); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; margin-top: 10px; max-width: 24ch; }
.sec-head p { color: var(--muted); max-width: 56ch; margin-top: 10px; }
.dark .sec-head p, .on-dark .sec-head p { color: var(--on-dark-muted); }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--text-sm); color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; white-space: nowrap; }
.link-more:hover { border-color: currentColor; }
.dark .link-more, .on-dark .link-more { color: var(--on-dark); border-color: var(--line-dark); }
.dark .link-more:hover { border-color: var(--on-dark); }
.dark { background: var(--ink); color: var(--on-dark); }
.dark h2, .dark h3 { color: var(--on-dark); }
.alt { background: var(--paper-2); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- HOME hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--on-dark); background: var(--ink); overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slides figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slides figure.on { opacity: 1; }
.hero-slides img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 9s linear; }
.hero-slides figure.on img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 7, 5, .92) 0%, rgba(8, 7, 5, .55) 38%, rgba(8, 7, 5, .1) 70%, rgba(8, 7, 5, .45) 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(32px, 6vh, 72px); padding-top: 160px; }
.hero h1 { font-family: var(--font-display); font-size: var(--text-hero); font-weight: 600; line-height: 1.08; max-width: 14ch; margin-top: 18px; color: var(--on-dark); }
#app[lang="en"] .hero h1 { line-height: 1; max-width: 16ch; }
.hero .lede { margin-top: 22px; max-width: 54ch; font-size: var(--text-lg); color: rgba(243, 238, 228, .86); line-height: 1.8; }
#app[lang="en"] .hero .lede { line-height: 1.5; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: clamp(40px, 7vh, 88px); padding-top: 18px; border-top: 1px solid var(--line-dark); font-size: var(--text-xs); color: var(--on-dark-muted); }
.hero-foot .cap b { color: var(--on-dark); font-weight: 500; }
.hero-ctl { display: flex; align-items: center; gap: 12px; }
.hero-ctl .bars { display: flex; gap: 6px; }
.hero-ctl .bars button { width: 28px; height: 24px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.hero-ctl .bars button::before { content: ""; position: absolute; inset-inline: 0; top: 11px; height: 2px; background: rgba(243, 238, 228, .3); }
.hero-ctl .bars button[aria-current="true"]::before { background: var(--gold-light); }
.hero-ctl .pp { width: 36px; height: 36px; border: 1px solid var(--line-dark); background: none; border-radius: 50%; color: var(--on-dark); cursor: pointer; display: grid; place-items: center; }
.hero-ctl .pp svg { width: 14px; height: 14px; }

/* visit strip */
.visitbar { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.visitbar .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vb { padding: 24px 24px 24px 0; border-inline-start: 1px solid var(--line); padding-inline: 24px; min-width: 0; }
.vb:first-child { border-inline-start: 0; padding-inline-start: 0; }
.vb .k { font-size: var(--text-xs); color: var(--gold-ink); font-weight: 600; }
.vb .v { font-weight: 600; margin-top: 4px; line-height: 1.5; }
.vb .s { font-size: var(--text-xs); color: var(--muted); margin-top: 2px; line-height: 1.6; }
.vb a { color: inherit; }
@media (max-width: 900px) { .visitbar .wrap { grid-template-columns: 1fr 1fr; } .vb:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } .vb:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .visitbar .wrap { grid-template-columns: 1fr; } .vb { border-inline-start: 0 !important; padding-inline: 0 !important; border-top: 1px solid var(--line); padding-block: 18px; } .vb:first-child { border-top: 0; } }

/* intro statement */
.statement { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }
.statement .body p { font-size: var(--text-lg); line-height: 1.85; }
#app[lang="en"] .statement .body p { line-height: 1.55; }
.statement .body p + p { margin-top: 18px; color: var(--muted); font-size: var(--text-base); }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 1px solid var(--line); }
.figures div { padding: 20px 16px 0 0; padding-inline: 0 16px; }
.figures b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); font-weight: 600; line-height: 1; color: var(--text); }
.figures span { display: block; margin-top: 8px; font-size: var(--text-xs); color: var(--muted); line-height: 1.6; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } .figures { grid-template-columns: 1fr 1fr; row-gap: 24px; } }

/* highlights rail */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 26vw, 360px); gap: clamp(14px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.rail > * { scroll-snap-align: start; }
.rail-ctl { display: flex; gap: 8px; }
.rail-ctl button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark); background: none; color: var(--on-dark); cursor: pointer; display: grid; place-items: center; }
.rail-ctl button:hover { border-color: var(--on-dark); }
.rail-ctl svg { width: 18px; height: 18px; }
[dir="rtl"] .rail-ctl svg { transform: scaleX(-1); }

/* object card */
.ocard { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.ocard .im { aspect-ratio: 1/1; background: #050505; overflow: hidden; position: relative; }
.ocard .im img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ocard:hover .im img { transform: scale(1.045); }
.ocard .reg { position: absolute; top: 12px; inset-inline-start: 12px; font-size: 11px; background: rgba(12, 11, 9, .7); color: var(--gold-light); padding: 3px 9px; border: 1px solid rgba(205, 174, 106, .4); backdrop-filter: blur(4px); line-height: 1.6; }
.ocard .meta { padding-top: 14px; }
.ocard h3 { font-size: var(--text-base); font-weight: 600; line-height: 1.55; }
#app[lang="en"] .ocard h3 { line-height: 1.35; }
.ocard .per { font-size: var(--text-xs); color: var(--muted); margin-top: 4px; }
.ocard .no { font-size: 11.5px; color: var(--muted); margin-top: 6px; font-family: var(--font-latin); letter-spacing: .04em; direction: ltr; text-align: start; unicode-bidi: isolate; }
[dir="rtl"] .ocard .no { text-align: right; }
.dark .ocard .per, .dark .ocard .no { color: var(--on-dark-muted); }
.ocard:hover h3 { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }

/* materials mosaic */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(160px, 18vw, 250px); gap: clamp(10px, 1.4vw, 18px); }
.tile { position: relative; overflow: hidden; background: #050505; text-decoration: none; color: var(--on-dark); display: flex; align-items: flex-end; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s; opacity: .92; }
.tile:hover img { transform: scale(1.05); opacity: 1; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 5, 5, .85), rgba(5, 5, 5, 0) 55%); }
.tile .tx { position: relative; z-index: 1; padding: clamp(16px, 2vw, 26px); width: 100%; }
.tile b { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); font-weight: 600; line-height: 1.15; }
.tile span { display: block; font-size: var(--text-xs); color: var(--on-dark-muted); margin-top: 6px; max-width: 36ch; line-height: 1.6; }
.tile em { font-style: normal; position: absolute; top: clamp(14px, 1.6vw, 22px); inset-inline-end: clamp(14px, 1.6vw, 22px); z-index: 1; font-size: var(--text-xs); color: var(--gold-light); }
.mosaic .tile { grid-column: span 3; }
.mosaic .t1 { grid-row: span 2; }
@media (max-width: 860px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; } .mosaic .tile { grid-column: span 1 !important; grid-row: span 1 !important; } .mosaic .t1 { grid-column: span 2 !important; grid-row: span 2 !important; } }

/* timeline (home + page) */
.tl-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); position: relative; }
.tl-tabs button { background: none; border: 0; color: var(--on-dark-muted); text-align: start; padding: 18px 12px 18px 0; padding-inline: 0 12px; cursor: pointer; position: relative; font-size: var(--text-sm); line-height: 1.5; }
.tl-tabs button::before { content: ""; position: absolute; top: -1px; inset-inline: 0 12px; height: 2px; background: transparent; transition: background .3s; }
.tl-tabs button .n { display: block; font-family: var(--font-latin); font-size: 11px; letter-spacing: .14em; color: var(--gold); margin-bottom: 6px; }
.tl-tabs button[aria-selected="true"] { color: var(--on-dark); }
.tl-tabs button[aria-selected="true"]::before { background: var(--gold-light); }
.tl-tabs button:hover { color: var(--on-dark); }
.tl-panel { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 4vw, 64px); margin-top: clamp(28px, 4vw, 48px); align-items: start; }
.tl-panel > div > h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }
.tl-panel > div > p { color: var(--on-dark-muted); margin-top: 12px; }
.tl-panel .cnt { margin-top: 18px; font-size: var(--text-xs); color: var(--gold-light); }
.tl-objs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .tl-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 150px; overflow-x: auto; } .tl-panel { grid-template-columns: 1fr; } .tl-objs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* feature split (exhibition / research) */
.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.rev { grid-template-columns: 5fr 7fr; }
.split.rev > :first-child { order: 2; }
.split .im { background: var(--ink); overflow: hidden; aspect-ratio: 4/5; }
.split .im.wide { aspect-ratio: 4/3; }
.split .im img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; margin-top: 12px; }
.split h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; margin-top: 12px; }
.split p { margin-top: 16px; color: var(--muted); }
.split .when { margin-top: 18px; font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.split .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } .split .im { aspect-ratio: 4/3; } }

/* list rows (exhibitions, papers) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; padding-block: 22px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.row .y { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-ink); line-height: 1; }
.row h3 { font-size: var(--text-lg); font-weight: 600; }
.row p { font-size: var(--text-sm); color: var(--muted); margin-top: 4px; }
.row .go { color: var(--muted); transition: transform .3s var(--ease); }
a.row:hover h3 { color: var(--teal-ink); }
a.row:hover .go { transform: translateX(-6px); color: var(--text); }
#app[lang="en"] a.row:hover .go { transform: translateX(6px); }
@media (max-width: 640px) { .row { grid-template-columns: 1fr auto; } .row .y { grid-column: 1 / -1; font-size: 1.3rem; } }

/* news cards */
.news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(18px, 2.4vw, 32px); }
.ncard { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.ncard .im { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-3); }
.ncard .im img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ncard:hover .im img { transform: scale(1.04); }
.ncard .m { display: flex; gap: 10px; font-size: var(--text-xs); color: var(--muted); margin-top: 14px; flex-wrap: wrap; }
.ncard .m .c { color: var(--gold-ink); font-weight: 600; }
.ncard h3 { font-size: var(--text-base); font-weight: 600; margin-top: 6px; line-height: 1.6; }
#app[lang="en"] .ncard h3 { line-height: 1.4; }
.ncard.big h3 { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.25; }
.ncard.big .im { aspect-ratio: 16/10; }
.ncard p { font-size: var(--text-sm); color: var(--muted); margin-top: 8px; }
.ncard:hover h3 { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.news-grid > .ncard:not(.big) .im { aspect-ratio: 1/1; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } .news-grid .big { grid-column: 1 / -1; } }
@media (max-width: 520px) { .news-grid { grid-template-columns: 1fr; } }

/* ICOM band */
.icom { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.icom blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 1.05rem + 1.3vw, 2.15rem); line-height: 1.55; font-weight: 500; color: var(--on-dark); }
#app[lang="en"] .icom blockquote { line-height: 1.3; }
.icom cite { display: block; margin-top: 20px; font-style: normal; font-size: var(--text-xs); color: var(--on-dark-muted); }
.icom .side p { color: var(--on-dark-muted); }
.icom .side ul { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line-dark); }
.icom .side li a { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); text-decoration: none; font-weight: 500; }
.icom .side li a:hover { color: var(--gold-light); }
.badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.badges img { width: 64px; height: 64px; object-fit: contain; background: var(--on-dark); border-radius: 50%; padding: 4px; }
@media (max-width: 860px) { .icom { grid-template-columns: 1fr; } }

/* directory (all sections) */
.dirgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.dirgrid h3 { font-size: var(--text-xs); color: var(--gold-ink); font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid var(--text); }
#app[lang="en"] .dirgrid h3 { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; }
.dirgrid ul { list-style: none; margin: 0; padding: 0; }
.dirgrid li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.dirgrid li a b { display: block; font-weight: 600; }
.dirgrid li a small { color: var(--muted); font-size: var(--text-xs); }
.dirgrid li a:hover b { color: var(--teal-ink); }
@media (max-width: 900px) { .dirgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dirgrid { grid-template-columns: 1fr; } }

/* ---------- COLLECTION search ---------- */
.csearch { background: var(--ink); color: var(--on-dark); padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 44px); }
.csearch h1 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; color: var(--on-dark); margin-top: 10px; }
.csearch .lede { color: var(--on-dark-muted); max-width: 60ch; margin-top: 12px; }
.sbox { display: flex; margin-top: 28px; border-bottom: 1px solid rgba(243, 238, 228, .5); }
.sbox input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--on-dark); font: inherit; font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem); padding: 14px 0; outline: none; }
.sbox input::placeholder { color: rgba(243, 238, 228, .45); }
.sbox:focus-within { border-color: var(--gold-light); }
.sbox button { background: none; border: 0; color: var(--on-dark); cursor: pointer; width: 52px; display: grid; place-items: center; }
.sbox svg { width: 24px; height: 24px; }
.facets { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; align-items: center; }
.facets .grp { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.facets .lbl { font-size: var(--text-xs); color: var(--on-dark-muted); margin-inline-end: 6px; }
.chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--line-dark); border-radius: 999px; background: transparent; color: var(--on-dark); font-size: var(--text-xs); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--on-dark); }
.chip[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.chip em { font-style: normal; opacity: .6; font-size: 11px; }
.light .chip { border-color: var(--line-strong); color: var(--text); }
.light .chip:hover { border-color: var(--text); }
.light .chip[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.selectwrap { position: relative; }
.selectwrap select { appearance: none; min-height: 36px; padding: 0 34px 0 14px; padding-inline: 14px 34px; border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark); border-radius: 999px; font: inherit; font-size: var(--text-xs); cursor: pointer; }
.selectwrap select option { color: var(--text); }
.selectwrap::after { content: ""; position: absolute; inset-inline-end: 14px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.toolbar .count { font-size: var(--text-sm); color: var(--muted); }
.toolbar .count b { color: var(--text); }
.viewsw { display: flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.viewsw button { min-height: 38px; padding: 0 12px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); color: var(--muted); }
.viewsw button[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); }
.viewsw svg { width: 16px; height: 16px; }
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(20px, 2.6vw, 36px) clamp(14px, 2vw, 24px); }
.olist { border-top: 1px solid var(--line); }
.olist a { display: grid; grid-template-columns: 88px 1.6fr 1fr 1fr 140px; gap: 20px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; font-size: var(--text-sm); }
.olist a img { width: 88px; height: 88px; object-fit: cover; background: #050505; }
.olist a b { font-weight: 600; font-size: var(--text-base); }
.olist a .no { font-family: var(--font-latin); font-size: 12px; color: var(--muted); direction: ltr; unicode-bidi: isolate; }
.olist a span { color: var(--muted); }
.olist a:hover b { color: var(--teal-ink); }
@media (max-width: 760px) { .olist a { grid-template-columns: 72px 1fr; } .olist a img { width: 72px; height: 72px; } .olist a .hm { display: none; } }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); }
.empty b { display: block; color: var(--text); font-size: var(--text-lg); margin-bottom: 6px; }

/* ---------- OBJECT page ---------- */
.obj-stage { background: #050505; color: var(--on-dark); }
.obj-stage .wrap { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 20px 28px; }
.obj-view { position: relative; height: min(78vh, 820px); min-height: 360px; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.obj-view img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform .45s var(--ease); transform-origin: center; user-select: none; -webkit-user-drag: none; }
.obj-view.zoomed { cursor: grab; }
.obj-view.zoomed img { transform: scale(2.4); transition: transform .45s var(--ease), transform-origin 0s; }
.obj-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line-dark); font-size: var(--text-xs); color: var(--on-dark-muted); flex-wrap: wrap; }
.obj-tools .t { display: flex; gap: 6px; }
.obj-tools button, .obj-tools a { min-height: 38px; padding: 0 14px; border: 1px solid var(--line-dark); background: none; color: var(--on-dark); border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-xs); text-decoration: none; }
.obj-tools button:hover, .obj-tools a:hover { border-color: var(--on-dark); }
.obj-tools svg { width: 15px; height: 15px; }
.obj-body { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.obj-body h1 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; margin-top: 12px; }
.obj-body .sub { color: var(--muted); margin-top: 8px; font-size: var(--text-lg); }
.obj-body .desc { margin-top: 26px; font-size: var(--text-lg); line-height: 1.85; max-width: 60ch; }
#app[lang="en"] .obj-body .desc { line-height: 1.55; }
.regbadge { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 14px; border: 1px solid var(--gold); color: var(--gold-ink); font-size: var(--text-xs); font-weight: 600; }
.regbadge svg { width: 18px; height: 18px; }
.interp { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.interp h2 { font-size: var(--text-xs); color: var(--gold-ink); font-weight: 600; }
.interp p.q { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem); line-height: 1.5; margin-top: 8px; }
#app[lang="en"] .interp p.q { line-height: 1.3; }
.interp small { display: block; color: var(--muted); font-size: var(--text-xs); margin-top: 10px; }
.facts h2 { font-size: var(--text-xs); font-weight: 600; color: var(--gold-ink); padding-bottom: 10px; border-bottom: 1px solid var(--text); }
#app[lang="en"] .facts h2, #app[lang="en"] .interp h2 { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; }
.facts dl { margin: 0; }
.facts dl div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.facts dd a { color: var(--teal-ink); }
.facts .cite { margin-top: 28px; }
.facts .cite p { font-size: var(--text-sm); background: var(--paper-2); padding: 16px; line-height: 1.7; margin-top: 12px; }
.facts .cite button { margin-top: 10px; }
.obj-nav { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; border-top: 1px solid var(--line); }
.obj-nav a { display: flex; flex-direction: column; text-decoration: none; color: var(--text); max-width: 46%; }
.obj-nav a small { color: var(--muted); font-size: var(--text-xs); }
.obj-nav a b { font-weight: 600; }
.obj-nav a:last-child { text-align: end; margin-inline-start: auto; }
@media (max-width: 860px) { .obj-body { grid-template-columns: 1fr; } .obj-view { height: 60vh; } }

/* ---------- TIMELINE page ---------- */
.era { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 80px); padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.era .side { position: sticky; top: calc(var(--head-h) + 24px); align-self: start; }
.era .num { font-family: var(--font-latin); font-size: 12px; letter-spacing: .16em; color: var(--gold-ink); }
.era h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; margin-top: 10px; }
.era p { color: var(--muted); margin-top: 10px; }
.era .ogrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.era-nav { position: sticky; top: var(--head-h); z-index: 20; background: rgba(245, 241, 233, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.era-nav ol { list-style: none; display: flex; gap: 4px; overflow-x: auto; margin: 0; padding: 10px 0; scrollbar-width: none; }
.era-nav a { display: block; white-space: nowrap; padding: 6px 12px; font-size: var(--text-xs); color: var(--muted); text-decoration: none; border-radius: 999px; }
.era-nav a:hover, .era-nav a.on { color: var(--on-dark); background: var(--ink); }
@media (max-width: 860px) { .era { grid-template-columns: 1fr; } .era .side { position: static; } }

/* ---------- media grids ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pgrid.masonry { display: block; columns: 4 240px; column-gap: 12px; }
.pgrid.masonry > * { break-inside: avoid; margin-bottom: 12px; }
.pbtn { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-3); cursor: zoom-in; overflow: hidden; position: relative; }
.pbtn img { width: 100%; height: auto; transition: transform .8s var(--ease), opacity .3s; }
.pgrid:not(.masonry) .pbtn { aspect-ratio: 1/1; }
.pgrid:not(.masonry) .pbtn img { height: 100%; object-fit: cover; }
.pbtn:hover img { transform: scale(1.04); }
.pbtn figcaption, .pbtn .cap { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 12px 10px; font-size: var(--text-xs); color: var(--on-dark); background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent); text-align: start; opacity: 0; transition: opacity .3s; }
.pbtn:hover .cap, .pbtn:focus-visible .cap { opacity: 1; }

/* frames */
.frame { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 64px); padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.frame h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }
.frame .en { color: var(--muted); font-size: var(--text-sm); margin-top: 6px; }
.frame .strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 30%); gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.frame .strip .pbtn { aspect-ratio: 3/4; scroll-snap-align: start; }
.frame .strip .pbtn img { height: 100%; object-fit: cover; }
@media (max-width: 860px) { .frame { grid-template-columns: 1fr; } .frame .strip { grid-auto-columns: 62%; } }

/* films */
.films { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.film { text-decoration: none; color: inherit; background: none; border: 0; padding: 0; text-align: start; cursor: pointer; }
.film .im { position: relative; aspect-ratio: 1/1; background: var(--ink); overflow: hidden; }
.film .im img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.film:hover .im img { transform: scale(1.04); }
.film .play { position: absolute; inset: 0; display: grid; place-items: center; }
.film .play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(12, 11, 9, .6); border: 1px solid rgba(243, 238, 228, .6); display: grid; place-items: center; color: var(--on-dark); backdrop-filter: blur(4px); transition: background .3s; }
.film:hover .play span { background: var(--gold); }
.film .play svg { width: 20px; height: 20px; margin-inline-start: 3px; }
[dir="rtl"] .film .play svg { margin-inline-start: 0; margin-inline-end: 3px; transform: scaleX(1); }
.film .k { display: block; font-size: var(--text-xs); color: var(--gold-ink); font-weight: 600; margin-top: 14px; }
.film h3 { font-size: var(--text-lg); font-weight: 600; margin-top: 4px; }
@media (max-width: 860px) { .films { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .films { grid-template-columns: 1fr; } }

/* research papers */
.paper { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 64px); padding-block: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.paper .im { background: var(--paper-3); aspect-ratio: 4/5; overflow: hidden; }
.paper .im img { width: 100%; height: 100%; object-fit: cover; }
.paper .tag { font-size: var(--text-xs); color: var(--gold-ink); font-weight: 600; }
.paper h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; margin-top: 8px; }
.paper .en { color: var(--muted); font-size: var(--text-sm); margin-top: 8px; font-style: italic; }
.paper dl { margin: 22px 0 0; border-top: 1px solid var(--line); }
.paper dl div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: var(--text-sm); }
.paper dt { color: var(--muted); }
.paper dd { margin: 0; }
.paper p.abs { margin-top: 20px; max-width: 64ch; }
.paper .kw { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.paper .kw span { font-size: 12px; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; direction: ltr; }
@media (max-width: 760px) { .paper { grid-template-columns: 1fr; } .paper .im { aspect-ratio: 16/10; } }

/* library */
.lib-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.lib-stats { display: flex; gap: 40px; }
.lib-stats b { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.lib-stats span { font-size: var(--text-xs); color: var(--muted); }
.lib-form { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-top: 32px; }
.field label { display: block; font-size: var(--text-xs); color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field select { width: 100%; min-height: 50px; border: 1px solid var(--line-strong); background: #fffdf8; border-radius: var(--r-sm); padding: 0 14px; font: inherit; color: var(--text); }
.field input:focus, .field select:focus { border-color: var(--teal-ink); outline: none; box-shadow: 0 0 0 3px rgba(10, 138, 163, .15); }
.tbl-wrap { overflow-x: auto; margin-top: 20px; border-top: 2px solid var(--text); }
table.lib { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 820px; }
table.lib th { text-align: start; font-size: var(--text-xs); color: var(--muted); font-weight: 600; padding: 12px 12px 12px 0; padding-inline: 0 16px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.lib td { padding: 14px 16px 14px 0; padding-inline: 0 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
table.lib td.t { font-weight: 600; }
table.lib td small { display: block; color: var(--muted); font-size: 12px; }
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.pager button { min-width: 44px; height: 44px; border: 1px solid var(--line-strong); background: none; cursor: pointer; border-radius: var(--r-sm); font-size: var(--text-sm); }
.pager button[aria-current="page"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.pager button:disabled { opacity: .35; cursor: default; }
.pager .gap { padding: 0 4px; color: var(--muted); }
@media (max-width: 640px) { .lib-head { grid-template-columns: 1fr; } .lib-form { grid-template-columns: 1fr; } }

/* awards */
.award { display: grid; grid-template-columns: 140px 1fr; gap: clamp(20px, 4vw, 56px); padding-block: 36px; border-top: 1px solid var(--line); }
.award .y { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--gold-ink); }
.award .by { font-size: var(--text-xs); color: var(--muted); font-weight: 600; }
.award h2 { font-size: var(--text-lg); font-weight: 600; margin-top: 4px; }
.award p { color: var(--muted); margin-top: 6px; font-size: var(--text-sm); }
.award .pgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-top: 18px; max-width: 760px; }
.award .pgrid .pbtn { background: var(--paper-2); }
.award .pgrid .pbtn img { object-fit: contain; padding: 8px; }
@media (max-width: 640px) { .award { grid-template-columns: 1fr; gap: 12px; } }

/* shop */
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(20px, 2.6vw, 36px) clamp(14px, 2vw, 24px); }
.prod .im { aspect-ratio: 1/1; background: #fff; overflow: hidden; border: 1px solid var(--line); }
.prod .im img { width: 100%; height: 100%; object-fit: contain; }
.prod h3 { font-size: var(--text-base); font-weight: 600; margin-top: 12px; }
.prod .en { font-size: var(--text-xs); color: var(--muted); direction: ltr; text-align: start; font-family: var(--font-latin); }
.prod .btn { margin-top: 12px; width: 100%; min-height: 42px; }

/* visit page */
.visit-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); }
.vblock { padding-block: 28px; border-top: 1px solid var(--line); }
.vblock h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }
.vblock p, .vblock li { color: var(--muted); }
.vblock p + p { margin-top: 10px; }
.vblock ul { padding-inline-start: 1.2em; margin: 12px 0 0; }
.vblock li { margin-block: 6px; }
.vcard { background: var(--ink); color: var(--on-dark); padding: clamp(24px, 3vw, 36px); position: sticky; top: calc(var(--head-h) + 24px); }
.vcard h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--on-dark); }
.vcard dl { margin: 18px 0 0; }
.vcard dl div { padding-block: 14px; border-top: 1px solid var(--line-dark); }
.vcard dt { font-size: var(--text-xs); color: var(--gold-light); font-weight: 600; }
.vcard dd { margin: 4px 0 0; }
.vcard a { color: var(--on-dark); }
.vcard .btn { width: 100%; margin-top: 18px; }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } .vcard { position: static; } }

/* about */
.mission { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.mission div { padding-block: 24px; border-top: 1px solid var(--line); }
.mission .n { font-family: var(--font-latin); font-size: 12px; letter-spacing: .16em; color: var(--gold-ink); }
.mission h3 { font-size: var(--text-lg); font-weight: 600; margin-top: 6px; }
.mission p { color: var(--muted); margin-top: 6px; }
@media (max-width: 640px) { .mission { grid-template-columns: 1fr; } }
.chron { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.chron li { padding: 24px 24px 0 0; padding-inline: 0 24px; position: relative; }
.chron li::before { content: ""; position: absolute; top: -5px; inset-inline-start: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-light); }
.chron b { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; font-weight: 600; color: var(--gold-light); }
.chron h3 { font-size: var(--text-base); font-weight: 600; margin-top: 12px; }
.chron p { color: var(--on-dark-muted); font-size: var(--text-sm); margin-top: 4px; }
@media (max-width: 760px) { .chron { grid-template-columns: 1fr 1fr; row-gap: 28px; } }
.pull { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.5; font-weight: 500; max-width: 30ch; }
#app[lang="en"] .pull { line-height: 1.25; }

/* standards page */
.std-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 5vw, 80px); }
.toc { position: sticky; top: calc(var(--head-h) + 24px); align-self: start; }
.toc h2 { font-size: var(--text-xs); color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--line); }
.toc a { display: block; padding: 8px 16px; color: var(--muted); text-decoration: none; font-size: var(--text-sm); margin-inline-start: -1px; border-inline-start: 2px solid transparent; }
.toc a:hover, .toc a.on { color: var(--text); border-color: var(--gold); }
.std { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.std h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }
.std p { margin-top: 14px; max-width: 66ch; }
.std .def { margin: 22px 0 0; padding: clamp(22px, 3vw, 36px); background: var(--ink); color: var(--on-dark); font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); line-height: 1.6; }
#app[lang="en"] .std .def { line-height: 1.35; }
.std .def footer { font-family: var(--font-body); font-size: var(--text-xs); color: var(--on-dark-muted); margin-top: 14px; }
.std .def footer a { color: var(--gold-light); }
.std .src { font-size: var(--text-xs); color: var(--muted); margin-top: 12px; }
@media (max-width: 860px) { .std-layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* exhibition page */
.exh-hero { position: relative; min-height: min(80vh, 760px); display: flex; align-items: flex-end; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.exh-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.exh-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 7, 5, .9), rgba(8, 7, 5, .1) 70%); }
.exh-hero .wrap { position: relative; z-index: 1; padding-block: 120px 56px; width: 100%; }
.exh-hero h1 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; color: var(--on-dark); margin-top: 14px; max-width: 20ch; }
.exh-hero .when { margin-top: 14px; color: var(--on-dark-muted); }

/* footer */
.foot { background: var(--ink); color: var(--on-dark-muted); padding-block: clamp(56px, 7vw, 96px) 28px; font-size: var(--text-sm); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); }
.foot .fbrand img { width: 64px; height: 64px; }
.foot .fbrand b { display: block; color: var(--on-dark); font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin-top: 14px; line-height: 1.25; }
.foot .fbrand p { margin-top: 12px; max-width: 34ch; }
.foot h2 { font-size: var(--text-xs); color: var(--gold-light); font-weight: 600; margin-bottom: 12px; }
#app[lang="en"] .foot h2 { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-block: 8px; }
.foot a { color: var(--on-dark); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.nl { display: flex; margin-top: 14px; border-bottom: 1px solid rgba(243, 238, 228, .4); }
.nl input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--on-dark); font: inherit; padding: 12px 0; outline: none; }
.nl input::placeholder { color: rgba(243, 238, 228, .45); }
.nl button { background: none; border: 0; color: var(--gold-light); cursor: pointer; font-weight: 600; padding-inline: 8px; min-height: 44px; }
.nl:focus-within { border-color: var(--gold-light); }
.nl-note { font-size: var(--text-xs); margin-top: 8px; min-height: 1.5em; }
.nl-note.err { color: #f0a8a0; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 72px); padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: var(--text-xs); }
.foot-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-bottom li { margin: 0; }
.foot .icomline { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.foot .icomline img { width: 44px; height: 44px; border-radius: 50%; background: var(--on-dark); padding: 3px; object-fit: contain; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; } }

/* search overlay */
.so { position: fixed; inset: 0; z-index: 160; background: rgba(12, 11, 9, .97); color: var(--on-dark); overflow-y: auto; }
.so .wrap { padding-block: 24px 56px; }
.so-top { display: flex; justify-content: flex-end; }
.so-top .icon-btn { color: var(--on-dark); }
.so label { display: block; font-family: var(--font-display); font-size: var(--text-xl); margin-top: 24px; color: var(--on-dark); }
.so .sbox input { font-size: clamp(1.3rem, 1rem + 2vw, 2.4rem); }
.so-res { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; }
.so-res h3 { grid-column: 1 / -1; font-size: var(--text-xs); color: var(--gold-light); margin: 22px 0 8px; font-weight: 600; }
.so-res a { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); text-decoration: none; }
.so-res a.noimg { grid-template-columns: 1fr; }
.so-res img { width: 56px; height: 56px; object-fit: cover; background: #050505; }
.so-res small { display: block; color: var(--on-dark-muted); font-size: var(--text-xs); }
.so-res a:hover b { color: var(--gold-light); }
.so-sugg { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 170; background: rgba(5, 5, 5, .97); color: var(--on-dark); display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); font-size: var(--text-xs); color: var(--on-dark-muted); }
.lb-top .icon-btn { color: var(--on-dark); }
.lb-stage { position: relative; display: grid; place-items: center; overflow: hidden; padding: 0 var(--gutter); min-height: 0; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter) 18px; }
.lb-bar .cap { font-size: var(--text-sm); }
.lb-bar .ctl { display: flex; gap: 8px; }
.lb-bar .ctl button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dark); background: none; color: var(--on-dark); cursor: pointer; display: grid; place-items: center; }
.lb-bar .ctl button:hover { border-color: var(--on-dark); }
.lb-bar svg { width: 18px; height: 18px; }
[dir="rtl"] .lb-bar .ctl svg { transform: scaleX(-1); }

/* toast */
.toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 180; background: var(--ink); color: var(--on-dark); padding: 12px 20px; font-size: var(--text-sm); border: 1px solid var(--line-dark); }
[dir="rtl"] .toast { transform: translateX(50%); }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* print */
@media print { .util, .head, .foot, .obj-tools, .obj-nav { display: none !important; } body { background: #fff; } }
.prod { display: flex; flex-direction: column; }
.prod .btn { margin-top: auto; }
.prod > p:last-of-type { margin-bottom: 12px; }

/* ---------- information architecture additions ---------- */
.lang-btn { font-family: var(--font-latin); font-size: 13px; font-weight: 600; letter-spacing: .04em; border: 1px solid currentColor !important; width: 40px; height: 36px; border-radius: 999px; opacity: .85; }
.lang-btn:hover { opacity: 1; }
#app[lang="en"] .lang-btn { font-family: "Samir", var(--font-body); font-size: 14px; letter-spacing: 0; }

.subnav { display: flex; flex-wrap: wrap; gap: 6px 4px; padding-block: 18px; border-bottom: 1px solid var(--line); position: sticky; top: var(--head-h); background: var(--paper); z-index: 5; }
.subnav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: var(--text-sm); border: 1px solid transparent; }
.subnav a:hover { color: var(--text); border-color: var(--line-strong); }
@media (max-width: 760px) { .subnav { flex-wrap: nowrap; overflow-x: auto; position: static; } .subnav a { white-space: nowrap; } }

.colls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.coll { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fffdf8; border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.coll:hover { border-color: var(--text); }
.coll .im { aspect-ratio: 4/3; background: #050505; overflow: hidden; display: grid; place-items: center; }
.coll .im img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.coll:hover .im img { transform: scale(1.04); }
.coll .glyph { font-family: var(--font-display); font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem); color: var(--gold-light); opacity: .7; }
.coll .tx { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.coll .cnt { font-size: var(--text-xs); color: var(--gold-ink); font-weight: 600; }
.coll.soon .cnt { color: var(--muted); }
.coll h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin-top: 6px; line-height: 1.25; }
.coll p { color: var(--muted); font-size: var(--text-sm); margin-top: 6px; }
.coll .go { margin-top: auto; padding-top: 16px; font-size: var(--text-sm); font-weight: 600; }
@media (max-width: 1000px) { .colls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .colls { grid-template-columns: 1fr; } }

.trade { padding-block: 8px 48px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.trade h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; margin-top: 10px; }
.trade-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(24px, 4vw, 56px); margin-top: 20px; }
.trade-body p { color: var(--text); max-width: 68ch; }
.trade-body p + p { margin-top: 14px; }
.tfacts { margin: 0; border-top: 2px solid var(--text); align-self: start; }
.tfacts div { padding-block: 12px; border-bottom: 1px solid var(--line); }
.tfacts dt { font-size: var(--text-xs); color: var(--gold-ink); font-weight: 600; }
.tfacts dd { margin: 2px 0 0; font-size: var(--text-sm); }
.trel { font-size: var(--text-xs); color: var(--muted); font-weight: 600; margin: 32px 0 14px; }
.trade .tl-objs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tnone { color: var(--muted); font-size: var(--text-sm); padding: 18px; border: 1px dashed var(--line-strong); }
.tsrc { font-size: var(--text-xs); color: var(--muted); }
.tsrc a { color: var(--muted); }
@media (max-width: 960px) { .trade-body { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .trade .tl-objs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rfilters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; margin-bottom: 18px; }
.rfilters .lbl-sp { display: block; font-size: var(--text-xs); margin-bottom: 6px; }
.rfilters .btn { min-height: 50px; }
#rcount { color: var(--muted); font-size: var(--text-sm); margin-bottom: 16px; }
@media (max-width: 760px) { .rfilters { grid-template-columns: 1fr 1fr; } .rfilters .lbl-sp { display: none; } }

.vphase { padding-top: 12px; }
.vphase + .vphase { margin-top: 36px; }
.vphase > .kicker { margin-bottom: 4px; }

.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.partners a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 22px 0; padding-inline-end: 24px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.partners b { font-weight: 600; font-size: var(--text-base); }
.partners span { grid-column: 1; color: var(--muted); font-size: var(--text-sm); }
.partners i { font-style: normal; grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--muted); }
.partners a:hover b { color: var(--teal-ink); }
@media (max-width: 900px) { .partners { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .partners { grid-template-columns: 1fr; } }
@media (min-width: 1181px) and (max-width: 1360px) { .lang-btn { display: none; } }

/* compact footer */
.foot { padding-block: clamp(36px, 4vw, 52px) 20px; }
.foot-top { gap: clamp(24px, 3vw, 44px); }
@media (min-width: 901px) { .foot-top { grid-template-columns: 1.2fr 1fr 1.1fr 1.2fr; } }
.foot .fbrand img { width: 48px; height: 48px; }
.foot .fbrand b { font-size: 1.25rem; margin-top: 10px; }
.foot .icomline { margin-top: 14px; }
.foot .icomline img { width: 36px; height: 36px; }
.foot li { margin-block: 6px; }
.foot .fl2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.foot-bottom { margin-top: clamp(24px, 3vw, 36px); padding-top: 16px; align-items: center; }
.foot .credit { font-family: var(--font-latin); letter-spacing: .02em; }
.foot .credit a { color: var(--gold-light); }
@media (max-width: 520px) { .brand { flex-shrink: 1; } .brand .bt { min-width: 0; } .brand .bt b { white-space: normal; } #app[lang="en"] .brand .bt b { font-size: 15px; line-height: 1.2; } }
@media (max-width: 520px) { .head .lang-btn { display: none; } }
@media (max-width: 1180px) { .mega { display: none; } }
@media (max-width: 400px) { .btn, .link-more { white-space: normal; max-width: 100%; text-align: center; } .btn { height: auto; padding-block: 10px; } }
