/* 日付で見る（終了日の近い順。2026-11-07 Issue #24）— js/deadlineview.js の形。
   置き場（上下の余白・重なりの順）は画面の css が決める（.sea-days）。
   赤は使わない。印の色は泡の縁の色（--bub-edge）の濃淡だけ */

.dl-view {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 4px;
  background-color: var(--bg);
  background-image: linear-gradient(180deg, var(--sea-1), var(--sea-2) 46%, var(--sea-3) 82%, var(--bg));
}
.dl-cap, .dl-empty { margin: 0; font-size: 12.5px; letter-spacing: .04em; color: var(--text-2); }
.dl-legend { margin: 0; display: flex; gap: 12px; font-size: 11.5px; color: var(--text-2); }
.dl-lg { display: inline-flex; align-items: center; gap: 4px; }
.dl-scroll {
  flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain;
  border-radius: 12px; background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}
.dl-table {
  --dl-name: 9.5em; --dl-w: 28px;
  display: grid; grid-template-columns: var(--dl-name) repeat(var(--dl-cols, 14), var(--dl-w));
  width: max-content;
}
.dl-row { display: contents; }
.dl-name, .dl-col, .dl-cell { border-bottom: 1px solid var(--line); }
/* 名前の列は横に流しても残る */
.dl-name {
  position: sticky; left: 0; z-index: 2;
  appearance: none; font: inherit; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  min-height: 44px; padding: 4px 8px; border: 0; border-bottom: 1px solid var(--line);
  background: var(--surface); color: var(--text);
  box-shadow: 1px 0 0 var(--line);
}
.dl-name:focus-visible { outline: 2px solid var(--bub-edge); outline-offset: -2px; }
.dl-tx { font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-left { font-size: 11.5px; color: var(--text-2); }
.dl-left.is-today { color: var(--text); font-weight: 600; }
.dl-head > * { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.dl-head > .dl-corner { z-index: 3; cursor: default; }
.dl-col {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 2px 0 3px; font-size: 10.5px; line-height: 1.2; color: var(--text-2);
}
.dl-col .dl-m { min-height: 1.2em; font-size: 10px; white-space: nowrap; }
.dl-col .dl-d { font-size: 12px; font-weight: 600; color: var(--text); }
.dl-col.is-today .dl-d { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.dl-cell { position: relative; display: flex; align-items: center; justify-content: center; }
/* 休みの色（Issue #24 の返事）。日曜・祝日は杏（--q-now-f）、土曜は空（--q-quick-f）。赤は使わない。
   見出しは地を濃く、表の中は薄く。祝日は見出しの曜日が「祝」になり、名前は表の上の1行に出る */
.dl-col.is-off { background: var(--q-now-f); }
.dl-col.is-sat { background: var(--q-quick-f); }
.dl-cell.is-off { background-color: color-mix(in srgb, var(--q-now-f) 60%, transparent); }
.dl-cell.is-sat { background-color: color-mix(in srgb, var(--q-quick-f) 60%, transparent); }
.dl-col.is-off .dl-wd, .dl-col.is-sat .dl-wd { color: var(--text); }
.dl-col.is-hol .dl-wd { font-weight: 600; }
.dl-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line); }
.dl-sw.is-off { background: var(--q-now-f); }
.dl-sw.is-sat { background: var(--q-quick-f); }
.dl-hols { margin: 0; font-size: 11.5px; color: var(--text-2); }
.dl-legend { flex-wrap: wrap; row-gap: 2px; }
.dl-col.is-month, .dl-cell.is-month { box-shadow: inset 1px 0 0 var(--line-strong, var(--line)); }
.dl-cell.is-today { background-color: color-mix(in srgb, var(--bub-edge) 10%, transparent); }

/* 印 */
.dl-mk { display: inline-block; flex: none; }
.dl-mk.is-end { width: 14px; height: 14px; border-radius: 50%; background: var(--bub-edge); }
.dl-mk.is-day { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--bub-edge); background: var(--surface); }
.dl-mk.is-span { width: 100%; height: 6px; background: color-mix(in srgb, var(--bub-edge) 35%, transparent); }
.dl-legend .dl-mk.is-span { width: 16px; }
.dl-bar { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; background: color-mix(in srgb, var(--bub-edge) 35%, transparent); }
.dl-cell .dl-mk { position: relative; }
@media (max-width: 420px) { .dl-table { --dl-name: 7.5em; --dl-w: 26px; } }
.dl-more { position: absolute; right: 1px; font-size: 11px; color: var(--text-2); }
/* 完了の海（左が過去）では、左端より前を指す「←」を左に置く（Issue #57） */
.dl-cell:first-of-type .dl-more { right: auto; left: 1px; }

