/* Lịch Việt v16.52 r4 — Editorial Quote Card & Typography Polish.
   Runs after immutable route bundles, theme r1 and poster r3.
   Scoped to Daily only: no change to Canvas/poster, Admin or other routes. */
body[data-page="daily"] .daily-quote-card.lv-editorial-quote {
  --lv-quote-ink:var(--lv-ui-text,#153f35);
  --lv-quote-muted:var(--lv-ui-muted,#4b6b60);
  --lv-quote-line:var(--lv-ui-border,#ccded4);
  --lv-quote-accent:var(--lv-ui-link,#086f56);
  --lv-quote-soft:var(--lv-ui-soft,#e7f2eb);
  min-width:0;
  padding:clamp(16px,3.5vw,24px)!important;
  color:var(--lv-quote-ink)!important;
}
body[data-page="daily"] .lv-editorial-quote .lv-quote-heading {
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:12px 16px;min-width:0;
}
body[data-page="daily"] .lv-quote-heading-copy {display:flex;align-items:center;gap:11px;min-width:0;flex:1 1 215px;}
body[data-page="daily"] .lv-quote-heading-icon {
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;
  width:38px;height:38px;border-radius:12px;background:var(--lv-quote-soft);
  color:var(--lv-quote-accent);
}
body[data-page="daily"] .lv-quote-heading-labels {min-width:0;}
body[data-page="daily"] .lv-quote-heading-labels .section-kicker {
  font:700 13px/1.35 'Bai Jamjuree',system-ui,sans-serif!important;
  color:var(--lv-quote-accent)!important;letter-spacing:.045em;margin:0!important;
}
body[data-page="daily"] .lv-quote-heading-labels p {
  font:400 13px/1.45 'Bai Jamjuree',system-ui,sans-serif!important;
  color:var(--lv-quote-muted)!important;margin:2px 0 0!important;
}
body[data-page="daily"] .lv-editorial-quote .lv-quote-topic-control {
  display:flex;align-items:center;gap:8px;max-width:100%;min-width:0;
  flex:0 1 auto;color:var(--lv-quote-muted)!important;
  font:500 13px/1.4 'Bai Jamjuree',system-ui,sans-serif!important;
}
body[data-page="daily"] .lv-quote-topic-control select {
  width:auto;max-width:100%;min-width:112px;min-height:44px;
  padding:8px 30px 8px 12px!important;border-radius:12px!important;
  font:600 16px/1.35 'Bai Jamjuree',system-ui,sans-serif!important;
  border:1px solid var(--lv-quote-line)!important;
  background-color:var(--lv-ui-surface,#fcfefd)!important;
  color:var(--lv-quote-ink)!important;opacity:1!important;
}
body[data-page="daily"] .lv-quote-topic-control select:focus-visible,
body[data-page="daily"] .lv-quote-copy-button:focus-visible {
  outline:3px solid var(--lv-ui-focus-ring,#e6c887)!important;outline-offset:2px!important;
}
body[data-page="daily"] .lv-editorial-quote .lv-editorial-quote-body {
  min-width:0;text-align:center;
  padding:clamp(18px,4vw,28px) 0 clamp(17px,3vw,24px);
  display:flex;flex-direction:column;align-items:center;gap:10px;
}
/* Override legacy bundle declarations that hide the mark and shrink quote to 17px. */
body[data-page="daily"] .daily-quote-card.lv-editorial-quote .daily-quote-mark {
  display:block!important;position:static;opacity:1;
  height:22px;margin:0!important;
  font:italic 500 56px/.82 'Playfair Display',Georgia,serif!important;
  color:var(--lv-quote-accent)!important;
}
body[data-page="daily"] .daily-quote-card.lv-editorial-quote blockquote#daily-quote {
  box-sizing:border-box;width:100%;max-width:560px;min-height:0!important;
  margin:0 auto!important;padding:0 clamp(2px,2.5vw,12px)!important;
  font-family:'Playfair Display',Georgia,serif!important;
  font-style:italic!important;font-weight:400!important;
  font-size:clamp(20px,3.4vw,23px)!important;line-height:1.58!important;
  letter-spacing:-.015em;color:var(--lv-quote-ink)!important;
  text-align:center;white-space:normal;overflow-wrap:break-word;word-break:normal;
  transition:opacity .16s ease;
}
body[data-page="daily"] .lv-editorial-quote.lv-quote-loading blockquote#daily-quote {opacity:.42;}
body[data-page="daily"] .lv-editorial-quote .lv-quote-rule {
  display:block;width:42px;height:2px;border-radius:5px;
  background:var(--lv-quote-line);margin-top:7px;
}
body[data-page="daily"] .lv-editorial-quote .daily-quote-footer {
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;min-width:0;flex-wrap:wrap;
}
body[data-page="daily"] .lv-editorial-quote .lv-quote-attribution {
  display:inline-flex;align-items:center;gap:7px;min-width:0;
  color:var(--lv-quote-muted)!important;
  font:500 13px/1.45 'Bai Jamjuree',system-ui,sans-serif!important;
}
body[data-page="daily"] .lv-quote-attribution svg {flex:none;opacity:.78;}
body[data-page="daily"] .lv-editorial-quote button.lv-quote-copy-button {
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  gap:7px;min-height:44px;min-width:115px;margin:0!important;
  padding:10px 14px!important;
  border-radius:12px!important;border:1px solid var(--lv-quote-line)!important;
  background:var(--lv-quote-soft)!important;color:var(--lv-quote-ink)!important;
  font:600 14px/1.25 'Bai Jamjuree',system-ui,sans-serif!important;
  cursor:pointer;opacity:1!important;transition:background-color .16s ease,border-color .16s ease;
}
body[data-page="daily"] .lv-quote-copy-button:hover {border-color:var(--lv-ui-primary)!important;background:var(--lv-ui-surface)!important;}
body[data-page="daily"] .lv-quote-copy-button[data-copied="true"] {
  border-color:var(--lv-ui-primary)!important;background:var(--lv-ui-success-bg,var(--lv-quote-soft))!important;
  color:var(--lv-ui-success-text,var(--lv-quote-ink))!important;
}
body[data-page="daily"] .lv-quote-copy-icon,body[data-page="daily"] .lv-quote-copy-icon svg {display:inline-flex;width:17px;height:17px;flex:none;}
/* Screen readers hear changes without inserting layout-shifting paragraphs. */
body[data-page="daily"] .lv-editorial-quote #daily-quote-status.lv-quote-sr-status {
  position:absolute!important;width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;overflow:hidden!important;
  clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}
html[data-lvg-font-scale="115"] body[data-page="daily"] .daily-quote-card.lv-editorial-quote blockquote#daily-quote {font-size:24px!important;}
html[data-lvg-font-scale="130"] body[data-page="daily"] .daily-quote-card.lv-editorial-quote blockquote#daily-quote {font-size:26px!important;}
html[data-lvg-font-scale="115"] body[data-page="daily"] .lv-editorial-quote .lv-quote-heading-labels .section-kicker,
html[data-lvg-font-scale="115"] body[data-page="daily"] .lv-editorial-quote .lv-quote-attribution {font-size:14px!important;}
html[data-lvg-font-scale="130"] body[data-page="daily"] .lv-editorial-quote .lv-quote-heading-labels .section-kicker,
html[data-lvg-font-scale="130"] body[data-page="daily"] .lv-editorial-quote .lv-quote-attribution {font-size:15px!important;}
html[data-lvg-font-scale="130"] body[data-page="daily"] .lv-editorial-quote button.lv-quote-copy-button {min-height:48px;font-size:15px!important;}
@media(max-width:380px) {
  body[data-page="daily"] .lv-editorial-quote .lv-quote-heading {align-items:stretch;}
  body[data-page="daily"] .lv-quote-heading-copy {flex-basis:100%;}
  body[data-page="daily"] .lv-editorial-quote .lv-quote-topic-control {width:100%;justify-content:space-between;}
  body[data-page="daily"] .lv-quote-topic-control select {max-width:min(72%,220px);}
  body[data-page="daily"] .lv-editorial-quote .lv-editorial-quote-body {padding-top:18px;}
}
@media(prefers-reduced-motion:reduce) {
  body[data-page="daily"] .lv-editorial-quote blockquote#daily-quote,
  body[data-page="daily"] .lv-quote-copy-button {transition:none!important;}
}
