/* Judaica Finder 2026-12-05. Navy, parchment and gold; Frank Ruhl Libre headings, Assistant body. */
:root {
  --navy: #13233f; --navy-2: #1d3157; --cream: #f6f1e6; --paper: #fffdf8; --gold: #b08a3e; --gold-2: #d2ad5f;
  --ink: #1a2233; --muted: #5b6475; --line: #e3dac6; --shadow: 0 1px 2px rgba(19, 35, 63, .06), 0 6px 20px rgba(19, 35, 63, .06);
  --serif: "Frank Ruhl Libre", Georgia, "Times New Roman", serif; --body: "Assistant", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: #6f531c; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 48px); margin: 6px 0 12px; font-weight: 700; }
h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 34px 0 12px; font-weight: 700; }
h3 { font-size: 19px; margin: 22px 0 6px; }
.small { font-size: 14px; } .muted { color: var(--muted); }
.prose { max-width: 72ch; } .prose li { margin: 6px 0; }

/* header */
.top { background: var(--navy); color: #f4ecda; position: sticky; top: 0; z-index: 5; border-bottom: 1px solid #0b1629; }
.bar { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: #f4ecda; text-decoration: none; margin-right: auto; }
.brand .mark { width: 32px; height: 32px; color: var(--gold-2); }
.brand b { display: block; font: 700 21px/1 var(--serif); letter-spacing: .2px; }
.brand small { display: block; font-size: 12px; color: #b9c2d6; letter-spacing: .6px; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #e9e1cd; text-decoration: none; padding: 8px 10px; border-radius: 6px; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { background: var(--navy-2); color: #fff; }
.menu { display: none; background: transparent; color: #f4ecda; border: 1px solid #3a4e76; border-radius: 6px; padding: 8px 12px; font: 600 15px var(--body); }
@media (max-width: 900px) {
  .menu { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--navy); flex-direction: column; padding: 8px 16px 14px; border-bottom: 1px solid #0b1629; }
  .nav.open { display: flex; }
}

/* hero + search */
.hero { padding: 42px 0 18px; background: linear-gradient(180deg, var(--paper), var(--cream)); border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: 1.4px; font-size: 13px; font-weight: 700; color: var(--gold); margin: 0; }
.lede { font-size: 19px; color: #374055; max-width: 64ch; margin: 0 0 18px; }
.search { display: flex; gap: 10px; max-width: 760px; margin: 18px 0 12px; }
.search input { flex: 1; min-width: 0; font: 18px var(--body); padding: 14px 16px; border: 1px solid #cbbd9c; border-radius: 10px; background: #fff; color: var(--ink); }
.search input:focus { border-color: var(--gold); outline: 3px solid rgba(176, 138, 62, .25); }
.search button, .btn { background: var(--navy); color: #fff; border: 0; border-radius: 10px; padding: 14px 22px; font: 700 16px var(--body); cursor: pointer; text-decoration: none; display: inline-block; }
.search button:hover, .btn:hover { background: var(--navy-2); color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 15px; text-decoration: none; color: var(--navy); }
.chip:hover { border-color: var(--gold); }

/* results */
.page { padding: 18px 0 40px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 6px 0 2px; }
.crumbs a { color: var(--muted); }
.answer { font-size: 18px; background: var(--paper); border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 0 8px 8px 0; max-width: 72ch; }
.answer:empty { display: none; }
.status { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.card:hover { border-color: var(--gold); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f1ece0; height: auto; display: block; }
.card .b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .t { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .p { font: 700 20px var(--serif); color: var(--navy); font-variant-numeric: tabular-nums; }
.card .p s { font: 400 14px var(--body); color: var(--muted); margin-left: 6px; }
.card .m { font-size: 13px; color: var(--muted); }
.card .lbl { font-size: 12.5px; line-height: 1.35; color: #6a4d12; background: #fbf3df; border: 1px solid #efdfb4; border-radius: 6px; padding: 4px 7px; }
.card .go { margin-top: auto; font-weight: 700; font-size: 14px; color: #6f531c; }
.empty { background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: 16px; }

/* tiles + panels */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 10px 0 8px; }
.tile { background: var(--navy); color: #f4ecda; border-radius: 12px; padding: 18px 16px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; min-height: 118px; justify-content: flex-end; }
.tile .he { font: 700 34px/1 var(--serif); color: var(--gold-2); }
.tile b { font-weight: 600; font-size: 16px; }
.tile:hover { background: var(--navy-2); color: #fff; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 26px auto; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.panel h2 { margin-top: 0; }
.plain { padding-left: 18px; }
.callout { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 0 10px 10px 0; padding: 12px 14px; margin: 14px 0; max-width: 72ch; }
.results { padding-bottom: 6px; }

/* tools */
.tool fieldset { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); margin: 0 0 14px; padding: 12px 14px 14px; }
.tool legend { font: 700 18px var(--serif); color: var(--navy); padding: 0 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { cursor: pointer; }
.opts input { position: absolute; opacity: 0; }
.opts span { display: inline-block; border: 1px solid #cbbd9c; border-radius: 999px; padding: 7px 14px; background: #fff; font-size: 15px; }
.opts input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.opts input:focus-visible + span { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.inline input, .inline select { font: 16px var(--body); padding: 8px 10px; border: 1px solid #cbbd9c; border-radius: 8px; width: auto; }
.result { display: block; font-size: 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 0 10px 10px 0; padding: 12px 14px; margin: 6px 0 18px; max-width: 72ch; }
.result:empty { display: none; }

/* footer */
.foot { background: var(--navy); color: #cfd6e4; margin-top: 40px; padding: 30px 0 22px; font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; margin-bottom: 18px; }
.foot b { color: #f4ecda; display: block; margin-bottom: 6px; }
.foot .fbrand { font: 700 20px var(--serif); }
.foot a { color: #e6d6a8; display: block; margin: 3px 0; }
.foot .muted { color: #9aa6bd; } .foot .muted a { display: inline; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 24px 0 12px; }
  .lede { font-size: 17px; }
  .search input { font-size: 16px; padding: 12px; }
  .search button { padding: 12px 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card .t { font-size: 14px; } .card .p { font-size: 18px; }
  .tile { min-height: 96px; } .tile .he { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.grid .empty { grid-column: 1 / -1; }
