@font-face{font-family:'Assistant';font-style:normal;font-weight:200 800;font-display:swap;src:url(/fonts/assistant-hebrew.woff2) format('woff2');unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F}
@font-face{font-family:'Assistant';font-style:normal;font-weight:200 800;font-display:swap;src:url(/fonts/assistant-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Assistant';font-style:normal;font-weight:200 800;font-display:swap;src:url(/fonts/assistant-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Frank Ruhl Libre';font-style:normal;font-weight:300 900;font-display:swap;src:url(/fonts/frank-ruhl-libre-hebrew.woff2) format('woff2');unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F}
@font-face{font-family:'Frank Ruhl Libre';font-style:normal;font-weight:300 900;font-display:swap;src:url(/fonts/frank-ruhl-libre-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Frank Ruhl Libre';font-style:normal;font-weight:300 900;font-display:swap;src:url(/fonts/frank-ruhl-libre-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Old Standard TT';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/old-standard-tt-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Old Standard TT';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/old-standard-tt-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* Faces for Names. A dim memorial hall, then a lit archive reading room.
   Navy, near-black, cool white. Square corners and hairlines. */

:root {
  --night: #06101f;
  --navy: #09213d;
  --mount: #e6e8ec;
  --frame: #1d2e4b;
  --steel: #93a2b8;
  --steel-2: #b7c2d3;
  --mist: #e3e8f0;
  --white: #fbfcfd;
  --paper: #f3f4f6;
  --ink: #0b1626;
  --ink-2: #47556c;
  --rule: #cdd3dd;
  --rule-dark: rgba(183, 194, 211, 0.2);
  --focus: #5f97f5;
  --display: 'Old Standard TT', 'Frank Ruhl Libre', 'Times New Roman', serif;
  --text: 'Assistant', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bar: 76px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 8px); scrollbar-color: #3d5270 var(--night); }
body { margin: 0; background: var(--night); color: var(--mist); font: 400 1.125rem/1.65 var(--text); overflow-x: clip; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 0.7em; text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
::selection { background: #2f62a8; color: #fff; }
input, select, button { font: inherit; color: inherit; }
input, select { caret-color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 30; background: var(--white); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 2 * var(--pad)); margin-inline: auto; }
.wrap.narrow { width: min(720px, 100% - 2 * var(--pad)); }
svg.out { width: 0.72em; height: 0.72em; display: inline-block; margin-inline-start: 0.35em; flex: none; }
[dir='rtl'] svg.out { transform: scaleX(-1); }

.river { position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none; }
.top, main, .foot { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 20; min-height: var(--bar); display: flex; align-items: center; gap: clamp(10px, 2vw, 28px);
  padding: 10px var(--pad); background: var(--night); border-bottom: 1px solid var(--rule-dark); color: var(--mist);
}
.brand { flex: none; display: block; }
.brand img { height: 44px; width: auto; }
.links { display: flex; gap: clamp(14px, 1.8vw, 28px); margin-inline-start: auto; font-size: 1rem; }
.links a { text-decoration: none; color: var(--steel-2); white-space: nowrap; padding: 8px 0; }
.links a:hover { color: var(--white); text-decoration: underline; }
.go { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 1rem; border: 1px solid var(--steel); padding: 8px 15px; min-height: 44px; white-space: nowrap; }
.go svg { width: 18px; height: 18px; }
.go:hover, .go[aria-current] { background: var(--white); border-color: var(--white); color: var(--navy); }
.lang { font-weight: 600; text-decoration: none; font-size: 1rem; padding: 8px 2px; white-space: nowrap; }
.lang:hover { text-decoration: underline; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 1rem; min-height: 44px; display: flex; align-items: center; padding: 0 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; inset-inline-end: 0; top: calc(100% + 12px); min-width: 230px; background: var(--navy); border: 1px solid var(--rule-dark); display: grid; padding: 8px 0; box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.7); }
.menu nav a { padding: 11px 22px; text-decoration: none; }
.menu nav a:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------------------------------------------------------------- the hall */
.hall {
  min-height: calc(100vh - var(--bar)); min-height: calc(100svh - var(--bar)); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center; gap: clamp(24px, 6vw, 110px); padding: clamp(24px, 4vh, 64px) var(--pad) 68px; position: relative;
  max-width: 1400px; margin-inline: auto;
}
.hall-text { position: relative; max-width: 40rem; }
.hall h1 { font-size: clamp(2.7rem, min(6vw, 9.4vh), 5.4rem); line-height: 1.04; letter-spacing: -0.012em; color: var(--white); margin-bottom: 0.4em; }
.hall .lede { font-size: clamp(1.15rem, 1.5vw, 1.33rem); color: var(--steel-2); max-width: 34rem; }
.hall-search { margin: clamp(20px, 3.4vh, 34px) 0 18px; }
.hall-search label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.join { display: flex; background: var(--white); border: 1px solid var(--white); }
.join:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.join input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-size: 1.25rem; padding: 17px 18px; border-radius: 0; }
.join input:focus { outline: none; }
.join input::placeholder { color: #5b6880; opacity: 1; font-size: 1.05rem; }
.join button { border: 0; margin: 5px; padding: 0 26px; background: var(--navy); color: var(--white); font-weight: 700; cursor: pointer; min-height: 52px; }
.join button:hover { background: #163a66; }
.scope { color: var(--mist); margin-bottom: 8px; }
.scope strong { font-family: var(--display); font-weight: 400; font-size: 1.3em; }
.caveat { font-size: 0.98rem; color: var(--steel); max-width: 34rem; }

.hall-face { margin: 0; justify-self: center; width: min(360px, 100%); position: relative; }
.hall-face a { display: block; text-decoration: none; }
.hall-face .mat { position: relative; display: block; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--bar) - 210px); margin-inline: auto; background: var(--mount); border: 5px solid var(--frame); box-shadow: 0 22px 26px -18px rgba(0, 0, 0, 0.9); }
/* Laid over the mount, so the photograph's own shape can never stretch the frame (Safari). */
.hall-face img { position: absolute; top: 22px; left: 22px; width: calc(100% - 44px); height: calc(100% - 44px); object-fit: contain; transition: opacity 1.3s var(--ease), filter 2.2s var(--ease); }
.hall-face.developing img { opacity: 0; filter: brightness(0.3) blur(4px); transition-duration: 0.35s; }
.hall-face figcaption { text-align: center; padding-top: 16px; display: grid; gap: 2px; transition: opacity 0.8s var(--ease); }
.hall-face.developing figcaption { opacity: 0; transition-duration: 0.3s; }
.hall-face .n { font-family: var(--display); font-size: 1.4rem; color: var(--white); line-height: 1.3; }
.hall-face .b { color: var(--steel-2); font-size: 1rem; }
.hall-face .s { text-decoration: underline; text-underline-offset: 0.25em; font-size: 0.98rem; margin-top: 4px; }

.motion { position: absolute; bottom: 14px; inset-inline-end: var(--pad); display: inline-flex; align-items: center; gap: 8px; background: rgba(6, 16, 31, 0.85); border: 1px solid var(--rule-dark); color: var(--steel-2); font-size: 0.9rem; padding: 8px 13px; min-height: 44px; cursor: pointer; }
.motion:hover { color: var(--white); border-color: var(--steel); }
.motion svg { width: 11px; height: 11px; fill: currentColor; }
.motion .i-play, .motion.is-paused .i-pause { display: none; }
.motion.is-paused .i-play { display: inline; }

/* ---------------------------------------------------------------- the gallery */
.faces { overflow: hidden; background: rgba(10, 24, 44, 0.9); border-block: 1px solid var(--rule-dark); padding: clamp(72px, 10vw, 128px) 0 56px; }
.honest { margin-top: 0; margin-bottom: 10px; text-align: center; font-size: 1rem; color: var(--steel-2); }
.faces h2, .story h2, .desk h2 { color: var(--white); }
.faces h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); text-align: center; }
.faces .lede { text-align: center; color: var(--steel-2); }
.faces em { font-style: normal; font-weight: 700; color: var(--white); }
/* Hung like a gallery wall: every frame is centred on the same line, whatever its shape. */
.hang { list-style: none; margin: 56px auto; padding: 0 var(--pad); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 60px clamp(20px, 3.4vw, 48px); max-width: 1400px; }
.hang li { width: calc(236px * var(--ratio) + 26px); max-width: 100%; }
.portrait { display: block; text-decoration: none; }
.portrait .mat { display: block; padding: 14px; background: var(--mount); border: 4px solid var(--frame); box-shadow: 0 18px 20px -14px rgba(0, 0, 0, 0.95); transition: border-color 0.4s var(--ease), transform 0.5s var(--ease); }
.portrait:hover .mat, .portrait:focus-visible .mat { border-color: var(--steel-2); transform: translateY(-4px); }
.portrait img { width: 100%; }
.portrait .label { display: grid; text-align: center; padding-top: 14px; gap: 2px; }
.portrait .n { font-family: var(--display); font-size: 1.08rem; color: var(--white); line-height: 1.35; }
.portrait .b { font-size: 0.92rem; color: var(--steel); }
.portrait:hover .n { text-decoration: underline; text-underline-offset: 0.25em; }
.credit { font-size: 0.95rem; color: var(--steel); text-align: center; margin-bottom: 0; }

