/* Next 10 days and the opened day (frontend-v4 §2.1 item 8; F6 #190; b2 direction.css "Next 10
   days"). One grid for the header row and every day row, so the columns line up; the Confidence
   column exists only when the document writes it. Tokens only. */
.slot-days10.is-loading { min-height: 30rem; }
.d10 { container-type: inline-size; }
.d10 :is(.d10-cols, .d10-row) { --d10-cols: minmax(0, 1fr) 30px 2.75rem 4.9rem 14px; --d10-areas: "name ic pc hl chev"; }
.d10.has-conf :is(.d10-cols, .d10-row) { --d10-cols: minmax(0, 1fr) 30px 2.75rem 2rem 4.9rem 14px; --d10-areas: "name ic pc conf hl chev"; }
.d10-cols, .d10-row { display: grid; grid-template-columns: var(--d10-cols); grid-template-areas: var(--d10-areas); column-gap: var(--space-2); align-items: center; }
.d10-cols { margin-bottom: var(--space-1); font-size: var(--t-small); font-weight: var(--weight-semibold); letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-muted); }
.d10-cols .c-pc { grid-area: pc; text-align: right; }
.d10-cols .c-conf { grid-area: conf; text-align: center; white-space: nowrap; margin-inline: -4px; }
.d10-cols .c-hl { grid-area: hl; text-align: right; white-space: nowrap; }
.d10-list { margin: 0; padding: 0; list-style: none; }
.d10-day { border-top: var(--rule) solid var(--line); scroll-margin-top: var(--space-4); }
.d10-row {
  width: 100%; min-height: 3.5rem; padding: var(--space-2) 0; border: 0; border-radius: 0; background: none;
  color: var(--text); text-align: left; font-size: var(--t-sub); font-weight: var(--weight-regular);
}
.d10-name { grid-area: name; min-width: 0; overflow-wrap: anywhere; font-size: 1rem; font-weight: var(--weight-heavy); line-height: 1.2; }
.d10-word { display: block; margin-top: 1px; font-size: var(--t-sub); font-weight: var(--weight-medium); line-height: 1.25; color: var(--text-muted); }
.d10-row[aria-expanded="true"] .d10-word { color: var(--text-muted); }
.d10-ic { grid-area: ic; display: grid; place-items: center; }
.d10-ic .wx { width: 30px; height: 30px; }
.d10-pc { grid-area: pc; text-align: right; font-weight: var(--weight-bold); }
.d10-conf { grid-area: conf; justify-self: center; display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.d10-conf i { width: 4px; border-radius: 1px; background: var(--line); }
.d10-conf i:nth-child(1) { height: 6px; } .d10-conf i:nth-child(2) { height: 10px; } .d10-conf i:nth-child(3) { height: 14px; }
.d10-conf i.on { background: var(--text); }
.d10-hl { grid-area: hl; text-align: right; white-space: nowrap; }
.d10-hi { font-size: 1rem; font-weight: var(--weight-heavy); }
.d10-lo { color: var(--text-muted); font-weight: var(--weight-semibold); }
.d10-feels { display: block; font-size: 0.75rem; font-weight: var(--weight-semibold); color: var(--text-muted); line-height: 1.2; }
.d10-row .chev { grid-area: chev; color: var(--action); text-align: right; }
.d10-row[aria-expanded="true"] .d10-name { color: var(--action); }
.d10-flag { margin: calc(-1 * var(--space-1)) 0 var(--space-2); }
.d10-flag .chip { white-space: normal; min-height: 2rem; font-size: var(--t-sub); padding: 0 var(--space-2); }
.d10-open { display: grid; gap: var(--space-3); margin: 0 0 var(--space-3); padding: var(--space-3); border-radius: 18px; background: var(--surface-2); }
.d10-open[hidden] { display: none; }
.d10-head { margin: 0; font-size: 1.0625rem; font-weight: var(--weight-heavy); line-height: 1.25; }
.d10-normal { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-3); margin: 0; }
.d10-normal dt { color: var(--text-muted); font-weight: var(--weight-semibold); }
.d10-normal dd { margin: 0; text-align: right; }
.d10-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); gap: var(--space-2); }
.d10-tiles > div { display: grid; gap: 3px; align-content: start; min-width: 0; padding: var(--space-3); border-radius: 14px; background: var(--surface); }
.d10-tk { font-size: var(--t-small); font-weight: var(--weight-semibold); letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-muted); }
.d10-tv { font-size: 1.0625rem; font-weight: var(--weight-heavy); line-height: 1.25; overflow-wrap: anywhere; }
/* Further out: the label, then one row, the name and the dates on the left and the ranges on the right
   (prototype `days-further`, #690). The ranges end where the rows' High / low column ends. */
