/* v2_quotes_css.py: board measurements at 390 and 1440, using the shared v2 roles. */
body.hc-quote-library #content > .ast-container {
  max-width: none;
  padding: 0;
  display: block;
}
.ql {
  font-family: var(--hc-font-thai);
  color: var(--hc-text);
  background: var(--hc-band);
  line-height: normal;
}
.ql,
.ql * {
  box-sizing: border-box;
}
.ql-main {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 20px 64px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.ql-main > * {
  width: 100%;
}
.ql p {
  margin: 0;
}
.ql-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0 18px;
}
.ql-crumbs {
  margin: -6px 0 -4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--hc-muted);
}
.ql .ql-crumbs a {
  color: var(--hc-muted);
  text-decoration: none;
  min-height: 44px;
  padding: 0 8px;
  margin: 0 -8px;
  display: inline-flex;
  align-items: center;
}
.ql .ql-crumbs span:last-child {
  color: var(--hc-text);
}
.ql-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--hc-accent);
}
.ql h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 300;
  letter-spacing: normal;
  color: var(--hc-text);
}
.ql .ql-sub {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--hc-body);
  text-wrap: pretty;
}
.ql-terms {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  max-width: 620px;
}
.ql-hero .ql-terms {
  display: none;
}
.ql-terms .ql-free {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  color: var(--hc-text);
}
.ql-terms .ql-repost {
  margin: 0;
  padding-left: 25px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--hc-muted);
}
.ql-terms .ql-repost span {
  display: block;
}
.ql-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  box-shadow: inset 0 -1px 0 var(--hc-hair);
  margin-bottom: 20px;
}
.ql-chips {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin: 0 -20px;
  padding: 2px 20px;
  scrollbar-width: none;
  width: calc(100% + 40px);
}
.ql-is-theme .ql-chips {
  display: none;
}
.ql .ql-chip {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--hc-chip);
  box-shadow: inset 0 0 0 1px var(--hc-chip-line);
  color: var(--hc-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.ql .ql-chip.is-on {
  background: var(--hc-chip-on-bg);
  box-shadow: inset 0 0 0 1px var(--hc-chip-on-line);
  color: var(--hc-chip-on-fg);
  font-weight: 600;
}
.ql-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 44px;
}
.ql .ql-total {
  font-size: 14px;
  color: var(--hc-muted);
}
.ql-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 12px;
  align-items: start;
}
.ql-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  order: var(--ql-order);
}
.ql-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: #12151a;
  isolation: isolate;
  box-shadow:
    0 22px 44px -26px rgba(10, 12, 22, 0.55),
    0 2px 6px -2px rgba(10, 12, 22, 0.18);
}
.ql .ql-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 6px;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.4;
}
.ql .ql-theme {
  position: relative;
  color: var(--hc-accent);
  font-weight: 600;
  text-decoration: none;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
}
.ql .ql-theme::after {
  content: "";
  position: absolute;
  inset: -10px -6px;
}
.ql-sep {
  width: 3px;
  height: 3px;
  border-radius: 9px;
  background: var(--hc-strong);
}
.ql .ql-key {
  color: var(--hc-body);
}
.ql .ql-text {
  margin: 4px 0 0;
  padding-top: 2px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--hc-body);
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ql [hidden] {
  display: none !important;
}
.ql-i {
  flex-shrink: 0;
  display: block;
}
.ql-terms .ql-free .ql-i {
  color: var(--hc-accent);
}
.ql-fwrap {
  position: relative;
}
.ql .ql-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--hc-chip);
  box-shadow: inset 0 0 0 1px var(--hc-chip-line);
  color: var(--hc-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ql .ql-btn:hover {
  box-shadow: inset 0 0 0 1px var(--hc-strong);
}
.ql :is(a, button):is(:hover, :focus) {
  opacity: 1;
}
.ql a:focus-visible {
  outline: 3px solid var(--hc-focus);
  outline-offset: 2px;
}
.ql .ql-dark {
  background: var(--hc-btn-bg);
  color: var(--hc-btn-fg);
  box-shadow: none;
}
.ql .ql-dark:hover {
  box-shadow: none;
  opacity: 0.88;
}
.ql-off {
  opacity: 0.45;
  cursor: default;
}
.ql-cta {
  grid-column: 1 / -1;
  order: 13;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 22px;
  border-radius: 24px;
  background: var(--hc-moment);
  color: var(--hc-m-text);
}
.ql-cta-e {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--hc-m-soft);
}
.ql .ql-cta-h {
  margin: 10px 0 6px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--hc-m-text);
}
.ql .ql-cta-p {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--hc-m-body);
}
.ql .ql-cta-b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  align-self: stretch;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--hc-m-text);
  color: #12151a;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.ql-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
.ql-pnum {
  font-size: 15px;
  color: var(--hc-body);
}
.ql-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 22px;
  border-radius: 24px;
  background: var(--hc-alt);
}
.ql-empty p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--hc-body);
}
.ql-empty .ql-empty-h {
  font-size: 22px;
  font-weight: 500;
  color: var(--hc-text);
}
.ql-empty-a {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 767px) {
  .ql-hero .ql-eyebrow {
    display: none;
  }
}
@media (min-width: 768px) {
  .ql-crumbs {
    margin: 0;
  }
  .ql .ql-crumbs a {
    min-height: 32px;
    padding: 0;
    margin: 0;
  }
  .ql .ql-chip {
    height: 40px;
  }
  .ql-is-theme .ql-chips {
    display: flex;
  }
  .ql .ql-theme {
    position: static;
  }
  .ql .ql-theme::after {
    content: none;
  }
  .ql-hero .ql-terms {
    display: flex;
  }
  .ql-main {
    padding: 0 clamp(20px, 4.167vw, 60px) 96px;
  }
  .ql-hero {
    padding: 56px 0 32px;
    gap: 14px;
  }
  .ql h1 {
    font-size: 48px;
    line-height: 1.2;
  }
  .ql .ql-sub {
    font-size: 18px;
    line-height: 1.7;
  }
  .ql-controls {
    gap: 16px;
    padding-bottom: 28px;
    margin-bottom: 32px;
  }
  .ql-chips {
    flex-wrap: wrap;
    overflow: visible;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .ql-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 24px;
  }
  .ql-frame {
    border-radius: 20px;
  }
  .ql .ql-meta {
    margin-top: 14px;
    font-size: 14px;
    gap: 4px 8px;
  }
  .ql .ql-text {
    margin-top: 6px;
    padding-top: 0;
    font-size: 15px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
  }
  .ql .ql-btn {
    font-size: 15px;
    padding: 0 16px;
    gap: 7px;
  }
  .ql-cta {
    order: 17;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 36px 40px;
    border-radius: 28px;
  }
  .ql .ql-cta-h {
    font-size: 28px;
  }
  .ql .ql-cta-p {
    font-size: 16px;
  }
  .ql .ql-cta-b {
    height: 56px;
    align-self: auto;
  }
  .ql-pager {
    margin-top: 56px;
    gap: 16px;
  }
  .ql-empty {
    padding: 40px;
    border-radius: 28px;
  }
}
@media (min-width: 1024px) {
  .ql-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
