/* Quote of the Day and /quotes/ library. Layered on hac-site.css. */
.visually-hidden{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
  padding:0;
  margin:-1px;
}

.qotd{
  padding:72px 0;
  border-top:1px solid var(--line);
  text-align:center;
}
.qotd .kicker{margin:0 0 22px}
.qotd-quote{
  margin:0 auto 20px;
  max-width:820px;
  border:0;
  padding:0;
  font:400 34px/1.35 Georgia,"EB Garamond",serif;
  color:var(--text);
  letter-spacing:-.02em;
}
.qotd-quote p{margin:0}
.qotd-attr{
  display:block;
  margin:0 0 28px;
  color:var(--muted);
  font:16px/1.5 Arial,Helvetica,sans-serif;
  font-style:normal;
}
.qotd-attr em{font-style:italic;color:var(--cream)}
.qotd-attr a{color:var(--cream);text-decoration:underline;text-underline-offset:3px}
.qotd-attr a:hover,.qotd-attr a:focus-visible{color:var(--gold)}
.qotd-acts{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:22px;
  flex-wrap:wrap;
}
.qotd-explore{font-size:14px;font-weight:700;color:#e8d2ae;padding-top:16px}
.qotd-status{
  margin:16px 0 0;
  min-height:1.4em;
  color:var(--gold);
  font:13px/1.4 Arial,Helvetica,sans-serif;
}
.qotd-status[hidden]{display:none}

/* Share format picker */
.share-wrap{position:relative;display:inline-flex;flex-direction:column;align-items:center}
.share-sheet{
  position:relative;
  z-index:20;
  width:min(280px, calc(100vw - 40px));
  margin-top:12px;
  padding:16px 16px 14px;
  border:1px solid var(--line);
  background:#121c1e;
  box-shadow:10px 18px 36px #000a;
  text-align:center;
}
.share-sheet[hidden]{display:none}
.share-sheet-label{
  margin:0 0 12px;
  color:var(--gold);
  font:700 11px/1.4 Arial,Helvetica,sans-serif;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.share-formats{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:0 0 12px}
.share-format{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:54px;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:var(--cream);
  font:700 11px/1 Arial,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
}
.share-format:hover,.share-format:focus-visible{border-color:var(--gold);color:var(--gold)}
.share-format.is-on,.share-format[aria-pressed="true"]{border-color:var(--gold);color:var(--navy);background:var(--gold)}
.quote-card .share-wrap{align-items:flex-end}
.quote-card .share-sheet{position:absolute;top:calc(100% + 10px);left:auto;right:0;margin-top:0;transform:none}

.quote-copy-link{
  background:none;
  border:0;
  padding:8px 0;
  color:#e8d2ae;
  font:700 13px/1.2 Arial,Helvetica,sans-serif;
  cursor:pointer;
  text-decoration:underline;
  text-underline-offset:3px;
}
.quote-copy-link:hover,.quote-copy-link:focus-visible{color:var(--gold)}
.qotd-acts .quote-copy-link{padding-top:16px}

/* Quotes library page */
.quotes-page{padding:0 0 80px}
.quotes-intro{padding:64px 0 12px}
.quotes-intro h1{
  margin:0 0 16px;
  font:400 64px/1.08 Georgia,serif;
  letter-spacing:-.03em;
}
.quotes-intro .lede{
  margin:0;
  max-width:640px;
  color:var(--soft);
  font-size:17px;
}
.quotes-pin{
  margin:28px 0 0;
  padding:36px 32px 32px;
  border:1px solid var(--line);
  background:#121c1e;
  text-align:center;
}
.quotes-pin .qotd{padding:0;border:0}
.quotes-pin .qotd-quote{font-size:28px}
.quotes-pin .qotd-explore{display:none}
.quotes-pin .qotd .shell{padding-left:0;padding-right:0}

.quotes-tools{padding:36px 0 8px}
.quotes-tools-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px 24px;
  margin-bottom:16px;
}
.quotes-count{margin:0;color:var(--muted);font-size:14px}
.quotes-search{
  flex:1 1 220px;
  max-width:320px;
  padding:10px 14px;
  border:1px solid var(--line);
  background:#0b1112;
  color:var(--text);
  font:16px/1.4 Arial,Helvetica,sans-serif;
}
.quotes-search::placeholder{color:var(--muted)}
.quotes-search:focus{outline:3px solid var(--gold);outline-offset:3px;border-color:var(--gold)}

.quotes-chips{display:flex;flex-wrap:wrap;gap:8px}
.quotes-chips .ribbon-chip{
  display:inline-flex;
  align-items:center;
  padding:7px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:var(--cream);
  font:700 11px/1 Arial,sans-serif;
  letter-spacing:.1em;
  text-transform:uppercase;
  cursor:pointer;
}
.quotes-chips .ribbon-chip:hover,
.quotes-chips .ribbon-chip:focus-visible{border-color:var(--gold);color:var(--gold)}
.quotes-chips .ribbon-chip.is-on,
.quotes-chips .ribbon-chip[aria-pressed="true"]{border-color:var(--gold);color:var(--navy);background:var(--gold)}

.quote-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
  margin-top:8px;
}
.quote-card{
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:28px 26px 22px;
  border:1px solid var(--line);
  background:#121c1e;
  color:inherit;
  min-width:0;
}
.quote-card-text{
  margin:0;
  border:0;
  padding:0;
  font:400 22px/1.4 Georgia,"EB Garamond",serif;
  color:var(--text);
  letter-spacing:-.01em;
}
.quote-card-text p{margin:0}
.quote-card-foot{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px 16px;
  margin-top:auto;
  padding-top:4px;
}
.quote-card .qotd-attr{margin:0;text-align:left;padding-top:12px}
.quote-card-acts{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 16px;
}
.quote-card-themes{display:flex;flex-wrap:wrap;gap:6px}
.quote-card-themes .tag{
  display:inline-block;
  padding:2px 7px;
  border:1px solid var(--line);
  border-radius:2px;
  color:var(--soft);
  font:700 10px/1.4 Arial,sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.quotes-empty{
  margin-top:8px;
  padding:36px 28px;
  border:1px dashed var(--line);
  color:var(--muted);
  font-size:16px;
}
.quotes-empty[hidden]{display:none}
.quotes-empty b{color:var(--cream);font-weight:700}

.quotes-more{display:flex;justify-content:center;margin:28px 0 0}
.quotes-more[hidden]{display:none}

/* JS-enhanced only: Show more hides later cards. Without JS, every quote stays visible in the page source and on screen. */
.quotes-library.js-quotes .quote-card.is-hidden,
.quotes-library.js-quotes .quote-card.is-filtered-out{
  display:none;
}

@keyframes quote-in{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:translateY(0)}
}
.quote-card.is-entering{
  animation:quote-in .6s ease-out both;
}
@media (prefers-reduced-motion:reduce){
  .quote-card.is-entering{animation:none}
}

@media(max-width:1100px){
  .qotd-quote{font-size:28px}
  .quotes-intro h1{font-size:48px}
}
@media(max-width:700px){
  .qotd{padding:48px 0}
  .qotd-quote{font-size:24px}
  .quotes-intro{padding:40px 0 8px}
  .quotes-intro h1{font-size:36px}
  .quotes-pin{padding:24px 18px 22px}
  .quotes-pin .qotd-quote{font-size:22px}
  .quote-grid{grid-template-columns:1fr;gap:16px}
  .quote-card{padding:22px 18px 18px}
  .quote-card-text{font-size:20px}
  .qotd-acts{gap:16px}
  .qotd-explore,.qotd-acts .quote-copy-link{padding-top:14px}
  .quote-card .share-sheet{right:auto;left:50%;transform:translateX(-50%)}
  .quote-card .share-wrap{align-items:center}
}