.d10-ext { padding: var(--space-3) 0 var(--space-1); border-top: var(--rule) solid var(--line); }
.d10-ext-label { margin: 0 0 var(--space-1); font-size: var(--t-small); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-small); line-height: 1.3; text-transform: uppercase; color: var(--text-muted); }
.d10-sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name hl" "word hl"; column-gap: var(--space-2); row-gap: 1px; align-items: center; min-height: 3.5rem; padding: var(--space-2) 0; }
.d10-sum p { margin: 0; }
.d10-ext-name { grid-area: name; min-width: 0; overflow-wrap: anywhere; font-size: 1rem; font-weight: var(--weight-heavy); line-height: 1.2; color: var(--text-muted); }
.d10-ext-word { grid-area: word; min-width: 0; font-size: var(--t-sub); font-weight: var(--weight-medium); line-height: 1.25; color: var(--text-muted); }
.d10-ext-hl { grid-area: hl; padding-right: calc(14px + var(--space-2)); text-align: right; white-space: nowrap; font-size: var(--t-sub); font-weight: var(--weight-heavy); line-height: 1.3; color: var(--text-muted); }
.d10-ext-hi { font-weight: var(--weight-heavy); }
.d10-ext-lo { font-weight: var(--weight-semibold); }
.d10-stale { margin: 0 0 var(--space-2); font-weight: var(--weight-semibold); }
/* Large text: the columns stack under the day's name instead of squeezing it. */
@container (max-width: 19rem) {
  .d10 :is(.d10-cols, .d10-row) { --d10-cols: 30px minmax(0, 1fr) auto 14px; --d10-areas: "name name name chev" "ic pc hl chev"; }
  .d10.has-conf :is(.d10-cols, .d10-row) { --d10-cols: 30px minmax(0, 1fr) auto auto 14px; --d10-areas: "name name name name chev" "ic pc conf hl chev"; }
  .d10-pc { text-align: left; }
  .d10-cols { display: none; }
  .d10-sum { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "word" "hl"; }
  .d10-ext-hl { padding-right: 0; text-align: left; white-space: normal; }
}
/* Larger text still (200 % on a 320 px phone: the box is 15rem or less): the high and low take their
   own line, so the chance never shares a squeezed column with them (#346). A 320 px phone at normal
   text is about 16rem wide and keeps the layout above. */
@container (max-width: 15rem) {
  .d10 :is(.d10-cols, .d10-row) { --d10-cols: 30px minmax(0, 1fr) 14px; --d10-areas: "name name chev" "ic pc chev" "ic hl chev"; }
  .d10.has-conf :is(.d10-cols, .d10-row) { --d10-cols: 30px minmax(0, 1fr) auto 14px; --d10-areas: "name name name chev" "ic pc conf chev" "ic hl hl chev"; }
  .d10-hl { text-align: left; white-space: normal; }
}
@media (min-width: 1024px) {
  /* The seven-day strip stays put at the top on the laptop; an opened day scrolls in below it. */
  .d10-day { scroll-margin-top: 8rem; }
  .d10-row:hover { background: var(--surface-2); }
}