/* 天気（2026-11-08 Issue #30）。見出し・地域・取得・ⓘ を1行に。狭いと折り返す。
   見方・祝日の名前・取った時刻・出典は ⓘ の中（.dl-info）に畳む（Issue #30 の返事「シンプルに」） */
.dl-wxbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 11.5px; color: var(--text-2); }
.dl-wxbar .dl-cap { margin-right: auto; }
.dl-wxmsg { flex-basis: 100%; }
.dl-info {
  display: flex; flex-direction: column; gap: 3px;
  padding: 6px 10px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.dl-fetched { margin: 0; font-size: 11.5px; color: var(--text-2); }
.dl-dayline {
  margin: 0; padding: 5px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.4; color: var(--text);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.dl-infobtn {
  appearance: none; font: inherit; font-size: 15px; line-height: 1; cursor: pointer;
  min-width: 30px; min-height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
}
.dl-infobtn[aria-expanded="true"] { color: var(--text); border-color: var(--bub-edge); }
.dl-wxarea, .dl-wxget {
  font: inherit; font-size: 12px; color: var(--text);
  min-height: 30px; padding: 2px 8px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface);
}
.dl-wxarea { max-width: 15em; }
.dl-wxget { cursor: pointer; }
.dl-wxget:disabled { opacity: .55; cursor: default; }
.dl-wxcredit { color: var(--text-2); font-size: 10.5px; }
.dl-col .dl-wx { font-size: 13px; line-height: 1.1; }
.dl-col .dl-tp { font-size: 9.5px; letter-spacing: -.02em; white-space: nowrap; color: var(--text); }
.dl-col .dl-pp { font-size: 9px; white-space: nowrap; color: var(--q-quick-e); }
/* 風（最大 m/s）。この端末の表示で「風の強さも出す」にしたときだけ（Issue #36。body.pref-wind）。
   列が細い狭い画面では出さない（日を押すと出る1行には、いつも出る） */
.dl-col .dl-wind { display: none; font-size: 9px; white-space: nowrap; color: var(--text-2); }
body.pref-wind .dl-col .dl-wind { display: block; }
@media (max-width: 360px) { body.pref-wind .dl-col .dl-wind { display: none; } }
.dl-col.is-tap { cursor: pointer; }
.dl-col.is-tap:focus-visible { outline: 2px solid var(--bub-edge); outline-offset: -2px; }
.dl-col.is-sel { box-shadow: inset 0 -3px 0 var(--bub-edge); }

/* 見出しの行は、下を流れる泡の名前・印が透けないよう不透明にする（Issue #30 の返事）。
   休みの色は、不透明な地（--surface）の上に重ねる（暗い画面では --q-now-f などが半透明のため）。
   名前の列（z-index 2）より上に置き、下へ影を落として境目を見せる */
.dl-head > * { background-color: var(--surface); z-index: 4; box-shadow: 0 1px 0 var(--line); }
.dl-head > .dl-corner { z-index: 5; }
.dl-head > .dl-col.is-off { background: linear-gradient(var(--q-now-f), var(--q-now-f)), var(--surface); }
.dl-head > .dl-col.is-sat { background: linear-gradient(var(--q-quick-f), var(--q-quick-f)), var(--surface); }
.dl-head > .dl-col.is-sel { box-shadow: inset 0 -3px 0 var(--bub-edge), 0 1px 0 var(--line); }
