:root {
  --ink: #16120f;
  --ink-2: #4a423b;
  --ink-3: #6b6159;
  --paper: #f6f1e9;
  --paper-2: #ece4d6;
  --card: #fffdf9;
  --line: rgba(22, 18, 15, 0.14);
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --accent-soft: rgba(194, 65, 12, 0.1);
  --ok: #11652f;
  --warn: #8a5200;
  --gold: #a68a52;
  --gold-ink: #75602f;
  --radius: 14px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Work Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; padding-bottom: 72px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 100; }
.skip:focus { inset-inline-start: 0; }
.demo-banner { background: var(--ink); color: #f3d9b9; font-size: .75rem; text-align: center; padding: .35rem 1rem; letter-spacing: .02em; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1rem; padding: .75rem 16px; background: rgba(246, 241, 233, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; margin-inline-end: auto; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .01em; }
.brand-desc { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.main-nav { display: none; gap: 1.25rem; }
.main-nav a { text-decoration: none; font-size: .88rem; color: var(--ink-2); padding: .25rem 0; border-bottom: 2px solid transparent; }
.main-nav a.active, .main-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }

.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { text-decoration: none; display: flex; flex-direction: column; align-items: center; font-size: .7rem; padding: .45rem 0 .5rem; color: var(--ink-3); }
.tabbar .ti { font-size: 1.1rem; line-height: 1.3; }
.tabbar a.active { color: var(--accent); font-weight: 600; }

@media (min-width: 1180px) {
  .main-nav { display: flex; }
  .tabbar { display: none; }
  body { padding-bottom: 0; }
}

/* Layout */
main { outline: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { padding: 2.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; }
h1 { font-size: clamp(2.3rem, 7vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin-bottom: .75rem; }
h3, h2.h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.eyebrow { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: .6rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); font-size: .9rem; }
p + p { margin-top: .8rem; }
.grid { display: grid; gap: 1rem; }
.grid.four { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.pending { display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .04em; color: var(--warn); background: rgba(161, 98, 7, .1); border-radius: 6px; padding: .1rem .45rem; margin-left: .25rem; vertical-align: middle; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid var(--ink); background: transparent; text-decoration: none; font-weight: 600; font-size: .95rem; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.small { min-height: 36px; padding: .35rem .9rem; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero-art { position: absolute; inset: 0; opacity: .85; background: #6b4a3a url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4pLSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAAgACADASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAwQFAgH/xAAmEAACAgEDAgYDAAAAAAAAAAABAgMRAAQhMRIiBRNBUZGhBmJx/8QAGAEAAgMAAAAAAAAAAAAAAAAAAQIAAwT/xAAYEQEBAQEBAAAAAAAAAAAAAAABAAIRIf/aAAwDAQACEQMRAD8AgyzBLLbVk6XxYiYCIDpGx6s1rHZyR+u1HjENEvmTKrDtJ7jQGad7e8KjGDnWs6LUSTQl3ob1a8Y0WJHOCijrsWqritsIgIQWcPUoZGmBQzgG6B3wI0j+ehiA52PG/t9Y0YS56VNM1Ae13lLWfjfjuhj65tG5iS2Z43DBQPXm/rE2TYbEETKtuCf4DnGcdVUNsVjZ+S7fOGBF+vxjAwU55f/Z) center / cover; }
.hero-art svg { width: 100%; height: 100%; }
.hero-inner { position: relative; padding: 5rem 16px 3rem; max-width: 1080px; margin: 0 auto; }
.hero-inner .lead { color: #e9dfd0; }
.hero .eyebrow { color: #f59e6b; }
.hero .btn:not(.primary) { border-color: var(--paper); color: var(--paper); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,18,15,.15) 0%, rgba(22,18,15,.85) 75%); pointer-events: none; }
.hero-inner { z-index: 1; }
.hero-quote { margin: .4rem 0 0; max-width: 860px; }
.hero-quote blockquote { font-family: var(--serif); font-weight: 600; font-size: clamp(1.75rem, 4.2vw, 3rem); line-height: 1.15; text-wrap: balance; }
.hero-quote figcaption { margin-top: .9rem; font-size: .9rem; color: #d6cbbb; }
.hero-quote cite { font-style: italic; }
:root[lang="ar"] .hero-quote blockquote { text-align: start; font-family: 'Cormorant Garamond', Georgia, serif; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Artworks */
.work { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: start; cursor: pointer; padding: 0; }
.work .art { aspect-ratio: 4 / 5; background: var(--paper-2); }
.work .art svg { width: 100%; height: 100%; }
.work .meta { padding: .8rem 1rem 1rem; }
.work .meta strong { font-family: var(--serif); font-size: 1.15rem; display: block; }
dl.specs { display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; font-size: .9rem; margin-top: .8rem; }
dl.specs dt { color: var(--ink-3); }

dialog { border: 0; border-radius: var(--radius); padding: 0; max-width: min(720px, calc(100vw - 32px)); width: 100%; background: var(--card); color: var(--ink); }
dialog::backdrop { background: rgba(22, 18, 15, .6); }
.dlg-body { padding: 1.2rem; }
.dlg-art { aspect-ratio: 4 / 5; max-height: 55vh; margin: 0 auto; }
.dlg-art svg { height: 100%; width: auto; margin: 0 auto; }

.timeline { list-style: none; border-inline-start: 2px solid var(--accent); padding-inline-start: 1.1rem; }
.timeline li { position: relative; padding-bottom: 1rem; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: -1.5rem; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.welcome-video { width: 100%; border-radius: var(--radius); background: var(--ink); }
.video-ph { aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--ink); color: var(--paper); display: grid; place-items: center; text-align: center; padding: 1rem; }

/* Psico layers */
.layers { position: relative; aspect-ratio: 4 / 5; max-width: 420px; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.layers svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s ease, clip-path .8s ease; }
.layers img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .6s ease; }
@media (prefers-reduced-motion: reduce) { .layers img { transition: none; } }
.range { width: 100%; accent-color: var(--accent); margin-top: 1rem; }
.questions { counter-reset: q; list-style: none; display: grid; gap: .7rem; }
.questions li { counter-increment: q; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; padding-inline-start: 3.2rem; position: relative; font-family: var(--serif); font-size: 1.3rem; }
.questions li::before { content: counter(q); position: absolute; inset-inline-start: 1rem; top: 1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--accent); color: #fff; font: 600 .85rem/1.6rem var(--sans); text-align: center; }

/* Booking */
.steps { display: flex; gap: .3rem; list-style: none; margin-bottom: 1.2rem; overflow-x: auto; }
.steps li { flex: 1; min-width: 64px; font-size: .7rem; text-align: center; color: var(--ink-3); border-top: 3px solid var(--line); padding-top: .35rem; }
.steps li.done, .steps li.current { border-top-color: var(--accent); color: var(--ink); }
.steps li.current { font-weight: 600; }
.choice { display: block; width: 100%; text-align: start; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1rem; cursor: pointer; }
.choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.choice:disabled { opacity: .5; cursor: not-allowed; }
.choice .price { font-weight: 600; float: inline-end; margin-inline-start: .5rem; }
.dates { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; }
.date { flex: 0 0 auto; width: 64px; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; padding: .45rem 0; background: var(--card); cursor: pointer; }
.date small { display: block; font-size: .68rem; color: var(--ink-3); text-transform: uppercase; }
.date strong { font-size: 1.2rem; }
.date[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.date:disabled { opacity: .35; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.chip { font-size: .72rem; border: 1px solid var(--line); border-radius: 999px; padding: .05rem .5rem; background: var(--paper); }
.stepper { display: flex; align-items: center; gap: 1rem; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink); background: var(--card); font-size: 1.3rem; cursor: pointer; }
.stepper output { font-size: 1.6rem; font-weight: 600; min-width: 2ch; text-align: center; }
.summary { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; }
.summary .total { font-weight: 600; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .3rem; }
.field { display: grid; gap: .3rem; margin-bottom: .9rem; }
.field label { font-size: .85rem; font-weight: 500; }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; background: var(--card); width: 100%; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; margin: .7rem 0; }
.check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.terms { font-size: .85rem; color: var(--ink-2); background: var(--paper-2); border-radius: 10px; padding: .9rem 1rem; }
.terms ul { padding-inline-start: 1.1rem; }

/* Ticket */
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 420px; }
.ticket-head { background: var(--ink); color: var(--paper); padding: 1rem 1.2rem; }
.ticket-head h3 { color: var(--paper); }
.ticket-body { padding: 1.2rem; display: grid; gap: 1rem; }
.qr { width: 190px; height: 190px; margin: 0 auto; background: #fff; padding: 6px; border-radius: 8px; }
.qr svg { width: 100%; height: 100%; }
.code { font-family: ui-monospace, monospace; font-size: 1.05rem; letter-spacing: .08em; text-align: center; }
.status { display: inline-block; font-size: .75rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; }
.status.ok { background: rgba(21, 128, 61, .12); color: var(--ok); }
.status.used { background: rgba(122, 112, 103, .15); color: var(--ink-3); }
.status.bad { background: rgba(185, 28, 28, .12); color: #b91c1c; }

/* Library & reader */
.book { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .book { grid-template-columns: 240px 1fr; align-items: start; } }
.cover { aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px rgba(22, 18, 15, .25); }
.cover svg { width: 100%; height: 100%; }
.editions { display: grid; gap: .5rem; }
.edition { display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1rem; }
.toc { list-style: none; display: grid; gap: .35rem; }
.toc a, .toc span { display: flex; justify-content: space-between; gap: 1rem; text-decoration: none; padding: .55rem .8rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.toc span { color: var(--ink-3); }

.reader { max-width: 680px; margin: 0 auto; }
.reader-bar { position: sticky; top: 64px; z-index: 10; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: .6rem 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.reader-text { font-family: var(--serif); line-height: 1.75; padding: 1.5rem 0 2rem; }
.reader-text p { margin-top: 1em; }
.reader-text h2, .reader-text .ch-title { margin-bottom: .5rem; }
.reader-text .ch-title { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.reader-nav { display: flex; justify-content: space-between; gap: .5rem; padding-bottom: 2rem; }

.empty { text-align: center; padding: 2rem 1rem; color: var(--ink-3); }

.footer { text-align: center; font-size: .82rem; color: var(--ink-3); padding: 2rem 16px; border-top: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 86px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: .65rem 1.1rem; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 200; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.quote blockquote { font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; }
.quote figcaption { margin-top: .7rem; font-size: .88rem; }

.manifesto > p:not(.eyebrow):not(.muted):not(.m-work-missing), .m-list { max-width: 62ch; font-family: var(--serif); font-size: 1.22rem; line-height: 1.6; margin-bottom: .8rem; }
.m-coda > p:nth-last-of-type(-n+3) { font-style: italic; }
.m-h { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; margin: 1.8rem 0 .6rem; max-width: 40ch; }
.m-list { padding-inline-start: 1.3rem; }
.m-list li { margin-bottom: .3rem; }
.m-work-missing { font-size: .88rem; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1.4rem; max-width: 420px; }
.m-quote { max-width: 56ch; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; color: var(--ink-2); border-inline-start: 3px solid var(--accent); padding-inline-start: 1rem; margin: 1rem 0 1.2rem; }
.m-work { display: block; width: 100%; max-width: 420px; margin: 0 0 1.4rem; padding: 0; border: 0; background: none; text-align: start; cursor: zoom-in; color: inherit; font: inherit; }
.m-work img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); display: block; }
.m-work span { display: block; margin-top: .4rem; font-size: .88rem; color: var(--ink-2); }
/* Manifesto index and reader navigation */
.m-index { list-style: none; display: grid; gap: .5rem; padding: 0; }
@media (min-width: 720px) { .m-index { grid-template-columns: 1fr 1fr; } }
.m-index a { display: flex; gap: .8rem; align-items: center; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .5rem; }
.m-index img { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--paper-2); }
.m-index span { display: grid; gap: .1rem; min-width: 0; }
.m-index small { color: var(--accent); font-weight: 600; }
.m-index strong { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.m-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.m-nav .btn { white-space: normal; text-align: center; line-height: 1.3; font-size: .85rem; }
.m-nav .btn:last-child { justify-self: stretch; }
.chip.sold { background: #b42318; color: #fff; border-color: #b42318; }

.work .art { aspect-ratio: 1; overflow: hidden; }
.work .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dlg-art:has(img) { aspect-ratio: auto; max-height: none; }
.dlg-art img { width: 100%; height: auto; max-height: 60vh; object-fit: contain; border-radius: 8px; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* Membership features */
.main-nav { gap: 1rem; }
.chip.vip { background: var(--ink); color: #f3d9b9; border-color: var(--ink); }
.tabs { display: flex; gap: .4rem; overflow-x: auto; }
.tab { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .45rem .9rem; font-weight: 600; font-size: .88rem; cursor: pointer; white-space: nowrap; }
.tab[aria-selected="true"], .tab[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
a.tab { text-decoration: none; color: inherit; }
.gallery-tabs { flex-wrap: wrap; overflow: visible; }
.art-frame { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.art-frame img, .art-frame svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.table-wrap { overflow-x: auto; position: relative; }
table.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.compare th, table.compare td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: start; font-size: .92rem; }
table.compare th:not(:first-child), table.compare td:not(:first-child) { text-align: center; width: 4.6rem; padding-inline: .4rem; }
@media (min-width: 640px) { table.compare th:not(:first-child), table.compare td:not(:first-child) { width: 7rem; } }
table.compare thead th { background: var(--ink); color: var(--paper); }
table.compare thead th:last-child { background: var(--accent); }
.yes { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.pro-hero h1 { color: var(--ink); }
.member-card .ticket-head { background: linear-gradient(135deg, var(--ink), #3b2416); }
.daily blockquote { font-family: var(--serif); font-size: 1.3rem; line-height: 1.55; max-width: 62ch; border-inline-start: 3px solid var(--accent); padding-inline-start: 1rem; }
.event-form .field select { max-width: 8rem; }
.event.annual { border: 2px solid var(--accent); }
.chip.annual-chip { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.promo { display: flex; gap: 1.2rem; align-items: center; text-decoration: none; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.promo-count { flex: 0 0 auto; display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--accent); color: #fff; line-height: 1; text-align: center; }
.promo-count strong { font-family: var(--serif); font-size: 2.2rem; }
.promo-count small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.promo-text { display: grid; gap: .2rem; min-width: 0; }
.promo-text .eyebrow { color: #f59e6b; margin: 0; }
.promo-title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; color: inherit; text-decoration: none; font-weight: 600; }
.promo-title:hover { text-decoration: underline; }
.promo-actions { margin-top: .6rem; }
.promo-all { font-size: .8rem; color: #d6cbbb; }
.event-wide { grid-column: 1 / -1; }
.tier-group { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 1.2rem 0 .6rem; }
.tiers { display: grid; gap: .8rem; }
@media (min-width: 720px) { .tiers { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.tier { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; background: var(--paper); display: grid; gap: .5rem; align-content: start; }
.tier-vip { border: 2px solid var(--accent); background: var(--accent-soft); }
.tier-head { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.tier-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.tier ul { padding-inline-start: 1.1rem; font-size: .9rem; color: var(--ink-2); }
.tier .btn { width: 100%; }
a.choice { display: block; text-decoration: none; color: inherit; }
.ext-note { display: inline-block; margin-top: .4rem; font-size: .8rem; font-weight: 600; color: var(--accent); }
.btn.wa { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }

/* Paintings gallery (oscarabreu.com/paintings) */
.paintings { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 640px) { .paintings { grid-template-columns: repeat(4, 1fr); gap: .8rem; } }
@media (min-width: 900px) { .paintings { grid-template-columns: repeat(6, 1fr); } }
.painting { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper-2); cursor: zoom-in; aspect-ratio: 1; }
.painting img { width: 100%; height: 100%; object-fit: cover; display: block; }
.painting span { position: absolute; inset-inline-start: .35rem; bottom: .35rem; min-width: 1.6rem; padding: .05rem .4rem; border-radius: 999px; background: rgba(22, 18, 15, .78); color: #fff; font-size: .78rem; font-weight: 600; text-align: center; }

/* ART GABANGI */
.gb-artist { margin: 0; }
.gb-artist h3 { margin-top: .8rem; }
.gb-artist blockquote { font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; margin: .4rem 0; }
table.gb-spaces { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.gb-spaces th, table.gb-spaces td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: start; font-size: .9rem; }
table.gb-spaces td:last-child, table.gb-spaces th:last-child { text-align: end; white-space: nowrap; }
table.gb-spaces thead th { background: var(--ink); color: var(--paper); }
@media (max-width: 639px) { .gb-team { margin-top: 2rem; } }

/* Press (oscarabreu.com/bibliography) */
.press h2.h3 { font-size: 1.25rem; line-height: 1.25; }
.press-link { display: inline-block; margin-top: .6rem; font-weight: 600; color: var(--accent); }

/* Contact (oscarabreu.com/contact) */
.contact { display: grid; gap: 1.4rem; align-items: start; }
@media (min-width: 720px) { .contact { grid-template-columns: 280px 1fr; } }
.contact-photo { width: 100%; max-width: 280px; border-radius: var(--radius); display: block; }
.visit-map { display: block; width: 100%; height: 320px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 1rem; }
.ad-msg { margin-bottom: .8rem; } .ad-msg-text { white-space: pre-wrap; margin: .5rem 0; }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.contact-list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem; align-items: baseline; }
.contact-list a { font-weight: 600; word-break: break-word; }

/* Exhibitions catalogue (oscarabreu.com/exhibits) */
.catalogue { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: start; }
.catalogue img { width: 110px; height: auto; border-radius: 8px; display: block; }
.catalogue h3 { font-size: 1.2rem; line-height: 1.25; }
.catalogue .specs { margin-top: .6rem; }

/* GABANGI sub-pages */
.gb-fig { margin: 0 0 1.4rem; max-width: 640px; }
.gb-fig img { width: 100%; height: auto; border-radius: var(--radius); display: block; background: var(--paper-2); }
.gb-fig figcaption { margin-top: .4rem; font-size: .85rem; color: var(--ink-2); }
.gb-figs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); max-width: 640px; margin-bottom: 1.4rem; }
.gb-figs .gb-fig { margin: 0; }
.manifesto > p strong { font-weight: 600; }

/* Artist section menu and home highlights */
.section-nav { border-bottom: 1px solid var(--line); background: var(--paper); }
.section-nav .tabs { padding-top: .6rem; padding-bottom: .6rem; scrollbar-width: none; }
.section-nav .tabs::-webkit-scrollbar { display: none; }
.section-nav .tab { font-size: .82rem; padding: .35rem .8rem; }
.card.hl { text-decoration: none; color: inherit; display: grid; gap: .3rem; align-content: start; }
.card.hl img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: .4rem; }
.card.hl h3 { font-size: 1.15rem; }
h1.m-title { font-size: clamp(1.9rem, 5.5vw, 2.6rem); margin-bottom: .75rem; }
.steps:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Collectors' Circle: quiet, private, no prices */
.ci-hero h1 { max-width: 18ch; }
.ci-panel { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 1.6rem 1.4rem; display: grid; gap: .6rem; }
.ci-panel h2 { color: var(--paper); margin: 0; }
.ci-panel p { color: #e9dfd0; max-width: 58ch; }
.ci-kicker { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: #f59e6b; margin: 0; }
.ci-since { font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.ci-advisor { border-top: 1px solid rgba(246, 241, 233, .2); padding-top: 1rem; margin-top: .4rem; }
.ci-advisor h3 { color: var(--paper); font-size: 1.2rem; }
.btn.light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.ci-reset { justify-self: start; background: none; border: 0; padding: 0; color: #c9bba8; font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.ci-steps { list-style: none; padding: 0; display: grid; gap: 1.2rem; max-width: 62ch; }
.ci-steps li { display: grid; grid-template-columns: 3rem 1fr; gap: .8rem; align-items: baseline; }
.ci-num { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); }
.ci-steps h3 { margin-bottom: .2rem; }
.ci-work { display: grid; gap: .35rem; align-content: start; }
.ci-art { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.ci-mark { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: .8rem; }
.ci-note { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-2); max-width: 58ch; }
.ci-panel .btn-row { margin-top: .4rem; }
.essay-card { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; text-decoration: none; color: inherit; }
.essay-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.essay-card h2 { font-size: 1.25rem; margin: .2rem 0; }
@media (min-width: 640px) { .essay-card { grid-template-columns: 180px 1fr; } }

/* Language picker and right-to-left (Arabic) */
.lang select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; font: 600 .82rem var(--sans); color: var(--ink); padding: .35rem 1.7rem .35rem .8rem; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right .85rem center, right .55rem center; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .lang select { padding: .35rem .8rem .35rem 1.7rem; background-position: left .55rem center, left .85rem center; }
.arr { display: inline-block; }
[dir="rtl"] .arr { transform: scaleX(-1); }
:root[lang="ar"] { --serif: 'Noto Naskh Arabic', 'Cormorant Garamond', Georgia, serif; --sans: 'Noto Sans Arabic', 'Work Sans', system-ui, sans-serif; }
:root[lang="ar"] body * { letter-spacing: 0 !important; }
:root[lang="ar"] .eyebrow, :root[lang="ar"] .brand-desc { text-transform: none; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3 { line-height: 1.4; }
.section[id] { scroll-margin-top: 84px; }

/* RSVP (rsvp.js): an engraved-style invitation — ink frame, gold hairline, letterspaced capitals. */
.rsvp-page { max-width: 760px; }
.invite { max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--ink); padding: 9px; box-shadow: 0 18px 50px -30px rgba(22, 18, 15, .45); }
.invite-inner { border: 1px solid var(--gold); padding: clamp(32px, 7vw, 56px) clamp(20px, 6vw, 48px); text-align: center; display: grid; gap: .55rem; justify-items: center; }
.invite-host { font: 600 .74rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--ink); padding-inline-start: .34em; }
.invite-request { font: italic 400 1.2rem/1.4 var(--serif); color: var(--ink-2); max-width: 26ch; margin-top: .4rem; }
.invite-title { font: 600 clamp(2rem, 7vw, 2.8rem)/1.08 var(--serif); margin: .4rem 0 .2rem; text-wrap: balance; }
.invite-rule { display: flex; align-items: center; gap: 12px; width: 140px; margin: .5rem 0; }
.invite-rule::before, .invite-rule::after { content: ''; flex: 1; border-top: 1px solid var(--gold); }
.invite-rule span { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); }
.invite-date { font: 400 1.25rem/1.3 var(--serif); }
.invite-place { font: 600 .74rem/1.9 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); margin-top: .5rem; }
.invite-desc { font: italic 400 1.05rem/1.5 var(--serif); color: var(--ink-2); max-width: 40ch; margin-top: 1rem; }
.invite-kindly { font: 600 .68rem/1.7 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-ink); margin-top: 1.4rem; }
.rsvp-form-wrap h2, .rsvp-reply h2 { font-size: 1.7rem; }
.rsvp-form { display: grid; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 4vw, 28px); }
.rsvp-att { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rsvp-choice { position: relative; display: block; cursor: pointer; }
.rsvp-choice input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.rsvp-choice span { display: block; text-align: center; font: italic 600 1.15rem/1.3 var(--serif); padding: 1rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .2s, background .2s; }
.rsvp-choice input:checked + span { border-color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--gold); }
.rsvp-choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.rsvp-private { font-size: .85rem; }
.rsvp-thanks { font: italic 600 1.7rem/1.25 var(--serif); margin: .2rem 0 .6rem; text-wrap: balance; }
.rsvp-reply { max-width: 560px; margin: 0 auto; text-align: start; }
.rsvp-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; background: var(--paper); resize: vertical; }
:root[lang="ar"] .invite-host, :root[lang="ar"] .invite-place, :root[lang="ar"] .invite-kindly { text-transform: none; }
@media (max-width: 420px) { .rsvp-att { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .rsvp-choice span { transition: none; } }
[hidden] { display: none !important; }
.invite-sub { font: italic 400 1.2rem/1.3 var(--serif); color: var(--ink-2); margin-top: -.2rem; }
.invite-date { line-height: 1.5; }

/* Luxury pass: ink, ivory and gold. Squared, letterspaced buttons; gold hairlines on the pieces a guest
   keeps (tickets, the member card, the Circle, invitations). The terracotta accent stays for focus only. */
:root { --radius: 6px; --champagne: #d8c196; --accent: #75602f; --accent-soft: rgba(166, 138, 82, .13); --accent-ink: #ffffff; }
.brand-desc { color: var(--gold-ink); }
.eyebrow { color: var(--gold-ink); letter-spacing: .26em; }
.hero .eyebrow, .promo-text .eyebrow, .ci-kicker, .ticket-kicker { color: var(--champagne); margin: 0; }
.btn { border-radius: 2px; letter-spacing: .04em; font-weight: 600; transition: background .2s, color .2s, box-shadow .2s; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.primary:hover { box-shadow: inset 0 0 0 1px var(--champagne); }
.btn:where(:not(.primary):not(.dark):not(.wa):not(.light)):hover { background: var(--paper-2); }
.hero .btn:not(.primary):hover, .promo .btn:not(.primary):hover, .ci-panel .btn:not(.primary):hover { background: rgba(246, 241, 233, .1); }
.hero .btn.primary, .promo .btn.primary, .ci-panel .btn.primary { background: var(--champagne); border-color: var(--champagne); color: var(--ink); }
.btn.light { background: transparent; border-color: var(--champagne); color: var(--paper); }
.btn.light:hover { background: rgba(216, 193, 150, .14); }
.tab { border-radius: 2px; }
.chip { border-radius: 2px; letter-spacing: .03em; }
.chip.annual-chip { background: var(--ink); color: var(--champagne); border-color: var(--ink); }
.chip.vip { color: var(--champagne); }
.tabbar a.active { color: var(--ink); box-shadow: inset 0 2px 0 var(--gold); }
/* Dark panels carry a fine gold rule inside their edge. */
.promo, .ci-panel { box-shadow: inset 0 0 0 1px rgba(166, 138, 82, .55); }
.promo-count { background: transparent; border: 1px solid var(--champagne); color: var(--paper); }
.promo-count small { color: var(--champagne); }
.ci-panel h2 { font-weight: 600; }
/* Tickets and the member card: an ink edge, a gold line under the head, serif names. */
.ticket { border: 1px solid var(--ink); box-shadow: 0 18px 44px -32px rgba(22, 18, 15, .5); }
.ticket-head { border-bottom: 1px solid var(--gold); }
.ticket-head h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.member-card .ticket-head { background: #120e0b; box-shadow: inset 0 0 0 5px #120e0b, inset 0 0 0 6px rgba(166, 138, 82, .7); padding: 1.3rem 1.4rem; }
.btn.wa { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.wa:hover { box-shadow: inset 0 0 0 1px var(--champagne); }
.chip.sold { background: var(--ink); color: var(--champagne); border-color: var(--ink); }
.invite-also { font: italic 400 1.15rem/1.45 var(--serif); color: var(--ink); max-width: 30ch; margin-top: .2rem; text-wrap: balance; }
.event-launch { font-family: var(--serif); font-style: italic; font-size: 1.08rem; margin-top: .4rem; color: var(--ink); }

/* Spanish edition credits (library) */
.ed-credits { margin-top: .8rem; font-size: .88rem; }
.ed-credits summary { cursor: pointer; font-family: var(--sans); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; color: var(--gold-ink); }
.ed-credits dl { margin: .8rem 0; display: grid; gap: .45rem; }
.ed-credits dt { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ed-credits dd { margin: 0; }
.ed-credits p { margin: .2rem 0; color: var(--ink-3); }

/* Anniversary invitation with its own wording (features.js `invitation`) */
.invite-caps { text-transform: uppercase; letter-spacing: .08em; font-size: clamp(1.6rem, 6.4vw, 2.4rem); }
.invite-book { display: grid; gap: .15rem; margin-top: .3rem; }
.invite-book-title { font: 600 clamp(1.7rem, 6.6vw, 2.3rem)/1.1 var(--serif); letter-spacing: .14em; text-transform: uppercase; padding-inline-start: .14em; }
.invite-book span:not(.invite-book-title) { font: italic 400 1.15rem/1.35 var(--serif); color: var(--ink-2); }
.invite-by { font: italic 400 1.15rem/1.4 var(--serif); color: var(--ink); margin-top: .1rem; }
.invite-close { font: italic 400 1.05rem/1.5 var(--serif); color: var(--ink); max-width: 34ch; margin-top: 1rem; text-wrap: balance; }
:root[lang="ar"] .invite-caps { text-transform: none; letter-spacing: 0; }

/* Ticket passes, after Art Basel's pass cards: image, name, USD price, italic lead, benefits, "Buy now ›" */
.tier-group { font: 600 .82rem/1.2 var(--sans); letter-spacing: .32em; color: var(--ink); margin: 2rem 0 1rem; }
.tiers:has(.pass-card) { gap: 2.4rem; }
.pass-card { border: 0; border-radius: 0; padding: 0; background: none; gap: .35rem; }
.pass-card.tier-vip { border: 0; background: none; }
.pass-img { margin: 0 0 .9rem; position: relative; }
.pass-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.pass-img figcaption { position: absolute; inset-block-end: .5rem; inset-inline-start: .6rem; font: 500 .66rem/1 var(--sans); letter-spacing: .08em; color: #fff; background: rgba(20,17,14,.55); padding: .3rem .5rem; border-radius: 3px; }
.pass-name { font: 700 1.55rem/1.15 var(--sans); letter-spacing: -.01em; margin: 0; }
.pass-price { font: 400 1.05rem/1.3 var(--sans); color: var(--ink); margin: 0; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.pass-lead { font: italic 400 1.15rem/1.5 var(--serif); color: var(--ink-2); margin: .7rem 0 .2rem; }
.pass-benefits { font: 700 .95rem/1.3 var(--sans); margin: .8rem 0 .1rem; }
.pass-card ul { font-size: .98rem; line-height: 1.55; color: var(--ink); padding-inline-start: 1.3rem; display: grid; gap: .3rem; }
.pass-card ul li::marker { color: var(--ink); }
.buy-now { justify-self: start; display: inline-flex; align-items: center; gap: .6rem; margin-top: .9rem; padding: .3rem 0; background: none; border: 0; font: 700 1rem/1 var(--sans); color: var(--ink); text-decoration: none; cursor: pointer; }
.buy-now .arr { font-size: 1.5rem; line-height: .7; transition: transform .2s; }
.buy-now:hover .arr, .buy-now:focus-visible .arr { transform: translateX(4px); }
:root[dir="rtl"] .buy-now:hover .arr { transform: translateX(-4px) scaleX(-1); }
.event-wide :is(.pass-card) .status { font-size: .8rem; }

/* Checkout sheet (checkout.js): slides up from the bottom on phones */
.co-sheet { max-width: 480px; }
@media (max-width: 600px) {
  .co-sheet { margin: auto auto 0; max-width: 100vw; width: 100vw; border-radius: 14px 14px 0 0; max-height: 92vh; overflow-y: auto; }
  .co-sheet .dlg-body { padding-bottom: calc(1.2rem + env(safe-area-inset-bottom)); }
}
.co-sheet .dlg-body { display: grid; gap: .8rem; }
.co-item { display: flex; gap: .9rem; align-items: center; }
.co-item img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); flex: none; }
.co-item h3 { font: 700 1.25rem/1.2 var(--sans); margin: 0; }
.co-item .muted { margin: .15rem 0 0; }
.co-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.co-total { font-size: 1.1rem; }
.co-total strong { font: 600 1.35rem/1 var(--sans); }
.co-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.co-step { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--ink); border-radius: 999px; }
.co-step:hover { background: var(--paper-2, rgba(0,0,0,.05)); }
.co-stepper output { min-width: 2ch; text-align: center; font-weight: 600; font-size: 1.05rem; }
.co-pay { width: 100%; min-height: 52px; font-size: 1rem; }
.co-secure, .co-note { font-size: .82rem; margin: 0; text-align: center; }
.co-wa { display: grid; gap: .6rem; }
.co-wa-alt summary { cursor: pointer; font-size: .88rem; color: var(--ink-2); text-align: center; padding: .3rem 0; }
.co-wa-alt[open] summary { margin-bottom: .6rem; }
.co-close { width: 100%; }

/* Thank-you page after a Whop purchase (checkout.js) */
.thanks { max-width: 560px; margin-inline: auto; text-align: center; display: grid; gap: .8rem; justify-items: center; padding-block: 3rem; }
.thanks h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); }
.thanks-item { font: 600 .8rem/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.thanks .btn-row { justify-content: center; }
:root[lang="ar"] .thanks-item { text-transform: none; letter-spacing: 0; }
.unlock-box { width: 100%; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.unlock { display: grid; gap: .5rem; max-width: 520px; text-align: start; }
.thanks .unlock { margin-inline: auto; }
.unlock-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.unlock-row input { flex: 1 1 220px; min-height: 48px; }
.unlock .status.ok { color: var(--ok); }

/* Auction (market.js) */
.lots { display: grid; gap: 2rem; }
@media (min-width: 640px) { .lots { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.lot-card { display: grid; gap: .35rem; align-content: start; }
.lot-img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.lot-meta { font: 600 .72rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-top: .5rem; }
.lot-meta .chip { letter-spacing: 0; text-transform: none; font-weight: 500; }
.lot-title { font: 700 1.3rem/1.2 var(--sans); margin: 0; }
.lot-title a { color: inherit; text-decoration: none; }
.lot-state { display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap; margin: .2rem 0 0; }
.lot-price { display: grid; font: 400 1.1rem/1.2 var(--sans); }
.lot-price small { font-size: .72rem; color: var(--ink-3); letter-spacing: .06em; }
.lot-state.big .lot-price { font-size: 1.7rem; font-weight: 600; }
.lot-close { font-size: .88rem; color: var(--ink-2); margin: 0; }
.lot-live { font: italic 400 1.05rem/1.45 var(--serif); color: var(--ink-2); margin-top: .4rem; }
.lot-page > .btn { margin-top: 1rem; }
.lot-detail { display: grid; gap: 1.6rem; }
@media (min-width: 860px) { .lot-detail { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.lot-figure { margin: 0; }
.lot-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.lot-figure figcaption { font-size: .8rem; color: var(--ink-3); margin-top: .4rem; }
.lot-info { display: grid; gap: .6rem; align-content: start; }
.lot-h1 { font-size: clamp(2rem, 7vw, 2.8rem); margin: 0; }
.bid-form { display: grid; gap: .7rem; margin-top: .8rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.bid-form input[type=number] { font-size: 1.3rem; font-weight: 600; }
.bid-accept { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; line-height: 1.45; }
.bid-accept input { margin-top: .25rem; width: 20px; height: 20px; flex: none; }
.bid-form .status.ok { color: var(--ok); }
.bid-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.bid-list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .4rem; flex-wrap: wrap; }
:root[lang="ar"] .lot-meta { letter-spacing: 0; text-transform: none; }

/* Shop */
.shop-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.shop-item { display: grid; gap: .35rem; align-content: start; }
.shop-item .cover { max-width: 200px; margin-bottom: .6rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head .buy-now { margin-top: 0; }
.shop-banner { display: grid; grid-template-columns: 90px 1fr; gap: 1.2rem; align-items: center; text-decoration: none; color: inherit; }
.shop-banner .cover { width: 90px; }

/* Event pages (events-page.js) */
.event-page > .btn { margin-top: 1rem; }
.ev-hero { display: grid; gap: 1.4rem; }
@media (min-width: 860px) { .ev-hero { grid-template-columns: 1fr 1fr; align-items: center; } }
.ev-figure { margin: 0; }
.ev-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.ev-figure figcaption { font-size: .8rem; color: var(--ink-3); margin-top: .4rem; }
.ev-head { display: grid; gap: .8rem; align-content: start; }
.ev-title { font-size: clamp(2.1rem, 8vw, 3.2rem); line-height: 1.05; margin: 0; text-wrap: balance; }
.ev-sub { font: italic 400 1.2rem/1.4 var(--serif); color: var(--ink-2); margin: -.3rem 0 0; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; max-width: 420px; }
.countdown span { display: grid; justify-items: center; padding: .7rem .3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.countdown strong { font: 600 clamp(1.5rem, 6vw, 2rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown small { font: 600 .66rem/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: .2rem; }
:root[lang="ar"] .countdown small { letter-spacing: 0; }
.ev-facts { display: grid; gap: .5rem; margin: 0; }
.ev-facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .6rem; }
.ev-facts dt { font: 600 .72rem/1.6 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.ev-facts dd { margin: 0; }
.ev-program ul { margin: .3rem 0 0; padding-inline-start: 1.1rem; color: var(--ink-2); }
.ev-body { display: grid; gap: 1rem; max-width: 760px; }
.event h3 a { color: inherit; text-decoration: none; }
.event h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Museum dashboard (admin.js) */
.ad-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0; max-width: 560px; }
.ad-tiles div { display: grid; justify-items: center; padding: .9rem .4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-align: center; }
.ad-tiles strong { font: 600 1.8rem/1 var(--serif); }
.ad-tiles span { font-size: .78rem; color: var(--ink-3); margin-top: .3rem; }
.ad-lot { margin-bottom: 1.6rem; }
.ad-lot h3 { margin-bottom: .2rem; }
.ad-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ad-table th, .ad-table td { text-align: start; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.ad-table th { font: 600 .72rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.ad-help { font-size: .85rem; margin: .4rem 0; }
.btn.small.wa { white-space: nowrap; }
.door #door-q { width: 100%; min-height: 50px; font-size: 1.1rem; margin: .8rem 0; }
.door-count { font: 600 1.4rem/1.3 var(--serif); margin-top: .6rem; }
.door-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.door-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.door-row.here { background: var(--paper-2); border-color: var(--gold); }
.door-row.here strong::before { content: "✓ "; color: var(--ok); }
.door-row .btn { min-width: 6.5rem; min-height: 44px; }
.door-walkin { margin-top: 1.2rem; }
.door-walkin summary { cursor: pointer; font-weight: 600; padding: .6rem 0; }
.door-walkin .unlock { max-width: none; }
.invite-page textarea { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.ad-actions { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; }
.invite-list .ad-actions { flex-direction: column; align-items: stretch; }
.invite-list .door-row.here strong::before { content: "✓ "; color: var(--ok); }

/* Event photos (aftercare.js) */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin-top: 1rem; }
.ph-thumb { padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.ph-thumb img, .ph-admin img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.ph-admin { position: relative; }
.ph-admin .btn { position: absolute; inset-block-start: .3rem; inset-inline-end: .3rem; background: var(--card); }
.ph-upload { position: relative; overflow: hidden; margin: 1rem 0 .4rem; }
.ph-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ph-view { max-width: min(1100px, 96vw); background: var(--ink); }
.ph-frame img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; }
.ph-bar { display: flex; gap: .5rem; justify-content: center; align-items: center; padding: .7rem; color: var(--paper); flex-wrap: wrap; }
.ph-bar .btn { background: var(--paper); }

/* Dashboard overview (insights.js) */
.in-tiles { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); max-width: none; }
.in-tiles strong { font-size: 1.5rem; }
.in-overview h3 { margin: 1.4rem 0 .6rem; }
.in-grid { display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.in-event h4 { font: 600 .95rem/1.3 var(--sans); margin-bottom: .4rem; }
.in-event { margin-bottom: 1rem; }
.in-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.in-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "track track"; gap: .2rem .8rem; font-size: .88rem; }
.in-label { grid-area: label; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.in-value { grid-area: value; font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
.in-value small { font-weight: 400; color: var(--ink-3); }
.in-track { grid-area: track; height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.in-fill { display: block; height: 100%; border-radius: 4px; background: var(--gold-ink); }
@media (forced-colors: active) { .in-fill { background: CanvasText; } }

/* "Remind me the day before" (remind.js) */
.remind { margin-top: 1rem; display: grid; gap: .4rem; justify-items: start; }
.remind-on { color: var(--ok); font-weight: 600; }
.edition > .btn, .edition > .chip { white-space: nowrap; flex-shrink: 0; }
.book > * { min-width: 0; }
.fu-eds { margin-top: .8rem; padding-bottom: .2rem; }
.fu-toc .fu-part { font-family: var(--sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding: 1rem 0 .3rem; border: 0; }
.ed-mine { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 99px; padding: .05rem .5rem; margin-inline-start: .3rem; vertical-align: .1em; }
.bk-short { color: #b42318; font-weight: 600; }
.remind-help { font-size: .85rem; margin: 0; }

/* Wishlist (wishlist.js) */
.work-wrap { position: relative; display: flex; }
.work-wrap > .work { flex: 1; }
.lot-card { position: relative; }
.wish { position: absolute; top: .5rem; inset-inline-end: .5rem; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 253, 249, .94); color: var(--accent); font-size: 1.35rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(22, 18, 15, .12); }
.wish:hover { background: var(--card); }
.wish.on, .wish-btn.on span { color: var(--accent); }
.wish-btn span { font-size: 1.1em; }
.ws-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.ws-list li { display: flex; align-items: center; gap: .8rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.ws-open { display: flex; align-items: center; gap: .8rem; flex: 1; min-width: 0; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: start; text-decoration: none; cursor: pointer; }
.ws-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.ws-thumb img, .ws-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Auction alerts (alerts.js) and the mailing list (newsletter.js) */
.lot-alerts { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.lot-alerts h2 { margin: 0; }
.nl { max-width: 640px; }
.nl-topics { border: 0; padding: 0; margin: .4rem 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.nl-topics legend { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; padding: 0; }
.nl-topics label { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; }
.nl-topics input { width: 20px; height: 20px; accent-color: var(--accent); }
.ed-sample { font-size: .85rem; }
:root[lang="ru"] { --sans: 'Golos Text', 'Work Sans', system-ui, sans-serif; }
/* The Japanese edition: the phone's own Mincho typeface (Hiragino on iPhone, Yu on Windows, Noto on Android), upright
   (Japanese has no italics), with Japanese line-breaking rules. */
:lang(ja) { --serif: 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, 'Noto Serif JP', 'Noto Serif CJK JP', serif; line-break: strict; }
:lang(ja), :lang(ja) * { font-style: normal; }
.reader-text:lang(ja) { line-height: 1.9; letter-spacing: .02em; }
/* The Chinese edition (Simplified): the phone's own Song typeface, upright, with Chinese line-breaking rules. */
:lang(zh) { --serif: 'Songti SC', STSong, SimSun, 'Noto Serif SC', 'Noto Serif CJK SC', serif; line-break: strict; }
:lang(zh), :lang(zh) * { font-style: normal; }
.reader-text:lang(zh) { line-height: 1.9; letter-spacing: .02em; }

/* Door scanner (scanner.js) */
.sc-view { display: grid; gap: .6rem; margin: 1rem 0; }
.sc-view video { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--ink); }
.sc-form { max-width: 420px; }
.sc-form input { font-family: ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.sc-result:empty { display: none; }
.sc-result { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius); border: 2px solid var(--line); background: var(--card); max-width: 420px; }
.sc-result p { margin: .2rem 0; }
.sc-big { font: 600 1.6rem/1.2 var(--serif); }
.sc-admitted { border-color: var(--ok); background: #e9f5ec; }
.sc-admitted .sc-big { color: var(--ok); }
.sc-used { border-color: var(--warn); background: #fbf1e1; }
.sc-used .sc-big { color: var(--warn); }
.sc-void, .sc-unknown, .sc-err { border-color: #b42318; background: #fdecea; }
.sc-void .sc-big, .sc-unknown .sc-big { color: #b42318; }
.sc-recent { list-style: none; padding: 0; display: grid; gap: .3rem; font-size: .9rem; }
.sc-recent li { padding-inline-start: .6rem; border-inline-start: 4px solid var(--line); }
.sc-recent .sc-admitted { border-color: var(--ok); } .sc-recent .sc-used { border-color: var(--warn); }
.sc-recent .sc-void, .sc-recent .sc-unknown { border-color: #b42318; }

/* Press & collectors page (kit.js) */
.kit-hero { display: grid; gap: 1.4rem; align-items: start; }
.kit-hero .contact-photo { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--radius); }
@media (min-width: 760px) { .kit-hero { grid-template-columns: 280px 1fr; } }
.kit-quote blockquote { font: italic 400 1.5rem/1.35 var(--serif); }
.kit-quote figcaption { margin-top: .5rem; color: var(--ink-3); font-size: .9rem; }
.kit-work img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); display: block; }
.kit-work figcaption { margin-top: .5rem; font-size: .9rem; }
.kit-events { list-style: none; padding: 0; display: grid; gap: .5rem; }
@media print {
  .topbar, .tabbar, .demo-banner, .skip, .section-nav, .kit-actions, .kit .btn-row, .kit .nl, .toast { display: none !important; }
  body { padding: 0; background: #fff; }
  .kit .section { break-inside: avoid; padding: 1rem 0; }
  .kit-works { grid-template-columns: repeat(3, 1fr) !important; }
  .kit a[download] { display: none; }
}

/* Full book (fullbook.js) */
.reader-text .ch-sub { font: 600 1.25rem/1.3 var(--serif); margin: 1.6rem 0 .6rem; }
.reader-text .chrono-year { font: 600 1.4rem/1.2 var(--serif); color: var(--gold-ink); margin: 1.4rem 0 .3rem; }
.bk-status { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .3rem; }
.bk-form { max-width: 520px; }
.fb-offline .bk-status li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }

/* Share a passage and search (bookplus.js) */
.qs-btn { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; box-shadow: 0 6px 20px rgba(22, 18, 15, .25); }
.sr-form { max-width: 560px; margin: 1rem 0; }
.sr-count { font-weight: 600; margin: .8rem 0; }
.sr-list { list-style: none; padding: 0; display: grid; gap: .8rem; }
.sr-list a { display: grid; gap: .2rem; text-decoration: none; color: inherit; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.sr-list a strong { font: 600 1rem/1.3 var(--serif); }
.sr-list a span { font-size: .92rem; color: var(--ink-2); }
.sr-list mark, .sr-mark { background: #f3e1b5; color: inherit; padding: 0 .1em; border-radius: 2px; }
@media (max-width: 420px) { .reader-bar .sr-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Front of house (director.js): a cinematic hero, the founder, the movement in four parts, membership. */
.dir-hero { min-height: min(92svh, 860px); display: flex; align-items: flex-end; }
.dir-hero .hero-art img { animation: dir-push 14s ease-out both; transform-origin: 60% 40%; }
@keyframes dir-push { from { transform: scale(1.09); } to { transform: scale(1); } }
.dir-hero .hero-inner { padding: 8rem 16px 3.2rem; width: 100%; }
.dir-hero::after { background: linear-gradient(180deg, rgba(22,18,15,.05) 0%, rgba(22,18,15,.35) 40%, rgba(22,18,15,.92) 85%); }
.dir-headline { font-size: clamp(2.6rem, 9vw, 6rem); line-height: 1.02; letter-spacing: -.01em; max-width: 14ch; margin: .6rem 0 1rem; text-wrap: balance; }
.dir-hero .lead { font-size: 1.15rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.dir-founder { display: grid; gap: 1.6rem; }
.dir-portrait { width: 100%; max-width: min(420px, 72vw); aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.25) contrast(1.05); }
@media (min-width: 760px) { .dir-founder { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; } }
.dir-facts { list-style: none; margin: .8rem 0 1.2rem; display: grid; gap: .7rem; }
.dir-facts li { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .8rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.dir-facts strong { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; color: var(--gold-ink); }
.dir-quote { margin: 1rem 0; border-inline-start: 2px solid var(--gold); padding-inline-start: 1rem; }
.dir-quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 3.4vw, 1.9rem); line-height: 1.25; text-wrap: pretty; }
.dir-quote figcaption { margin-top: .5rem; font-size: .85rem; color: var(--ink-3); }
.dir-quote cite { font-style: italic; }
.dir-quote + .eyebrow, .dir-founder .eyebrow + .dir-quote { margin-top: 0; }
.dir-founder .dir-quote ~ .btn-row, .dir-founder .btn-row { margin-top: 1rem; }
.dir-parts { font-family: var(--serif); font-size: 1.5rem; margin: 1rem 0; color: var(--ink); }
.dir-link { margin-top: .6rem; font-weight: 600; }
.dir-books .shop-banner, .dir-card { text-decoration: none; height: 100%; }
.dir-band { background: var(--ink); color: var(--paper); padding: 2rem 1.4rem; box-shadow: inset 0 0 0 1px rgba(166, 138, 82, .55); }
.dir-band .eyebrow { color: var(--champagne); }
.dir-band p { color: #e9dfd0; max-width: 56ch; }
.dir-band .btn.primary { background: var(--champagne); border-color: var(--champagne); color: var(--ink); }
.dir-band .dir-levels { margin: 1rem 0 .4rem; font-family: var(--serif); font-size: 1.35rem; color: var(--paper); }
.dir-levels span { color: var(--champagne); }
.dir-visit { list-style: none; margin: .8rem 0; display: grid; gap: .3rem; }
/* Founder chapters */
.dir-chapters > .eyebrow { margin-bottom: 1.4rem; }
.dir-chapter { display: grid; gap: 1.2rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.dir-chapter img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
@media (min-width: 760px) { .dir-chapter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 2.4rem; }
  .dir-chapter:nth-child(odd) img { order: 2; } }
.dir-num { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; margin-bottom: .4rem; }
/* The four parts */
.dir-part-list { display: grid; gap: 1.2rem; margin-top: 1.4rem; }
@media (min-width: 760px) { .dir-part-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dir-part { border: 1px solid var(--line); background: var(--card); padding: 1.4rem; min-width: 0; }
.dir-part h3 { font-size: 2rem; margin-bottom: .6rem; }
.dir-toc { list-style: none; margin-top: 1rem; display: grid; gap: .35rem; }
.dir-toc a { color: var(--ink); }
.dir-gesture { width: 100%; height: auto; margin: .2rem 0 .4rem; }
.dir-gesture path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 0; }
.rv-on .dir-part:not(.rv-in) .dir-gesture path { stroke-dashoffset: 420; }
.rv-in .dir-gesture path { transition: stroke-dashoffset 2.2s ease-in-out .3s; }
.dir-means { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.dir-means a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; color: #fff; text-decoration: none; }
.dir-means img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.dir-means a:hover img { transform: scale(1.06); }
.dir-means span { position: absolute; inset: auto 0 0 0; padding: 1.6rem .45rem .4rem; font-size: .78rem; line-height: 1.2; font-weight: 600; background: linear-gradient(180deg, transparent, rgba(22,18,15,.88)); }
/* Membership */
.dir-levels-grid { display: grid; gap: 1rem; }
@media (min-width: 860px) { .dir-levels-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dir-level { display: flex; flex-direction: column; min-width: 0; }
.dir-level h2 { margin-bottom: .2rem; }
.dir-price { font-weight: 600; }
.dir-promise { font-family: var(--serif); font-style: italic; font-size: 1.3rem; margin: .4rem 0 .8rem; }
.dir-level ul { padding-inline-start: 1.1rem; display: grid; gap: .35rem; margin-bottom: 1rem; }
.dir-level .btn-row { margin-top: auto; }
.dir-pro { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px rgba(166, 138, 82, .7); }
.dir-pro .eyebrow { color: var(--champagne); }
.dir-pro .btn.primary { background: var(--champagne); border-color: var(--champagne); color: var(--ink); }
/* Reveal on scroll */
.rv-on .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease-out, transform .7s ease-out; }
.rv-on .rv.rv-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .dir-hero .hero-art img { animation: none; } .rv-on .rv { opacity: 1; transform: none; } }
/* Events first: the next event inside the hero, then upcoming and past events as rows. */
.dir-hero { min-height: min(84svh, 820px); }
.dir-next { display: grid; gap: .15rem; margin: 1.2rem 0 .2rem; padding: .8rem 1rem; max-width: 34rem; color: var(--paper); text-decoration: none; border-inline-start: 2px solid var(--champagne); background: rgba(22, 18, 15, .45); }
.dir-next-title { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.15; }
.dir-next:hover .dir-next-title { text-decoration: underline; }
.dir-sub { font-size: 1.35rem; margin: 1.8rem 0 .6rem; }
.dir-events { list-style: none; border-top: 1px solid var(--line); }
.dir-events li > a, .dir-events li > div { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.dir-events li > a:hover .dir-row-title { text-decoration: underline; }
.dir-date { display: grid; justify-items: center; line-height: 1; }
.dir-date strong { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-ink); }
.dir-date small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .2rem; color: var(--ink-3); }
.dir-row-title { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.2; }
.dir-events .arr { color: var(--gold-ink); font-size: 1.3rem; }
.dir-past li span:nth-child(2) { font-size: .95rem; }
.dir-sub-first { margin-top: .4rem; }
/* The year at Museo Abreu: twelve months, the events in each; subscribing to all of them. */
.dir-cal { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .dir-cal { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.dir-cal li { background: var(--paper); padding: .6rem .55rem; min-height: 5.2rem; display: grid; align-content: start; gap: .3rem; min-width: 0; }
.dir-cal li.has { background: var(--card); }
.dir-cal-m { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); display: flex; justify-content: space-between; gap: .3rem; }
.dir-cal-m small { letter-spacing: 0; font-weight: 400; }
.dir-cal li.has .dir-cal-m { color: var(--gold-ink); }
.dir-cal a { font-family: var(--serif); font-size: 1.02rem; line-height: 1.2; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.dir-cal a strong { display: block; font-size: 1.35rem; color: var(--gold-ink); }
.dir-cal a:hover { text-decoration: underline; }
.dir-subscribe { margin-top: 1.2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); background: var(--card); }
.dir-subscribe .btn-row { margin-top: .6rem; }
/* Event first: the next event is the opening screen (its picture, title, live countdown, RSVP or tickets). */
.dir-ev-hero { min-height: min(92svh, 880px); }
.dir-ev-hero .hero-inner { padding-top: 6rem; }
.dir-hero-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 .2rem; }
.dir-ev-hero .chip { background: rgba(22, 18, 15, .55); color: var(--champagne); border-color: rgba(216, 193, 150, .6); }
.dir-ev-title { font-size: clamp(2.7rem, 10.5vw, 6.2rem); max-width: 15ch; margin: .5rem 0 .6rem; }
.dir-ev-title a { color: inherit; text-decoration: none; }
.dir-ev-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.dir-ev-sub { font: italic 400 1.35rem/1.3 var(--serif); color: #e9dfd0; margin-bottom: .4rem; }
.dir-ev-when { font-size: 1.12rem; font-weight: 500; color: var(--paper); margin-bottom: 1rem; }
.dir-ev-hero .countdown { max-width: 440px; margin-bottom: 1.3rem; }
.dir-ev-hero .countdown span { background: rgba(22, 18, 15, .55); border-color: rgba(216, 193, 150, .45); backdrop-filter: blur(4px); }
.dir-ev-hero .countdown strong { color: var(--paper); }
.dir-ev-hero .countdown small { color: var(--champagne); }
.btn.dir-big { min-height: 54px; padding: .8rem 2.2rem; font-size: 1.05rem; }
/* Upcoming events as picture cards */
.dir-upcoming { padding-top: 2rem; }
.dir-posters { display: grid; gap: 1.2rem; }
@media (min-width: 760px) { .dir-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dir-poster { background: var(--card); border: 1px solid var(--line); display: grid; min-width: 0; }
.dir-poster-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.dir-poster-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.dir-poster:hover .dir-poster-img img { transform: scale(1.04); }
.dir-poster-date { position: absolute; inset-inline-start: 0; bottom: 0; display: grid; justify-items: center; line-height: 1; padding: .7rem 1rem; background: var(--ink); color: var(--paper); }
.dir-poster-date strong { font: 600 2.1rem/1 var(--serif); }
.dir-poster-date small { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--champagne); margin-top: .25rem; }
.dir-poster-body { padding: 1.1rem 1.2rem 1.3rem; }
.dir-poster-body h3 { font-size: 1.7rem; margin: .4rem 0 .3rem; }
.dir-poster-body h3 a { color: inherit; text-decoration: none; }
.dir-poster-chips { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
/* The museum, after the events */
.dir-museum-title { font-size: clamp(2.2rem, 7vw, 3.6rem); max-width: 16ch; text-wrap: balance; }
.dir-ev-title-2 { display: block; font-size: .56em; line-height: 1.1; margin-top: .25em; color: #f1e7d6; }
/* The Ecce Homo poster: ink on paper, the title in large capitals, everything centred. */
.dir-poster-hero { position: relative; overflow: hidden; background: #efe7d8; color: #14110e; min-height: min(100svh, 980px); display: grid; place-items: center; text-align: center; }
.dir-paper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dir-poster-inner { position: relative; padding: 3.2rem 28px 3rem; max-width: 760px; width: 100%; }
.dir-poster-hero p { margin: 0; }
.dir-p-kicker, .dir-p-label, .dir-p-name, .dir-p-date, .dir-p-place { font-family: var(--serif); text-transform: uppercase; letter-spacing: .32em; }
.dir-p-kicker { font-size: .78rem; font-weight: 600; color: #4a3f34; }
.dir-p-title { font: 600 clamp(4.6rem, 26vw, 10.5rem)/.84 var(--serif); text-transform: uppercase; letter-spacing: -.015em; margin: 1.6rem 0 1.4rem; color: #14110e; }
.dir-p-title a { color: inherit; text-decoration: none; }
.dir-p-label { font-size: clamp(1.15rem, 5vw, 1.6rem); letter-spacing: .5em; margin-inline-end: -.5em; }
.dir-p-quote { margin: 1rem auto 0; max-width: 32ch; }
.dir-p-quote blockquote { font: italic 400 clamp(1.25rem, 5.2vw, 1.65rem)/1.35 var(--serif); text-wrap: balance; }
.dir-p-quote figcaption { margin-top: .55rem; font-size: .82rem; color: #4a3f34; }
.dir-p-rule { width: 9rem; height: 3px; border: 0; margin: 1.8rem auto; background: radial-gradient(ellipse at center, #14110e 0 45%, transparent 72%); }
.dir-p-name { font-size: clamp(1.35rem, 6.2vw, 2rem); letter-spacing: .28em; margin-inline-end: -.28em; }
.dir-p-date { margin-top: 1.4rem !important; font-size: .95rem; letter-spacing: .18em; }
.dir-p-place { margin-top: .4rem !important; font-size: clamp(1.15rem, 5vw, 1.5rem); letter-spacing: .26em; }
.dir-p-town { margin-top: .3rem !important; font-family: var(--serif); font-size: 1rem; letter-spacing: .12em; }
.dir-p-count { margin-top: 1rem !important; font-size: .82rem; letter-spacing: .08em; font-weight: 600; color: #4a3f34; }
.dir-poster-hero .btn-row { justify-content: center; }
.dir-poster-hero .btn { border-color: #14110e; color: #14110e; background: rgba(239, 231, 216, .6); }
.dir-poster-hero .btn.primary { background: #14110e; color: #f6f1e9; }
.dir-poster-hero .btn:not(.primary):hover { background: rgba(20, 17, 14, .06); }
:root[lang="ar"] .dir-p-kicker, :root[lang="ar"] .dir-p-label, :root[lang="ar"] .dir-p-date { letter-spacing: 0; }
:root[lang="ru"] .dir-p-label { letter-spacing: .3em; margin-inline-end: -.3em; }
.dir-p-title, .dir-p-name, .dir-p-place, .dir-p-town, .dir-p-quote blockquote:lang(en) { font-family: 'Cormorant Garamond', Georgia, serif; }
:root[lang="ar"] .dir-poster-hero .dir-p-title { line-height: .84; font-family: "Cormorant Garamond", Georgia, serif; }
/* Poster fixes: Oscar Abreu and the date in bold; See details on the left, RSVP on the right. */
.dir-p-quote { margin-top: .4rem; }
.dir-p-name { font-weight: 700; }
.dir-p-date { font-weight: 700; font-size: 1.12rem; letter-spacing: .14em; color: #14110e; }
.dir-p-actions { flex-wrap: nowrap; }
.dir-p-actions .btn { flex: 1 1 0; max-width: 15rem; min-height: 52px; padding-inline: .9rem; }
.dir-p-cal { background: transparent !important; border-color: transparent !important; text-decoration: underline; text-underline-offset: .2em; min-height: 40px; }
.dir-p-time { margin-top: .2rem !important; font-family: var(--serif); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; }
/* Poster, second pass: ECCE HOMO on one line in two inks; the date larger than the name, in italic; Museo Abreu in bold. */
.dir-p-title { font-size: clamp(3.7rem, 16.2vw, 8.6rem); line-height: 1; white-space: nowrap; margin: 1.2rem 0 1.4rem; letter-spacing: -.01em; }
.dir-p-ecce { color: #14110e; }
.dir-p-homo { color: #8a2a1b; }
.dir-p-quote { margin-top: 0; }
.dir-p-name { margin-top: 2.2rem !important; }
.dir-p-date { margin-top: 1.4rem !important; font: italic 600 clamp(2.2rem, 10vw, 3.3rem)/1.05 'Cormorant Garamond', Georgia, serif; text-transform: none; letter-spacing: 0; color: #8a2a1b; }
.dir-p-time { margin-top: .35rem !important; font-weight: 600; letter-spacing: .22em; }
.dir-p-place { font-weight: 700; margin-top: 1.1rem !important; }
:root[lang="ar"] .dir-poster-hero .dir-p-title { line-height: 1; }
.dir-p-title { font-size: clamp(3.2rem, 14.6vw, 7.4rem); }
/* After the poster: the book, then the auction. */
.dir-book { display: grid; gap: 1.6rem; align-items: center; }
.dir-book-cover { display: block; max-width: 300px; width: 70%; margin: 0 auto; box-shadow: 0 30px 60px -30px rgba(22, 18, 15, .55); }
@media (min-width: 760px) { .dir-book { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } .dir-book-cover { width: 100%; } }
.dir-book-title { font-size: clamp(2.6rem, 9vw, 4rem); margin-bottom: .1rem; }
.dir-book-sub { font: italic 400 1.4rem/1.3 var(--serif); color: var(--ink-2); margin-bottom: .8rem; }
.dir-also { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; margin-top: 1.2rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.15rem; }
.dir-also .eyebrow { margin: 0; }
.dir-also:hover span[lang] { text-decoration: underline; }
.dir-au-soon { display: block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 1.4rem; box-shadow: inset 0 0 0 1px rgba(166, 138, 82, .55); }
.dir-au-soon .eyebrow { color: var(--champagne); }
.dir-au-soon p { color: #e9dfd0; }
.dir-au-soon .dir-link { color: var(--champagne); }
/* RSVP: the reply first, the invitation card below it. */
.rsvp-head { padding-bottom: 1rem; text-align: center; }
.rsvp-head-title { font-size: clamp(2.6rem, 11vw, 4rem); text-transform: uppercase; letter-spacing: .02em; }
.rsvp-head-date { font: italic 600 clamp(1.3rem, 5.4vw, 1.7rem)/1.3 var(--serif); color: #8a2a1b; margin: .4rem 0 .2rem; }
.rsvp-head + .rsvp-form-wrap, .rsvp-head + .rsvp-reply { border-top: 0; padding-top: .5rem; }
.rsvp-more { margin: .6rem 0 1rem; }
.rsvp-more summary { cursor: pointer; font-weight: 600; padding: .5rem 0; min-height: 44px; display: flex; align-items: center; }
.btn.rsvp-send { width: 100%; min-height: 56px; font-size: 1.05rem; }
.rsvp-choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rsvp-choice input:checked + span::before { content: '✓  '; color: var(--champagne); }
/* The poster's date: upright capitals-height figures instead of the italic. */
.dir-p-date { font: 600 clamp(2.1rem, 9.4vw, 3.1rem)/1.1 'Cormorant Garamond', Georgia, serif; font-variant-numeric: lining-nums; letter-spacing: .04em; color: #8a2a1b; }
/* RSVP, second pass: the date upright like the poster; the reply after the details; invite a friend. */
.rsvp-head-date { font: 600 clamp(1.35rem, 5.6vw, 1.8rem)/1.3 'Cormorant Garamond', Georgia, serif; font-variant-numeric: lining-nums; font-style: normal; letter-spacing: .02em; color: #8a2a1b; }
.rsvp-form .rsvp-att { margin: 1.2rem 0 1rem; }
.rsvp-share { text-align: center; }
.rsvp-share h2 { font-size: 1.6rem; }
.rsvp-share .btn-row { justify-content: center; }
.rsvp-share .btn { min-width: 9rem; }
.rsvp-head-time { font: 600 1rem/1.4 'Cormorant Garamond', Georgia, serif; letter-spacing: .2em; text-transform: uppercase; color: #14110e; }
/* The end of the free sample in chapter 1 */
.bk-sample-end { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.6rem; font-family: var(--sans); }

/* Listen: the museum audio guide in the reader's bar (listen.js). While it reads, the paragraph being read
   keeps full ink with a fine accent rule in the margin, and the rest of the page steps back. */
.ls-row { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.ls-row .ls-play { letter-spacing: .02em; }
.ls-row [data-ls="stop"] { min-width: 2.4rem; }
.ls-row [data-ls="rate"] { min-width: 3.2rem; font-variant-numeric: tabular-nums; }
.ls-voice { font: inherit; font-size: .85rem; font-weight: 500; letter-spacing: .03em; padding: .4rem 1.9rem .4rem .8rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink);
  appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.ls-note { flex-basis: 100%; font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--ink-2, var(--ink)); font-variant-numeric: tabular-nums; }
.reader-text.ls-listening > :is(p, h1, h2):not(.ls-now), .reader-text.ls-listening #fb-text > :is(p, h2):not(.ls-now), .reader-text.ls-listening #fu-text > :is(p, h2):not(.ls-now) { opacity: .72; transition: opacity .5s ease; }
.reader-text .ls-now { position: relative; opacity: 1; transition: opacity .5s ease; }
.reader-text .ls-now::before { content: ''; position: absolute; inset-inline-start: -.75rem; top: .3em; bottom: .3em; width: 2px; background: var(--accent); border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .reader-text .ls-now, .reader-text.ls-listening p { transition: none; } }
.dir-book .dir-listen { margin-top: .6rem; }
.ls-oscar { font-family: var(--serif); font-style: italic; font-size: 1.05rem; padding: .3rem .2rem; color: var(--ink); }

/* Auction as a live room (market.js): the work with the highest bid leads, a countdown runs to the close,
   and a leaderboard names the highest bidders. */
.au-feature { display: grid; gap: 1.2rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius, 14px); overflow: hidden; }
@media (min-width: 760px) { .au-feature { grid-template-columns: 1.1fr 1fr; } }
.au-feature-img { align-self: center; }
.au-feature-img img { display: block; width: 100%; height: auto; }
.au-feature-body { padding: 0 1.2rem 1.4rem; display: grid; gap: .55rem; }
@media (min-width: 760px) { .au-feature-body { padding: 1.6rem 1.6rem 1.6rem 0; } }
.au-feature-title { font-family: var(--serif); font-size: clamp(1.9rem, 6vw, 2.8rem); line-height: 1.05; margin: 0; }
.au-feature-title a { color: inherit; text-decoration: none; }
.au-feature-price { display: grid; font: 600 clamp(1.8rem, 7vw, 2.4rem)/1.1 var(--sans); margin: .2rem 0 0; font-variant-numeric: tabular-nums; }
.au-feature-price small, .au-feature-cd small { font: 500 .72rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.au-feature-lead { margin: 0; font-size: 1rem; }
.au-crown { color: #9a7b1c; }
.au-feature-cd { display: grid; gap: .3rem; margin: .3rem 0; }
.cd { font-variant-numeric: tabular-nums; font-weight: 600; }
.cd-big { display: flex; gap: .5rem; flex-wrap: wrap; }
.cd-u { display: grid; justify-items: center; min-width: 3.4rem; padding: .45rem .5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.cd-u b { font: 600 1.5rem/1 var(--sans); }
.cd-u small { font-size: .66rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }
.cd-soon .cd-u b, .lot-close .cd-soon { color: var(--accent); }
.cd-end { font-weight: 600; }
.au-bid-now { justify-self: start; }
.au-feature .btn-row { align-items: stretch; }
.au-feature .btn-row .btn { margin: 0; min-width: 9rem; }
.au-rules { margin-top: .8rem; font-size: .88rem; }
.au-board { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .45rem; }
.au-rank { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: .7rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.au-pos { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; font-weight: 600; background: var(--paper); border: 1px solid var(--line); }
.au-rank.r1 .au-pos { background: #e7cf7a; border-color: #c9a93c; color: #3b2f05; }
.au-rank.r2 .au-pos { background: #dcdcdc; border-color: #b9b9b9; color: #2a2a2a; }
.au-rank.r3 .au-pos { background: #e3b48a; border-color: #c48b5a; color: #3a210b; }
.au-rank.r1 { border-color: #c9a93c; }
.au-who { display: grid; font-weight: 500; overflow-wrap: anywhere; }
.au-who small { font-weight: 400; color: var(--ink-3); font-size: .8rem; }
.au-amt { font-variant-numeric: tabular-nums; }
.bid-quick { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.au-top .au-h1 { margin-bottom: 1.2rem; }

.lot-img img.contain { object-fit: contain; background: var(--paper-2); }
.au-feature-artist { margin: 0; font: 500 .82rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

/* Auction: the Details button beside each lot's link */
.lot-actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.lot-actions .buy-now { margin-top: .5rem; }
.lot-actions .btn { margin-top: .5rem; }

/* Auction: works in groups (tabs), an artist picker, two columns on phones, "Show more" */
.au-cats { display: flex; flex-wrap: wrap; gap: .45rem; }
.au-cat { flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 .9rem/1 var(--sans); cursor: pointer; white-space: nowrap; }
.au-cat[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.au-cat .au-n { font-weight: 400; opacity: .75; font-size: .8rem; }
@media (max-width: 420px) { .au-cat { font-size: .82rem; padding: .4rem .7rem; } }
.au-pick { max-width: 360px; margin-top: .6rem; }
.au-allclose, .au-count { margin: .6rem 0 0; font-size: .88rem; }
.au-browse .lots { margin-top: 1rem; }
.au-more-row { display: flex; justify-content: center; margin-top: 1.6rem; }
.au-board-more { margin-top: .6rem; }
.au-board-more summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
@media (max-width: 639px) {
  .lots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem .9rem; }
  .lots .lot-title { font-size: 1rem; }
  .lots .lot-meta { font-size: .64rem; letter-spacing: .08em; }
  .lots .lot-price { font-size: .98rem; }
  .lots .lot-state .muted { font-size: .78rem; }
  .lots .lot-actions { flex-direction: column; align-items: stretch; gap: 0; }
  .lots .lot-actions .btn { width: 100%; }
}
/* The featured work keeps to about half a phone screen, so the bid, countdown and the rest of the works stay near. */
@media (max-width: 639px) { .au-feature-img img { max-height: 46vh; width: 100%; object-fit: contain; background: var(--paper-2); } }

/* Auction: the artists first. Their names lead the page, each opening the artist's room. */
.au-artist-list { list-style: none; padding: 0; margin: 1.2rem 0 0; border-top: 1px solid var(--line); }
.au-artist { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .9rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.au-artist-text { display: grid; gap: .2rem; min-width: 0; }
.au-artist-name { font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 5.4vw, 2.1rem); line-height: 1.05; letter-spacing: .01em; }
.au-artist-line { font-size: .82rem; color: var(--ink-3); letter-spacing: .02em; }
.au-artist-n { font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
:root[lang="ar"] .au-artist-n { letter-spacing: 0; }
.au-artist-strip { display: flex; }
.au-artist-strip img { width: 46px; height: 46px; object-fit: cover; border-radius: 4px; border: 2px solid var(--paper); background: var(--paper-2); margin-inline-start: -14px; }
.au-artist-strip img:first-child { margin-inline-start: 0; }
.au-artist .arr { font-size: 1.6rem; line-height: 1; color: var(--gold-ink); transition: transform .2s; }
.au-artist:hover .arr, .au-artist:focus-visible .arr { transform: translateX(4px); }
:root[dir="rtl"] .au-artist:hover .arr, :root[dir="rtl"] .au-artist:focus-visible .arr { transform: translateX(-4px) scaleX(-1); }
@media (max-width: 380px) { .au-artist-strip img:nth-child(n+3) { display: none; } }
@media (min-width: 640px) { .au-artist-strip img { width: 64px; height: 64px; } }
.au-room-name { font-size: clamp(2.4rem, 10vw, 4.2rem); line-height: 1; margin-top: .4rem; }
.au-room-line { margin-top: .6rem; color: var(--ink-2); }
.au-room-src { font-size: .85rem; }
.au-feature-artist a, .lot-info .au-feature-artist a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.dir-au-artists-h { margin-top: 1.6rem; }
.dir-au-artists { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.dir-au-artists a { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); display: inline-block; padding: .35rem 0; }

/* Auction: an artist's room shows one work at a time */
.au-v-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .8rem 0; }
.au-v-nav-low { margin-top: 1.6rem; }
.au-v-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 400 1.9rem/1 var(--serif); display: grid; place-items: center; cursor: pointer; }
.au-v-btn:disabled { opacity: .35; cursor: default; }
[dir="rtl"] .au-v-btn span { display: inline-block; transform: scaleX(-1); }
.au-v-count { font: 600 .74rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
:root[lang="ar"] .au-v-count { letter-spacing: 0; }
.au-v-fig { margin: 0 0 1.1rem; background: var(--paper-2); border-radius: var(--radius); display: grid; place-items: center; padding: 1rem; touch-action: pan-y; }
.au-v-fig img { display: block; max-width: 100%; max-height: 62vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 30px rgba(22, 18, 15, .18); }
.au-v-title { font-size: clamp(1.9rem, 7vw, 2.8rem); line-height: 1.05; margin: .2rem 0 0; }
.au-v-desc { margin-top: 1.2rem; max-width: 62ch; }
.au-v-desc p { margin: .6rem 0 0; }
.au-v-price { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.au-v-price p { margin: .25rem 0 0; }
.au-v-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .4rem 0 .6rem; margin-top: .4rem; }
.au-v-thumb { flex: none; width: 60px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 6px; background: var(--paper-2); cursor: pointer; overflow: hidden; opacity: .7; }
.au-v-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.au-v-thumb[aria-current="true"] { border-color: var(--ink); opacity: 1; }

/* Auction: each artist's headline and essay, as the book prints them */
.au-room-head-line, .au-artist-head { font: 600 .74rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.au-room-head-line { margin-top: .5rem; font-size: .82rem; }
.au-about-text { max-width: 62ch; font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; }
.au-about-text p { margin: .9rem 0 0; }
.au-about-more summary { cursor: pointer; font: 600 .95rem/1 var(--sans); min-height: 44px; display: flex; align-items: center; margin-top: .6rem; }
.au-about .au-room-src { margin-top: 1rem; font-size: .85rem; }
/* Artists' names in capitals, as the book sets them */
.au-artist-name, .au-room-name, .dir-au-artists a, .au-feature-artist { text-transform: uppercase; letter-spacing: .04em; }
.au-room-name { font-size: clamp(2.1rem, 9vw, 3.8rem); }
.au-artist-name { font-size: clamp(1.3rem, 5vw, 1.9rem); }

.au-bio { margin: .4rem 0 0; max-width: 62ch; }
.au-bio p { margin: .5rem 0 0; }
.au-bio-src { font-size: .82rem; }
.au-bio-src a { color: inherit; }

/* The auction page's title: the featured work's artist, in capitals */
.au-h1-artist { text-transform: uppercase; letter-spacing: .04em; font-size: clamp(2.1rem, 9vw, 3.8rem); }
.au-h1-artist a { color: inherit; text-decoration: none; }

/* Featured work: countdown on top, then the picture; under the title its year and size */
.au-feature-top { grid-column: 1 / -1; padding: 1.1rem 1.4rem 0; margin: 0; }
.au-feature-year { font: 400 .55em/1 Arial, Helvetica, sans-serif; color: var(--ink-2); white-space: nowrap; margin-inline-start: .2em; }
.au-feature-size { margin: .35rem 0 0; font: 500 .92rem/1.4 var(--sans); color: var(--ink-2); }

/* The artist's years beside the name */
.au-name-years { font-size: .5em; letter-spacing: .06em; text-transform: none; color: var(--ink-3); font-weight: 500; white-space: nowrap; vertical-align: .25em; margin-inline-start: .25em; }
/* The auction countdown in the top bar */
.tb-cd { margin-inline-start: auto; display: grid; justify-items: center; line-height: 1.1; padding: .3rem .7rem; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-variant-numeric: tabular-nums; flex: none; }
.tb-cd[hidden] { display: none; }
.tb-cd small { font: 600 .55rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #d8c196; }
.tb-cd span { font: 700 .82rem/1.2 var(--sans); }
.tb-cd-soon { background: var(--accent, #8b2e1f); }
.tb-cd:not([hidden]) + .lang { margin-inline-start: 0; }
@media (max-width: 420px) { .topbar { gap: .55rem; } .topbar .brand-name { font-size: 1.3rem; } .tb-cd { padding: .28rem .55rem; } .tb-cd span { font-size: .76rem; } }
:root[lang="ar"] .tb-cd small { letter-spacing: 0; }


.au-about-h { font: 600 .74rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 .4rem; }
.au-about + .au-about { padding-top: 0; }

/* Past the last work, the arrow leads to the next artist */
.au-v-count { display: grid; justify-items: center; text-align: center; }
.au-v-nextname { font: 500 .7rem/1.3 var(--sans); letter-spacing: .04em; text-transform: none; color: var(--ink-3); margin-top: .2rem; }
.au-v-btn-artist:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Top of a room: previous artist · all artists · next artist */
.au-artnav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .6rem; margin: .2rem 0 0; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.au-artnav a { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: .5rem; min-height: 48px; }
.au-artnav-next { justify-content: flex-end; text-align: end; }
.au-artnav span small { display: block; font: 600 .62rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.au-artnav span { font: 600 .9rem/1.2 var(--serif); }
.au-artnav .arr { font-size: 1.7rem; line-height: 1; color: var(--ink); }
.au-artnav-all { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; font-size: 1rem; min-height: 0 !important; }
:root[lang="ar"] .au-artnav span small { letter-spacing: 0; }

/* Black frames around the paintings */
.au-v-fig { background: #0d0c0b; box-shadow: 0 14px 34px rgba(22, 18, 15, .28); }
.au-v-fig img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.au-feature-img { background: #0d0c0b; padding: .9rem; border-radius: var(--radius); }
@media (max-width: 639px) { .au-feature-img img { background: #0d0c0b; } }

/* Black frames on the small previews too */
.au-v-thumb { background: #0d0c0b; border-color: #0d0c0b; padding: 3px; }
.au-v-thumb img { border-radius: 2px; }
.au-v-thumb[aria-current="true"] { border-color: #0d0c0b; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent); }
.au-artist-strip img { border-color: #0d0c0b; background: #0d0c0b; box-sizing: content-box; padding: 2px; }
.lot-img img, .lot-img img.contain { background: #0d0c0b; padding: 6px; box-sizing: border-box; }
.au-v-thumb { opacity: 1; }
.au-v-thumb img { opacity: .7; }
.au-v-thumb[aria-current="true"] img, .au-v-thumb:hover img { opacity: 1; }

/* The auction finder: a quiet search line, then facets in small capitals, as in a sale catalogue */
.au-finder { padding: 1.6rem 0 1.4rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.au-find-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem 1rem; }
.au-find-h { font: 600 .74rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); margin: 0; }
.au-find-meta { font: italic 400 1.05rem/1.4 var(--serif); color: var(--ink-2); }
.au-find-form { display: flex; align-items: center; gap: .6rem; margin-top: .7rem; border-bottom: 1.5px solid var(--ink); }
.au-find-icon { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.au-find-form input { flex: 1; min-width: 0; min-height: 56px; padding: .4rem 0; border: 0; background: transparent; color: var(--ink); font: 400 clamp(1.35rem, 5vw, 1.9rem)/1.2 var(--serif); }
.au-find-form input::placeholder { color: var(--ink-3); opacity: 1; }
.au-find-form input:focus { outline: none; }
.au-find-form:focus-within { border-bottom-color: var(--accent); box-shadow: 0 1.5px 0 var(--accent); }
.au-find-form input::-webkit-search-cancel-button { cursor: pointer; }
.au-find-go { flex: none; min-height: 44px; padding: 0 .2rem; border: 0; background: none; color: var(--ink); font: 600 .74rem var(--sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.au-find-go:hover { color: var(--accent); }
.au-facets { display: grid; gap: .9rem; margin-top: 1.1rem; }
.au-facet { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; }
.au-facet-l { flex: none; min-width: 4.6rem; font: 600 .68rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.au-swatches { display: flex; flex-wrap: wrap; gap: 0; margin-inline-start: -8px; }
.au-swatch { width: 40px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.au-swatch span { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16); transition: transform .2s, box-shadow .2s; }
.au-swatch:hover span { transform: scale(1.12); }
.au-swatch[aria-pressed="true"] span { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.au-swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 6px; }
.au-sizes { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 2px; }
.au-size { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; min-width: 5.4rem; padding: .35rem .8rem; border: 0; border-inline-end: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 .86rem/1.2 var(--sans); cursor: pointer; }
.au-size:last-child { border-inline-end: 0; }
.au-size small { font-size: .7rem; color: var(--ink-3); font-weight: 400; }
.au-size[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.au-size[aria-pressed="true"] small { color: rgba(246, 241, 233, .78); }
.au-sort-sel { min-height: 44px; padding: .3rem 1.8rem .3rem 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font: 500 .92rem var(--sans); appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right .7rem center, right .4rem center; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .au-sort-sel { padding: .3rem 0 .3rem 1.8rem; background-position: left .4rem center, left .7rem center; }
.au-understood { margin-top: 1rem; font: 400 .9rem var(--sans); color: var(--ink-2); }
.au-u-bit { display: inline-block; margin: .15rem .1rem; padding: .15rem .55rem; border: 1px solid var(--ink); border-radius: 2px; color: var(--ink); font: 500 .8rem var(--sans); letter-spacing: .02em; }
.au-find-actions { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; margin-top: .9rem; }
.au-link { min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: 600 .74rem var(--sans); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; border-bottom: 1px solid transparent; }
.au-link:hover { color: var(--accent); }
.au-link .arr { display: inline-block; transition: transform .2s; }
.au-link:hover .arr { transform: translateX(3px); }
.au-link-quiet { color: var(--ink-3); }
.au-find-form input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
@media (max-width: 480px) { .au-swatch { width: 34px; } .au-facet-l { width: 100%; } }
/* Kinds of work as catalogue tabs: words, with a rule under the one chosen */
.au-cats { gap: 1.4rem; border-bottom: 1px solid var(--line); }
.au-cat { min-height: 44px; padding: .4rem 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--ink-2); font: 500 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: -1px; }
.au-cat:hover { color: var(--ink); }
.au-cat[aria-pressed="true"] { background: none; color: var(--ink); border-color: transparent; border-bottom-color: var(--ink); }
.au-cat .au-n { letter-spacing: 0; }
@media (max-width: 420px) { .au-cat { font-size: .74rem; padding: .4rem 0; } }
/* Lot cards as in a sale catalogue */
.lot-card { gap: 0; }
.lot-card .lot-meta { margin-top: .9rem; font: 600 .66rem/1.4 var(--sans); letter-spacing: .2em; color: var(--gold-ink); }
.lot-artist { margin: .35rem 0 0; font: 600 .8rem/1.35 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.lot-card .lot-title { margin: .2rem 0 0; font: italic 500 1.3rem/1.2 var(--serif); }
.lot-card .lot-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lot-facts { margin: .3rem 0 0; font: 400 .82rem/1.4 var(--sans); color: var(--ink-3); }
.lot-card .lot-state { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: .15rem; }
.lot-card .lot-price { font: 500 1.15rem/1.2 var(--serif); }
.lot-card .lot-price small { font: 600 .62rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.lot-card .lot-state .muted { font-size: .78rem; }
.lot-card .lot-close { margin-top: .3rem; font-size: .8rem; }
.lot-card .lot-actions { justify-content: flex-start; gap: 0 1.4rem; margin-top: .4rem; }
.lot-go, .lot-more { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: 600 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.lot-more { color: var(--ink-3); }
.lot-go:hover, .lot-more:hover { color: var(--accent); }
.lot-go .arr { transition: transform .2s; }
.lot-go:hover .arr { transform: translateX(3px); }
:root[dir="rtl"] .lot-go .arr { transform: scaleX(-1); }
:root[lang="ar"] .lot-artist, :root[lang="ar"] .lot-go, :root[lang="ar"] .lot-more, :root[lang="ar"] .lot-card .lot-price small { letter-spacing: 0; text-transform: none; }
.lot-img { display: block; overflow: hidden; border-radius: 2px; }
.lot-img img, .lot-img img.contain { border-radius: 2px; transition: transform .5s ease; }
.lot-card:hover .lot-img img { transform: scale(1.02); }
@media (max-width: 639px) {
  .lots .lot-card .lot-title { font-size: 1.08rem; }
  .lots .lot-artist { font-size: .68rem; letter-spacing: .06em; }
  .lots .lot-card .lot-meta { font-size: .6rem; letter-spacing: .14em; }
  .lots .lot-card .lot-actions { flex-direction: row; align-items: center; gap: 0 1rem; }
  .lot-go, .lot-more { font-size: .64rem; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) { .lot-img img, .lot-go .arr { transition: none; } }
.au-cat .au-n { opacity: 1; color: var(--ink-3); }
/* A quieter heart on the catalogue cards */
.lot-card .wish { top: .35rem; inset-inline-end: .35rem; background: rgba(13, 12, 11, .45); color: #f6f1e9; box-shadow: none; border: 0; backdrop-filter: blur(4px); }
.lot-card .wish:hover { background: rgba(13, 12, 11, .7); }
.lot-card .wish.on { color: #f59e6b; }
/* The single lot, as a catalogue page */
.lot-back { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--ink-2); font: 600 .7rem var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.lot-back:hover { color: var(--accent); }
:root[dir="rtl"] .lot-back .arr { transform: scaleX(-1); }
.lot-page .lot-detail { gap: 2rem; }
@media (min-width: 860px) { .lot-page .lot-detail { grid-template-columns: 1.25fr 1fr; gap: 3.5rem; } .lot-page .lot-figure { position: sticky; top: 5.5rem; } }
.lot-page .lot-figure { background: #0d0c0b; padding: clamp(.8rem, 3vw, 1.6rem); box-shadow: 0 14px 34px rgba(22, 18, 15, .28); border-radius: 2px; }
.lot-page .lot-figure img { border-radius: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); max-height: 78vh; object-fit: contain; }
.lot-page .lot-figure figcaption { color: rgba(246, 241, 233, .78); font-size: .78rem; margin-top: .8rem; text-align: center; }
.lot-page .lot-info { gap: 0; }
.lot-page .lot-meta { margin: 0; font: 600 .7rem/1.4 var(--sans); letter-spacing: .22em; color: var(--gold-ink); }
.lot-artist-big { margin-top: .9rem !important; font: 600 .95rem/1.3 var(--sans) !important; letter-spacing: .12em !important; color: var(--ink) !important; }
.lot-artist-line { margin: .25rem 0 0; font-size: .85rem; color: var(--ink-3); }
.lot-page .lot-h1 { margin-top: .7rem; font: italic 500 clamp(2rem, 6vw, 3rem)/1.1 var(--serif); text-transform: none; letter-spacing: 0; }
.lot-specs { margin: 1.4rem 0 0; border-top: 1px solid var(--line); }
.lot-specs > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.lot-specs dt { font: 600 .64rem/1.8 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.lot-specs dd { margin: 0; font-size: .95rem; color: var(--ink); }
.lot-bidbox { margin-top: 1.6rem; display: grid; gap: .7rem; }
.lot-page .lot-state.big { flex-direction: column; align-items: flex-start; gap: .25rem; margin: 0; }
.lot-page .lot-state.big .lot-price { font: 500 clamp(1.9rem, 6vw, 2.4rem)/1.1 var(--serif); }
.lot-page .lot-state.big .lot-price small { font: 600 .64rem/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.lot-page .bid-form { margin-top: .4rem; padding: 1.4rem; border-radius: 2px; border-color: var(--ink); }
.lot-page .bid-form label { font: 600 .66rem/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.lot-page .bid-form .bid-accept, .lot-page .bid-form .bid-accept span { font: 400 .88rem/1.45 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.lot-page .bid-form input:not([type=checkbox]) { border-radius: 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding-inline: 0; }
.lot-page .bid-form input[type=number] { font: 500 1.6rem var(--serif); }
.lot-page .bid-quick .btn { border-radius: 0; font-weight: 500; }
.lot-page .co-pay { border-radius: 0; letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lot-page .co-pay:hover { background: #000; }
.lot-links { display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin-top: 1.2rem; }
.lot-sub { margin: 2rem 0 .6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font: 600 .74rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.lot-note { margin-top: 1rem; font-size: .85rem; color: var(--ink-3); }
:root[lang="ar"] .lot-back, :root[lang="ar"] .lot-specs dt, :root[lang="ar"] .lot-sub, :root[lang="ar"] .lot-page .bid-form label, :root[lang="ar"] .lot-page .co-pay { letter-spacing: 0; text-transform: none; }
.lot-page .bid-form input[type=checkbox] { accent-color: var(--ink); }
/* Artist rooms, as catalogue pages */
@media (min-width: 860px) {
  .au-v-work { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3.5rem; align-items: start; }
  .au-v-work .au-v-fig { margin: 0; }
  .au-v-work .au-v-fig img { max-height: 74vh; }
}
.au-v-fig { border-radius: 2px; padding: clamp(.8rem, 3vw, 1.6rem); }
.au-v-info .lot-meta { margin: .4rem 0 0; font: 600 .7rem/1.4 var(--sans); letter-spacing: .22em; color: var(--gold-ink); }
.au-v-title { margin-top: .6rem; font: italic 500 clamp(1.9rem, 6vw, 2.7rem)/1.1 var(--serif); }
.au-v-info .lot-specs { margin-top: 1.2rem; }
.au-v-price { border-top: 0; padding-top: 0; margin-top: 1.4rem; }
.au-v-price .au-feature-price { font: 500 clamp(1.8rem, 5vw, 2.3rem)/1.1 var(--serif); }
.au-v-price .au-feature-price small { display: block; font: 600 .64rem/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.au-v-price .muted { font-size: .88rem; }
.au-v-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem; margin-top: 1.2rem; }
.au-v-bid { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.8rem; background: var(--ink); color: var(--paper); font: 600 .78rem var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.au-v-bid:hover { background: #000; }
.au-v-desc h3 { font: 600 .66rem/1.6 var(--sans); letter-spacing: .2em; }
.au-v-btn { border-radius: 0; width: 46px; height: 46px; background: transparent; font-size: 1.6rem; }
.au-v-btn-artist:not(:disabled) { background: var(--ink); color: var(--paper); }
.au-v-thumb { border-radius: 2px; }
.au-room .au-room-head-line { font-size: .78rem; letter-spacing: .2em; }
.au-room-line { font: italic 400 1.1rem var(--serif); }
.au-room .au-about-h, .au-room .au-next .au-about-h { letter-spacing: .22em; }
:root[lang="ar"] .au-v-bid, :root[lang="ar"] .au-v-price .au-feature-price small { letter-spacing: 0; text-transform: none; }
/* The artists' index, as in a sale catalogue */
.au-index-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem 1rem; padding-bottom: .6rem; border-bottom: 1.5px solid var(--ink); }
.au-index-h { margin: 0; font: 600 .78rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.au-index-lead { margin-top: .8rem; font-size: .9rem; color: var(--ink-2); }
.au-index { border-top: 0; margin-top: .6rem; }
.au-index .au-artist { grid-template-columns: 2.4rem 1fr auto auto; align-items: start; padding: 1.3rem 0; gap: 1rem; transition: background .2s; }
.au-index .au-artist:hover { background: rgba(22, 18, 15, .03); }
.au-index-n { padding-top: .45rem; font: italic 400 1.05rem/1 var(--serif); color: var(--gold-ink); }
.au-index .au-artist-name { font-weight: 500; }
.au-artists .au-artist-head, .au-next .au-artist-head { margin-top: .3rem; font: italic 400 1.08rem/1.35 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.au-artists .au-artist-n, .au-next .au-artist-n { margin-top: .35rem; font: 600 .64rem/1.4 var(--sans); letter-spacing: .18em; color: var(--ink-3); }
.au-artist-strip { gap: .4rem; align-self: center; }
.au-artist-strip img { margin-inline-start: 0 !important; border-radius: 1px; padding: 3px !important; width: 58px; height: 58px; }
@media (min-width: 640px) { .au-artist-strip img { width: 76px; height: 76px; } }
.au-artist .arr { align-self: center; font: 400 1.1rem var(--sans); color: var(--ink); }
.au-index-all { margin-top: 1.6rem; }
@media (max-width: 639px) {
  .au-index .au-artist { grid-template-columns: 1.8rem 1fr auto; gap: .7rem; }
  .au-index .au-artist .arr { display: none; }
  .au-artist-strip img { width: 44px; height: 44px; padding: 2px !important; }
  .au-artist-strip img:nth-child(n+3) { display: none; }
  .au-artists .au-artist-head { font-size: .98rem; }
}
:root[lang="ar"] .au-index-h, :root[lang="ar"] .au-artists .au-artist-n { letter-spacing: 0; }
@media (max-width: 639px) { .au-artists .au-artist-n { font-size: .6rem; letter-spacing: .1em; } }
/* The main auction page, as a catalogue cover */
.au-feature { background: none; border: 0; border-radius: 0; overflow: visible; gap: 1.6rem; }
@media (min-width: 760px) { .au-feature { grid-template-columns: 1.25fr 1fr; gap: 3.5rem; } .au-feature-body { padding: 0; } }
.au-feature-body { padding: 0; gap: 0; }
.au-feature-img { padding: clamp(.8rem, 3vw, 1.6rem) !important; background: #0d0c0b; box-shadow: 0 14px 34px rgba(22, 18, 15, .28); border-radius: 2px !important; }
.au-feature-body .lot-meta { margin: 0; font: 600 .7rem/1.4 var(--sans); letter-spacing: .22em; color: var(--gold-ink); }
.au-feature-title { margin-top: .7rem; font: italic 500 clamp(2rem, 6vw, 3rem)/1.1 var(--serif); }
.au-feature-year { font: 400 .55em var(--serif); font-style: normal; color: var(--ink-3); }
.au-feature-size { margin: .8rem 0 0; padding: .65rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .95rem; }
.au-feature-price { margin-top: 1.4rem; font: 500 clamp(1.9rem, 6vw, 2.4rem)/1.1 var(--serif); }
.au-feature-price small { display: block; font: 600 .64rem/1.6 var(--sans); letter-spacing: .2em; color: var(--ink-3); }
.au-feature-lead { margin-top: .3rem; font-size: .88rem; color: var(--ink-2); }
.au-feature .au-v-actions { margin-top: 1.4rem; }
.au-top .au-h1 { margin-bottom: 1.4rem; }
/* Leaderboard rows as a ruled list */
.au-board { gap: 0; margin-top: 0; }
.au-rank { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: .85rem 0; grid-template-columns: 2.4rem 1fr auto; }
.au-pos { width: auto; height: auto; border: 0 !important; background: none !important; border-radius: 0; font: italic 400 1.15rem/1 var(--serif); color: var(--gold-ink) !important; place-items: start; }
.au-rank.r1 { border-color: var(--line); }
.au-who { font: 500 .95rem var(--sans); }
.au-amt { font: 500 1.15rem var(--serif); }
.au-board-wrap > .muted, .au-board-wrap > p.muted { margin-top: .9rem; font-size: .9rem; }
.au-board-more summary { font: 600 .7rem var(--sans); letter-spacing: .18em; text-transform: uppercase; }
:root[lang="ar"] .au-board-more summary { letter-spacing: 0; }
/* The shop, in the catalogue style */
.shop-h1 { text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.shop-lead { margin-top: .8rem; max-width: 46ch; font: italic 400 clamp(1.15rem, 3.5vw, 1.4rem)/1.4 var(--serif); color: var(--ink-2); }
.shop-page .section-head.au-index-top { margin-bottom: 1.6rem; align-items: center; }
.shop-page .au-index-top .au-index-h { margin-inline-end: auto; }
.shop-page .au-index-top { margin-bottom: 1.6rem; align-items: center; }
.shop-page .section-head .btn.small { min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink-2); font: 600 .68rem var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.shop-page .section-head .btn.small:hover { color: var(--accent); }
.shop-page .shop-grid { gap: 2.5rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.shop-page .shop-item { gap: 0; }
.shop-page .shop-item .cover { max-width: 220px; margin-bottom: 1.1rem; box-shadow: 0 14px 34px rgba(22, 18, 15, .22); }
.shop-by { margin: 0; font: 600 .64rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.shop-name { margin: .35rem 0 0; font: italic 500 1.7rem/1.15 var(--serif); }
.shop-price { margin: .7rem 0 0; padding: .6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 500 1.4rem/1.2 var(--serif); }
.shop-per { font: 400 .85rem var(--sans); color: var(--ink-3); }
.shop-note { margin: .7rem 0 0; font-size: .88rem; line-height: 1.5; color: var(--ink-2); }
.shop-page .shop-item .field { margin-top: .9rem; }
.shop-page .shop-item .field label { font: 600 .64rem/1.6 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.shop-page .shop-item select { border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background-color: transparent; padding-inline: 0; }
.shop-buy { margin-top: 1.2rem; justify-self: start; border: 0; cursor: pointer; }
.shop-page .shop-banner { border-radius: 2px; background: transparent; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.4rem 0; box-shadow: none; }
.shop-page .shop-banner h3 { font: italic 500 1.6rem/1.2 var(--serif); }
.shop-page > .section:not(.shop-head) > .eyebrow { font: 600 .78rem/1.4 var(--sans); letter-spacing: .24em; color: var(--ink); padding-bottom: .6rem; border-bottom: 1.5px solid var(--ink); margin-bottom: 0; }
:root[lang="ar"] .shop-by, :root[lang="ar"] .shop-page .section-head .btn.small, :root[lang="ar"] .shop-h1 { letter-spacing: 0; text-transform: none; }
/* The homepage, in the catalogue style of the auction and the shop */
main:has(.dir-hero) .section-head { align-items: center; padding-bottom: .6rem; border-bottom: 1.5px solid var(--ink); margin-bottom: 1.4rem; }
main:has(.dir-hero) .section-head h2, main:has(.dir-hero) .section > h2:not(.dir-museum-title) { margin: 0; font: 600 .78rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
main:has(.dir-hero) .section > h2:not(.dir-museum-title) { padding-bottom: .6rem; border-bottom: 1.5px solid var(--ink); margin-bottom: 1.4rem; }
main:has(.dir-hero) .section-head a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font: 600 .7rem var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
main:has(.dir-hero) .section-head a:not(.btn)::after { content: ' →'; white-space: pre; }
main:has(.dir-hero) .section-head a:not(.btn):hover { color: var(--accent); }
main:has(.dir-hero) .btn { border-radius: 0; font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding-inline: 1.4rem; }
main:has(.dir-hero) .card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 1rem 0 0; }
main:has(.dir-hero) .card:hover { border-top-color: var(--ink); }
main:has(.dir-hero) .card h3, main:has(.dir-hero) .card strong { font: italic 500 1.35rem/1.2 var(--serif); }
main:has(.dir-hero) .card.hl img { border-radius: 0; background: #0d0c0b; padding: 4px; box-sizing: border-box; }
main:has(.dir-hero) .dir-book-title, main:has(.dir-hero) .dir-museum-title, main:has(.dir-hero) .grid.two h2 { font-style: italic; font-weight: 500; }
main:has(.dir-hero) .dir-founder h2 { text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
main:has(.dir-hero) .layers img, main:has(.dir-hero) .layers { border-radius: 0; }
main:has(.dir-hero) .layers { background: #0d0c0b; padding: clamp(.6rem, 2vw, 1.2rem); box-shadow: 0 14px 34px rgba(22, 18, 15, .28); }
main:has(.dir-hero) .dir-subscribe { background: transparent; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 1.2rem 0; }
main:has(.dir-hero) .dir-band { border-radius: 0; }
main:has(.dir-hero) .field input, main:has(.dir-hero) .field select { border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; padding-inline: 0; }
main:has(.dir-hero) .field > label, main:has(.dir-hero) fieldset legend { font: 600 .66rem/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
main:has(.dir-hero) input[type=checkbox] { accent-color: var(--ink); }
:root[lang="ar"] main:has(.dir-hero) .section-head h2, :root[lang="ar"] main:has(.dir-hero) .section > h2, :root[lang="ar"] main:has(.dir-hero) .btn, :root[lang="ar"] main:has(.dir-hero) .section-head a:not(.btn), :root[lang="ar"] main:has(.dir-hero) .field > label { letter-spacing: 0; text-transform: none; }
main:has(.dir-hero) .field > label small { font: 400 .7rem var(--sans); letter-spacing: .06em; text-transform: none; }
/* The homepage's artist names, in a box of their own that scrolls */
.dir-au-artists-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-bottom: .6rem; border-bottom: 1.5px solid var(--ink); }
.dir-au-artists-top .dir-au-artists-h { margin: 0; font: 600 .74rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.dir-au-scroll { max-height: 17rem; overflow-y: auto; overscroll-behavior: contain; padding: .4rem 0 1.6rem; border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent); mask-image: linear-gradient(to bottom, #000 85%, transparent);
  scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
.dir-au-scroll::-webkit-scrollbar { width: 4px; }
.dir-au-scroll::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 2px; }
.dir-au-scroll .dir-au-artists { margin: 0; gap: .1rem 1rem; }
.dir-au-scroll .dir-au-artists a { font-size: 1rem; font-weight: 500; padding: .45rem 0; }
@media (max-width: 639px) { .dir-au-scroll { max-height: 15rem; } .dir-au-scroll .dir-au-artists a { font-size: .92rem; } }
:root[lang="ar"] .dir-au-artists-top .dir-au-artists-h { letter-spacing: 0; }

/* Full-screen viewing (viewer.js) */
.lot-figure, .au-v-fig { position: relative; }
.lot-figure img[data-action], .au-v-fig img[data-action] { cursor: zoom-in; }
.vw-open { position: absolute; top: .6rem; inset-inline-end: .6rem; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 2px; background: rgba(13, 12, 11, .55); color: #f6f1e9; cursor: pointer; backdrop-filter: blur(4px); opacity: .85; transition: opacity .2s, background .2s; }
.vw-open:hover, .vw-open:focus-visible { opacity: 1; background: rgba(13, 12, 11, .8); }
.vw-open svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
html.vw-lock { overflow: hidden; }
dialog.vw { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0a09; color: #f6f1e9; overflow: hidden; }
dialog.vw::backdrop { background: #0b0a09; }
dialog.vw[open] { animation: vw-in .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes vw-in { from { opacity: 0; } to { opacity: 1; } }
.vw-stage { position: absolute; inset: 3.5rem 0 10rem; display: grid; place-items: center; touch-action: none; overflow: hidden; cursor: zoom-in; }
.vw-zoomed .vw-stage { cursor: grab; }
.vw-img { max-width: calc(100vw - 2rem); max-height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; transform-origin: center; transition: transform .25s cubic-bezier(.2, .7, .2, 1), opacity .35s; will-change: transform; }
.vw-zoomed .vw-img { transition: opacity .35s; }
.vw-img.vw-swap { opacity: 0; }
.vw-cap { position: absolute; left: 0; right: 0; bottom: 4.6rem; margin: 0; padding: 0 1.2rem; text-align: center; display: grid; gap: .25rem; }
.vw-meta { font: 600 .62rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #c8ad74; }
.vw-artist { font: 600 .74rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.vw-title { font: italic 400 1.15rem/1.3 var(--serif); color: rgba(246, 241, 233, .85); }
.vw-bar { position: absolute; left: 0; right: 0; bottom: max(1rem, env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: .5rem; }
.vw-btn, .vw-close { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(246, 241, 233, .25); border-radius: 0; background: transparent; color: #f6f1e9; font: 300 1.6rem/1 var(--serif); cursor: pointer; transition: background .2s, border-color .2s; }
.vw-btn:hover, .vw-close:hover { background: rgba(246, 241, 233, .08); border-color: rgba(246, 241, 233, .6); }
.vw-btn[hidden] { display: none; }
.vw-close { position: absolute; top: max(.6rem, env(safe-area-inset-top)); inset-inline-end: .6rem; border-color: transparent; font-size: 2rem; }
.vw-hint { position: absolute; top: max(1.1rem, env(safe-area-inset-top)); inset-inline-start: 1.2rem; inset-inline-end: 4rem; margin: 0; font: 400 .72rem/1.4 var(--sans); color: rgba(246, 241, 233, .55); }
dialog.vw :focus-visible { outline: 2px solid #c8ad74; outline-offset: 2px; }
[dir="rtl"] .vw-nav span { display: inline-block; transform: scaleX(-1); }
:root[lang="ar"] .vw-meta, :root[lang="ar"] .vw-artist { letter-spacing: 0; }

/* Calm motion: pictures fade in as they arrive; a new page rises into place; a bid is confirmed with a mark */
img.img-wait { opacity: 0; }
main img { transition: opacity .6s ease; }
main.page-in { animation: page-in .5s cubic-bezier(.2, .7, .2, 1); }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#bid-status.ok { display: flex; align-items: center; gap: .6rem; animation: bid-ok .5s cubic-bezier(.2, .7, .2, 1); }
#bid-status.ok::before { content: '✓'; flex: none; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .9rem; animation: bid-mark .6s .1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes bid-ok { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bid-mark { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cd-u b { transition: opacity .3s; }
@media (prefers-reduced-motion: reduce) { main.page-in, dialog.vw[open], #bid-status.ok, #bid-status.ok::before { animation: none; } main img, .vw-img { transition: none; } }

/* Bid history and suggestions on a lot */
.lot-history { list-style: none; padding: 0; margin: 0; }
.lot-history li { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.lot-history strong { font: 500 1.05rem var(--serif); }
.lot-history span { font-size: .9rem; color: var(--ink-2); overflow-wrap: anywhere; }
.lot-history time { font-size: .78rem; color: var(--ink-3); }
.au-also { margin-top: 1rem; }
.au-also .lots { margin-top: 1.4rem; }

/* The collector page (collector.js) */
.cl-bids { list-style: none; padding: 0; margin: 0; }
.cl-bid { display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cl-bid img { width: 72px; height: 72px; object-fit: cover; background: #0d0c0b; padding: 3px; box-sizing: border-box; }
.cl-bid-text { display: grid; gap: .1rem; min-width: 0; }
.cl-bid-text .lot-meta { margin: 0; font: 600 .6rem/1.4 var(--sans); letter-spacing: .2em; color: var(--gold-ink); }
.cl-bid-text .lot-artist { margin: 0; font-size: .7rem; }
.cl-bid-title { font: italic 500 1.15rem/1.2 var(--serif); }
.cl-bid-state { font-size: .82rem; color: var(--ink-2); }
.cl-lead { color: var(--ok); font-weight: 600; }
.cl-out { color: var(--accent); font-weight: 600; }
.cl-door { display: grid; gap: .4rem; padding: 1.2rem 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cl-door-lead { font: italic 400 1.15rem/1.4 var(--serif); color: var(--ink-2); }
.cl-door .lot-go { justify-self: start; }
.cl-page .grid.four .work { text-align: start; }

/* Homepage: the museum's statement opens the page, under the event */
.dir-museum-top { padding-top: clamp(2.5rem, 7vw, 4.5rem); }
.dir-museum-top .dir-museum-title { font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: 1.02; }
.vw-cap, .vw-bar, .vw-close, .vw-hint { z-index: 1; }

/* Outbid alerts on a lot page, in the catalogue style; after a bid the offer comes forward */
.lot-page .lot-alerts { margin-top: 1.4rem; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lot-page .lot-alerts h2 { margin: 0; font: 600 .7rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.lot-page .lot-alerts .btn { border-radius: 0; font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.lot-alerts.al-nudge { animation: al-nudge 1.6s ease 2; }
@keyframes al-nudge { 50% { background: rgba(166, 138, 82, .14); } }
@media (prefers-reduced-motion: reduce) { .lot-alerts.al-nudge { animation: none; background: rgba(166, 138, 82, .14); } }
:root[lang="ar"] .lot-page .lot-alerts h2, :root[lang="ar"] .lot-page .lot-alerts .btn { letter-spacing: 0; text-transform: none; }

/* See it on a wall (viewer.js) */
dialog.wl { width: min(960px, 100vw); max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0; border: 0; border-radius: 2px; background: var(--paper); color: var(--ink); }
dialog.wl::backdrop { background: rgba(13, 12, 11, .78); }
dialog.wl[open] { animation: vw-in .4s cubic-bezier(.2, .7, .2, 1); }
.wl-body { position: relative; padding: clamp(1rem, 4vw, 2rem); display: grid; gap: .5rem; }
.wl-body .lot-meta { margin: 0; font: 600 .64rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); }
.wl-h { margin: 0 2.6rem 0 0; display: grid; gap: .15rem; }
.wl-h .lot-artist { font: 600 .74rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.wl-h i { font: italic 500 clamp(1.3rem, 4vw, 1.8rem)/1.15 var(--serif); }
.wl-room { width: 100%; height: auto; max-height: 68dvh; margin-top: .6rem; display: block; }
.wl-note { margin: .4rem 0 0; font-size: .85rem; color: var(--ink-2); }
.wl-close { position: absolute; top: .6rem; inset-inline-end: .6rem; color: var(--ink); }
.wl-close:hover { background: var(--paper-2); }
.wl-btn { margin-inline-start: 0; }

/* The room's audio guide (guide.js) */
.gd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.2rem; padding: .7rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gd-play { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 1.2rem; border: 0; background: var(--ink); color: var(--paper); font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.gd-play:hover { background: #000; }
.gd-icon { font-size: .8rem; letter-spacing: 0; }
.gd-voice { min-height: 44px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 .88rem var(--sans); }
.gd-stop { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.gd-stop[hidden] { display: none; }
.gd-note { flex: 1 1 14rem; font: italic 400 1rem/1.35 var(--serif); color: var(--ink-2); }
.au-room.gd-listening .au-about p:not(.gd-now), .au-room.gd-listening .au-about h2:not(.gd-now) { opacity: .6; transition: opacity .5s ease; }
.au-room .gd-now { position: relative; opacity: 1; transition: opacity .5s ease; }
.au-room .gd-now::before { content: ''; position: absolute; inset-inline-start: -.75rem; top: .3em; bottom: .3em; width: 2px; background: var(--gold); }
:root[lang="ar"] .gd-play { letter-spacing: 0; text-transform: none; }

/* The sale catalogue (catalogue.js): on screen, and as a printed book */
.ct-cover { padding: clamp(2.5rem, 8vw, 5rem) 0 2rem; border-bottom: 1.5px solid var(--ink); }
.ct-h1 { margin-top: .4rem; font: 500 clamp(2.6rem, 9vw, 5rem)/1 var(--serif); text-transform: uppercase; letter-spacing: .04em; }
.ct-close { margin-top: 1rem; font-size: .92rem; }
.ct-src { margin-top: .5rem; font-size: .82rem; color: var(--ink-3); }
.ct-cover .au-v-bid { margin-top: 1.4rem; border: 0; cursor: pointer; }
.ct-artist { padding: 2.4rem 0 1rem; border-bottom: 1px solid var(--line); }
.ct-name { margin: 0; font: 500 clamp(1.6rem, 5vw, 2.2rem)/1.1 var(--serif); text-transform: uppercase; letter-spacing: .04em; }
.ct-head { margin: .4rem 0 0; font: italic 400 1.15rem/1.35 var(--serif); color: var(--ink-2); }
.ct-line { margin: .3rem 0 0; font: 600 .64rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.ct-lots { display: grid; gap: 1.6rem 2rem; margin-top: 1.4rem; }
@media (min-width: 760px) { .ct-lots { grid-template-columns: 1fr 1fr; } }
.ct-lot { display: grid; grid-template-columns: 150px 1fr; gap: 1.1rem; align-items: start; break-inside: avoid; }
.ct-lot img { width: 150px; height: 150px; object-fit: contain; background: #0d0c0b; padding: 5px; box-sizing: border-box; }
.ct-lot .lot-meta { margin: 0; font: 600 .62rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.ct-title { margin: .2rem 0 .4rem; font: italic 500 1.2rem/1.2 var(--serif); }
.ct-lot dl { margin: 0; font-size: .8rem; }
.ct-lot dl > div { display: grid; grid-template-columns: 6.2rem 1fr; gap: .5rem; padding: .2rem 0; border-top: 1px solid var(--line); }
.ct-lot dt { font: 600 .58rem/1.8 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ct-lot dd { margin: 0; }
@media (max-width: 420px) { .ct-lot { grid-template-columns: 104px 1fr; gap: .8rem; } .ct-lot img { width: 104px; height: 104px; } .ct-lot dl > div { grid-template-columns: 5rem 1fr; } }
:root[lang="ar"] .ct-line, :root[lang="ar"] .ct-lot dt, :root[lang="ar"] .ct-lot .lot-meta { letter-spacing: 0; }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  .footer, .ct-noprint, .ma-fab, .ma-panel { display: none !important; }
  .ct-page { max-width: none; padding: 0; }
  .ct-cover { break-after: page; min-height: 240mm; display: flex; flex-direction: column; justify-content: center; border: 0; }
  .ct-artist { break-before: auto; break-inside: auto; padding-top: 1.2rem; }
  .ct-artist-head { break-inside: avoid; break-after: avoid; page-break-after: avoid; }
  .ct-lots { break-before: avoid; }
  .ct-lots { grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
  .ct-lot { grid-template-columns: 34mm 1fr; }
  .ct-lot img { width: 34mm; height: 34mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  main.page-in { animation: none; }
}

/* Dark mode, by choice: the ☾ button in the top bar (theme.js) sets html[data-theme="dark"]; light is the
   museum's own look and the default. By night: warm charcoal, ivory type, bronze. */
:root { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] {
    --ink: #ece6dc; --ink-2: #c9c0b4; --ink-3: #a99f92;
    --paper: #121110; --paper-2: #1d1b19; --card: #191715;
    --line: rgba(236, 230, 220, 0.16);
    --accent: #e3a073; --accent-ink: #121110; --accent-soft: rgba(227, 160, 115, 0.14);
    --ok: #7fd49b; --warn: #e6b866; --gold: #c8ad74; --gold-ink: #cdb27a;
  }
html[data-theme="dark"] .topbar { background: rgba(18, 17, 16, .92); }
html[data-theme="dark"] .wish { background: rgba(25, 23, 21, .92); }
html[data-theme="dark"] .sr-list mark,
html[data-theme="dark"] .sr-mark { background: #5a4a26; }
  /* Gold buttons keep dark type, as on paper. */
html[data-theme="dark"] .hero .btn.primary,
html[data-theme="dark"] .promo .btn.primary,
html[data-theme="dark"] .ci-panel .btn.primary,
html[data-theme="dark"] .dir-band .btn.primary,
html[data-theme="dark"] .btn.dir-big { color: #16120f; }
  /* The museum's dark surfaces (the hero, the bands, the countdown pill, the dark chips, tickets) stay as they
     are by day: they keep the day's colours inside them, so nothing on them changes. */
html[data-theme="dark"] .hero,
html[data-theme="dark"] .promo,
html[data-theme="dark"] .ci-panel,
html[data-theme="dark"] .dir-band,
html[data-theme="dark"] .dir-pro,
html[data-theme="dark"] .dir-au-soon,
html[data-theme="dark"] .tb-cd,
html[data-theme="dark"] .chip.vip,
html[data-theme="dark"] .chip.annual-chip,
html[data-theme="dark"] .chip.sold,
html[data-theme="dark"] .ticket-head,
html[data-theme="dark"] .video-ph,
html[data-theme="dark"] .demo-banner,
html[data-theme="dark"] .dir-poster-img,
html[data-theme="dark"] .dir-poster-date,
html[data-theme="dark"] .toast,
html[data-theme="dark"] .ph-view,
html[data-theme="dark"] .dir-ev-hero,
html[data-theme="dark"] .dir-next {
    --ink: #16120f; --ink-2: #4a423b; --ink-3: #6b6159; --paper: #f6f1e9; --paper-2: #ece4d6; --card: #fffdf9;
    --line: rgba(22, 18, 15, 0.14); --accent: #75602f; --gold: #a68a52; --gold-ink: #75602f;
  }
html[data-theme="dark"] .dir-band,
html[data-theme="dark"] .dir-pro,
html[data-theme="dark"] .dir-au-soon { box-shadow: inset 0 0 0 1px rgba(200, 173, 116, .55); }
  /* By night the ink buttons are light; they brighten on hover. */
html[data-theme="dark"] .au-v-bid:hover,
html[data-theme="dark"] .gd-play:hover,
html[data-theme="dark"] .lot-page .co-pay:hover { background: #fff; color: #121110; }
  /* Black frames stand out from the dark page by a hairline. */
html[data-theme="dark"] .lot-img img,
html[data-theme="dark"] .au-v-fig,
html[data-theme="dark"] .lot-page .lot-figure,
html[data-theme="dark"] .au-feature-img,
html[data-theme="dark"] .ct-lot img,
html[data-theme="dark"] .cl-bid img,
html[data-theme="dark"] .au-artist-strip img,
html[data-theme="dark"] .au-v-thumb { box-shadow: 0 0 0 1px rgba(236, 230, 220, .12); }
html[data-theme="dark"] .shop-page .shop-item .cover { box-shadow: 0 0 0 1px rgba(236, 230, 220, .12); }
html[data-theme="dark"] dialog.wl { background: var(--paper); }
html[data-theme="dark"] .wl-room rect:first-child { fill: #e6ddd0; }
html[data-theme="dark"] img.cover-art,
html[data-theme="dark"] .cover svg { filter: none; }
.au-find-actions { align-items: center; }
.au-find-actions a.au-link { display: inline-flex; align-items: center; text-decoration: none; }
html[data-theme="dark"] .au-swatch span { box-shadow: inset 0 0 0 1px rgba(236, 230, 220, .35); }

/* Artists by letter */
.au-az { position: sticky; top: 61px; z-index: 5; margin: .8rem 0 0; padding: .3rem 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.au-az ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0; }
.au-az li > * { display: grid; place-items: center; min-width: 34px; height: 44px; font: 500 1.05rem var(--serif); }
.au-az button { border: 0; background: none; color: var(--ink); cursor: pointer; }
.au-az button:hover { color: var(--accent); }
.au-az span { color: var(--ink-3); opacity: .45; }
.au-az-at { scroll-margin-top: 120px; }
@media (max-width: 639px) { .au-az ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .au-az ol::-webkit-scrollbar { display: none; } .au-az li > * { min-width: 30px; } }

/* Wall labels with QR codes */
.qr-head { padding: 2rem 0 1.4rem; border-bottom: 1.5px solid var(--ink); }
.qr-head .au-v-bid { border: 0; cursor: pointer; margin-top: 1rem; }
.qr-labels { display: grid; gap: 1rem; margin-top: 1.6rem; }
@media (min-width: 700px) { .qr-labels { grid-template-columns: 1fr 1fr; } }
.qr-label { display: grid; grid-template-columns: 1fr 112px; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border: 1px solid var(--line); background: var(--card); break-inside: avoid; }
.qr-label .lot-meta { margin: 0; font: 600 .62rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.qr-artist { margin: .35rem 0 0; font: 600 .78rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.qr-title { margin: .15rem 0 0; font: italic 500 1.3rem/1.2 var(--serif); }
.qr-size { margin: .35rem 0 0; font-size: .78rem; color: var(--ink-2); }
.qr-scan { margin: .6rem 0 0; font: 600 .6rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.qr-code { width: 112px; height: 112px; background: #fff; padding: 6px; }
.qr-code svg { width: 100%; height: 100%; }
:root[lang="ar"] .qr-label .lot-meta, :root[lang="ar"] .qr-artist, :root[lang="ar"] .qr-scan { letter-spacing: 0; }
@media print {
  .qr-page { width: auto; max-width: none; margin: 0; padding: 0; }
  .qr-labels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5mm; margin: 0; padding: 0 1mm; }
  .qr-title { font-size: 1.1rem; }
  .qr-code { width: 30mm !important; height: 30mm !important; }
  .qr-label { height: 60mm; min-width: 0; padding: 5mm 6mm; border: .3mm solid #bbb; background: #fff; color: #16120f; overflow: hidden; }
  .qr-code { width: 32mm; height: 32mm; }
  .qr-label { grid-template-columns: 1fr 30mm; }
}
/* The light / dark button in the top bar */
.theme-btn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.theme-btn:hover { border-color: var(--ink); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn svg[hidden] { display: none; }
@media (max-width: 420px) { .theme-btn { width: 36px; height: 36px; } }
/* Room for the light / dark button: on a phone the language picker shows as a globe (its list still names each
   language); on a computer the menu sits a little closer. */
.topbar { gap: .75rem; }
@media (min-width: 900px) { .main-nav { gap: .75rem; } .main-nav a { font-size: .86rem; } }
@media (min-width: 1240px) { .main-nav a { white-space: nowrap; } }
@media (max-width: 639px) {
  .topbar { gap: .5rem; }
  .lang select { width: 40px; height: 36px; padding: 0; color: transparent; text-indent: -999px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316120f' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3Z'/%3E%3C/svg%3E");
    background-size: 18px 18px; background-position: center; }
  .lang select option { color: #16120f; text-indent: 0; }
  html[data-theme="dark"] .lang select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ece6dc' stroke-width='1.5'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3Z'/%3E%3C/svg%3E"); }
  html[data-theme="dark"] .lang select option { color: #ece6dc; background: #191715; }
}
@media (max-width: 370px) { .brand-name { font-size: 1.3rem; } .brand-desc { font-size: .58rem; } }

/* One-time events (an encounter elsewhere, a book presented) */
.ev-card-sub, .ev-sub { font: italic 400 1.15rem/1.35 var(--serif); color: var(--ink-2); }
.ev-book { display: grid; grid-template-columns: 96px 1fr; gap: 1.1rem; align-items: center; margin-top: 1.6rem; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ev-book-cover svg { width: 96px; height: auto; box-shadow: 0 10px 24px rgba(22, 18, 15, .22); }
.ev-book > span:last-child { display: grid; gap: .2rem; }
.ev-book .eyebrow { margin: 0; }
.ev-book-title { font: italic 500 1.35rem/1.2 var(--serif); }
.ev-book-sub { font-size: .88rem; color: var(--ink-2); }
.ev-book .lot-go { justify-self: start; }
.ev-poster { margin: 1.8rem 0 0; max-width: 520px; }
.ev-poster img { width: 100%; height: auto; display: block; box-shadow: 0 14px 34px rgba(22, 18, 15, .22); }