/* ---------------------------------------------------------------- Polina */
.story { padding: clamp(104px, 15vw, 200px) 0; background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(6, 16, 31, 0.95) 45%, rgba(6, 16, 31, 0.68)); }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.polina { font-size: clamp(3.8rem, 9vw, 6rem); letter-spacing: 0.015em; margin: -0.14em 0 0; padding-bottom: 28px; border-bottom: 1px solid var(--rule-dark); }
.story .prose { max-width: 34rem; font-size: clamp(1.2rem, 1.8vw, 1.42rem); line-height: 1.75; color: var(--mist); }
.story .quote { margin-inline: 0; text-align: start; max-width: 34rem; border-top: 1px solid var(--rule-dark); padding-top: 40px; margin-top: 56px; }
.quote { margin: clamp(64px, 9vw, 104px) auto 0; max-width: 40rem; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.45; }
.quote blockquote p { margin-bottom: 0.6em; text-wrap: balance; }
.quote blockquote p::before { content: '“'; }
.quote blockquote p::after { content: '”'; }
[dir='rtl'] .quote blockquote p::before { content: '״'; }
[dir='rtl'] .quote blockquote p::after { content: '״'; }
.quote figcaption { font-size: 1rem; color: var(--steel); }
/* ---------------------------------------------------------------- the lit rooms */
.paper { background: var(--paper); color: var(--ink); }
.paper h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); color: var(--navy); }
.paper h3 { font-size: 1.6rem; color: var(--navy); }
.paper .lede { font-size: 1.24rem; color: var(--ink-2); max-width: 40rem; }
.paper .note { font-size: 1rem; color: var(--ink-2); }
.method { padding: clamp(80px, 10vw, 132px) 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 18px; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 2.6rem; color: #6b7c97; display: block; line-height: 1; margin-bottom: 18px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }

.levels { margin-top: clamp(72px, 9vw, 112px); }
.levels dl { margin: 0 0 20px; border-top: 2px solid var(--navy); }
.levels dl div { display: grid; grid-template-columns: 74px 150px 1fr auto; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.levels dt { font-family: var(--display); font-size: 1.3rem; color: var(--navy); }
.levels dd { margin: 0; }
.levels .count { color: var(--ink-2); font-size: 1rem; font-variant-numeric: tabular-nums; }
.pips { display: inline-flex; gap: 3px; color: var(--navy); vertical-align: -1px; flex: none; }
.pips i { width: 9px; height: 15px; border: 1px solid currentColor; }
.pips i.on { background: currentColor; }

.cautions { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); margin-top: clamp(72px, 9vw, 112px); align-items: start; }
.cautions ul { padding: 0; margin: 0; list-style: none; }
.cautions li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.cautions li:first-child { border-top: 1px solid var(--rule); }
.samename { background: var(--white); border: 1px solid var(--rule); padding: clamp(22px, 3vw, 36px); }
.samename p:last-child { margin: 0; }
.textlink { font-weight: 700; color: var(--navy); }
.method .quote { color: var(--navy); }
.method .quote figcaption { color: var(--ink-2); }

.archives { padding: clamp(80px, 10vw, 128px) 0; border-top: 1px solid var(--rule); background: #e9ecf1; }
.archives .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.archives .head { position: sticky; top: calc(var(--bar) + 32px); }
.ledger { width: 100%; border-collapse: collapse; font-size: 1.04rem; }
.ledger th, .ledger td { padding: 13px 0; border-bottom: 1px solid #c3cad6; text-align: start; vertical-align: baseline; }
.ledger thead th { border-bottom: 2px solid var(--navy); font-size: 0.95rem; color: var(--ink-2); font-weight: 700; padding-top: 0; }
.ledger tbody th { font-weight: 600; padding-inline-end: 16px; }
.ledger tbody a { text-decoration-color: #8c9bb0; }
.ledger tbody a:hover { text-decoration-color: currentColor; }
.ledger td { color: var(--ink-2); padding-inline-end: 12px; }
.ledger .num { text-align: end; font-variant-numeric: tabular-nums; padding-inline-end: 0; white-space: nowrap; }
.ledger td.num { font-family: var(--display); color: var(--navy); font-size: 1.15rem; }
.ledger th:nth-child(1), .ledger td:nth-child(1) { width: 62%; }
.rest summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 0; text-decoration: underline; text-underline-offset: 0.25em; }
.rest[open] summary { border-bottom: 1px solid #c3cad6; }

.press { padding: clamp(80px, 10vw, 128px) 0; }
.clippings { list-style: none; padding: 0; margin: 40px 0 24px; border-top: 2px solid var(--navy); }
.clippings li { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.clippings p { margin: 0; }
.clippings .when { font-size: 0.98rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.clippings .outlet { font-weight: 700; line-height: 1.4; }
.clippings .headline { font-family: var(--display); font-size: 1.3rem; line-height: 1.4; margin: 4px 0; color: var(--navy); }
[dir='ltr'] .clippings .headline[dir='rtl'] { text-align: left; }
[dir='rtl'] .clippings .headline[dir='ltr'] { text-align: right; }
.clippings .details { font-size: 0.94rem; color: var(--ink-2); }
.read { display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; border: 1px solid var(--navy); color: var(--navy); padding: 8px 16px; min-height: 44px; white-space: nowrap; }
.read:hover { background: var(--navy); color: var(--white); }

/* ---------------------------------------------------------------- desk and foot */
.desk { padding: clamp(88px, 11vw, 140px) 0; text-align: center; background: radial-gradient(ellipse 68% 70% at 50% 50%, rgba(6, 16, 31, 0.93) 40%, rgba(6, 16, 31, 0.62)); }
.desk h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.desk .lede { font-size: 1.22rem; color: var(--steel-2); }
.desk .note, .desk .sheet { color: var(--steel); font-size: 1rem; }
.desk .sheet { margin: 40px 0 0; border-top: 1px solid var(--rule-dark); padding-top: 28px; }
.desk .sheet a { color: var(--mist); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border: 1px solid currentColor; background: transparent; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.35; text-align: center; }
.button:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.button.solid { background: var(--navy); border-color: var(--navy); color: var(--white); }
.button.solid:hover { background: #163a66; }
.desk .button { background: var(--white); border-color: var(--white); color: var(--navy); margin: 14px 0 10px; }
.desk .button:hover { background: var(--mist); color: var(--navy); }

.foot { background: rgba(3, 9, 19, 0.92); border-top: 1px solid var(--rule-dark); padding: 68px 0 44px; color: var(--steel-2); font-size: 1rem; }
.foot-brand { display: inline-block; margin-bottom: 20px; }
.foot-brand img { height: 48px; width: auto; }
.foot-main p { max-width: 44rem; margin-bottom: 0.5em; }
.foot-main ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 6px 30px; }
.foot-main li a { color: var(--mist); display: inline-flex; align-items: center; min-height: 44px; }
.foot-ltc { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--rule-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; font-size: 0.95rem; color: var(--steel); }
.foot-ltc p { margin: 0; max-width: 44rem; }
.foot-ltc a { color: var(--steel-2); }

/* ---------------------------------------------------------------- the reading room */
.room { background: var(--paper); color: var(--ink); min-height: 80vh; padding: clamp(36px, 5vw, 68px) 0 100px; }
.room h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); color: var(--navy); margin-bottom: 0.25em; }
.room-head p { color: var(--ink-2); font-size: 1.14rem; max-width: 42rem; }
.finder { background: var(--white); border: 1px solid var(--rule); padding: clamp(16px, 2.4vw, 28px); box-shadow: 0 24px 40px -32px rgba(9, 33, 61, 0.55); }
.finder p { margin: 0; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; gap: 16px; align-items: end; }
.field label, .finder legend { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 6px; color: var(--navy); }
.finder input[type='search'], .finder input[type='text'], .finder select { width: 100%; min-height: 56px; border: 1px solid #7c8aa2; background: var(--white); color: var(--ink); padding: 10px 14px; font-size: 1.2rem; border-radius: 0; }
.finder select { font-size: 1.05rem; }
.finder input::placeholder { color: #5f6c83; opacity: 1; font-size: 1.04rem; }
.finder .go-field .button { min-height: 56px; padding-inline: 34px; width: 100%; }
.refine { margin-top: 14px; }
.refine summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 8px 0; width: fit-content; }
.refine-body { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: end; padding-top: 14px; border-top: 1px solid var(--rule); margin-top: 8px; }
.refine-body .field { flex: 1 1 320px; }
.finder fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.finder legend { float: none; padding: 0; }
.check { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--rule); padding: 8px 13px; min-height: 46px; cursor: pointer; font-size: 1rem; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.check:has(input:checked) { border-color: var(--navy); background: #e8edf5; }
.room > .wrap > .caveat { color: var(--ink-2); margin: 18px 0 0; max-width: none; font-size: 1rem; }
.notice { border: 1px solid var(--navy); padding: 18px 20px; background: var(--white); margin-top: 24px; }
.status { margin: 34px 0 0; padding-bottom: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; scroll-margin-top: calc(var(--bar) + 12px); }
.status strong { font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--navy); }
.status .button { min-height: 44px; padding: 6px 14px; font-size: 0.98rem; color: var(--navy); }
.status .button:hover { color: var(--white); }
.status-note { flex-basis: 100%; color: var(--ink-2); font-size: 1rem; }
.status-title { flex-basis: 100%; }
/* The key to the four marks stays with the results. */
.key { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding: 10px 0; margin-bottom: 20px; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--rule); background: var(--paper); font-size: 0.98rem; color: var(--navy); }
.key ul { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.key li { display: inline-flex; align-items: center; gap: 7px; }
.key .pips i { width: 7px; height: 13px; }
.key a { color: var(--navy); }
@media (min-width: 701px) { .key { position: sticky; top: var(--bar); z-index: 5; } }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 22px; align-items: start; }
/* A catalogue card with ruled lines. */
.card { position: relative; background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--navy); padding: 18px 20px 14px; box-shadow: 0 18px 28px -24px rgba(9, 33, 61, 0.6); animation: pull 0.45s var(--ease); min-width: 0; }
@keyframes pull { from { transform: translateY(10px); opacity: 0.4; } }
.card-top { display: flex; gap: 16px; align-items: flex-start; }
.card-top > div { flex: 1; min-width: 0; }
.card-top > div + * { flex: none; }
.card:has(.card-face) dl div { grid-template-columns: 82px minmax(0, 1fr); gap: 8px; }
.card:has(.card-face) dd .pips { margin-inline-end: 6px; gap: 2px; }
.card:has(.card-face) .pips i { width: 7px; }
.card-name { font-size: 1.42rem; line-height: 1.28; color: var(--navy); margin: 0 0 10px; overflow-wrap: anywhere; text-wrap: pretty; }
[dir='rtl'] .card-name { text-align: right; }
.card dl { margin: 0; border-top: 1px solid #9fabbe; font-size: 1rem; }
.card dl div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; border-bottom: 1px solid #e1e5ec; padding: 6px 0; }
.card dt { color: var(--ink-2); }
.card dd { margin: 0; overflow-wrap: anywhere; }
.card dd .pips { margin-inline-end: 9px; }
.card dd strong { font-weight: 700; }
.card-face { margin: 0; width: 84px; }
.card-face img { width: 100%; border: 1px solid var(--rule); padding: 3px; background: var(--white); }
.card-face figcaption { font-size: 0.82rem; line-height: 1.35; margin-top: 4px; color: var(--ink-2); }
/* One record on its own: the face first, large and framed, with its label. */
.card.solo { grid-column: 1 / -1; width: 100%; max-width: 560px; justify-self: center; }
.card.solo .card-top { flex-direction: column-reverse; align-items: stretch; gap: 18px; }
.card.solo .card-face { width: min(330px, 100%); align-self: center; text-align: center; }
.card.solo .card-face img { width: 100%; padding: 16px; background: var(--mount); border: 5px solid var(--frame); }
.card.solo .card-face figcaption { font-size: 0.95rem; margin-top: 10px; }
.card.solo .card-name { font-size: 2rem; text-align: center; }
.card.solo dl div { grid-template-columns: 110px minmax(0, 1fr); }
.card-same { margin: 14px 0 0; padding: 11px 13px; border: 1px dashed var(--navy); font-size: 0.97rem; line-height: 1.5; background: repeating-linear-gradient(135deg, rgba(9, 33, 61, 0.08) 0 2px, transparent 2px 7px); }
.card-same a { font-weight: 700; white-space: nowrap; }
.card-main { margin: 14px 0 2px; }
.card-main a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 12px; background: var(--navy); color: var(--white); font-weight: 700; text-decoration: none; }
.card-main a:hover { background: #163a66; }
.card-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; margin: 0; }
.card-links a { display: inline-flex; align-items: center; min-height: 46px; color: var(--navy); font-weight: 700; font-size: 1rem; }
.card-fix { margin: 0; font-size: 0.92rem; border-top: 1px solid #e1e5ec; padding-top: 6px; }
.card-fix a { color: var(--ink-2); display: inline-block; padding: 6px 0; }
.more-row { text-align: center; margin: 30px 0 0; color: var(--navy); }
.similar { margin-top: 64px; }
.similar h2 { font-size: 1.8rem; color: var(--navy); margin-bottom: 0.3em; }
.similar > p { color: var(--ink-2); }
.share { text-align: center; margin: 36px 0 0; color: var(--navy); }
.legend { margin-top: 84px; border-top: 2px solid var(--navy); padding-top: 28px; max-width: 780px; }
.legend h2 { font-size: 1.7rem; color: var(--navy); }
.legend dl { margin: 0 0 22px; }
.legend dl div { display: grid; grid-template-columns: 62px 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.legend dt { font-weight: 700; }
.legend dd { margin: 0; }
.legend p { font-size: 1rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- method page and not found */
.document { padding: clamp(48px, 7vw, 96px) 0 110px; }
.document h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); color: var(--navy); }
.document h2 { font-size: 1.75rem; margin: 2.4em 0 0.7em; border-top: 1px solid var(--rule); padding-top: 1.2em; }
.document ol, .document ul { padding-inline-start: 1.3em; }
.document li { margin-bottom: 0.7em; }
.plain-levels { margin: 0 0 18px; }
.plain-levels div { display: grid; grid-template-columns: 62px 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.plain-levels dt { font-weight: 700; }
.plain-levels dd { margin: 0; }
.plain-levels .count { color: var(--ink-2); white-space: nowrap; }
.document ul.credits { list-style: none; padding: 0; }
.credits li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.credits p { margin: 0 0 4px; }
.credits .details { font-size: 0.95rem; color: var(--ink-2); }
.credits a { margin-inline-end: 18px; }
.lost { padding: 90px 0 130px; text-align: center; }
.lost > .wrap > div { padding: 40px 0; border-bottom: 1px solid var(--rule-dark); }
.lost h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--white); }
.lost .button { margin: 4px; }
.lost .button.solid { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------------------------------------------------------------- Hebrew */
[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3 { letter-spacing: 0; line-height: 1.18; }
[dir='rtl'] .hall h1 { font-weight: 500; }
[dir='rtl'] .polina { font-weight: 500; letter-spacing: 0.01em; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1180px) {
  .links { display: none; }
  .menu { display: block; }
  .go { margin-inline-start: auto; }
}
@media (max-width: 900px) {
  .hall { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-top: 24px; max-width: 40rem; }
  .hall-text { display: contents; }
  .hall h1 { order: 1; font-size: clamp(2.5rem, 11vw, 4.2rem); margin-bottom: 18px; }
  .hall-face { order: 2; width: 100%; justify-self: stretch; margin-bottom: 18px; }
  .hall-face a { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 18px; align-items: center; }
  .hall-face .mat { border-width: 3px; max-height: none; width: 100%; }
  .hall-face img { top: 9px; left: 9px; width: calc(100% - 18px); height: calc(100% - 18px); }
  .hall-face figcaption { text-align: start; padding: 0; justify-items: start; }
  .hall-face .n { font-size: 1.28rem; }
  .hall-search { order: 3; margin-top: 0; }
  .hall .lede { order: 4; }
  .scope { order: 5; }
  .caveat { order: 6; }
  .motion { order: 7; position: static; align-self: flex-end; margin-top: 12px; }
  .panel { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cautions, .archives .wrap { grid-template-columns: minmax(0, 1fr); }
  .archives .head { position: static; }
}
/* Narrower screens draw the connection beside the portrait: as each photograph develops, its name drifts in and
   a thread reaches from the face to it. */
@media (max-width: 1099px) and (min-width: 901px) {
  .hall-face figcaption { position: relative; padding-top: 40px; }
  .hall-face figcaption::before { content: ''; position: absolute; top: 2px; left: 50%; width: 1px; height: 34px; background: var(--steel-2); transform-origin: top; transition: transform 1.1s var(--ease) 0.6s; }
  .hall-face.developing figcaption::before { transform: scaleY(0); transition: none; }
}
@media (max-width: 900px) {
  /* left and right are physical here: the name itself is set left-to-right in both languages */
  .hall-face .n { position: relative; transition: translate 1.4s var(--ease) 0.4s; }
  .hall-face .n::before { content: ''; position: absolute; left: -19px; top: 0.72em; width: 15px; height: 1px; background: var(--steel-2); transform-origin: left; transition: transform 1.1s var(--ease) 0.7s; }
  .hall-face .n::after { content: ''; position: absolute; left: -5px; top: calc(0.72em - 2px); width: 5px; height: 5px; border-radius: 50%; background: var(--white); transition: opacity 0.4s ease 1.6s; }
  .hall-face.developing .n { translate: 16px 0; transition: none; }
  .hall-face.developing .n::before { transform: scaleX(0); transition: none; }
  .hall-face.developing .n::after { opacity: 0; transition: none; }
  html[dir='rtl'] .hall-face .n::before { left: auto; right: -19px; transform-origin: right; }
  html[dir='rtl'] .hall-face .n::after { left: auto; right: -5px; }
  html[dir='rtl'] .hall-face.developing .n { translate: -16px 0; }
}
@media (max-width: 700px) {
  :root { --bar: 66px; }
  body { font-size: 1.1rem; }
  .brand img { height: 36px; }
  .go { padding: 8px 12px; }
  .fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fields .name { grid-column: 1 / -1; }
  .levels dl div { grid-template-columns: 62px minmax(0, 1fr) auto; row-gap: 6px; }
  .levels .what { grid-column: 1 / -1; order: 1; }
  .clippings li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .clippings .read { justify-self: start; }
  .hang { gap: 38px 14px; padding: 0 16px; align-items: flex-start; }
  .hang li { width: calc(50% - 7px); }
  .portrait .mat { padding: 7px; }
  .portrait .n { font-size: 0.98rem; }
  .ledger th:nth-child(1), .ledger td:nth-child(1) { width: auto; }
  .legend dl div, .plain-levels div { grid-template-columns: 62px minmax(0, 1fr); }
  .legend dd, .plain-levels dd { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .go span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .go { width: 46px; justify-content: center; padding: 0; }
  .top { gap: 10px; padding-inline: 16px; }
  .join { flex-direction: column; }
  .join button { margin: 0 6px 6px; }
  .join input { padding: 15px 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .fields .go-field { align-self: end; }
  .ledger td:nth-child(2), .ledger th:nth-child(2) { display: none; }
}
@media (max-width: 360px) {
  .top > .lang { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .river, .top .links, .menu, .motion { display: none !important; }
  body, .paper, .room { background: #fff; color: #000; }
}
.hang li:nth-child(1){--ratio:0.654}
.hang li:nth-child(2){--ratio:0.936}
.hang li:nth-child(3){--ratio:0.912}
.hang li:nth-child(4){--ratio:1.000}
.hang li:nth-child(5){--ratio:0.620}
.hang li:nth-child(6){--ratio:0.665}
.hang li:nth-child(7){--ratio:0.821}
.hang li:nth-child(8){--ratio:0.676}
.hang li:nth-child(9){--ratio:0.669}
.hang li:nth-child(10){--ratio:0.726}
.hang li:nth-child(11){--ratio:0.814}
.hang li:nth-child(12){--ratio:0.622}
.hang li:nth-child(13){--ratio:1.062}
.hang li:nth-child(14){--ratio:0.666}
.hang li:nth-child(15){--ratio:0.694}
.hang li:nth-child(16){--ratio:0.850}
