/* Otzar Ganuz. Outside is night velvet; the one rule on each page is the brass sirtut. */
:root {
  --night: #141210;
  --soot: #1e1b17;
  --line: rgba(201, 169, 106, 0.28);
  --gold: #c9a96a;
  --parchment: #eadfc8;
  --vellum: #c9bda4;
  --dust: #8a7f6a;
  --red: #d98a7a;
  --display: "Fraunces", Georgia, serif;
  --text: "Newsreader", Georgia, serif;
  --ui: system-ui, -apple-system, "Segoe UI", sans-serif;
  --hebrew: "Frank Ruhl Libre", "David", serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
body.og { margin: 0; background: var(--night); color: var(--parchment); font-family: var(--text); font-size: 18px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
.og a { color: var(--gold); text-decoration: none; }
.og a:hover { text-decoration: underline; text-underline-offset: 3px; }
.og h1, .og h2, .og h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.12; margin: 0 0 0.4em; }
.og h1 { font-size: clamp(30px, 4vw, 44px); }
.og h2 { font-size: clamp(22px, 2.6vw, 28px); }
.og h3 { font-size: 20px; }
.he { font-family: var(--hebrew); direction: rtl; }
.og-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px clamp(18px, 4vw, 48px) 0; }
.og-brand { display: flex; align-items: baseline; gap: 12px; color: var(--parchment); }
.og-brand .he { font-size: 26px; line-height: 1; }
.og-brand-name { font-family: var(--display); font-size: 18px; color: var(--vellum); }
.og-nav { display: flex; gap: 18px; font-family: var(--ui); font-size: 14px; }
.og-nav a { color: var(--vellum); }
.og-main { flex: 1; padding: 0 clamp(18px, 4vw, 48px) 48px; }
.og-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px clamp(18px, 4vw, 48px) 28px; border-top: 1px solid var(--line); font-family: var(--ui); font-size: 13px; color: var(--dust); }
.og-rule { height: 1px; background: var(--gold); margin: 18px 0 22px; }
.og-rule-draw { transform-origin: left center; animation: og-draw 1.1s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes og-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .og-rule-draw { animation: none; } }
.og-hero { max-width: 760px; padding: clamp(40px, 10vh, 120px) 0 40px; }
.og-wordmark { font-size: clamp(96px, 16vw, 160px); line-height: 1; margin: 0; color: var(--parchment); }
.og-hero h1 { font-size: clamp(24px, 3vw, 34px); color: var(--vellum); margin-top: 20px; }
.og-lede { font-size: 19px; color: var(--vellum); max-width: 62ch; }
.og-small { font-family: var(--ui); font-size: 13px; color: var(--vellum); }
.og-dim { color: var(--dust); }
.og-error { color: var(--red); font-family: var(--ui); font-size: 14px; }
.og-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.og-btn { display: inline-block; padding: 10px 18px; border: 1px solid var(--vellum); color: var(--parchment); font-family: var(--ui); font-size: 14px; background: transparent; cursor: pointer; }
.og-btn:hover { border-color: var(--gold); text-decoration: none; }
.og-btn-primary { background: var(--parchment); color: var(--night); border-color: var(--parchment); }
.og-btn-primary:hover { background: #fff; }
.og-three { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 1000px; margin: 20px 0 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.og-three p { color: var(--vellum); margin: 0; }
.og-narrow { max-width: 620px; padding-top: clamp(24px, 6vh, 64px); }
.og-wide { max-width: 1180px; padding-top: 24px; }
.og-form label { display: block; font-family: var(--ui); font-size: 13px; color: var(--vellum); margin: 14px 0 0; }
.og-form input[type=text], .og-form input[type=email], .og-form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; background: var(--soot); color: var(--parchment); border: 1px solid var(--line); font-family: var(--text); font-size: 17px; }
.og-form input:focus, .og-form textarea:focus { outline: none; border-color: var(--gold); }
.og-form p { margin-top: 20px; }
.og-hp { position: absolute; left: -9999px; }
.og-prose p { color: var(--vellum); }
.og-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.og-list li { border-bottom: 1px solid var(--line); }
.og-list a { display: grid; grid-template-columns: 180px 1fr; gap: 22px; padding: 22px 0; color: var(--parchment); align-items: start; }
.og-list a:hover { text-decoration: none; background: linear-gradient(90deg, rgba(201,169,106,0.06), transparent); }
.og-plate-thumb { aspect-ratio: 4/3; background: var(--soot); overflow: hidden; }
.og-plate-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.og-label { display: grid; gap: 4px; }
.og-label-title { font-family: var(--display); font-size: 24px; }
.og-label-he { font-size: 20px; color: var(--vellum); text-align: left; direction: rtl; }
.og-label-meta { font-family: var(--ui); font-size: 13px; color: var(--gold); }
.og-label-line { color: var(--vellum); }
.og-badge { display: inline-block; font-family: var(--ui); font-size: 12px; letter-spacing: 0.02em; color: var(--night); background: var(--gold); padding: 2px 8px; width: max-content; }
@media (max-width: 640px) { .og-list a { grid-template-columns: 1fr; } .og-top { flex-direction: column; gap: 10px; } }
.og-piece { max-width: 1240px; padding-top: 24px; }
.og-piece-he { font-size: 30px; margin: 0 0 6px; text-align: left; }
.og-piece-meta { font-family: var(--ui); font-size: 14px; color: var(--gold); margin: 0; }
.og-spread { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .og-spread { grid-template-columns: 1fr; } }
.og-viewer { width: 100%; aspect-ratio: 4/3; background: var(--soot); border: 1px solid var(--line); }
.og-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; }
.og-strip-item { flex: 0 0 auto; width: 110px; background: var(--soot); border: 1px solid var(--line); padding: 0; cursor: pointer; color: var(--vellum); font-family: var(--ui); font-size: 11px; }
.og-strip-item.is-on { border-color: var(--gold); }
.og-strip-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.og-strip-item span { display: block; padding: 4px 0; }
.og-summary { font-size: 20px; color: var(--parchment); margin-top: 0; }
.og-desc { color: var(--vellum); }
.og-dl { display: grid; grid-template-columns: 9em 1fr; gap: 6px 14px; margin: 18px 0; border-top: 1px solid var(--line); padding-top: 14px; }
.og-dl dt { font-family: var(--ui); font-size: 12px; color: var(--dust); padding-top: 4px; }
.og-dl dd { margin: 0; color: var(--parchment); }
.og-price { font-family: var(--display); font-size: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.og-seal { font-family: var(--ui); font-size: 13px; color: var(--gold); border: 1px solid var(--line); padding: 10px 12px; }
.og-inquire { margin-top: 18px; }
.og-teaser { text-align: left; }
.og-teaser-img { width: 100%; max-width: 480px; height: auto; display: block; margin: 0 0 24px; border: 1px solid var(--line); }

.og-dossier { max-width: 72ch; margin-top: 36px; }
.og-dossier h3 { margin-top: 1.4em; }
.og-dossier h4 { font-family: var(--ui); font-size: 13px; color: var(--gold); margin: 1.2em 0 .3em; }
.og-dossier p, .og-dossier li { color: var(--vellum); }
.og-sources { padding-left: 1.2em; font-size: 16px; }
.og-share { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.og-share-row { display: flex; gap: 12px; }
.og-share-row label { flex: 1; }
.og-share-url input { width: 100%; padding: 8px; background: var(--soot); color: var(--parchment); border: 1px solid var(--gold); font-family: var(--ui); font-size: 13px; }
.og-share-list { list-style: none; padding: 0; margin: 10px 0 0; font-family: var(--ui); font-size: 13px; color: var(--vellum); }
.og-share-list li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.og-inline-form { display: inline; }
.og-link-btn { background: none; border: none; color: var(--gold); cursor: pointer; font-family: var(--ui); font-size: 13px; padding: 0; }
.og-form input[type=number] { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; background: var(--soot); color: var(--parchment); border: 1px solid var(--line); font-family: var(--text); font-size: 17px; }
.og-new { color: var(--parchment); border: 1px solid var(--gold); padding: 1px 6px; margin-left: 6px; font-size: 11px; }
.og-exam { max-width: 1040px; padding-top: 24px; }
.og-exam-head { max-width: 760px; }
.og-exam-invite { max-width: 760px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 8px; }
.og-steps-public { max-width: 760px; padding-left: 1.2em; color: var(--vellum); margin: 24px 0 32px; }
.og-steps-public li { margin: 10px 0; }
.og-exam-form { max-width: 760px; border: 1px solid var(--line); padding: 20px 22px 8px; margin-bottom: 40px; }
.og-exam-grid { display: grid; gap: 0 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .og-exam-grid { grid-template-columns: 1fr; } }
.og-form select, .og-form input[type=file] { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; background: var(--soot); color: var(--parchment); border: 1px solid var(--line); font-family: var(--text); font-size: 17px; }
.og-check { display: flex; gap: 10px; align-items: flex-start; font-family: var(--ui); font-size: 13px; color: var(--vellum); margin-top: 16px; }
.og-check input { margin-top: 4px; }
.og-exam-done { border: 1px solid var(--gold); padding: 18px 22px; max-width: 760px; margin: 20px 0 40px; }
.og-fees { width: 100%; border-collapse: collapse; margin: 14px 0 36px; font-size: 16px; }
.og-fees th { text-align: left; font-family: var(--ui); font-size: 12px; color: var(--dust); font-weight: normal; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--gold); }
.og-fees td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--vellum); }
.og-fees td:first-child { color: var(--parchment); width: 22%; }
.og-fee { font-family: var(--display); color: var(--parchment); white-space: nowrap; }
.og-narrow-text { max-width: 68ch; margin-bottom: 28px; }
.og-report { max-width: 68ch; }
.og-report h3 { margin-top: 1.4em; }
.og-report li { color: var(--vellum); margin: 6px 0; }
.og-exam-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 10px 0 30px; }
.og-exam-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line); }
.og-service-list { display: grid; gap: 14px; margin: 14px 0 20px; }
.og-service { display: grid; grid-template-columns: 1fr 220px; gap: 20px; border: 1px solid var(--line); padding: 16px 18px; align-items: start; }
@media (max-width: 700px) { .og-service { grid-template-columns: 1fr; } }
.og-service h3 { font-size: 20px; margin: 0 0 6px; }
.og-service h3 .og-fee { font-size: 15px; margin-left: 8px; }
.og-service p { margin: 4px 0; color: var(--vellum); }
.og-service-act textarea { margin-top: 4px; }
@media (max-width: 760px) { .og-fees thead { display: none; } .og-fees td { display: block; width: auto; border: 0; padding: 4px 0; } .og-fees tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; } }
.og-vendor { max-width: 860px; padding-top: 24px; }
.og-vendor-add summary { list-style: none; cursor: pointer; margin: 10px 0 18px; }
.og-vendor-add summary::-webkit-details-marker { display: none; }
.og-vendor-h { font-family: var(--ui); font-size: 13px; color: var(--gold); margin: 22px 0 4px; letter-spacing: .02em; }
.og-req { font-family: var(--ui); font-size: 11px; color: var(--gold); border: 1px solid var(--line); padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.og-vendor-list .og-list-row { display: block; padding: 16px 0; }
.og-form .og-share-row input { flex: 1; }
.og-form .og-share-row select { width: auto; margin-top: 6px; }
.og-install { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--soot); border: 1px solid var(--gold); color: var(--parchment); font-family: var(--ui); font-size: 14px; }
.og-install .og-btn { padding: 8px 14px; }
.og-install-x { background: none; border: none; color: var(--vellum); font-size: 20px; cursor: pointer; padding: 0 4px; }
.og-camera { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.og-camera label { flex: 1; min-width: 160px; margin: 0; }
.og-camera .og-btn { display: block; text-align: center; width: 100%; }
.og-camera input[type=file] { display: none; }
.og-count { font-family: var(--ui); font-size: 13px; color: var(--gold); margin-top: 8px; }
.og-vendor-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.og-vendor-tools .og-btn { padding: 6px 12px; font-size: 13px; }
.og-vendor-edit { margin-top: 10px; }
.og-public-article { margin: 28px 0; }
.og-public-article h2 { font-size: clamp(24px, 3vw, 32px); }
.og-public-article p { color: var(--vellum); }
.og-teaser { max-width: 760px; }
.og-vendor-batch { margin-top: 16px; }
.og-exam-grid .og-exam-wide { grid-column: 1 / -1; }
