/* The garden's quotation (js/gardenQuote.js), inside the garden scene under the leaf path. Bold italic;
   size, line length and spacing follow the quote's real length (data-len: short | medium | long |
   xlong, js/quoteView.js) — never an ellipsis, never a nested scroll, never a font too small to read.
   The words wrap anywhere they must, so even a long word cannot run out of the card at 320 px.
   Both languages of a verified pair sit in one grid cell, so the block has one height and the EN | VI
   switch moves nothing. A pair that is not verified shows its original language only (data-single). */
/* position: relative puts the words above the absolutely positioned hills (.garden-land), like the leaf
   path; the hills are pale, so the dark garden ink keeps its contrast where they meet. */
.garden-quote {
  --gq-size: 1.1rem; --gq-lh: 1.4; --gq-measure: 28ch;
  position: relative; z-index: 1; grid-column: 1 / -1; margin: 6px 0 0; padding: 4px 4px 8px; min-width: 0;
  color: var(--g-ink, var(--text-primary));
}
.garden-quote[hidden] { display: none; }
.garden-quote[data-len="short"] { --gq-size: clamp(1.25rem, 1.02rem + 1.2vw, 1.5rem); --gq-lh: 1.28; --gq-measure: 17ch; }
.garden-quote[data-len="medium"] { --gq-size: clamp(1.12rem, 0.98rem + 0.75vw, 1.3rem); --gq-lh: 1.34; --gq-measure: 23ch; }
.garden-quote[data-len="long"] { --gq-size: clamp(1.03rem, 0.95rem + 0.45vw, 1.14rem); --gq-lh: 1.44; --gq-measure: 30ch; }
.garden-quote[data-len="xlong"] { --gq-size: clamp(0.97rem, 0.93rem + 0.22vw, 1.03rem); --gq-lh: 1.52; --gq-measure: 38ch; }
.gq-stack { display: grid; }
.gq-stack > .gq-text {
  grid-area: 1 / 1; margin: 0 auto; padding: 0 4px; max-inline-size: var(--gq-measure); min-width: 0;
  font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: var(--gq-size); line-height: var(--gq-lh);
  letter-spacing: -0.004em; color: inherit; text-align: center; text-wrap: balance; overflow-wrap: anywhere; hyphens: manual;
}
.garden-quote[data-len="xlong"] .gq-text { text-align: start; text-wrap: pretty; }
.gq-stack > .gq-text[aria-hidden="true"] { visibility: hidden; }
.gq-text p { margin: 0 0 0.5em; }
.gq-text p:last-child { margin-bottom: 0; }
.garden-quote[data-single="true"] { padding-bottom: 12px; }
/* While this launch's quote is on its way (usually a fraction of a second): a quiet shape of about the
   same height, never a quote that is about to be replaced. */
.gq-wait { display: grid; justify-items: center; align-content: center; gap: 9px; min-height: 5.75rem; padding: 4px 0 8px; }
.gq-wait-line { display: block; height: 0.8rem; width: min(64%, 15rem); border-radius: 999px; background: var(--g-line, var(--line-strong)); opacity: 0.5; }
.gq-wait-line-2 { width: min(40%, 9.5rem); }
@media (prefers-reduced-motion: no-preference) { .gq-wait-line { animation: gq-breathe 1.4s ease-in-out infinite alternate; } }
html[data-motion="reduced"] .gq-wait-line, html[data-motion="off"] .gq-wait-line { animation: none; }
@keyframes gq-breathe { from { opacity: 0.32; } to { opacity: 0.68; } }
.gq-lang { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 2px; }
.gq-lang-btn { min-width: 44px; min-height: 44px; margin: 0; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; color: var(--text-secondary); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; width: auto; }
.gq-lang-btn:hover { background: var(--accent-light); color: var(--accent-strong); }
.gq-lang-btn[aria-pressed="true"] { color: var(--accent-strong); background: var(--accent-light); }
.gq-lang-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gq-sep { color: var(--line-strong); font-weight: 400; padding: 0 2px; }
/* The quote arriving (in place of the quiet shape): a gentle fade, none with reduced motion. */
.garden-quote.gq-new .gq-stack { animation: gq-fade 500ms ease-out; }
@keyframes gq-fade { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .garden-quote.gq-new .gq-stack { animation: none; } }
html[data-motion="reduced"] .garden-quote.gq-new .gq-stack, html[data-motion="off"] .garden-quote.gq-new .gq-stack { animation: none; }
/* Narrow phones: a little less air around the same words (the size already follows the width). */
@media (max-width: 360px) {
  .garden-quote { padding: 4px 0 8px; }
  .gq-stack > .gq-text { padding: 0 2px; }
  .garden-quote[data-len="short"] { --gq-measure: 16ch; }
}
/* Profile › Preferences: the quote's mood chips. */
.pf-quote .pf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pf-quote .chip { min-height: 44px; }
.pf-quote .chip[aria-pressed="true"] { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }
.pf-row-inline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0; font-weight: 600; }
.pf-row-inline select { width: auto; max-width: 60%; }
/* Today snapshot: the nap beside the sleep label. */
.snap-chip-extra { display: block; font-size: 11px; font-weight: 700; color: var(--accent-strong); }
/* Diary › Sleep: night / nap choice and the nap total. */
.sleep-kind { display: flex; gap: 6px; margin: 0 0 8px; }
.sleep-kind .chip.active { background: var(--accent); color: var(--text-on-accent); border-color: var(--accent); }
.sleep-nap-total { display: block; margin-top: 2px; font-size: 13px; color: var(--text-secondary); }
.sleep-nap-total[hidden] { display: none; }
/* Desktop: the quote takes the column beside the plant, under the streak (grid area set in garden.css). */
@media (min-width: 700px) {
  .garden-quote { grid-area: quote; align-self: start; padding: 2px 0 10px; }
  .gq-stack > .gq-text { margin-inline: 0; text-align: start; }
  .gq-lang { justify-content: flex-start; }
  .gq-wait { justify-items: start; }
}
/* Short, wide screens (a phone on its side): the plant keeps its place and the quote goes under it and
   the streak, across the card — beside the plant it would push the plant down under the bottom bar. */
@media (min-width: 700px) and (max-height: 500px) {
  .garden-scape { grid-template-areas: ". scene copy ." ". scene path ." ". quote quote ."; }
  .garden-quote { padding: 4px 0 10px; }
  .gq-stack > .gq-text { margin-inline: auto; text-align: center; }
  .garden-quote[data-len="xlong"] .gq-text { text-align: start; }
  .gq-lang { justify-content: center; }
  .gq-wait { justify-items: center; }
}
