.quotes-page { min-height: 70vh; padding: clamp(2.5rem,5vw,4.5rem) clamp(1rem,4vw,4rem) 5rem; background: var(--paper); }
.quotes-intro { max-width: 1320px; margin: 0 auto clamp(2.25rem,4vw,3.5rem); }
.quotes-intro h1 { max-width: 17ch; margin: 0 0 .8rem; font-size: clamp(2.8rem,5vw,5rem); line-height: 1.04; letter-spacing: -.045em; }
.quotes-lede { max-width: 66ch; margin: 0; color: var(--muted); font-size: clamp(1.12rem,1.7vw,1.3rem); line-height: 1.65; }
.quotes-rights-note { max-width: 80ch; margin: 1.1rem 0 0; padding-left: .9rem; border-left: 2px solid var(--line); color: var(--muted); font-size: .98rem; line-height: 1.55; }
.quotes-collection-note { max-width: 86ch; margin: 1rem 0 0; padding: .85rem 1rem; background: var(--sage); color: var(--body); font-size: .98rem; line-height: 1.55; }
.quotes-controls { max-width: 1320px; margin: 0 auto 1rem; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(12rem,.72fr) minmax(13rem,.85fr); gap: 1.1rem; }
.quotes-controls label { display: grid; align-content: start; gap: .45rem; }
.quotes-controls label span { font-size: .9375rem; font-weight: 650; }
.quotes-controls input, .quotes-controls select { width: 100%; min-width: 0; min-height: 50px; padding: .6rem .75rem; border: 1px solid #888f87; border-radius: 4px; background: var(--white); color: var(--ink); font-size: 1.0625rem; line-height: 1.4; }
.quotes-count-row { max-width: 1320px; margin: 0 auto 1.1rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .93rem; }
.quotes-count-row p { margin: 0; }
.quotes-results { max-width: 1320px; margin: 0 auto; display: grid; gap: 1.1rem; }
.quote-card { min-width: 0; display: grid; grid-template-columns: minmax(0,1.7fr) minmax(16rem,.72fr); gap: clamp(1.25rem,3vw,2.5rem); padding: clamp(1.2rem,2.8vw,2rem); background: var(--white); border: 1px solid #e2ddd4; border-top: 2px solid var(--terracotta); box-shadow: 0 8px 24px rgba(65,52,60,.035); }
.quote-main { min-width: 0; }
.quote-card-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: 0 0 .7rem; color: var(--accent); font-size: .84rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.quote-id { color: var(--muted); font-size: .76rem; letter-spacing: .035em; }
.quote-type { padding: .14rem .48rem; border: 1px solid #d8d8ce; border-radius: 99px; color: var(--muted); font-size: .72rem; letter-spacing: .035em; }
.quote-text { margin: 0; color: var(--ink); font: 450 calc(1rem + 2pt)/1.6 var(--serif); letter-spacing: -.012em; overflow-wrap: anywhere; white-space: pre-wrap; }
.quote-context { margin: 1rem 0 0; padding-top: .85rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .97rem; line-height: 1.6; }
.quote-context strong, .quote-detail-label { color: var(--ink); font-size: .84rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.quote-full { margin-top: .85rem; }
.quote-full summary, .quote-notes summary { width: fit-content; min-height: 40px; display: flex; align-items: center; color: var(--accent); font-weight: 650; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.quote-full blockquote { margin: .6rem 0 0; padding-left: 1rem; border-left: 2px solid var(--line); color: var(--body); font-size: 1.05rem; line-height: 1.75; white-space: pre-wrap; }
.quote-keywords { margin: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.quote-keyword { display: inline-flex; align-items: center; min-height: 28px; padding: .15rem .55rem; border: 1px solid #d6d6cc; border-radius: 999px; color: var(--accent); background: #f5f5f0; font: inherit; font-size: .82rem; line-height: 1.25; cursor: pointer; }
.quote-keyword:hover, .quote-keyword:focus-visible { color: var(--white); background: var(--accent); border-color: var(--accent); }
.quote-side { align-self: start; min-width: 0; padding: 1.1rem 1.15rem; background: #f0f1eb; border: 1px solid #e1e3da; }
.quote-source-title { margin: 0; color: var(--ink); font: 500 clamp(1.25rem,1.75vw,1.6rem)/1.25 var(--serif); overflow-wrap: anywhere; }
.quote-source-english { margin: .22rem 0 0; color: var(--body); font-size: .98rem; line-height: 1.4; }
.quote-source-reference { margin: .55rem 0 0; color: var(--muted); font-size: .87rem; line-height: 1.4; }
.quote-author-byline { margin: .55rem 0 .8rem; color: var(--body); font-size: .9rem; line-height: 1.4; }
.quote-author-byline > span { color: var(--muted); font-weight: 700; }
.quote-source-link { display: inline-block; margin-top: .45rem; color: var(--accent); font-weight: 650; }
.quote-period { margin: .8rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.quote-notes { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #d4d7ce; }
.quote-notes summary { min-height: 38px; color: var(--ink); font-size: .9rem; text-decoration: none; }
.quote-notes[open] summary { margin-bottom: .65rem; }
.quote-note { margin: .65rem 0 0; font-size: .9rem; line-height: 1.52; overflow-wrap: anywhere; }
.quote-note a { color: var(--accent); font-weight: 600; }
.quote-note-links { margin: .45rem 0 0; display: grid; gap: .3rem; font-size: .9rem; }
.quote-note-links a { color: var(--accent); font-weight: 600; }
.quotes-empty { max-width: 1320px; margin: 1.5rem auto; color: var(--muted); }
.quotes-more-row { max-width: 1320px; margin: 1.4rem auto 0; display: flex; justify-content: center; }
.quotes-more { min-height: 48px; padding: .65rem 1.1rem; border: 1px solid #888f87; border-radius: 4px; color: var(--ink); background: var(--white); font-weight: 650; transition: color .16s ease, background-color .16s ease, border-color .16s ease; }
.quotes-more:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.quotes-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 760px) {
  .quotes-page { padding-top: 2.2rem; }
  .quotes-controls { grid-template-columns: 1fr; gap: .85rem; }
  .quotes-count-row { flex-direction: column; gap: .2rem; }
  .quote-card { grid-template-columns: minmax(0,1fr); gap: 1.1rem; }
  .quote-side { padding: .95rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { .quotes-more { transition: none; } }

.quote-hebrew { margin: 0 0 1rem; padding: 0 0 .8rem; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--hebrew, var(--serif)); font-size: clamp(1.25rem,2vw,1.7rem); line-height: 1.9; text-align: right; overflow-wrap: anywhere; }

.quotes-search-form { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: .65rem; }
.quotes-search-form label { display: grid; align-content: start; gap: .45rem; }
.quotes-search-button { min-height: 50px; padding: .6rem 1.15rem; border: 1px solid var(--terracotta); border-radius: 4px; color: var(--white); background: var(--terracotta); font: inherit; font-weight: 650; cursor: pointer; transition: color .16s ease, background-color .16s ease, border-color .16s ease; }
.quotes-search-button:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
@media (max-width: 760px) { .quotes-search-form { grid-template-columns: minmax(0,1fr) auto; } }
@media (prefers-reduced-motion: reduce) { .quotes-search-button { transition: none; } }

.quote-source-address { margin: .35rem 0 .65rem; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.quote-geography { margin: .25rem 0 0; color: var(--muted); font-size: .87rem; line-height: 1.4; }
