/* "Закономерности" page (TASK-015C). Uses the theme tokens from style.css. */
.pv-section { margin-bottom: 16px; }
.pv-period { font-size: 13px; color: var(--text-sub); margin-top: 4px; }
.pv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.pv-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.pv-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px 8px; flex-wrap: wrap; }
.pv-card-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.pv-chip {
  font-size: 12px; font-weight: 600; line-height: 1.3;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.pv-chip-noticeable { background: var(--accent-soft); color: var(--accent); }
.pv-chip-weak { background: var(--neutral-bg); color: var(--text-sub); }
.pv-sentence { font-size: 14.5px; color: var(--text); line-height: 1.5; }
.pv-caveat { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.pv-source { font-size: 12px; color: var(--text-muted); }

.pv-bars { display: flex; flex-direction: column; gap: 8px; }
.pv-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "track track"; gap: 3px 10px; }
.pv-bar-label { grid-area: label; display: flex; gap: 6px; align-items: baseline; min-width: 0; flex-wrap: wrap; }
.pv-bar-name { font-size: 12.5px; color: var(--text-sub); }
.pv-bar-n { font-size: 11.5px; color: var(--text-muted); }
.pv-bar-value { grid-area: value; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.pv-bar-track { grid-area: track; height: 10px; border-radius: 6px; background: var(--neutral-bg); overflow: hidden; }
.pv-bar-fill { height: 100%; border-radius: 6px; }
.pv-bar-a .pv-bar-fill { background: var(--accent); }
.pv-bar-b .pv-bar-fill { background: var(--text-muted); opacity: 0.55; }

.pv-details summary { cursor: pointer; font-size: 12.5px; color: var(--text-sub); font-weight: 550; }
.pv-details-body { margin-top: 6px; }
.pv-details-body p { font-size: 12.5px; color: var(--text-sub); line-height: 1.55; margin: 0 0 6px; }

.pv-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pv-item { border-top: 1px solid var(--border); padding-top: 8px; }
.pv-item:first-child { border-top: none; padding-top: 0; }
.pv-item-title { font-size: 13.5px; font-weight: 600; color: var(--text); }
.pv-item-text { font-size: 13px; color: var(--text-sub); line-height: 1.5; margin-top: 2px; }
.pv-empty { font-size: 13.5px; color: var(--text-sub); line-height: 1.5; }

.pv-hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; align-items: end; height: 110px; }
.pv-hour { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.pv-hour-bar { background: var(--text-muted); opacity: 0.45; border-radius: 3px 3px 0 0; width: 100%; min-height: 1px; }
.pv-hour-missing .pv-hour-bar { min-height: 0; }
.pv-hour-top .pv-hour-bar { background: var(--accent); opacity: 1; }
.pv-hour-label { font-size: 10.5px; color: var(--text-muted); text-align: center; height: 14px; line-height: 14px; }
.pv-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pv-weekday { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 5px 2px; text-align: center; }
.pv-weekday-top { border-color: var(--accent); }
.pv-weekday-name { font-size: 11px; color: var(--text-muted); }
.pv-weekday-value { font-size: 12.5px; font-weight: 600; color: var(--text); }

@media (max-width: 480px) {
  .pv-grid { grid-template-columns: 1fr; }
  .pv-sentence { font-size: 14px; }
}
