/* Dorax Finance — the Calendar on a phone, v328 (features/phone/calendar-land.js): the forest only in the menu; on the page the day chosen with its
   figure and its (i), three weeks to choose a day from, what can be spent; a day below zero as one row; the day's things as rows; what is coming,
   each thing with its date. The page's own colours (--bq-*), the lime for today, the day chosen and the dots. */
@media (max-width: 920px) {
  :root.land .cll { display: flex; flex-direction: column; gap: 30px; padding: 26px 0 28px; }
  :root.land .cll-top { display: flex; flex-direction: column; gap: 22px; }
  :root.land .cll-main { display: flex; flex-direction: column; gap: 6px; }
  :root.land .cll-lead { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--bq-ink-2); font-size: 14px; }
  :root.land .cll-tag { padding: 3px 8px; border-radius: 999px; background: var(--lk-lime); color: var(--lk-deep); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  :root.land .cll-fig { display: flex; align-items: center; gap: 4px; }
  :root.land .cll-fig > b { color: var(--bq-ink); font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; }
  :root.land .cll-fig > b .cents { color: var(--bq-ink-3); font-size: 18px; letter-spacing: 0; }
  :root.land .cll-fig > b.neg { color: var(--bq-crit); }
  :root.land .cll-fig .cal-why.icon { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
  :root.land .cll-fig .cal-why.icon > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--bq-line-2); color: var(--bq-ink-2); }
  :root.land .cll-fig .cal-why.icon svg { width: 14px; height: 14px; }
  :root.land .cll-fig .cal-why.icon:focus-visible { outline: 2px solid var(--bq-accent); outline-offset: 0; }
  :root.land .cll-what { color: var(--bq-ink-2); font-size: 13.5px; line-height: 1.45; }
  :root.land .cll-what.neg { color: var(--bq-crit); }
  :root.land .cll-main .cal-note { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--lk-lime) 16%, transparent); color: var(--bq-accent); font-size: 12.5px; font-weight: 600; }

  /* three weeks: Monday first; a dot where something happens; today ringed in lime, the day chosen lime, the days gone quiet */
  :root.land .cll-grid { display: flex; flex-direction: column; gap: 4px; }
  :root.land .cll-wd, :root.land .cll .cll-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  :root.land .cll-wd span { color: var(--bq-ink-3); font-size: 12px; font-weight: 600; text-align: center; }
  :root.land .cll .cll-c { position: relative; box-sizing: border-box; min-height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; border-radius: 14px; background: var(--bq-card); color: var(--bq-ink); transition: background-color 200ms ease-out, color 200ms ease-out, transform 120ms ease-out; }
  :root.land .cll .cll-c b { color: inherit; font-size: 15px; font-weight: 600; }
  :root.land .cll .cll-c i { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
  :root.land .cll .cll-c i.on { background: var(--bq-accent); }
  :root.land .cll .cll-c.gone { background: none; color: var(--bq-ink-3); }
  :root.land .cll .cll-c.gone i.on { opacity: .5; }
  :root.land .cll .cll-c.off { background: none; color: var(--bq-ink-3); opacity: .45; }
  :root.land .cll .cll-c.today { box-shadow: inset 0 0 0 1.5px var(--lk-lime); }
  :root.land .cll .cll-c.today b { color: var(--bq-ink); }
  :root.land .cll .cll-c.neg { background: color-mix(in srgb, var(--bq-crit) 14%, transparent); color: var(--bq-crit); }
  :root.land .cll .cll-c.on { background: var(--lk-lime); box-shadow: none; color: var(--lk-deep); }
  :root.land .cll .cll-c.on b { color: var(--lk-deep); }
  :root.land .cll .cll-c.on i.on { background: var(--lk-deep); }
  :root.land .cll .cll-c:active { transform: scale(.95); }
  :root.land .cll .cll-c:focus-visible { outline: 2px solid var(--bq-accent); outline-offset: 2px; }
  :root.land .cll-under { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
  :root.land .cll-free { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--lk-lime) 16%, transparent); color: var(--bq-accent); font-size: 13.5px; font-weight: 600; }
  :root.land .cll-free.neg { background: color-mix(in srgb, var(--bq-crit) 14%, transparent); color: var(--bq-crit); }
  :root.land .cll-free svg { width: 15px; height: 15px; }
  :root.land .cll-today { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--bq-card); box-shadow: inset 0 0 0 1px var(--bq-line); color: var(--bq-ink); font-size: 14px; font-weight: 600; -webkit-tap-highlight-color: transparent; animation: cll-fade 240ms ease-out both; }
  :root.land .cll-today svg { width: 16px; height: 16px; }
  :root.land .cll-today:focus-visible { outline: 2px solid var(--bq-accent); outline-offset: 2px; }
  @keyframes cll-fade { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

  /* rows: below zero, the day's things, what is coming */
  :root.land .cll-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
  :root.land .cll-h h2 { margin: 0; color: var(--bq-ink); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
  :root.land .cll-h > span { color: var(--bq-ink-2); font-size: 15px; font-weight: 600; }
  :root.land .cll-rows, :root.land .cll-list { display: flex; flex-direction: column; }
  :root.land .cll-row { all: unset; position: relative; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 8px 0; color: var(--bq-ink); text-decoration: none; }
  :root.land .cll-row.still { cursor: default; }
  :root.land .cll-rows > .cll-row + .cll-row::before, :root.land .cll-list > .cll-row + .cll-row::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: 1px; background: var(--bq-line); }
  :root.land .cll-row:not(.still):active { opacity: .7; }
  :root.land .cll-row:focus-visible { outline: 2px solid var(--bq-accent); outline-offset: 2px; border-radius: 14px; }
  :root.land .cll-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bq-circle); color: var(--bq-accent); }
  :root.land .cll-ic svg { width: 18px; height: 18px; }
  :root.land .cll-ic.in { background: color-mix(in srgb, var(--bq-in) 16%, transparent); color: var(--bq-in); }
  :root.land .cll-ic.crit { background: color-mix(in srgb, var(--bq-crit) 14%, transparent); color: var(--bq-crit); }
  :root.land .cll-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  :root.land .cll-t b { overflow: hidden; color: var(--bq-ink); font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
  :root.land .cll-t small { overflow: hidden; color: var(--bq-ink-2); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
  :root.land .cll-t small.cal-fc { white-space: normal; }      /* v526: a card's open invoice, ≈: what is already charged, whole */
  :root.land .cll-am { flex: none; color: var(--bq-ink); font-size: 15px; font-weight: 600; white-space: nowrap; }
  :root.land .cll-am.in { color: var(--bq-in); }
  :root.land .cll-am.crit { color: var(--bq-crit); }
  :root.land .cll-go { flex: none; display: grid; color: var(--bq-ink-3); }
  :root.land .cll-go svg { width: 16px; height: 16px; }
  :root.land .cll-red { min-height: 64px; }
  :root.land .cll-red .cll-t b { white-space: normal; line-height: 1.3; }
  :root.land .cll-none { margin: 6px 0 0; color: var(--bq-ink-2); font-size: 14px; line-height: 1.45; }
  :root.land .cll-exact { min-height: 52px; }
  :root.land .cll-dot { flex: none; display: grid; place-items: center; width: 40px; }
  :root.land .cll-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--bq-warn); }
  :root.land .cll-exact .cll-t small { font-size: 13.5px; white-space: normal; }
  :root.land .cll-checks { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 320ms var(--ease), opacity 240ms ease-out; }
  :root.land .cll-checks.on { grid-template-rows: 1fr; opacity: 1; }
  :root.land .cll-checks > div { min-height: 0; overflow: hidden; margin-left: 52px; }
  :root.land .cll-checks .cal-check { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0; color: var(--bq-ink-2); font-size: 13.5px; line-height: 1.45; }
  :root.land .cll-checks .cal-check-go { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--bq-accent); font-size: 14px; font-weight: 600; text-decoration: none; }
  :root.land .cll-checks .cal-check-go svg { width: 15px; height: 15px; }
  :root.land .cll-mo { margin: 14px 0 2px; color: var(--bq-ink-3); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  :root.land .cll-mo:first-child { margin-top: 2px; }
  :root.land .cll-dd { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bq-card); box-shadow: inset 0 0 0 1px var(--bq-line); }
  :root.land .cll-dd b { color: var(--bq-ink); font-size: 14px; font-weight: 700; line-height: 1; }
  :root.land .cll-dd small { color: var(--bq-ink-3); font-size: 10px; font-weight: 600; text-transform: lowercase; }
  :root.land .cll-dd.none { background: none; }
  :root.land .cll-dd.none small { font-size: 9.5px; line-height: 1.15; text-align: center; }
  :root.land .cll-left { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 6px 52px; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--lk-lime) 16%, transparent); color: var(--bq-accent); font-size: 13px; font-weight: 600; }
  :root.land .cll-left.neg { background: color-mix(in srgb, var(--bq-crit) 14%, transparent); color: var(--bq-crit); }
  :root.land .cll-left svg { width: 14px; height: 14px; }
  :root.land .cll-more { all: unset; box-sizing: border-box; cursor: pointer; align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: 52px; color: var(--bq-accent); font-size: 14px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
  :root.land .cll-more svg { width: 15px; height: 15px; }
  :root.land .cll-more:focus-visible { outline: 2px solid var(--bq-accent); outline-offset: 2px; border-radius: 10px; }
  :root.land .cll-coming { display: flex; flex-direction: column; }

  /* a narrow phone: the weeks reach to the screen's edges and touch, their gaps drawn in the page's colour, so each day is still a thumb wide */
  @media (max-width: 374px) {
    :root.land .cll-grid { margin: 0 -12px; }
    :root.land .cll-wd, :root.land .cll .cll-days { gap: 0; }
    :root.land .cll .cll-c { box-shadow: inset 0 0 0 2px var(--bq-page); }
    :root.land .cll .cll-c.today { box-shadow: inset 0 0 0 2px var(--bq-page), inset 0 0 0 3.5px var(--lk-lime); }
    :root.land .cll .cll-c.on { box-shadow: inset 0 0 0 2px var(--bq-page); }
  }
  @media (prefers-reduced-motion: reduce) { :root.land .cll .cll-c, :root.land .cll-checks { transition: none; } :root.land .cll-today { animation: none; } }
}
